UNPKG

4.62 MBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory(require("aws_amplify_cache"), require("aws_amplify_core"));
4 else if(typeof define === 'function' && define.amd)
5 define("aws_amplify_analytics", ["aws_amplify_cache", "aws_amplify_core"], factory);
6 else if(typeof exports === 'object')
7 exports["aws_amplify_analytics"] = factory(require("aws_amplify_cache"), require("aws_amplify_core"));
8 else
9 root["aws_amplify_analytics"] = factory(root["aws_amplify_cache"], root["aws_amplify_core"]);
10})(this, function(__WEBPACK_EXTERNAL_MODULE__aws_amplify_cache__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__) {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
47/******/ __webpack_require__.d = function(exports, name, getter) {
48/******/ if(!__webpack_require__.o(exports, name)) {
49/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50/******/ }
51/******/ };
52/******/
53/******/ // define __esModule on exports
54/******/ __webpack_require__.r = function(exports) {
55/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57/******/ }
58/******/ Object.defineProperty(exports, '__esModule', { value: true });
59/******/ };
60/******/
61/******/ // create a fake namespace object
62/******/ // mode & 1: value is a module id, require it
63/******/ // mode & 2: merge all properties of value into the ns
64/******/ // mode & 4: return value when already ns object
65/******/ // mode & 8|1: behave like require
66/******/ __webpack_require__.t = function(value, mode) {
67/******/ if(mode & 1) value = __webpack_require__(value);
68/******/ if(mode & 8) return value;
69/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70/******/ var ns = Object.create(null);
71/******/ __webpack_require__.r(ns);
72/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74/******/ return ns;
75/******/ };
76/******/
77/******/ // getDefaultExport function for compatibility with non-harmony modules
78/******/ __webpack_require__.n = function(module) {
79/******/ var getter = module && module.__esModule ?
80/******/ function getDefault() { return module['default']; } :
81/******/ function getModuleExports() { return module; };
82/******/ __webpack_require__.d(getter, 'a', getter);
83/******/ return getter;
84/******/ };
85/******/
86/******/ // Object.prototype.hasOwnProperty.call
87/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88/******/
89/******/ // __webpack_public_path__
90/******/ __webpack_require__.p = "";
91/******/
92/******/
93/******/ // Load entry module and return exports
94/******/ return __webpack_require__(__webpack_require__.s = "./lib-esm/index.js");
95/******/ })
96/************************************************************************/
97/******/ ({
98
99/***/ "../../node_modules/@aws-crypto/crc32/build/aws_crc32.js":
100/*!**************************************************************************!*\
101 !*** /root/amplify-js/node_modules/@aws-crypto/crc32/build/aws_crc32.js ***!
102 \**************************************************************************/
103/*! no static exports found */
104/***/ (function(module, exports, __webpack_require__) {
105
106"use strict";
107
108// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
109// SPDX-License-Identifier: Apache-2.0
110Object.defineProperty(exports, "__esModule", { value: true });
111exports.AwsCrc32 = void 0;
112var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
113var util_1 = __webpack_require__(/*! @aws-crypto/util */ "../../node_modules/@aws-crypto/util/build/index.js");
114var index_1 = __webpack_require__(/*! ./index */ "../../node_modules/@aws-crypto/crc32/build/index.js");
115var AwsCrc32 = /** @class */ (function () {
116 function AwsCrc32() {
117 this.crc32 = new index_1.Crc32();
118 }
119 AwsCrc32.prototype.update = function (toHash) {
120 if ((0, util_1.isEmptyData)(toHash))
121 return;
122 this.crc32.update((0, util_1.convertToBuffer)(toHash));
123 };
124 AwsCrc32.prototype.digest = function () {
125 return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
126 return (0, tslib_1.__generator)(this, function (_a) {
127 return [2 /*return*/, (0, util_1.numToUint8)(this.crc32.digest())];
128 });
129 });
130 };
131 return AwsCrc32;
132}());
133exports.AwsCrc32 = AwsCrc32;
134//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXdzX2NyYzMyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2F3c19jcmMzMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7OztBQUd0Qyx5Q0FBNEU7QUFDNUUsaUNBQWdDO0FBRWhDO0lBQUE7UUFDbUIsVUFBSyxHQUFHLElBQUksYUFBSyxFQUFFLENBQUM7SUFXdkMsQ0FBQztJQVRDLHlCQUFNLEdBQU4sVUFBTyxNQUFrQjtRQUN2QixJQUFJLElBQUEsa0JBQVcsRUFBQyxNQUFNLENBQUM7WUFBRSxPQUFPO1FBRWhDLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLElBQUEsc0JBQWUsRUFBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO0lBQzdDLENBQUM7SUFFSyx5QkFBTSxHQUFaOzs7Z0JBQ0Usc0JBQU8sSUFBQSxpQkFBVSxFQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBQzs7O0tBQ3hDO0lBQ0gsZUFBQztBQUFELENBQUMsQUFaRCxJQVlDO0FBWlksNEJBQVEiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb3B5cmlnaHQgQW1hem9uLmNvbSBJbmMuIG9yIGl0cyBhZmZpbGlhdGVzLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IEFwYWNoZS0yLjBcblxuaW1wb3J0IHsgSGFzaCwgU291cmNlRGF0YSB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuaW1wb3J0IHsgY29udmVydFRvQnVmZmVyLCBpc0VtcHR5RGF0YSwgbnVtVG9VaW50OCB9IGZyb20gXCJAYXdzLWNyeXB0by91dGlsXCI7XG5pbXBvcnQgeyBDcmMzMiB9IGZyb20gXCIuL2luZGV4XCI7XG5cbmV4cG9ydCBjbGFzcyBBd3NDcmMzMiBpbXBsZW1lbnRzIEhhc2gge1xuICBwcml2YXRlIHJlYWRvbmx5IGNyYzMyID0gbmV3IENyYzMyKCk7XG5cbiAgdXBkYXRlKHRvSGFzaDogU291cmNlRGF0YSkge1xuICAgIGlmIChpc0VtcHR5RGF0YSh0b0hhc2gpKSByZXR1cm47XG5cbiAgICB0aGlzLmNyYzMyLnVwZGF0ZShjb252ZXJ0VG9CdWZmZXIodG9IYXNoKSk7XG4gIH1cblxuICBhc3luYyBkaWdlc3QoKTogUHJvbWlzZTxVaW50OEFycmF5PiB7XG4gICAgcmV0dXJuIG51bVRvVWludDgodGhpcy5jcmMzMi5kaWdlc3QoKSk7XG4gIH1cbn1cbiJdfQ==
135
136/***/ }),
137
138/***/ "../../node_modules/@aws-crypto/crc32/build/index.js":
139/*!**********************************************************************!*\
140 !*** /root/amplify-js/node_modules/@aws-crypto/crc32/build/index.js ***!
141 \**********************************************************************/
142/*! no static exports found */
143/***/ (function(module, exports, __webpack_require__) {
144
145"use strict";
146
147Object.defineProperty(exports, "__esModule", { value: true });
148exports.AwsCrc32 = exports.Crc32 = exports.crc32 = void 0;
149var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
150var util_1 = __webpack_require__(/*! @aws-crypto/util */ "../../node_modules/@aws-crypto/util/build/index.js");
151function crc32(data) {
152 return new Crc32().update(data).digest();
153}
154exports.crc32 = crc32;
155var Crc32 = /** @class */ (function () {
156 function Crc32() {
157 this.checksum = 0xffffffff;
158 }
159 Crc32.prototype.update = function (data) {
160 var e_1, _a;
161 try {
162 for (var data_1 = (0, tslib_1.__values)(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
163 var byte = data_1_1.value;
164 this.checksum =
165 (this.checksum >>> 8) ^ lookupTable[(this.checksum ^ byte) & 0xff];
166 }
167 }
168 catch (e_1_1) { e_1 = { error: e_1_1 }; }
169 finally {
170 try {
171 if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
172 }
173 finally { if (e_1) throw e_1.error; }
174 }
175 return this;
176 };
177 Crc32.prototype.digest = function () {
178 return (this.checksum ^ 0xffffffff) >>> 0;
179 };
180 return Crc32;
181}());
182exports.Crc32 = Crc32;
183// prettier-ignore
184var a_lookUpTable = [
185 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA,
186 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
187 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
188 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
189 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE,
190 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7,
191 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
192 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5,
193 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172,
194 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B,
195 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940,
196 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59,
197 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116,
198 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
199 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924,
200 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D,
201 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A,
202 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433,
203 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818,
204 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01,
205 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
206 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457,
207 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C,
208 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65,
209 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2,
210 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB,
211 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0,
212 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
213 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086,
214 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F,
215 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4,
216 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD,
217 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A,
218 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683,
219 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
220 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1,
221 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE,
222 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7,
223 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC,
224 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5,
225 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252,
226 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
227 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60,
228 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79,
229 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236,
230 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F,
231 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04,
232 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D,
233 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
234 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713,
235 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38,
236 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21,
237 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E,
238 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777,
239 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C,
240 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
241 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2,
242 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB,
243 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0,
244 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9,
245 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6,
246 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF,
247 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94,
248 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D,
249];
250var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable);
251var aws_crc32_1 = __webpack_require__(/*! ./aws_crc32 */ "../../node_modules/@aws-crypto/crc32/build/aws_crc32.js");
252Object.defineProperty(exports, "AwsCrc32", { enumerable: true, get: function () { return aws_crc32_1.AwsCrc32; } });
253//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHlDQUFpRDtBQUVqRCxTQUFnQixLQUFLLENBQUMsSUFBZ0I7SUFDcEMsT0FBTyxJQUFJLEtBQUssRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQztBQUMzQyxDQUFDO0FBRkQsc0JBRUM7QUFFRDtJQUFBO1FBQ1UsYUFBUSxHQUFHLFVBQVUsQ0FBQztJQWNoQyxDQUFDO0lBWkMsc0JBQU0sR0FBTixVQUFPLElBQWdCOzs7WUFDckIsS0FBbUIsSUFBQSxTQUFBLHNCQUFBLElBQUksQ0FBQSwwQkFBQSw0Q0FBRTtnQkFBcEIsSUFBTSxJQUFJLGlCQUFBO2dCQUNiLElBQUksQ0FBQyxRQUFRO29CQUNYLENBQUMsSUFBSSxDQUFDLFFBQVEsS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****************************************************************************************!*\
259 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js ***!
260 \*****************************************************************************************/
261/*! no static exports found */
262/***/ (function(module, exports, __webpack_require__) {
263
264"use strict";
265
266Object.defineProperty(exports, "__esModule", { value: true });
267//# sourceMappingURL=CryptoOperation.js.map
268
269/***/ }),
270
271/***/ "../../node_modules/@aws-crypto/ie11-detection/build/Key.js":
272/*!*****************************************************************************!*\
273 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/Key.js ***!
274 \*****************************************************************************/
275/*! no static exports found */
276/***/ (function(module, exports, __webpack_require__) {
277
278"use strict";
279
280Object.defineProperty(exports, "__esModule", { value: true });
281//# sourceMappingURL=Key.js.map
282
283/***/ }),
284
285/***/ "../../node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js":
286/*!**************************************************************************************!*\
287 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js ***!
288 \**************************************************************************************/
289/*! no static exports found */
290/***/ (function(module, exports, __webpack_require__) {
291
292"use strict";
293
294Object.defineProperty(exports, "__esModule", { value: true });
295//# sourceMappingURL=KeyOperation.js.map
296
297/***/ }),
298
299/***/ "../../node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js":
300/*!****************************************************************************************!*\
301 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js ***!
302 \****************************************************************************************/
303/*! no static exports found */
304/***/ (function(module, exports, __webpack_require__) {
305
306"use strict";
307
308Object.defineProperty(exports, "__esModule", { value: true });
309//# sourceMappingURL=MsSubtleCrypto.js.map
310
311/***/ }),
312
313/***/ "../../node_modules/@aws-crypto/ie11-detection/build/MsWindow.js":
314/*!**********************************************************************************!*\
315 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js ***!
316 \**********************************************************************************/
317/*! no static exports found */
318/***/ (function(module, exports, __webpack_require__) {
319
320"use strict";
321
322Object.defineProperty(exports, "__esModule", { value: true });
323exports.isMsWindow = void 0;
324var msSubtleCryptoMethods = [
325 "decrypt",
326 "digest",
327 "encrypt",
328 "exportKey",
329 "generateKey",
330 "importKey",
331 "sign",
332 "verify"
333];
334function quacksLikeAnMsWindow(window) {
335 return "MSInputMethodContext" in window && "msCrypto" in window;
336}
337/**
338 * Determines if the provided window is (or is like) the window object one would
339 * expect to encounter in Internet Explorer 11.
340 */
341function isMsWindow(window) {
342 if (quacksLikeAnMsWindow(window) && window.msCrypto.subtle !== undefined) {
343 var _a = window.msCrypto, getRandomValues = _a.getRandomValues, subtle_1 = _a.subtle;
344 return msSubtleCryptoMethods
345 .map(function (methodName) { return subtle_1[methodName]; })
346 .concat(getRandomValues)
347 .every(function (method) { return typeof method === "function"; });
348 }
349 return false;
350}
351exports.isMsWindow = isMsWindow;
352//# sourceMappingURL=MsWindow.js.map
353
354/***/ }),
355
356/***/ "../../node_modules/@aws-crypto/ie11-detection/build/index.js":
357/*!*******************************************************************************!*\
358 !*** /root/amplify-js/node_modules/@aws-crypto/ie11-detection/build/index.js ***!
359 \*******************************************************************************/
360/*! no static exports found */
361/***/ (function(module, exports, __webpack_require__) {
362
363"use strict";
364
365Object.defineProperty(exports, "__esModule", { value: true });
366var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
367tslib_1.__exportStar(__webpack_require__(/*! ./CryptoOperation */ "../../node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js"), exports);
368tslib_1.__exportStar(__webpack_require__(/*! ./Key */ "../../node_modules/@aws-crypto/ie11-detection/build/Key.js"), exports);
369tslib_1.__exportStar(__webpack_require__(/*! ./KeyOperation */ "../../node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js"), exports);
370tslib_1.__exportStar(__webpack_require__(/*! ./MsSubtleCrypto */ "../../node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js"), exports);
371tslib_1.__exportStar(__webpack_require__(/*! ./MsWindow */ "../../node_modules/@aws-crypto/ie11-detection/build/MsWindow.js"), exports);
372//# sourceMappingURL=index.js.map
373
374/***/ }),
375
376/***/ "../../node_modules/@aws-crypto/sha256-browser/build/constants.js":
377/*!***********************************************************************************!*\
378 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/constants.js ***!
379 \***********************************************************************************/
380/*! no static exports found */
381/***/ (function(module, exports, __webpack_require__) {
382
383"use strict";
384
385Object.defineProperty(exports, "__esModule", { value: true });
386exports.EMPTY_DATA_SHA_256 = exports.SHA_256_HMAC_ALGO = exports.SHA_256_HASH = void 0;
387exports.SHA_256_HASH = { name: "SHA-256" };
388exports.SHA_256_HMAC_ALGO = {
389 name: "HMAC",
390 hash: exports.SHA_256_HASH
391};
392exports.EMPTY_DATA_SHA_256 = new Uint8Array([
393 227,
394 176,
395 196,
396 66,
397 152,
398 252,
399 28,
400 20,
401 154,
402 251,
403 244,
404 200,
405 153,
406 111,
407 185,
408 36,
409 39,
410 174,
411 65,
412 228,
413 100,
414 155,
415 147,
416 76,
417 164,
418 149,
419 153,
420 27,
421 120,
422 82,
423 184,
424 85
425]);
426//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLFlBQVksR0FBd0IsRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLENBQUM7QUFFeEQsUUFBQSxpQkFBaUIsR0FBZ0Q7SUFDNUUsSUFBSSxFQUFFLE1BQU07SUFDWixJQUFJLEVBQUUsb0JBQVk7Q0FDbkIsQ0FBQztBQUVXLFFBQUEsa0JBQWtCLEdBQUcsSUFBSSxVQUFVLENBQUM7SUFDL0MsR0FBRztJQUNILEdBQUc7SUFDSCxHQUFHO0lBQ0gsRUFBRTtJQUNGLEdBQUc7SUFDSCxHQUFHO0lBQ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cbiAgODVcbl0pO1xuIl19
427
428/***/ }),
429
430/***/ "../../node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js":
431/*!*********************************************************************************************!*\
432 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js ***!
433 \*********************************************************************************************/
434/*! no static exports found */
435/***/ (function(module, exports, __webpack_require__) {
436
437"use strict";
438
439Object.defineProperty(exports, "__esModule", { value: true });
440exports.Sha256 = void 0;
441var ie11Sha256_1 = __webpack_require__(/*! ./ie11Sha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js");
442var webCryptoSha256_1 = __webpack_require__(/*! ./webCryptoSha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js");
443var sha256_js_1 = __webpack_require__(/*! @aws-crypto/sha256-js */ "../../node_modules/@aws-crypto/sha256-js/build/index.js");
444var supports_web_crypto_1 = __webpack_require__(/*! @aws-crypto/supports-web-crypto */ "../../node_modules/@aws-crypto/supports-web-crypto/build/index.js");
445var ie11_detection_1 = __webpack_require__(/*! @aws-crypto/ie11-detection */ "../../node_modules/@aws-crypto/ie11-detection/build/index.js");
446var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist-es/index.js");
447var Sha256 = /** @class */ (function () {
448 function Sha256(secret) {
449 if ((0, supports_web_crypto_1.supportsWebCrypto)((0, util_locate_window_1.locateWindow)())) {
450 this.hash = new webCryptoSha256_1.Sha256(secret);
451 }
452 else if ((0, ie11_detection_1.isMsWindow)((0, util_locate_window_1.locateWindow)())) {
453 this.hash = new ie11Sha256_1.Sha256(secret);
454 }
455 else {
456 this.hash = new sha256_js_1.Sha256(secret);
457 }
458 }
459 Sha256.prototype.update = function (data, encoding) {
460 this.hash.update(data, encoding);
461 };
462 Sha256.prototype.digest = function () {
463 return this.hash.digest();
464 };
465 return Sha256;
466}());
467exports.Sha256 = Sha256;
468//# sourceMappingURL=data:application/json;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G5cbiAgdXBkYXRlKGRhdGE6IFNvdXJjZURhdGEsIGVuY29kaW5nPzogXCJ1dGY4XCIgfCBcImFzY2lpXCIgfCBcImxhdGluMVwiKTogdm9pZCB7XG4gICAgdGhpcy5oYXNoLnVwZGF0ZShkYXRhLCBlbmNvZGluZyk7XG4gIH1cblxuICBkaWdlc3QoKTogUHJvbWlzZTxVaW50OEFycmF5PiB7XG4gICAgcmV0dXJuIHRoaXMuaGFzaC5kaWdlc3QoKTtcbiAgfVxufVxuIl19
469
470/***/ }),
471
472/***/ "../../node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js":
473/*!************************************************************************************!*\
474 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js ***!
475 \************************************************************************************/
476/*! no static exports found */
477/***/ (function(module, exports, __webpack_require__) {
478
479"use strict";
480
481Object.defineProperty(exports, "__esModule", { value: true });
482exports.Sha256 = void 0;
483var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "../../node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js");
484var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-browser/build/constants.js");
485var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
486var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist-es/index.js");
487var Sha256 = /** @class */ (function () {
488 function Sha256(secret) {
489 if (secret) {
490 this.operation = getKeyPromise(secret).then(function (keyData) {
491 return (0, util_locate_window_1.locateWindow)().msCrypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, keyData);
492 });
493 this.operation.catch(function () { });
494 }
495 else {
496 this.operation = Promise.resolve((0, util_locate_window_1.locateWindow)().msCrypto.subtle.digest("SHA-256"));
497 }
498 }
499 Sha256.prototype.update = function (toHash) {
500 var _this = this;
501 if ((0, isEmptyData_1.isEmptyData)(toHash)) {
502 return;
503 }
504 this.operation = this.operation.then(function (operation) {
505 operation.onerror = function () {
506 _this.operation = Promise.reject(new Error("Error encountered updating hash"));
507 };
508 operation.process(toArrayBufferView(toHash));
509 return operation;
510 });
511 this.operation.catch(function () { });
512 };
513 Sha256.prototype.digest = function () {
514 return this.operation.then(function (operation) {
515 return new Promise(function (resolve, reject) {
516 operation.onerror = function () {
517 reject(new Error("Error encountered finalizing hash"));
518 };
519 operation.oncomplete = function () {
520 if (operation.result) {
521 resolve(new Uint8Array(operation.result));
522 }
523 reject(new Error("Error encountered finalizing hash"));
524 };
525 operation.finish();
526 });
527 });
528 };
529 return Sha256;
530}());
531exports.Sha256 = Sha256;
532function getKeyPromise(secret) {
533 return new Promise(function (resolve, reject) {
534 var keyOperation = (0, util_locate_window_1.locateWindow)().msCrypto.subtle.importKey("raw", toArrayBufferView(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"]);
535 keyOperation.oncomplete = function () {
536 if (keyOperation.result) {
537 resolve(keyOperation.result);
538 }
539 reject(new Error("ImportKey completed without importing key."));
540 };
541 keyOperation.onerror = function () {
542 reject(new Error("ImportKey failed to import key."));
543 };
544 });
545}
546function toArrayBufferView(data) {
547 if (typeof data === "string") {
548 return (0, util_utf8_browser_1.fromUtf8)(data);
549 }
550 if (ArrayBuffer.isView(data)) {
551 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
552 }
553 return new Uint8Array(data);
554}
555//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWUxMVNoYTI1Ni5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pZTExU2hhMjU2LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZDQUE0QztBQUM1Qyx5Q0FBZ0Q7QUFFaEQsZ0VBQXNEO0FBRXRELGtFQUEyRDtBQUUzRDtJQUdFLGdC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ge1xuICBpZiAodHlwZW9mIGRhdGEgPT09IFwic3RyaW5nXCIpIHtcbiAgICByZXR1cm4gZnJvbVV0ZjgoZGF0YSk7XG4gIH1cblxuICBpZiAoQXJyYXlCdWZmZXIuaXNWaWV3KGRhdGEpKSB7XG4gICAgcmV0dXJuIG5ldyBVaW50OEFycmF5KFxuICAgICAgZGF0YS5idWZmZXIsXG4gICAgICBkYXRhLmJ5dGVPZmZzZXQsXG4gICAgICBkYXRhLmJ5dGVMZW5ndGggLyBVaW50OEFycmF5LkJZVEVTX1BFUl9FTEVNRU5UXG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiBuZXcgVWludDhBcnJheShkYXRhKTtcbn1cbiJdfQ==
556
557/***/ }),
558
559/***/ "../../node_modules/@aws-crypto/sha256-browser/build/index.js":
560/*!*******************************************************************************!*\
561 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/index.js ***!
562 \*******************************************************************************/
563/*! no static exports found */
564/***/ (function(module, exports, __webpack_require__) {
565
566"use strict";
567
568Object.defineProperty(exports, "__esModule", { value: true });
569exports.WebCryptoSha256 = exports.Ie11Sha256 = void 0;
570var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
571(0, tslib_1.__exportStar)(__webpack_require__(/*! ./crossPlatformSha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js"), exports);
572var ie11Sha256_1 = __webpack_require__(/*! ./ie11Sha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js");
573Object.defineProperty(exports, "Ie11Sha256", { enumerable: true, get: function () { return ie11Sha256_1.Sha256; } });
574var webCryptoSha256_1 = __webpack_require__(/*! ./webCryptoSha256 */ "../../node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js");
575Object.defineProperty(exports, "WebCryptoSha256", { enumerable: true, get: function () { return webCryptoSha256_1.Sha256; } });
576//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHFFQUFzQztBQUN0QywyQ0FBb0Q7QUFBM0Msd0dBQUEsTUFBTSxPQUFjO0FBQzdCLHFEQUE4RDtBQUFyRCxrSEFBQSxNQUFNLE9BQW1CIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY3Jvc3NQbGF0Zm9ybVNoYTI1NlwiO1xuZXhwb3J0IHsgU2hhMjU2IGFzIEllMTFTaGEyNTYgfSBmcm9tIFwiLi9pZTExU2hhMjU2XCI7XG5leHBvcnQgeyBTaGEyNTYgYXMgV2ViQ3J5cHRvU2hhMjU2IH0gZnJvbSBcIi4vd2ViQ3J5cHRvU2hhMjU2XCI7XG4iXX0=
577
578/***/ }),
579
580/***/ "../../node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js":
581/*!*************************************************************************************!*\
582 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js ***!
583 \*************************************************************************************/
584/*! no static exports found */
585/***/ (function(module, exports, __webpack_require__) {
586
587"use strict";
588
589Object.defineProperty(exports, "__esModule", { value: true });
590exports.isEmptyData = void 0;
591function isEmptyData(data) {
592 if (typeof data === "string") {
593 return data.length === 0;
594 }
595 return data.byteLength === 0;
596}
597exports.isEmptyData = isEmptyData;
598//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNFbXB0eURhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaXNFbXB0eURhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsU0FBZ0IsV0FBVyxDQUFDLElBQWdCO0lBQzFDLElBQUksT0FBTyxJQUFJLEtBQUssUUFBUSxFQUFFO1FBQzVCLE9BQU8sSUFBSSxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUM7S0FDMUI7SUFFRCxPQUFPLElBQUksQ0FBQyxVQUFVLEtBQUssQ0FBQyxDQUFDO0FBQy9CLENBQUM7QUFORCxrQ0FNQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNvdXJjZURhdGEgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGlzRW1wdHlEYXRhKGRhdGE6IFNvdXJjZURhdGEpOiBib29sZWFuIHtcbiAgaWYgKHR5cGVvZiBkYXRhID09PSBcInN0cmluZ1wiKSB7XG4gICAgcmV0dXJuIGRhdGEubGVuZ3RoID09PSAwO1xuICB9XG5cbiAgcmV0dXJuIGRhdGEuYnl0ZUxlbmd0aCA9PT0gMDtcbn1cbiJdfQ==
599
600/***/ }),
601
602/***/ "../../node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js":
603/*!*****************************************************************************************!*\
604 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js ***!
605 \*****************************************************************************************/
606/*! no static exports found */
607/***/ (function(module, exports, __webpack_require__) {
608
609"use strict";
610
611Object.defineProperty(exports, "__esModule", { value: true });
612exports.Sha256 = void 0;
613var util_1 = __webpack_require__(/*! @aws-crypto/util */ "../../node_modules/@aws-crypto/util/build/index.js");
614var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-browser/build/constants.js");
615var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist-es/index.js");
616var Sha256 = /** @class */ (function () {
617 function Sha256(secret) {
618 this.toHash = new Uint8Array(0);
619 if (secret !== void 0) {
620 this.key = new Promise(function (resolve, reject) {
621 (0, util_locate_window_1.locateWindow)()
622 .crypto.subtle.importKey("raw", (0, util_1.convertToBuffer)(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"])
623 .then(resolve, reject);
624 });
625 this.key.catch(function () { });
626 }
627 }
628 Sha256.prototype.update = function (data) {
629 if ((0, util_1.isEmptyData)(data)) {
630 return;
631 }
632 var update = (0, util_1.convertToBuffer)(data);
633 var typedArray = new Uint8Array(this.toHash.byteLength + update.byteLength);
634 typedArray.set(this.toHash, 0);
635 typedArray.set(update, this.toHash.byteLength);
636 this.toHash = typedArray;
637 };
638 Sha256.prototype.digest = function () {
639 var _this = this;
640 if (this.key) {
641 return this.key.then(function (key) {
642 return (0, util_locate_window_1.locateWindow)()
643 .crypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, key, _this.toHash)
644 .then(function (data) { return new Uint8Array(data); });
645 });
646 }
647 if ((0, util_1.isEmptyData)(this.toHash)) {
648 return Promise.resolve(constants_1.EMPTY_DATA_SHA_256);
649 }
650 return Promise.resolve()
651 .then(function () {
652 return (0, util_locate_window_1.locateWindow)().crypto.subtle.digest(constants_1.SHA_256_HASH, _this.toHash);
653 })
654 .then(function (data) { return Promise.resolve(new Uint8Array(data)); });
655 };
656 return Sha256;
657}());
658exports.Sha256 = Sha256;
659//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2ViQ3J5cHRvU2hhMjU2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3dlYkNyeXB0b1NoYTI1Ni50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx5Q0FBZ0U7QUFDaEUseUNBSXFCO0FBQ3JCLGtFQUEyRDtBQUUzRDtJQUlFLGdCQUFZLE1BQW1CO1FBRnZCLFdBQU0sR0FBZSxJQUFJLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUc3QyxJQUFJLE1BQU0sS0FBSyxLQUFLLENBQUMsRUFBRTtZQUNyQixJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksT0FBTyxDQUFDLFVBQUMsT0FBTyxFQUFFLE1BQU07Z0JBQ3JDLElBQUEsa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hKTtcbiAgICBjb25zdCB0eXBlZEFycmF5ID0gbmV3IFVpbnQ4QXJyYXkoXG4gICAgICB0aGlzLnRvSGFzaC5ieXRlTGVuZ3RoICsgdXBkYXRlLmJ5dGVMZW5ndGhcbiAgICApO1xuICAgIHR5cGVkQXJyYXkuc2V0KHRoaXMudG9IYXNoLCAwKTtcbiAgICB0eXBlZEFycmF5LnNldCh1cGRhdGUsIHRoaXMudG9IYXNoLmJ5dGVMZW5ndGgpO1xuICAgIHRoaXMudG9IYXNoID0gdHlwZWRBcnJheTtcbiAgfVxuXG4gIGRpZ2VzdCgpOiBQcm9taXNlPFVpbnQ4QXJyYXk+IHtcbiAgICBpZiAodGhpcy5rZXkpIHtcbiAgICAgIHJldHVybiB0aGlzLmtleS50aGVuKChrZXkpID0+XG4gICAgICAgIGxvY2F0ZVdpbmRvdygpXG4gICAgICAgICAgLmNyeXB0by5zdWJ0bGUuc2lnbihTSEFfMjU2X0hNQUNfQUxHTywga2V5LCB0aGlzLnRvSGFzaClcbiAgICAgICAgICAudGhlbigoZGF0YSkgPT4gbmV3IFVpbnQ4QXJyYXkoZGF0YSkpXG4gICAgICApO1xuICAgIH1cblxuICAgIGlmIChpc0VtcHR5RGF0YSh0aGlzLnRvSGFzaCkpIHtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoRU1QVFlfREFUQV9TSEFfMjU2KTtcbiAgICB9XG5cbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKClcbiAgICAgIC50aGVuKCgpID0+XG4gICAgICAgIGxvY2F0ZVdpbmRvdygpLmNyeXB0by5zdWJ0bGUuZGlnZXN0KFNIQV8yNTZfSEFTSCwgdGhpcy50b0hhc2gpXG4gICAgICApXG4gICAgICAudGhlbigoZGF0YSkgPT4gUHJvbWlzZS5yZXNvbHZlKG5ldyBVaW50OEFycmF5KGRhdGEpKSk7XG4gIH1cbn1cbiJdfQ==
660
661/***/ }),
662
663/***/ "../../node_modules/@aws-crypto/sha256-js/build/RawSha256.js":
664/*!******************************************************************************!*\
665 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/RawSha256.js ***!
666 \******************************************************************************/
667/*! no static exports found */
668/***/ (function(module, exports, __webpack_require__) {
669
670"use strict";
671
672Object.defineProperty(exports, "__esModule", { value: true });
673exports.RawSha256 = void 0;
674var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-js/build/constants.js");
675/**
676 * @internal
677 */
678var RawSha256 = /** @class */ (function () {
679 function RawSha256() {
680 this.state = Int32Array.from(constants_1.INIT);
681 this.temp = new Int32Array(64);
682 this.buffer = new Uint8Array(64);
683 this.bufferLength = 0;
684 this.bytesHashed = 0;
685 /**
686 * @internal
687 */
688 this.finished = false;
689 }
690 RawSha256.prototype.update = function (data) {
691 if (this.finished) {
692 throw new Error("Attempted to update an already finished hash.");
693 }
694 var position = 0;
695 var byteLength = data.byteLength;
696 this.bytesHashed += byteLength;
697 if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) {
698 throw new Error("Cannot hash more than 2^53 - 1 bits");
699 }
700 while (byteLength > 0) {
701 this.buffer[this.bufferLength++] = data[position++];
702 byteLength--;
703 if (this.bufferLength === constants_1.BLOCK_SIZE) {
704 this.hashBuffer();
705 this.bufferLength = 0;
706 }
707 }
708 };
709 RawSha256.prototype.digest = function () {
710 if (!this.finished) {
711 var bitsHashed = this.bytesHashed * 8;
712 var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength);
713 var undecoratedLength = this.bufferLength;
714 bufferView.setUint8(this.bufferLength++, 0x80);
715 // Ensure the final block has enough room for the hashed length
716 if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) {
717 for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) {
718 bufferView.setUint8(i, 0);
719 }
720 this.hashBuffer();
721 this.bufferLength = 0;
722 }
723 for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) {
724 bufferView.setUint8(i, 0);
725 }
726 bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true);
727 bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed);
728 this.hashBuffer();
729 this.finished = true;
730 }
731 // The value in state is little-endian rather than big-endian, so flip
732 // each word into a new Uint8Array
733 var out = new Uint8Array(constants_1.DIGEST_LENGTH);
734 for (var i = 0; i < 8; i++) {
735 out[i * 4] = (this.state[i] >>> 24) & 0xff;
736 out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff;
737 out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff;
738 out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff;
739 }
740 return out;
741 };
742 RawSha256.prototype.hashBuffer = function () {
743 var _a = this, buffer = _a.buffer, state = _a.state;
744 var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7];
745 for (var i = 0; i < constants_1.BLOCK_SIZE; i++) {
746 if (i < 16) {
747 this.temp[i] =
748 ((buffer[i * 4] & 0xff) << 24) |
749 ((buffer[i * 4 + 1] & 0xff) << 16) |
750 ((buffer[i * 4 + 2] & 0xff) << 8) |
751 (buffer[i * 4 + 3] & 0xff);
752 }
753 else {
754 var u = this.temp[i - 2];
755 var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10);
756 u = this.temp[i - 15];
757 var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3);
758 this.temp[i] =
759 ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0);
760 }
761 var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^
762 ((state4 >>> 11) | (state4 << 21)) ^
763 ((state4 >>> 25) | (state4 << 7))) +
764 ((state4 & state5) ^ (~state4 & state6))) |
765 0) +
766 ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) |
767 0;
768 var t2 = ((((state0 >>> 2) | (state0 << 30)) ^
769 ((state0 >>> 13) | (state0 << 19)) ^
770 ((state0 >>> 22) | (state0 << 10))) +
771 ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) |
772 0;
773 state7 = state6;
774 state6 = state5;
775 state5 = state4;
776 state4 = (state3 + t1) | 0;
777 state3 = state2;
778 state2 = state1;
779 state1 = state0;
780 state0 = (t1 + t2) | 0;
781 }
782 state[0] += state0;
783 state[1] += state1;
784 state[2] += state2;
785 state[3] += state3;
786 state[4] += state4;
787 state[5] += state5;
788 state[6] += state6;
789 state[7] += state7;
790 };
791 return RawSha256;
792}());
793exports.RawSha256 = RawSha256;
794//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmF3U2hhMjU2LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1Jhd1NoYTI1Ni50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5Q0FNcUI7QUFFckI7O0dBRUc7QUFDSDtJQUFBO1FBQ1UsVUFBSyxHQUFlLFVBQVUsQ0FBQyxJQUFJLENBQUMsZ0JBQUksQ0FBQyxDQUFDO1FBQzFDLFNBQUksR0FBZSxJQUFJLFVBQVUsQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUN0QyxXQUFNLEdBQWUsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDeEMsaUJBQVksR0FBVyxDQUFDLENBQUM7UUFDekIsZ0JBQVcsR0FBVyxDQUFDLENBQUM7UUFFaEM7O1dBRUc7UUFDSCxhQUFRLEdBQVksS0FBSyxDQUFDO0lBOEk1QixDQUFDO0lBNUlDLDBCQUFNLEdBQU4sVUFBTyxJQUFnQjtRQUNyQixJQUFJLElBQUksQ0FBQyxRQUFRLEVBQUU7WUFDakIsTUFBTSxJQUFJLEtBQUssQ0FBQywrQ0FBK0MsQ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zBdICs9IHN0YXRlMDtcbiAgICBzdGF0ZVsxXSArPSBzdGF0ZTE7XG4gICAgc3RhdGVbMl0gKz0gc3RhdGUyO1xuICAgIHN0YXRlWzNdICs9IHN0YXRlMztcbiAgICBzdGF0ZVs0XSArPSBzdGF0ZTQ7XG4gICAgc3RhdGVbNV0gKz0gc3RhdGU1O1xuICAgIHN0YXRlWzZdICs9IHN0YXRlNjtcbiAgICBzdGF0ZVs3XSArPSBzdGF0ZTc7XG4gIH1cbn1cbiJdfQ==
795
796/***/ }),
797
798/***/ "../../node_modules/@aws-crypto/sha256-js/build/constants.js":
799/*!******************************************************************************!*\
800 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/constants.js ***!
801 \******************************************************************************/
802/*! no static exports found */
803/***/ (function(module, exports, __webpack_require__) {
804
805"use strict";
806
807Object.defineProperty(exports, "__esModule", { value: true });
808exports.MAX_HASHABLE_LENGTH = exports.INIT = exports.KEY = exports.DIGEST_LENGTH = exports.BLOCK_SIZE = void 0;
809/**
810 * @internal
811 */
812exports.BLOCK_SIZE = 64;
813/**
814 * @internal
815 */
816exports.DIGEST_LENGTH = 32;
817/**
818 * @internal
819 */
820exports.KEY = new Uint32Array([
821 0x428a2f98,
822 0x71374491,
823 0xb5c0fbcf,
824 0xe9b5dba5,
825 0x3956c25b,
826 0x59f111f1,
827 0x923f82a4,
828 0xab1c5ed5,
829 0xd807aa98,
830 0x12835b01,
831 0x243185be,
832 0x550c7dc3,
833 0x72be5d74,
834 0x80deb1fe,
835 0x9bdc06a7,
836 0xc19bf174,
837 0xe49b69c1,
838 0xefbe4786,
839 0x0fc19dc6,
840 0x240ca1cc,
841 0x2de92c6f,
842 0x4a7484aa,
843 0x5cb0a9dc,
844 0x76f988da,
845 0x983e5152,
846 0xa831c66d,
847 0xb00327c8,
848 0xbf597fc7,
849 0xc6e00bf3,
850 0xd5a79147,
851 0x06ca6351,
852 0x14292967,
853 0x27b70a85,
854 0x2e1b2138,
855 0x4d2c6dfc,
856 0x53380d13,
857 0x650a7354,
858 0x766a0abb,
859 0x81c2c92e,
860 0x92722c85,
861 0xa2bfe8a1,
862 0xa81a664b,
863 0xc24b8b70,
864 0xc76c51a3,
865 0xd192e819,
866 0xd6990624,
867 0xf40e3585,
868 0x106aa070,
869 0x19a4c116,
870 0x1e376c08,
871 0x2748774c,
872 0x34b0bcb5,
873 0x391c0cb3,
874 0x4ed8aa4a,
875 0x5b9cca4f,
876 0x682e6ff3,
877 0x748f82ee,
878 0x78a5636f,
879 0x84c87814,
880 0x8cc70208,
881 0x90befffa,
882 0xa4506ceb,
883 0xbef9a3f7,
884 0xc67178f2
885]);
886/**
887 * @internal
888 */
889exports.INIT = [
890 0x6a09e667,
891 0xbb67ae85,
892 0x3c6ef372,
893 0xa54ff53a,
894 0x510e527f,
895 0x9b05688c,
896 0x1f83d9ab,
897 0x5be0cd19
898];
899/**
900 * @internal
901 */
902exports.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1;
903//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7R0FFRztBQUNVLFFBQUEsVUFBVSxHQUFXLEVBQUUsQ0FBQztBQUVyQzs7R0FFRztBQUNVLFFBQUEsYUFBYSxHQUFXLEVBQUUsQ0FBQztBQUV4Qzs7R0FFRztBQUNVLFFBQUEsR0FBRyxHQUFHLElBQUksV0FBVyxDQUFDO0lBQ2pDLFVBQVU7SUFDVixVQUFVO0lBQ1YsVUFBVTtJQUNWLFVBQVU7SUFDVixVQUFVO0lBQ1YsVUFBVTtJQUNWLFVBQVU7SUFDVixVQUFVO0lBQ1YsVUFBVTtJQUNWLFVBQVU7SUFDVixVQUFVO0lBQ1YsVUFBVTtJQUNWLFVBQVU7SUFDVixVQUFVO0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NGIsXG4gIDB4YzI0YjhiNzAsXG4gIDB4Yzc2YzUxYTMsXG4gIDB4ZDE5MmU4MTksXG4gIDB4ZDY5OTA2MjQsXG4gIDB4ZjQwZTM1ODUsXG4gIDB4MTA2YWEwNzAsXG4gIDB4MTlhNGMxMTYsXG4gIDB4MWUzNzZjMDgsXG4gIDB4Mjc0ODc3NGMsXG4gIDB4MzRiMGJjYjUsXG4gIDB4MzkxYzBjYjMsXG4gIDB4NGVkOGFhNGEsXG4gIDB4NWI5Y2NhNGYsXG4gIDB4NjgyZTZmZjMsXG4gIDB4NzQ4ZjgyZWUsXG4gIDB4NzhhNTYzNmYsXG4gIDB4ODRjODc4MTQsXG4gIDB4OGNjNzAyMDgsXG4gIDB4OTBiZWZmZmEsXG4gIDB4YTQ1MDZjZWIsXG4gIDB4YmVmOWEzZjcsXG4gIDB4YzY3MTc4ZjJcbl0pO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgY29uc3QgSU5JVCA9IFtcbiAgMHg2YTA5ZTY2NyxcbiAgMHhiYjY3YWU4NSxcbiAgMHgzYzZlZjM3MixcbiAgMHhhNTRmZjUzYSxcbiAgMHg1MTBlNTI3ZixcbiAgMHg5YjA1Njg4YyxcbiAgMHgxZjgzZDlhYixcbiAgMHg1YmUwY2QxOVxuXTtcblxuLyoqXG4gKiBAaW50ZXJuYWxcbiAqL1xuZXhwb3J0IGNvbnN0IE1BWF9IQVNIQUJMRV9MRU5HVEggPSAyICoqIDUzIC0gMTtcbiJdfQ==
904
905/***/ }),
906
907/***/ "../../node_modules/@aws-crypto/sha256-js/build/index.js":
908/*!**************************************************************************!*\
909 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/index.js ***!
910 \**************************************************************************/
911/*! no static exports found */
912/***/ (function(module, exports, __webpack_require__) {
913
914"use strict";
915
916Object.defineProperty(exports, "__esModule", { value: true });
917var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
918(0, tslib_1.__exportStar)(__webpack_require__(/*! ./jsSha256 */ "../../node_modules/@aws-crypto/sha256-js/build/jsSha256.js"), exports);
919//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMERBQTJCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vanNTaGEyNTZcIjtcbiJdfQ==
920
921/***/ }),
922
923/***/ "../../node_modules/@aws-crypto/sha256-js/build/jsSha256.js":
924/*!*****************************************************************************!*\
925 !*** /root/amplify-js/node_modules/@aws-crypto/sha256-js/build/jsSha256.js ***!
926 \*****************************************************************************/
927/*! no static exports found */
928/***/ (function(module, exports, __webpack_require__) {
929
930"use strict";
931
932Object.defineProperty(exports, "__esModule", { value: true });
933exports.Sha256 = void 0;
934var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
935var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-crypto/sha256-js/build/constants.js");
936var RawSha256_1 = __webpack_require__(/*! ./RawSha256 */ "../../node_modules/@aws-crypto/sha256-js/build/RawSha256.js");
937var util_1 = __webpack_require__(/*! @aws-crypto/util */ "../../node_modules/@aws-crypto/util/build/index.js");
938var Sha256 = /** @class */ (function () {
939 function Sha256(secret) {
940 this.hash = new RawSha256_1.RawSha256();
941 if (secret) {
942 this.outer = new RawSha256_1.RawSha256();
943 var inner = bufferFromSecret(secret);
944 var outer = new Uint8Array(constants_1.BLOCK_SIZE);
945 outer.set(inner);
946 for (var i = 0; i < constants_1.BLOCK_SIZE; i++) {
947 inner[i] ^= 0x36;
948 outer[i] ^= 0x5c;
949 }
950 this.hash.update(inner);
951 this.outer.update(outer);
952 // overwrite the copied key in memory
953 for (var i = 0; i < inner.byteLength; i++) {
954 inner[i] = 0;
955 }
956 }
957 }
958 Sha256.prototype.update = function (toHash) {
959 if ((0, util_1.isEmptyData)(toHash) || this.error) {
960 return;
961 }
962 try {
963 this.hash.update((0, util_1.convertToBuffer)(toHash));
964 }
965 catch (e) {
966 this.error = e;
967 }
968 };
969 /* This synchronous method keeps compatibility
970 * with the v2 aws-sdk.
971 */
972 Sha256.prototype.digestSync = function () {
973 if (this.error) {
974 throw this.error;
975 }
976 if (this.outer) {
977 if (!this.outer.finished) {
978 this.outer.update(this.hash.digest());
979 }
980 return this.outer.digest();
981 }
982 return this.hash.digest();
983 };
984 /* The underlying digest method here is synchronous.
985 * To keep the same interface with the other hash functions
986 * the default is to expose this as an async method.
987 * However, it can sometimes be useful to have a sync method.
988 */
989 Sha256.prototype.digest = function () {
990 return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
991 return (0, tslib_1.__generator)(this, function (_a) {
992 return [2 /*return*/, this.digestSync()];
993 });
994 });
995 };
996 return Sha256;
997}());
998exports.Sha256 = Sha256;
999function bufferFromSecret(secret) {
1000 var input = (0, util_1.convertToBuffer)(secret);
1001 if (input.byteLength > constants_1.BLOCK_SIZE) {
1002 var bufferHash = new RawSha256_1.RawSha256();
1003 bufferHash.update(input);
1004 input = bufferHash.digest();
1005 }
1006 var buffer = new Uint8Array(constants_1.BLOCK_SIZE);
1007 buffer.set(input);
1008 return buffer;
1009}
1010//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNTaGEyNTYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvanNTaGEyNTYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHlDQUF5QztBQUN6Qyx5Q0FBd0M7QUFFeEMseUNBQWdFO0FBRWhFO0lBS0UsZ0JBQVksTUFBbUI7UUFKZCxTQUFJLEdBQUcsSUFBSSxxQkFBUyxFQUFFLENBQUM7UUFLdEMsSUFBSSxNQUFNLEV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xuXG4gICAgcmV0dXJuIHRoaXMuaGFzaC5kaWdlc3QoKTtcbiAgfVxuXG4gIC8qIFRoZSB1bmRlcmx5aW5nIGRpZ2VzdCBtZXRob2QgaGVyZSBpcyBzeW5jaHJvbm91cy5cbiAgICogVG8ga2VlcCB0aGUgc2FtZSBpbnRlcmZhY2Ugd2l0aCB0aGUgb3RoZXIgaGFzaCBmdW5jdGlvbnNcbiAgICogdGhlIGRlZmF1bHQgaXMgdG8gZXhwb3NlIHRoaXMgYXMgYW4gYXN5bmMgbWV0aG9kLlxuICAgKiBIb3dldmVyLCBpdCBjYW4gc29tZXRpbWVzIGJlIHVzZWZ1bCB0byBoYXZlIGEgc3luYyBtZXRob2QuXG4gICAqL1xuICBhc3luYyBkaWdlc3QoKTogUHJvbWlzZTxVaW50OEFycmF5PiB7XG4gICAgcmV0dXJuIHRoaXMuZGlnZXN0U3luYygpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGJ1ZmZlckZyb21TZWNyZXQoc2VjcmV0OiBTb3VyY2VEYXRhKTogVWludDhBcnJheSB7XG4gIGxldCBpbnB1dCA9IGNvbnZlcnRUb0J1ZmZlcihzZWNyZXQpO1xuXG4gIGlmIChpbnB1dC5ieXRlTGVuZ3RoID4gQkxPQ0tfU0laRSkge1xuICAgIGNvbnN0IGJ1ZmZlckhhc2ggPSBuZXcgUmF3U2hhMjU2KCk7XG4gICAgYnVmZmVySGFzaC51cGRhdGUoaW5wdXQpO1xuICAgIGlucHV0ID0gYnVmZmVySGFzaC5kaWdlc3QoKTtcbiAgfVxuXG4gIGNvbnN0IGJ1ZmZlciA9IG5ldyBVaW50OEFycmF5KEJMT0NLX1NJWkUpO1xuICBidWZmZXIuc2V0KGlucHV0KTtcbiAgcmV0dXJuIGJ1ZmZlcjtcbn1cbiJdfQ==
1011
1012/***/ }),
1013
1014/***/ "../../node_modules/@aws-crypto/supports-web-crypto/build/index.js":
1015/*!************************************************************************************!*\
1016 !*** /root/amplify-js/node_modules/@aws-crypto/supports-web-crypto/build/index.js ***!
1017 \************************************************************************************/
1018/*! no static exports found */
1019/***/ (function(module, exports, __webpack_require__) {
1020
1021"use strict";
1022
1023Object.defineProperty(exports, "__esModule", { value: true });
1024var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
1025tslib_1.__exportStar(__webpack_require__(/*! ./supportsWebCrypto */ "../../node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js"), exports);
1026//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBQW9DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vc3VwcG9ydHNXZWJDcnlwdG9cIjtcbiJdfQ==
1027
1028/***/ }),
1029
1030/***/ "../../node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js":
1031/*!************************************************************************************************!*\
1032 !*** /root/amplify-js/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js ***!
1033 \************************************************************************************************/
1034/*! no static exports found */
1035/***/ (function(module, exports, __webpack_require__) {
1036
1037"use strict";
1038
1039Object.defineProperty(exports, "__esModule", { value: true });
1040exports.supportsZeroByteGCM = exports.supportsSubtleCrypto = exports.supportsSecureRandom = exports.supportsWebCrypto = void 0;
1041var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
1042var subtleCryptoMethods = [
1043 "decrypt",
1044 "digest",
1045 "encrypt",
1046 "exportKey",
1047 "generateKey",
1048 "importKey",
1049 "sign",
1050 "verify"
1051];
1052function supportsWebCrypto(window) {
1053 if (supportsSecureRandom(window) &&
1054 typeof window.crypto.subtle === "object") {
1055 var subtle = window.crypto.subtle;
1056 return supportsSubtleCrypto(subtle);
1057 }
1058 return false;
1059}
1060exports.supportsWebCrypto = supportsWebCrypto;
1061function supportsSecureRandom(window) {
1062 if (typeof window === "object" && typeof window.crypto === "object") {
1063 var getRandomValues = window.crypto.getRandomValues;
1064 return typeof getRandomValues === "function";
1065 }
1066 return false;
1067}
1068exports.supportsSecureRandom = supportsSecureRandom;
1069function supportsSubtleCrypto(subtle) {
1070 return (subtle &&
1071 subtleCryptoMethods.every(function (methodName) { return typeof subtle[methodName] === "function"; }));
1072}
1073exports.supportsSubtleCrypto = supportsSubtleCrypto;
1074function supportsZeroByteGCM(subtle) {
1075 return tslib_1.__awaiter(this, void 0, void 0, function () {
1076 var key, zeroByteAuthTag, _a;
1077 return tslib_1.__generator(this, function (_b) {
1078 switch (_b.label) {
1079 case 0:
1080 if (!supportsSubtleCrypto(subtle))
1081 return [2 /*return*/, false];
1082 _b.label = 1;
1083 case 1:
1084 _b.trys.push([1, 4, , 5]);
1085 return [4 /*yield*/, subtle.generateKey({ name: "AES-GCM", length: 128 }, false, ["encrypt"])];
1086 case 2:
1087 key = _b.sent();
1088 return [4 /*yield*/, subtle.encrypt({
1089 name: "AES-GCM",
1090 iv: new Uint8Array(Array(12)),
1091 additionalData: new Uint8Array(Array(16)),
1092 tagLength: 128
1093 }, key, new Uint8Array(0))];
1094 case 3:
1095 zeroByteAuthTag = _b.sent();
1096 return [2 /*return*/, zeroByteAuthTag.byteLength === 16];
1097 case 4:
1098 _a = _b.sent();
1099 return [2 /*return*/, false];
1100 case 5: return [2 /*return*/];
1101 }
1102 });
1103 });
1104}
1105exports.supportsZeroByteGCM = supportsZeroByteGCM;
1106//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwcG9ydHNXZWJDcnlwdG8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc3VwcG9ydHNXZWJDcnlwdG8udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQVVBLElBQU0sbUJBQW1CLEd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UgJiZcbiAgICBzdWJ0bGVDcnlwdG9NZXRob2RzLmV2ZXJ5KFxuICAgICAgbWV0aG9kTmFtZSA9PiB0eXBlb2Ygc3VidGxlW21ldGhvZE5hbWVdID09PSBcImZ1bmN0aW9uXCJcbiAgICApXG4gICk7XG59XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBzdXBwb3J0c1plcm9CeXRlR0NNKHN1YnRsZTogU3VidGxlQ3J5cHRvKSB7XG4gIGlmICghc3VwcG9ydHNTdWJ0bGVDcnlwdG8oc3VidGxlKSkgcmV0dXJuIGZhbHNlO1xuICB0cnkge1xuICAgIGNvbnN0IGtleSA9IGF3YWl0IHN1YnRsZS5nZW5lcmF0ZUtleShcbiAgICAgIHsgbmFtZTogXCJBRVMtR0NNXCIsIGxlbmd0aDogMTI4IH0sXG4gICAgICBmYWxzZSxcbiAgICAgIFtcImVuY3J5cHRcIl1cbiAgICApO1xuICAgIGNvbnN0IHplcm9CeXRlQXV0aFRhZyA9IGF3YWl0IHN1YnRsZS5lbmNyeXB0KFxuICAgICAge1xuICAgICAgICBuYW1lOiBcIkFFUy1HQ01cIixcbiAgICAgICAgaXY6IG5ldyBVaW50OEFycmF5KEFycmF5KDEyKSksXG4gICAgICAgIGFkZGl0aW9uYWxEYXRhOiBuZXcgVWludDhBcnJheShBcnJheSgxNikpLFxuICAgICAgICB0YWdMZW5ndGg6IDEyOFxuICAgICAgfSxcbiAgICAgIGtleSxcbiAgICAgIG5ldyBVaW50OEFycmF5KDApXG4gICAgKTtcbiAgICByZXR1cm4gemVyb0J5dGVBdXRoVGFnLmJ5dGVMZW5ndGggPT09IDE2O1xuICB9IGNhdGNoIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cbiJdfQ==
1107
1108/***/ }),
1109
1110/***/ "../../node_modules/@aws-crypto/util/build/convertToBuffer.js":
1111/*!*******************************************************************************!*\
1112 !*** /root/amplify-js/node_modules/@aws-crypto/util/build/convertToBuffer.js ***!
1113 \*******************************************************************************/
1114/*! no static exports found */
1115/***/ (function(module, exports, __webpack_require__) {
1116
1117"use strict";
1118/* WEBPACK VAR INJECTION */(function(Buffer) {
1119// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
1120// SPDX-License-Identifier: Apache-2.0
1121Object.defineProperty(exports, "__esModule", { value: true });
1122exports.convertToBuffer = void 0;
1123var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js");
1124// Quick polyfill
1125var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from
1126 ? function (input) { return Buffer.from(input, "utf8"); }
1127 : util_utf8_browser_1.fromUtf8;
1128function convertToBuffer(data) {
1129 // Already a Uint8, do nothing
1130 if (data instanceof Uint8Array)
1131 return data;
1132 if (typeof data === "string") {
1133 return fromUtf8(data);
1134 }
1135 if (ArrayBuffer.isView(data)) {
1136 return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1137 }
1138 return new Uint8Array(data);
1139}
1140exports.convertToBuffer = convertToBuffer;
1141//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydFRvQnVmZmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnZlcnRUb0J1ZmZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBR3RDLGdFQUF5RTtBQUV6RSxpQkFBaUI7QUFDakIsSUFBTSxRQUFRLEdBQ1osT0FBTyxNQUFNLEtBQUssV0FBVyxJQUFJLE1BQU0sQ0FBQyxJQUFJO0lBQzFDLENBQUMsQ0FBQyxVQUFDLEtBQWEsSUFBSyxPQUFBLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxFQUExQixD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WZmZXIuZnJvbShpbnB1dCwgXCJ1dGY4XCIpXG4gICAgOiBmcm9tVXRmOEJyb3dzZXI7XG5cbmV4cG9ydCBmdW5jdGlvbiBjb252ZXJ0VG9CdWZmZXIoZGF0YTogU291cmNlRGF0YSk6IFVpbnQ4QXJyYXkge1xuICAvLyBBbHJlYWR5IGEgVWludDgsIGRvIG5vdGhpbmdcbiAgaWYgKGRhdGEgaW5zdGFuY2VvZiBVaW50OEFycmF5KSByZXR1cm4gZGF0YTtcblxuICBpZiAodHlwZW9mIGRhdGEgPT09IFwic3RyaW5nXCIpIHtcbiAgICByZXR1cm4gZnJvbVV0ZjgoZGF0YSk7XG4gIH1cblxuICBpZiAoQXJyYXlCdWZmZXIuaXNWaWV3KGRhdGEpKSB7XG4gICAgcmV0dXJuIG5ldyBVaW50OEFycmF5KFxuICAgICAgZGF0YS5idWZmZXIsXG4gICAgICBkYXRhLmJ5dGVPZmZzZXQsXG4gICAgICBkYXRhLmJ5dGVMZW5ndGggLyBVaW50OEFycmF5LkJZVEVTX1BFUl9FTEVNRU5UXG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiBuZXcgVWludDhBcnJheShkYXRhKTtcbn1cbiJdfQ==
1142/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ "../../node_modules/buffer/index.js").Buffer))
1143
1144/***/ }),
1145
1146/***/ "../../node_modules/@aws-crypto/util/build/index.js":
1147/*!*********************************************************************!*\
1148 !*** /root/amplify-js/node_modules/@aws-crypto/util/build/index.js ***!
1149 \*********************************************************************/
1150/*! no static exports found */
1151/***/ (function(module, exports, __webpack_require__) {
1152
1153"use strict";
1154
1155// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
1156// SPDX-License-Identifier: Apache-2.0
1157Object.defineProperty(exports, "__esModule", { value: true });
1158exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0;
1159var convertToBuffer_1 = __webpack_require__(/*! ./convertToBuffer */ "../../node_modules/@aws-crypto/util/build/convertToBuffer.js");
1160Object.defineProperty(exports, "convertToBuffer", { enumerable: true, get: function () { return convertToBuffer_1.convertToBuffer; } });
1161var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "../../node_modules/@aws-crypto/util/build/isEmptyData.js");
1162Object.defineProperty(exports, "isEmptyData", { enumerable: true, get: function () { return isEmptyData_1.isEmptyData; } });
1163var numToUint8_1 = __webpack_require__(/*! ./numToUint8 */ "../../node_modules/@aws-crypto/util/build/numToUint8.js");
1164Object.defineProperty(exports, "numToUint8", { enumerable: true, get: function () { return numToUint8_1.numToUint8; } });
1165var uint32ArrayFrom_1 = __webpack_require__(/*! ./uint32ArrayFrom */ "../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js");
1166Object.defineProperty(exports, "uint32ArrayFrom", { enumerable: true, get: function () { return uint32ArrayFrom_1.uint32ArrayFrom; } });
1167//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7OztBQUV0QyxxREFBb0Q7QUFBM0Msa0hBQUEsZUFBZSxPQUFBO0FBQ3hCLDZDQUE0QztBQUFuQywwR0FBQSxXQUFXLE9BQUE7QUFDcEIsMkNBQTBDO0FBQWpDLHdHQUFBLFVBQVUsT0FBQTtBQUNuQixxREFBa0Q7QUFBMUMsa0hBQUEsZUFBZSxPQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQ29weXJpZ2h0IEFtYXpvbi5jb20gSW5jLiBvciBpdHMgYWZmaWxpYXRlcy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbi8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBBcGFjaGUtMi4wXG5cbmV4cG9ydCB7IGNvbnZlcnRUb0J1ZmZlciB9IGZyb20gXCIuL2NvbnZlcnRUb0J1ZmZlclwiO1xuZXhwb3J0IHsgaXNFbXB0eURhdGEgfSBmcm9tIFwiLi9pc0VtcHR5RGF0YVwiO1xuZXhwb3J0IHsgbnVtVG9VaW50OCB9IGZyb20gXCIuL251bVRvVWludDhcIjtcbmV4cG9ydCB7dWludDMyQXJyYXlGcm9tfSBmcm9tICcuL3VpbnQzMkFycmF5RnJvbSc7XG4iXX0=
1168
1169/***/ }),
1170
1171/***/ "../../node_modules/@aws-crypto/util/build/isEmptyData.js":
1172/*!***************************************************************************!*\
1173 !*** /root/amplify-js/node_modules/@aws-crypto/util/build/isEmptyData.js ***!
1174 \***************************************************************************/
1175/*! no static exports found */
1176/***/ (function(module, exports, __webpack_require__) {
1177
1178"use strict";
1179
1180// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
1181// SPDX-License-Identifier: Apache-2.0
1182Object.defineProperty(exports, "__esModule", { value: true });
1183exports.isEmptyData = void 0;
1184function isEmptyData(data) {
1185 if (typeof data === "string") {
1186 return data.length === 0;
1187 }
1188 return data.byteLength === 0;
1189}
1190exports.isEmptyData = isEmptyData;
1191//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNFbXB0eURhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaXNFbXB0eURhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7OztBQUl0QyxTQUFnQixXQUFXLENBQUMsSUFBZ0I7SUFDMUMsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLEVBQUU7UUFDNUIsT0FBTyxJQUFJLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQztLQUMxQjtJQUVELE9BQU8sSUFBSSxDQUFDLFVBQVUsS0FBSyxDQUFDLENBQUM7QUFDL0IsQ0FBQztBQU5ELGtDQU1DIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQ29weXJpZ2h0IEFtYXpvbi5jb20gSW5jLiBvciBpdHMgYWZmaWxpYXRlcy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbi8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBBcGFjaGUtMi4wXG5cbmltcG9ydCB7IFNvdXJjZURhdGEgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGlzRW1wdHlEYXRhKGRhdGE6IFNvdXJjZURhdGEpOiBib29sZWFuIHtcbiAgaWYgKHR5cGVvZiBkYXRhID09PSBcInN0cmluZ1wiKSB7XG4gICAgcmV0dXJuIGRhdGEubGVuZ3RoID09PSAwO1xuICB9XG5cbiAgcmV0dXJuIGRhdGEuYnl0ZUxlbmd0aCA9PT0gMDtcbn1cbiJdfQ==
1192
1193/***/ }),
1194
1195/***/ "../../node_modules/@aws-crypto/util/build/numToUint8.js":
1196/*!**************************************************************************!*\
1197 !*** /root/amplify-js/node_modules/@aws-crypto/util/build/numToUint8.js ***!
1198 \**************************************************************************/
1199/*! no static exports found */
1200/***/ (function(module, exports, __webpack_require__) {
1201
1202"use strict";
1203
1204// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
1205// SPDX-License-Identifier: Apache-2.0
1206Object.defineProperty(exports, "__esModule", { value: true });
1207exports.numToUint8 = void 0;
1208function numToUint8(num) {
1209 return new Uint8Array([
1210 (num & 0xff000000) >> 24,
1211 (num & 0x00ff0000) >> 16,
1212 (num & 0x0000ff00) >> 8,
1213 num & 0x000000ff,
1214 ]);
1215}
1216exports.numToUint8 = numToUint8;
1217//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtVG9VaW50OC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9udW1Ub1VpbnQ4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDOzs7QUFFdEMsU0FBZ0IsVUFBVSxDQUFDLEdBQVc7SUFDcEMsT0FBTyxJQUFJLFVBQVUsQ0FBQztRQUNwQixDQUFDLEdBQUcsR0FBRyxVQUFVLENBQUMsSUFBSSxFQUFFO1FBQ3hCLENBQUMsR0FBRyxHQUFHLFVBQVUsQ0FBQyxJQUFJLEVBQUU7UUFDeEIsQ0FBQyxHQUFHLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQztRQUN2QixHQUFHLEdBQUcsVUFBVTtLQUNqQixDQUFDLENBQUM7QUFDTCxDQUFDO0FBUEQsZ0NBT0MiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb3B5cmlnaHQgQW1hem9uLmNvbSBJbmMuIG9yIGl0cyBhZmZpbGlhdGVzLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IEFwYWNoZS0yLjBcblxuZXhwb3J0IGZ1bmN0aW9uIG51bVRvVWludDgobnVtOiBudW1iZXIpIHtcbiAgcmV0dXJuIG5ldyBVaW50OEFycmF5KFtcbiAgICAobnVtICYgMHhmZjAwMDAwMCkgPj4gMjQsXG4gICAgKG51bSAmIDB4MDBmZjAwMDApID4+IDE2LFxuICAgIChudW0gJiAweDAwMDBmZjAwKSA+PiA4LFxuICAgIG51bSAmIDB4MDAwMDAwZmYsXG4gIF0pO1xufVxuIl19
1218
1219/***/ }),
1220
1221/***/ "../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js":
1222/*!*******************************************************************************!*\
1223 !*** /root/amplify-js/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js ***!
1224 \*******************************************************************************/
1225/*! no static exports found */
1226/***/ (function(module, exports, __webpack_require__) {
1227
1228"use strict";
1229
1230// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
1231// SPDX-License-Identifier: Apache-2.0
1232Object.defineProperty(exports, "__esModule", { value: true });
1233exports.uint32ArrayFrom = void 0;
1234// IE 11 does not support Array.from, so we do it manually
1235function uint32ArrayFrom(a_lookUpTable) {
1236 if (!Array.from) {
1237 var return_array = new Uint32Array(a_lookUpTable.length);
1238 var a_index = 0;
1239 while (a_index < a_lookUpTable.length) {
1240 return_array[a_index] = a_lookUpTable[a_index];
1241 }
1242 return return_array;
1243 }
1244 return Uint32Array.from(a_lookUpTable);
1245}
1246exports.uint32ArrayFrom = uint32ArrayFrom;
1247//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWludDMyQXJyYXlGcm9tLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3VpbnQzMkFycmF5RnJvbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBRXRDLDBEQUEwRDtBQUMxRCxTQUFnQixlQUFlLENBQUMsYUFBNEI7SUFDMUQsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUU7UUFDZixJQUFNLFlBQVksR0FBRyxJQUFJLFdBQVcsQ0FBQyxhQUFhLENBQUMsTUFBTSxDQUFDLENBQUE7UUFDMUQsSUFBSSxPQUFPLEdBQUcsQ0FBQyxDQUFBO1FBQ2YsT0FBTyxPQUFPLEdBQUcsYUFBYSxDQUFDLE1BQU0sRUFBRTtZQUNyQyxZQUFZLENBQUMsT0FBTyxDQUFDLEdBQUcsYUFBYSxDQUFDLE9BQU8sQ0FBQyxDQUFBO1NBQy9DO1FBQ0QsT0FBTyxZQUFZLENBQUE7S0FDcEI7SUFDRCxPQUFPLFdBQVcsQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUE7QUFDeEMsQ0FBQztBQVZELDBDQVVDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQ29weXJpZ2h0IEFtYXpvbi5jb20gSW5jLiBvciBpdHMgYWZmaWxpYXRlcy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbi8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBBcGFjaGUtMi4wXG5cbi8vIElFIDExIGRvZXMgbm90IHN1cHBvcnQgQXJyYXkuZnJvbSwgc28gd2UgZG8gaXQgbWFudWFsbHlcbmV4cG9ydCBmdW5jdGlvbiB1aW50MzJBcnJheUZyb20oYV9sb29rVXBUYWJsZTogQXJyYXk8bnVtYmVyPik6IFVpbnQzMkFycmF5IHtcbiAgaWYgKCFBcnJheS5mcm9tKSB7XG4gICAgY29uc3QgcmV0dXJuX2FycmF5ID0gbmV3IFVpbnQzMkFycmF5KGFfbG9va1VwVGFibGUubGVuZ3RoKVxuICAgIGxldCBhX2luZGV4ID0gMFxuICAgIHdoaWxlIChhX2luZGV4IDwgYV9sb29rVXBUYWJsZS5sZW5ndGgpIHtcbiAgICAgIHJldHVybl9hcnJheVthX2luZGV4XSA9IGFfbG9va1VwVGFibGVbYV9pbmRleF1cbiAgICB9XG4gICAgcmV0dXJuIHJldHVybl9hcnJheVxuICB9XG4gIHJldHVybiBVaW50MzJBcnJheS5mcm9tKGFfbG9va1VwVGFibGUpXG59XG4iXX0=
1248
1249/***/ }),
1250
1251/***/ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js":
1252/*!***************************************************************************************************************!*\
1253 !*** /root/amplify-js/node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js ***!
1254 \***************************************************************************************************************/
1255/*! exports provided: fromUtf8, toUtf8 */
1256/***/ (function(module, __webpack_exports__, __webpack_require__) {
1257
1258"use strict";
1259__webpack_require__.r(__webpack_exports__);
1260/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
1261/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
1262/* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js");
1263/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
1264
1265
1266var fromUtf8 = function (input) {
1267 return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
1268};
1269var toUtf8 = function (input) {
1270 return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
1271};
1272
1273
1274/***/ }),
1275
1276/***/ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js":
1277/*!****************************************************************************************************************!*\
1278 !*** /root/amplify-js/node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js ***!
1279 \****************************************************************************************************************/
1280/*! exports provided: fromUtf8, toUtf8 */
1281/***/ (function(module, __webpack_exports__, __webpack_require__) {
1282
1283"use strict";
1284__webpack_require__.r(__webpack_exports__);
1285/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
1286/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
1287var fromUtf8 = function (input) {
1288 var bytes = [];
1289 for (var i = 0, len = input.length; i < len; i++) {
1290 var value = input.charCodeAt(i);
1291 if (value < 0x80) {
1292 bytes.push(value);
1293 }
1294 else if (value < 0x800) {
1295 bytes.push((value >> 6) | 192, (value & 63) | 128);
1296 }
1297 else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
1298 var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
1299 bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
1300 }
1301 else {
1302 bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
1303 }
1304 }
1305 return Uint8Array.from(bytes);
1306};
1307var toUtf8 = function (input) {
1308 var decoded = "";
1309 for (var i = 0, len = input.length; i < len; i++) {
1310 var byte = input[i];
1311 if (byte < 0x80) {
1312 decoded += String.fromCharCode(byte);
1313 }
1314 else if (192 <= byte && byte < 224) {
1315 var nextByte = input[++i];
1316 decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
1317 }
1318 else if (240 <= byte && byte < 365) {
1319 var surrogatePair = [byte, input[++i], input[++i], input[++i]];
1320 var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
1321 decoded += decodeURIComponent(encoded);
1322 }
1323 else {
1324 decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63));
1325 }
1326 }
1327 return decoded;
1328};
1329
1330
1331/***/ }),
1332
1333/***/ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js":
1334/*!***************************************************************************************************************************!*\
1335 !*** /root/amplify-js/node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js ***!
1336 \***************************************************************************************************************************/
1337/*! exports provided: fromUtf8, toUtf8 */
1338/***/ (function(module, __webpack_exports__, __webpack_require__) {
1339
1340"use strict";
1341__webpack_require__.r(__webpack_exports__);
1342/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
1343/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
1344function fromUtf8(input) {
1345 return new TextEncoder().encode(input);
1346}
1347function toUtf8(input) {
1348 return new TextDecoder("utf-8").decode(input);
1349}
1350
1351
1352/***/ }),
1353
1354/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/Firehose.js":
1355/*!**********************************************************************************!*\
1356 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/Firehose.js ***!
1357 \**********************************************************************************/
1358/*! exports provided: Firehose */
1359/***/ (function(module, __webpack_exports__, __webpack_require__) {
1360
1361"use strict";
1362__webpack_require__.r(__webpack_exports__);
1363/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Firehose", function() { return Firehose; });
1364/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1365/* harmony import */ var _FirehoseClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FirehoseClient */ "../../node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js");
1366/* harmony import */ var _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js");
1367/* harmony import */ var _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DeleteDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js");
1368/* harmony import */ var _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DescribeDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js");
1369/* harmony import */ var _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/ListDeliveryStreamsCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js");
1370/* harmony import */ var _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListTagsForDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js");
1371/* harmony import */ var _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/PutRecordBatchCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js");
1372/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js");
1373/* harmony import */ var _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/StartDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js");
1374/* harmony import */ var _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/StopDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js");
1375/* harmony import */ var _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/TagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js");
1376/* harmony import */ var _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/UntagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js");
1377/* harmony import */ var _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/UpdateDestinationCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js");
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392/**
1393 * <fullname>Amazon Kinesis Data Firehose API Reference</fullname>
1394 * <p>Amazon Kinesis Data Firehose is a fully managed service that delivers real-time
1395 * streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon
1396 * Elasticsearch Service (Amazon ES), Amazon Redshift, and Splunk.</p>
1397 */
1398var Firehose = /** @class */ (function (_super) {
1399 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Firehose, _super);
1400 function Firehose() {
1401 return _super !== null && _super.apply(this, arguments) || this;
1402 }
1403 Firehose.prototype.createDeliveryStream = function (args, optionsOrCb, cb) {
1404 var command = new _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__["CreateDeliveryStreamCommand"](args);
1405 if (typeof optionsOrCb === "function") {
1406 this.send(command, optionsOrCb);
1407 }
1408 else if (typeof cb === "function") {
1409 if (typeof optionsOrCb !== "object")
1410 throw new Error("Expect http options but get " + typeof optionsOrCb);
1411 this.send(command, optionsOrCb || {}, cb);
1412 }
1413 else {
1414 return this.send(command, optionsOrCb);
1415 }
1416 };
1417 Firehose.prototype.deleteDeliveryStream = function (args, optionsOrCb, cb) {
1418 var command = new _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__["DeleteDeliveryStreamCommand"](args);
1419 if (typeof optionsOrCb === "function") {
1420 this.send(command, optionsOrCb);
1421 }
1422 else if (typeof cb === "function") {
1423 if (typeof optionsOrCb !== "object")
1424 throw new Error("Expect http options but get " + typeof optionsOrCb);
1425 this.send(command, optionsOrCb || {}, cb);
1426 }
1427 else {
1428 return this.send(command, optionsOrCb);
1429 }
1430 };
1431 Firehose.prototype.describeDeliveryStream = function (args, optionsOrCb, cb) {
1432 var command = new _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__["DescribeDeliveryStreamCommand"](args);
1433 if (typeof optionsOrCb === "function") {
1434 this.send(command, optionsOrCb);
1435 }
1436 else if (typeof cb === "function") {
1437 if (typeof optionsOrCb !== "object")
1438 throw new Error("Expect http options but get " + typeof optionsOrCb);
1439 this.send(command, optionsOrCb || {}, cb);
1440 }
1441 else {
1442 return this.send(command, optionsOrCb);
1443 }
1444 };
1445 Firehose.prototype.listDeliveryStreams = function (args, optionsOrCb, cb) {
1446 var command = new _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__["ListDeliveryStreamsCommand"](args);
1447 if (typeof optionsOrCb === "function") {
1448 this.send(command, optionsOrCb);
1449 }
1450 else if (typeof cb === "function") {
1451 if (typeof optionsOrCb !== "object")
1452 throw new Error("Expect http options but get " + typeof optionsOrCb);
1453 this.send(command, optionsOrCb || {}, cb);
1454 }
1455 else {
1456 return this.send(command, optionsOrCb);
1457 }
1458 };
1459 Firehose.prototype.listTagsForDeliveryStream = function (args, optionsOrCb, cb) {
1460 var command = new _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__["ListTagsForDeliveryStreamCommand"](args);
1461 if (typeof optionsOrCb === "function") {
1462 this.send(command, optionsOrCb);
1463 }
1464 else if (typeof cb === "function") {
1465 if (typeof optionsOrCb !== "object")
1466 throw new Error("Expect http options but get " + typeof optionsOrCb);
1467 this.send(command, optionsOrCb || {}, cb);
1468 }
1469 else {
1470 return this.send(command, optionsOrCb);
1471 }
1472 };
1473 Firehose.prototype.putRecord = function (args, optionsOrCb, cb) {
1474 var command = new _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_8__["PutRecordCommand"](args);
1475 if (typeof optionsOrCb === "function") {
1476 this.send(command, optionsOrCb);
1477 }
1478 else if (typeof cb === "function") {
1479 if (typeof optionsOrCb !== "object")
1480 throw new Error("Expect http options but get " + typeof optionsOrCb);
1481 this.send(command, optionsOrCb || {}, cb);
1482 }
1483 else {
1484 return this.send(command, optionsOrCb);
1485 }
1486 };
1487 Firehose.prototype.putRecordBatch = function (args, optionsOrCb, cb) {
1488 var command = new _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_7__["PutRecordBatchCommand"](args);
1489 if (typeof optionsOrCb === "function") {
1490 this.send(command, optionsOrCb);
1491 }
1492 else if (typeof cb === "function") {
1493 if (typeof optionsOrCb !== "object")
1494 throw new Error("Expect http options but get " + typeof optionsOrCb);
1495 this.send(command, optionsOrCb || {}, cb);
1496 }
1497 else {
1498 return this.send(command, optionsOrCb);
1499 }
1500 };
1501 Firehose.prototype.startDeliveryStreamEncryption = function (args, optionsOrCb, cb) {
1502 var command = new _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__["StartDeliveryStreamEncryptionCommand"](args);
1503 if (typeof optionsOrCb === "function") {
1504 this.send(command, optionsOrCb);
1505 }
1506 else if (typeof cb === "function") {
1507 if (typeof optionsOrCb !== "object")
1508 throw new Error("Expect http options but get " + typeof optionsOrCb);
1509 this.send(command, optionsOrCb || {}, cb);
1510 }
1511 else {
1512 return this.send(command, optionsOrCb);
1513 }
1514 };
1515 Firehose.prototype.stopDeliveryStreamEncryption = function (args, optionsOrCb, cb) {
1516 var command = new _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__["StopDeliveryStreamEncryptionCommand"](args);
1517 if (typeof optionsOrCb === "function") {
1518 this.send(command, optionsOrCb);
1519 }
1520 else if (typeof cb === "function") {
1521 if (typeof optionsOrCb !== "object")
1522 throw new Error("Expect http options but get " + typeof optionsOrCb);
1523 this.send(command, optionsOrCb || {}, cb);
1524 }
1525 else {
1526 return this.send(command, optionsOrCb);
1527 }
1528 };
1529 Firehose.prototype.tagDeliveryStream = function (args, optionsOrCb, cb) {
1530 var command = new _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__["TagDeliveryStreamCommand"](args);
1531 if (typeof optionsOrCb === "function") {
1532 this.send(command, optionsOrCb);
1533 }
1534 else if (typeof cb === "function") {
1535 if (typeof optionsOrCb !== "object")
1536 throw new Error("Expect http options but get " + typeof optionsOrCb);
1537 this.send(command, optionsOrCb || {}, cb);
1538 }
1539 else {
1540 return this.send(command, optionsOrCb);
1541 }
1542 };
1543 Firehose.prototype.untagDeliveryStream = function (args, optionsOrCb, cb) {
1544 var command = new _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__["UntagDeliveryStreamCommand"](args);
1545 if (typeof optionsOrCb === "function") {
1546 this.send(command, optionsOrCb);
1547 }
1548 else if (typeof cb === "function") {
1549 if (typeof optionsOrCb !== "object")
1550 throw new Error("Expect http options but get " + typeof optionsOrCb);
1551 this.send(command, optionsOrCb || {}, cb);
1552 }
1553 else {
1554 return this.send(command, optionsOrCb);
1555 }
1556 };
1557 Firehose.prototype.updateDestination = function (args, optionsOrCb, cb) {
1558 var command = new _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__["UpdateDestinationCommand"](args);
1559 if (typeof optionsOrCb === "function") {
1560 this.send(command, optionsOrCb);
1561 }
1562 else if (typeof cb === "function") {
1563 if (typeof optionsOrCb !== "object")
1564 throw new Error("Expect http options but get " + typeof optionsOrCb);
1565 this.send(command, optionsOrCb || {}, cb);
1566 }
1567 else {
1568 return this.send(command, optionsOrCb);
1569 }
1570 };
1571 return Firehose;
1572}(_FirehoseClient__WEBPACK_IMPORTED_MODULE_1__["FirehoseClient"]));
1573
1574//# sourceMappingURL=Firehose.js.map
1575
1576/***/ }),
1577
1578/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js":
1579/*!****************************************************************************************!*\
1580 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js ***!
1581 \****************************************************************************************/
1582/*! exports provided: FirehoseClient */
1583/***/ (function(module, __webpack_exports__, __webpack_require__) {
1584
1585"use strict";
1586__webpack_require__.r(__webpack_exports__);
1587/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FirehoseClient", function() { return FirehoseClient; });
1588/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1589/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js");
1590/* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "../../node_modules/@aws-sdk/config-resolver/dist/es/index.js");
1591/* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "../../node_modules/@aws-sdk/middleware-content-length/dist/es/index.js");
1592/* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "../../node_modules/@aws-sdk/middleware-host-header/dist/es/index.js");
1593/* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "../../node_modules/@aws-sdk/middleware-logger/dist/es/index.js");
1594/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
1595/* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/index.js");
1596/* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js");
1597/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608/**
1609 * <fullname>Amazon Kinesis Data Firehose API Reference</fullname>
1610 * <p>Amazon Kinesis Data Firehose is a fully managed service that delivers real-time
1611 * streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon
1612 * Elasticsearch Service (Amazon ES), Amazon Redshift, and Splunk.</p>
1613 */
1614var FirehoseClient = /** @class */ (function (_super) {
1615 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FirehoseClient, _super);
1616 function FirehoseClient(configuration) {
1617 var _this = this;
1618 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
1619 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
1620 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
1621 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2);
1622 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3);
1623 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_4);
1624 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_5);
1625 _this = _super.call(this, _config_6) || this;
1626 _this.config = _config_6;
1627 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config));
1628 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config));
1629 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config));
1630 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config));
1631 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config));
1632 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config));
1633 return _this;
1634 }
1635 FirehoseClient.prototype.destroy = function () {
1636 _super.prototype.destroy.call(this);
1637 };
1638 return FirehoseClient;
1639}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"]));
1640
1641//# sourceMappingURL=FirehoseClient.js.map
1642
1643/***/ }),
1644
1645/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js":
1646/*!**************************************************************************************************************!*\
1647 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js ***!
1648 \**************************************************************************************************************/
1649/*! exports provided: CreateDeliveryStreamCommand */
1650/***/ (function(module, __webpack_exports__, __webpack_require__) {
1651
1652"use strict";
1653__webpack_require__.r(__webpack_exports__);
1654/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamCommand", function() { return CreateDeliveryStreamCommand; });
1655/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1656/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
1657/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
1658/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
1659/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
1660
1661
1662
1663
1664
1665/**
1666 * <p>Creates a Kinesis Data Firehose delivery stream.</p>
1667 *
1668 * <p>By default, you can create up to 50 delivery streams per AWS Region.</p>
1669 * <p>This is an asynchronous operation that immediately returns. The initial status of the
1670 * delivery stream is <code>CREATING</code>. After the delivery stream is created, its status
1671 * is <code>ACTIVE</code> and it now accepts data. If the delivery stream creation fails, the
1672 * status transitions to <code>CREATING_FAILED</code>. Attempts to send data to a delivery
1673 * stream that is not in the <code>ACTIVE</code> state cause an exception. To check the state
1674 * of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
1675 * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
1676 * doesn't change, and you can't invoke <code>CreateDeliveryStream</code> again on it.
1677 * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete
1678 * it.</p>
1679 * <p>A Kinesis Data Firehose delivery stream can be configured to receive records directly
1680 * from providers using <a>PutRecord</a> or <a>PutRecordBatch</a>, or it
1681 * can be configured to use an existing Kinesis stream as its source. To specify a Kinesis
1682 * data stream as input, set the <code>DeliveryStreamType</code> parameter to
1683 * <code>KinesisStreamAsSource</code>, and provide the Kinesis stream Amazon Resource Name
1684 * (ARN) and role ARN in the <code>KinesisStreamSourceConfiguration</code>
1685 * parameter.</p>
1686 * <p>To create a delivery stream with server-side encryption (SSE) enabled, include <a>DeliveryStreamEncryptionConfigurationInput</a> in your request. This is
1687 * optional. You can also invoke <a>StartDeliveryStreamEncryption</a> to turn on
1688 * SSE for an existing delivery stream that doesn't have SSE enabled.</p>
1689 * <p>A delivery stream is configured with a single destination: Amazon S3, Amazon ES,
1690 * Amazon Redshift, or Splunk. You must specify only one of the following destination
1691 * configuration parameters: <code>ExtendedS3DestinationConfiguration</code>,
1692 * <code>S3DestinationConfiguration</code>,
1693 * <code>ElasticsearchDestinationConfiguration</code>,
1694 * <code>RedshiftDestinationConfiguration</code>, or
1695 * <code>SplunkDestinationConfiguration</code>.</p>
1696 * <p>When you specify <code>S3DestinationConfiguration</code>, you can also provide the
1697 * following optional values: BufferingHints, <code>EncryptionConfiguration</code>, and
1698 * <code>CompressionFormat</code>. By default, if no <code>BufferingHints</code> value is
1699 * provided, Kinesis Data Firehose buffers data up to 5 MB or for 5 minutes, whichever
1700 * condition is satisfied first. <code>BufferingHints</code> is a hint, so there are some
1701 * cases where the service cannot adhere to these conditions strictly. For example, record
1702 * boundaries might be such that the size is a little over or under the configured buffering
1703 * size. By default, no encryption is performed. We strongly recommend that you enable
1704 * encryption to ensure secure data storage in Amazon S3.</p>
1705 *
1706 * <p>A few notes about Amazon Redshift as a destination:</p>
1707 * <ul>
1708 * <li>
1709 * <p>An Amazon Redshift destination requires an S3 bucket as intermediate location.
1710 * Kinesis Data Firehose first delivers data to Amazon S3 and then uses
1711 * <code>COPY</code> syntax to load data into an Amazon Redshift table. This is
1712 * specified in the <code>RedshiftDestinationConfiguration.S3Configuration</code>
1713 * parameter.</p>
1714 *
1715 * </li>
1716 * <li>
1717 * <p>The compression formats <code>SNAPPY</code> or <code>ZIP</code> cannot be
1718 * specified in <code>RedshiftDestinationConfiguration.S3Configuration</code> because
1719 * the Amazon Redshift <code>COPY</code> operation that reads from the S3 bucket doesn't
1720 * support these compression formats.</p>
1721 * </li>
1722 * <li>
1723 * <p>We strongly recommend that you use the user name and password you provide
1724 * exclusively with Kinesis Data Firehose, and that the permissions for the account are
1725 * restricted for Amazon Redshift <code>INSERT</code> permissions.</p>
1726 *
1727 * </li>
1728 * </ul>
1729 * <p>Kinesis Data Firehose assumes the IAM role that is configured as part of the
1730 * destination. The role should allow the Kinesis Data Firehose principal to assume the role,
1731 * and the role should have permissions that allow the service to deliver the data. For more
1732 * information, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3">Grant Kinesis Data
1733 * Firehose Access to an Amazon S3 Destination</a> in the <i>Amazon Kinesis Data
1734 * Firehose Developer Guide</i>.</p>
1735 */
1736var CreateDeliveryStreamCommand = /** @class */ (function (_super) {
1737 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateDeliveryStreamCommand, _super);
1738 // Start section: command_properties
1739 // End section: command_properties
1740 function CreateDeliveryStreamCommand(input) {
1741 var _this =
1742 // Start section: command_constructor
1743 _super.call(this) || this;
1744 _this.input = input;
1745 return _this;
1746 // End section: command_constructor
1747 }
1748 /**
1749 * @internal
1750 */
1751 CreateDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1752 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1753 var stack = clientStack.concat(this.middlewareStack);
1754 var logger = configuration.logger;
1755 var clientName = "FirehoseClient";
1756 var commandName = "CreateDeliveryStreamCommand";
1757 var handlerExecutionContext = {
1758 logger: logger,
1759 clientName: clientName,
1760 commandName: commandName,
1761 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateDeliveryStreamInput"].filterSensitiveLog,
1762 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateDeliveryStreamOutput"].filterSensitiveLog,
1763 };
1764 var requestHandler = configuration.requestHandler;
1765 return stack.resolve(function (request) {
1766 return requestHandler.handle(request.request, options || {});
1767 }, handlerExecutionContext);
1768 };
1769 CreateDeliveryStreamCommand.prototype.serialize = function (input, context) {
1770 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateDeliveryStreamCommand"])(input, context);
1771 };
1772 CreateDeliveryStreamCommand.prototype.deserialize = function (output, context) {
1773 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateDeliveryStreamCommand"])(output, context);
1774 };
1775 return CreateDeliveryStreamCommand;
1776}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1777
1778//# sourceMappingURL=CreateDeliveryStreamCommand.js.map
1779
1780/***/ }),
1781
1782/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js":
1783/*!**************************************************************************************************************!*\
1784 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js ***!
1785 \**************************************************************************************************************/
1786/*! exports provided: DeleteDeliveryStreamCommand */
1787/***/ (function(module, __webpack_exports__, __webpack_require__) {
1788
1789"use strict";
1790__webpack_require__.r(__webpack_exports__);
1791/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamCommand", function() { return DeleteDeliveryStreamCommand; });
1792/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1793/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
1794/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
1795/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
1796/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
1797
1798
1799
1800
1801
1802/**
1803 * <p>Deletes a delivery stream and its data.</p>
1804 * <p>To check the state of a delivery stream, use <a>DescribeDeliveryStream</a>. You can delete a delivery stream only if it is in one of the following states:
1805 * <code>ACTIVE</code>, <code>DELETING</code>, <code>CREATING_FAILED</code>, or
1806 * <code>DELETING_FAILED</code>. You can't delete a delivery stream that is in the
1807 * <code>CREATING</code> state. While the deletion request is in process, the delivery
1808 * stream is in the <code>DELETING</code> state.</p>
1809 * <p>While the delivery stream is in the <code>DELETING</code> state, the service might
1810 * continue to accept records, but it doesn't make any guarantees with respect to delivering
1811 * the data. Therefore, as a best practice, first stop any applications that are sending
1812 * records before you delete a delivery stream.</p>
1813 */
1814var DeleteDeliveryStreamCommand = /** @class */ (function (_super) {
1815 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteDeliveryStreamCommand, _super);
1816 // Start section: command_properties
1817 // End section: command_properties
1818 function DeleteDeliveryStreamCommand(input) {
1819 var _this =
1820 // Start section: command_constructor
1821 _super.call(this) || this;
1822 _this.input = input;
1823 return _this;
1824 // End section: command_constructor
1825 }
1826 /**
1827 * @internal
1828 */
1829 DeleteDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1830 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1831 var stack = clientStack.concat(this.middlewareStack);
1832 var logger = configuration.logger;
1833 var clientName = "FirehoseClient";
1834 var commandName = "DeleteDeliveryStreamCommand";
1835 var handlerExecutionContext = {
1836 logger: logger,
1837 clientName: clientName,
1838 commandName: commandName,
1839 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteDeliveryStreamInput"].filterSensitiveLog,
1840 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteDeliveryStreamOutput"].filterSensitiveLog,
1841 };
1842 var requestHandler = configuration.requestHandler;
1843 return stack.resolve(function (request) {
1844 return requestHandler.handle(request.request, options || {});
1845 }, handlerExecutionContext);
1846 };
1847 DeleteDeliveryStreamCommand.prototype.serialize = function (input, context) {
1848 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteDeliveryStreamCommand"])(input, context);
1849 };
1850 DeleteDeliveryStreamCommand.prototype.deserialize = function (output, context) {
1851 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteDeliveryStreamCommand"])(output, context);
1852 };
1853 return DeleteDeliveryStreamCommand;
1854}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1855
1856//# sourceMappingURL=DeleteDeliveryStreamCommand.js.map
1857
1858/***/ }),
1859
1860/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js":
1861/*!****************************************************************************************************************!*\
1862 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js ***!
1863 \****************************************************************************************************************/
1864/*! exports provided: DescribeDeliveryStreamCommand */
1865/***/ (function(module, __webpack_exports__, __webpack_require__) {
1866
1867"use strict";
1868__webpack_require__.r(__webpack_exports__);
1869/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamCommand", function() { return DescribeDeliveryStreamCommand; });
1870/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1871/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
1872/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
1873/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
1874/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
1875
1876
1877
1878
1879
1880/**
1881 * <p>Describes the specified delivery stream and its status. For example, after your
1882 * delivery stream is created, call <code>DescribeDeliveryStream</code> to see whether the
1883 * delivery stream is <code>ACTIVE</code> and therefore ready for data to be sent to it. </p>
1884 * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
1885 * doesn't change, and you can't invoke <a>CreateDeliveryStream</a> again on it.
1886 * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete it.
1887 * If the status is <code>DELETING_FAILED</code>, you can force deletion by invoking <a>DeleteDeliveryStream</a> again but with <a>DeleteDeliveryStreamInput$AllowForceDelete</a> set to true.</p>
1888 */
1889var DescribeDeliveryStreamCommand = /** @class */ (function (_super) {
1890 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeDeliveryStreamCommand, _super);
1891 // Start section: command_properties
1892 // End section: command_properties
1893 function DescribeDeliveryStreamCommand(input) {
1894 var _this =
1895 // Start section: command_constructor
1896 _super.call(this) || this;
1897 _this.input = input;
1898 return _this;
1899 // End section: command_constructor
1900 }
1901 /**
1902 * @internal
1903 */
1904 DescribeDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1905 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1906 var stack = clientStack.concat(this.middlewareStack);
1907 var logger = configuration.logger;
1908 var clientName = "FirehoseClient";
1909 var commandName = "DescribeDeliveryStreamCommand";
1910 var handlerExecutionContext = {
1911 logger: logger,
1912 clientName: clientName,
1913 commandName: commandName,
1914 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeDeliveryStreamInput"].filterSensitiveLog,
1915 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeDeliveryStreamOutput"].filterSensitiveLog,
1916 };
1917 var requestHandler = configuration.requestHandler;
1918 return stack.resolve(function (request) {
1919 return requestHandler.handle(request.request, options || {});
1920 }, handlerExecutionContext);
1921 };
1922 DescribeDeliveryStreamCommand.prototype.serialize = function (input, context) {
1923 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeDeliveryStreamCommand"])(input, context);
1924 };
1925 DescribeDeliveryStreamCommand.prototype.deserialize = function (output, context) {
1926 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeDeliveryStreamCommand"])(output, context);
1927 };
1928 return DescribeDeliveryStreamCommand;
1929}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
1930
1931//# sourceMappingURL=DescribeDeliveryStreamCommand.js.map
1932
1933/***/ }),
1934
1935/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js":
1936/*!*************************************************************************************************************!*\
1937 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js ***!
1938 \*************************************************************************************************************/
1939/*! exports provided: ListDeliveryStreamsCommand */
1940/***/ (function(module, __webpack_exports__, __webpack_require__) {
1941
1942"use strict";
1943__webpack_require__.r(__webpack_exports__);
1944/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsCommand", function() { return ListDeliveryStreamsCommand; });
1945/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
1946/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
1947/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
1948/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
1949/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
1950
1951
1952
1953
1954
1955/**
1956 * <p>Lists your delivery streams in alphabetical order of their names.</p>
1957 * <p>The number of delivery streams might be too large to return using a single call to
1958 * <code>ListDeliveryStreams</code>. You can limit the number of delivery streams returned,
1959 * using the <code>Limit</code> parameter. To determine whether there are more delivery
1960 * streams to list, check the value of <code>HasMoreDeliveryStreams</code> in the output. If
1961 * there are more delivery streams to list, you can request them by calling this operation
1962 * again and setting the <code>ExclusiveStartDeliveryStreamName</code> parameter to the name
1963 * of the last delivery stream returned in the last call.</p>
1964 */
1965var ListDeliveryStreamsCommand = /** @class */ (function (_super) {
1966 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListDeliveryStreamsCommand, _super);
1967 // Start section: command_properties
1968 // End section: command_properties
1969 function ListDeliveryStreamsCommand(input) {
1970 var _this =
1971 // Start section: command_constructor
1972 _super.call(this) || this;
1973 _this.input = input;
1974 return _this;
1975 // End section: command_constructor
1976 }
1977 /**
1978 * @internal
1979 */
1980 ListDeliveryStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
1981 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
1982 var stack = clientStack.concat(this.middlewareStack);
1983 var logger = configuration.logger;
1984 var clientName = "FirehoseClient";
1985 var commandName = "ListDeliveryStreamsCommand";
1986 var handlerExecutionContext = {
1987 logger: logger,
1988 clientName: clientName,
1989 commandName: commandName,
1990 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListDeliveryStreamsInput"].filterSensitiveLog,
1991 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListDeliveryStreamsOutput"].filterSensitiveLog,
1992 };
1993 var requestHandler = configuration.requestHandler;
1994 return stack.resolve(function (request) {
1995 return requestHandler.handle(request.request, options || {});
1996 }, handlerExecutionContext);
1997 };
1998 ListDeliveryStreamsCommand.prototype.serialize = function (input, context) {
1999 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListDeliveryStreamsCommand"])(input, context);
2000 };
2001 ListDeliveryStreamsCommand.prototype.deserialize = function (output, context) {
2002 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListDeliveryStreamsCommand"])(output, context);
2003 };
2004 return ListDeliveryStreamsCommand;
2005}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2006
2007//# sourceMappingURL=ListDeliveryStreamsCommand.js.map
2008
2009/***/ }),
2010
2011/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js":
2012/*!*******************************************************************************************************************!*\
2013 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js ***!
2014 \*******************************************************************************************************************/
2015/*! exports provided: ListTagsForDeliveryStreamCommand */
2016/***/ (function(module, __webpack_exports__, __webpack_require__) {
2017
2018"use strict";
2019__webpack_require__.r(__webpack_exports__);
2020/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamCommand", function() { return ListTagsForDeliveryStreamCommand; });
2021/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2022/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2023/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2024/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2025/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2026
2027
2028
2029
2030
2031/**
2032 * <p>Lists the tags for the specified delivery stream. This operation has a limit of five
2033 * transactions per second per account. </p>
2034 */
2035var ListTagsForDeliveryStreamCommand = /** @class */ (function (_super) {
2036 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForDeliveryStreamCommand, _super);
2037 // Start section: command_properties
2038 // End section: command_properties
2039 function ListTagsForDeliveryStreamCommand(input) {
2040 var _this =
2041 // Start section: command_constructor
2042 _super.call(this) || this;
2043 _this.input = input;
2044 return _this;
2045 // End section: command_constructor
2046 }
2047 /**
2048 * @internal
2049 */
2050 ListTagsForDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2051 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2052 var stack = clientStack.concat(this.middlewareStack);
2053 var logger = configuration.logger;
2054 var clientName = "FirehoseClient";
2055 var commandName = "ListTagsForDeliveryStreamCommand";
2056 var handlerExecutionContext = {
2057 logger: logger,
2058 clientName: clientName,
2059 commandName: commandName,
2060 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForDeliveryStreamInput"].filterSensitiveLog,
2061 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForDeliveryStreamOutput"].filterSensitiveLog,
2062 };
2063 var requestHandler = configuration.requestHandler;
2064 return stack.resolve(function (request) {
2065 return requestHandler.handle(request.request, options || {});
2066 }, handlerExecutionContext);
2067 };
2068 ListTagsForDeliveryStreamCommand.prototype.serialize = function (input, context) {
2069 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForDeliveryStreamCommand"])(input, context);
2070 };
2071 ListTagsForDeliveryStreamCommand.prototype.deserialize = function (output, context) {
2072 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForDeliveryStreamCommand"])(output, context);
2073 };
2074 return ListTagsForDeliveryStreamCommand;
2075}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2076
2077//# sourceMappingURL=ListTagsForDeliveryStreamCommand.js.map
2078
2079/***/ }),
2080
2081/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js":
2082/*!********************************************************************************************************!*\
2083 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js ***!
2084 \********************************************************************************************************/
2085/*! exports provided: PutRecordBatchCommand */
2086/***/ (function(module, __webpack_exports__, __webpack_require__) {
2087
2088"use strict";
2089__webpack_require__.r(__webpack_exports__);
2090/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchCommand", function() { return PutRecordBatchCommand; });
2091/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2092/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2093/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2094/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2095/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2096
2097
2098
2099
2100
2101/**
2102 * <p>Writes multiple data records into a delivery stream in a single call, which can
2103 * achieve higher throughput per producer than when writing single records. To write single
2104 * data records into a delivery stream, use <a>PutRecord</a>. Applications using
2105 * these operations are referred to as producers.</p>
2106 * <p>For information about service quota, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon Kinesis Data Firehose
2107 * Quota</a>.</p>
2108 * <p>Each <a>PutRecordBatch</a> request supports up to 500 records. Each record
2109 * in the request can be as large as 1,000 KB (before 64-bit encoding), up to a limit of 4 MB
2110 * for the entire request. These limits cannot be changed.</p>
2111 * <p>You must specify the name of the delivery stream and the data record when using <a>PutRecord</a>. The data record consists of a data blob that can be up to 1,000
2112 * KB in size, and any kind of data. For example, it could be a segment from a log file,
2113 * geographic location data, website clickstream data, and so on.</p>
2114 * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
2115 * disambiguate the data blobs at the destination, a common solution is to use delimiters in
2116 * the data, such as a newline (<code>\n</code>) or some other character unique within the
2117 * data. This allows the consumer application to parse individual data items when reading the
2118 * data from the destination.</p>
2119 * <p>The <a>PutRecordBatch</a> response includes a count of failed records,
2120 * <code>FailedPutCount</code>, and an array of responses, <code>RequestResponses</code>.
2121 * Even if the <a>PutRecordBatch</a> call succeeds, the value of
2122 * <code>FailedPutCount</code> may be greater than 0, indicating that there are records for
2123 * which the operation didn't succeed. Each entry in the <code>RequestResponses</code> array
2124 * provides additional information about the processed record. It directly correlates with a
2125 * record in the request array using the same ordering, from the top to the bottom. The
2126 * response array always includes the same number of records as the request array.
2127 * <code>RequestResponses</code> includes both successfully and unsuccessfully processed
2128 * records. Kinesis Data Firehose tries to process all records in each <a>PutRecordBatch</a> request. A single record failure does not stop the processing
2129 * of subsequent records. </p>
2130 * <p>A successfully processed record includes a <code>RecordId</code> value, which is
2131 * unique for the record. An unsuccessfully processed record includes <code>ErrorCode</code>
2132 * and <code>ErrorMessage</code> values. <code>ErrorCode</code> reflects the type of error,
2133 * and is one of the following values: <code>ServiceUnavailableException</code> or
2134 * <code>InternalFailure</code>. <code>ErrorMessage</code> provides more detailed
2135 * information about the error.</p>
2136 * <p>If there is an internal server error or a timeout, the write might have completed or
2137 * it might have failed. If <code>FailedPutCount</code> is greater than 0, retry the request,
2138 * resending only those records that might have failed processing. This minimizes the possible
2139 * duplicate records and also reduces the total bytes sent (and corresponding charges). We
2140 * recommend that you handle any duplicates at the destination.</p>
2141 * <p>If <a>PutRecordBatch</a> throws <code>ServiceUnavailableException</code>,
2142 * back off and retry. If the exception persists, it is possible that the throughput limits
2143 * have been exceeded for the delivery stream.</p>
2144 *
2145 * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
2146 * are added to a delivery stream as it attempts to send the records to the destination. If
2147 * the destination is unreachable for more than 24 hours, the data is no longer
2148 * available.</p>
2149 * <important>
2150 * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
2151 * Instead, concatenate the raw data, then perform base64 encoding.</p>
2152 * </important>
2153 */
2154var PutRecordBatchCommand = /** @class */ (function (_super) {
2155 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordBatchCommand, _super);
2156 // Start section: command_properties
2157 // End section: command_properties
2158 function PutRecordBatchCommand(input) {
2159 var _this =
2160 // Start section: command_constructor
2161 _super.call(this) || this;
2162 _this.input = input;
2163 return _this;
2164 // End section: command_constructor
2165 }
2166 /**
2167 * @internal
2168 */
2169 PutRecordBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2170 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2171 var stack = clientStack.concat(this.middlewareStack);
2172 var logger = configuration.logger;
2173 var clientName = "FirehoseClient";
2174 var commandName = "PutRecordBatchCommand";
2175 var handlerExecutionContext = {
2176 logger: logger,
2177 clientName: clientName,
2178 commandName: commandName,
2179 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordBatchInput"].filterSensitiveLog,
2180 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordBatchOutput"].filterSensitiveLog,
2181 };
2182 var requestHandler = configuration.requestHandler;
2183 return stack.resolve(function (request) {
2184 return requestHandler.handle(request.request, options || {});
2185 }, handlerExecutionContext);
2186 };
2187 PutRecordBatchCommand.prototype.serialize = function (input, context) {
2188 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordBatchCommand"])(input, context);
2189 };
2190 PutRecordBatchCommand.prototype.deserialize = function (output, context) {
2191 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordBatchCommand"])(output, context);
2192 };
2193 return PutRecordBatchCommand;
2194}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2195
2196//# sourceMappingURL=PutRecordBatchCommand.js.map
2197
2198/***/ }),
2199
2200/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js":
2201/*!***************************************************************************************************!*\
2202 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js ***!
2203 \***************************************************************************************************/
2204/*! exports provided: PutRecordCommand */
2205/***/ (function(module, __webpack_exports__, __webpack_require__) {
2206
2207"use strict";
2208__webpack_require__.r(__webpack_exports__);
2209/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return PutRecordCommand; });
2210/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2211/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2212/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2213/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2214/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2215
2216
2217
2218
2219
2220/**
2221 * <p>Writes a single data record into an Amazon Kinesis Data Firehose delivery stream. To
2222 * write multiple data records into a delivery stream, use <a>PutRecordBatch</a>.
2223 * Applications using these operations are referred to as producers.</p>
2224 * <p>By default, each delivery stream can take in up to 2,000 transactions per second,
2225 * 5,000 records per second, or 5 MB per second. If you use <a>PutRecord</a> and
2226 * <a>PutRecordBatch</a>, the limits are an aggregate across these two
2227 * operations for each delivery stream. For more information about limits and how to request
2228 * an increase, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon
2229 * Kinesis Data Firehose Limits</a>. </p>
2230 * <p>You must specify the name of the delivery stream and the data record when using <a>PutRecord</a>. The data record consists of a data blob that can be up to 1,000
2231 * KB in size, and any kind of data. For example, it can be a segment from a log file,
2232 * geographic location data, website clickstream data, and so on.</p>
2233 * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
2234 * disambiguate the data blobs at the destination, a common solution is to use delimiters in
2235 * the data, such as a newline (<code>\n</code>) or some other character unique within the
2236 * data. This allows the consumer application to parse individual data items when reading the
2237 * data from the destination.</p>
2238 * <p>The <code>PutRecord</code> operation returns a <code>RecordId</code>, which is a
2239 * unique string assigned to each record. Producer applications can use this ID for purposes
2240 * such as auditability and investigation.</p>
2241 * <p>If the <code>PutRecord</code> operation throws a
2242 * <code>ServiceUnavailableException</code>, back off and retry. If the exception persists,
2243 * it is possible that the throughput limits have been exceeded for the delivery stream. </p>
2244 * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
2245 * are added to a delivery stream as it tries to send the records to the destination. If the
2246 * destination is unreachable for more than 24 hours, the data is no longer
2247 * available.</p>
2248 *
2249 * <important>
2250 * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
2251 * Instead, concatenate the raw data, then perform base64 encoding.</p>
2252 * </important>
2253 */
2254var PutRecordCommand = /** @class */ (function (_super) {
2255 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordCommand, _super);
2256 // Start section: command_properties
2257 // End section: command_properties
2258 function PutRecordCommand(input) {
2259 var _this =
2260 // Start section: command_constructor
2261 _super.call(this) || this;
2262 _this.input = input;
2263 return _this;
2264 // End section: command_constructor
2265 }
2266 /**
2267 * @internal
2268 */
2269 PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2270 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2271 var stack = clientStack.concat(this.middlewareStack);
2272 var logger = configuration.logger;
2273 var clientName = "FirehoseClient";
2274 var commandName = "PutRecordCommand";
2275 var handlerExecutionContext = {
2276 logger: logger,
2277 clientName: clientName,
2278 commandName: commandName,
2279 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordInput"].filterSensitiveLog,
2280 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordOutput"].filterSensitiveLog,
2281 };
2282 var requestHandler = configuration.requestHandler;
2283 return stack.resolve(function (request) {
2284 return requestHandler.handle(request.request, options || {});
2285 }, handlerExecutionContext);
2286 };
2287 PutRecordCommand.prototype.serialize = function (input, context) {
2288 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordCommand"])(input, context);
2289 };
2290 PutRecordCommand.prototype.deserialize = function (output, context) {
2291 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordCommand"])(output, context);
2292 };
2293 return PutRecordCommand;
2294}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2295
2296//# sourceMappingURL=PutRecordCommand.js.map
2297
2298/***/ }),
2299
2300/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js":
2301/*!***********************************************************************************************************************!*\
2302 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js ***!
2303 \***********************************************************************************************************************/
2304/*! exports provided: StartDeliveryStreamEncryptionCommand */
2305/***/ (function(module, __webpack_exports__, __webpack_require__) {
2306
2307"use strict";
2308__webpack_require__.r(__webpack_exports__);
2309/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionCommand", function() { return StartDeliveryStreamEncryptionCommand; });
2310/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2311/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2312/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2313/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2314/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2315
2316
2317
2318
2319
2320/**
2321 * <p>Enables server-side encryption (SSE) for the delivery stream. </p>
2322 * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
2323 * Firehose first sets the encryption status of the stream to <code>ENABLING</code>, and then
2324 * to <code>ENABLED</code>. The encryption status of a delivery stream is the
2325 * <code>Status</code> property in <a>DeliveryStreamEncryptionConfiguration</a>.
2326 * If the operation fails, the encryption status changes to <code>ENABLING_FAILED</code>. You
2327 * can continue to read and write data to your delivery stream while the encryption status is
2328 * <code>ENABLING</code>, but the data is not encrypted. It can take up to 5 seconds after
2329 * the encryption status changes to <code>ENABLED</code> before all records written to the
2330 * delivery stream are encrypted. To find out whether a record or a batch of records was
2331 * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
2332 * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
2333 * <p>To check the encryption status of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
2334 * <p>Even if encryption is currently enabled for a delivery stream, you can still invoke this
2335 * operation on it to change the ARN of the CMK or both its type and ARN. If you invoke this
2336 * method to change the CMK, and the old CMK is of type <code>CUSTOMER_MANAGED_CMK</code>,
2337 * Kinesis Data Firehose schedules the grant it had on the old CMK for retirement. If the new
2338 * CMK is of type <code>CUSTOMER_MANAGED_CMK</code>, Kinesis Data Firehose creates a grant
2339 * that enables it to use the new CMK to encrypt and decrypt data and to manage the
2340 * grant.</p>
2341 * <p>If a delivery stream already has encryption enabled and then you invoke this operation
2342 * to change the ARN of the CMK or both its type and ARN and you get
2343 * <code>ENABLING_FAILED</code>, this only means that the attempt to change the CMK failed.
2344 * In this case, encryption remains enabled with the old CMK.</p>
2345 * <p>If the encryption status of your delivery stream is <code>ENABLING_FAILED</code>, you
2346 * can invoke this operation again with a valid CMK. The CMK must be enabled and the key
2347 * policy mustn't explicitly deny the permission for Kinesis Data Firehose to invoke KMS
2348 * encrypt and decrypt operations.</p>
2349 * <p>You can enable SSE for a delivery stream only if it's a delivery stream that uses
2350 * <code>DirectPut</code> as its source. </p>
2351 * <p>The <code>StartDeliveryStreamEncryption</code> and
2352 * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
2353 * per delivery stream per 24 hours. For example, you reach the limit if you call
2354 * <code>StartDeliveryStreamEncryption</code> 13 times and
2355 * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
2356 * 24-hour period.</p>
2357 */
2358var StartDeliveryStreamEncryptionCommand = /** @class */ (function (_super) {
2359 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartDeliveryStreamEncryptionCommand, _super);
2360 // Start section: command_properties
2361 // End section: command_properties
2362 function StartDeliveryStreamEncryptionCommand(input) {
2363 var _this =
2364 // Start section: command_constructor
2365 _super.call(this) || this;
2366 _this.input = input;
2367 return _this;
2368 // End section: command_constructor
2369 }
2370 /**
2371 * @internal
2372 */
2373 StartDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2374 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2375 var stack = clientStack.concat(this.middlewareStack);
2376 var logger = configuration.logger;
2377 var clientName = "FirehoseClient";
2378 var commandName = "StartDeliveryStreamEncryptionCommand";
2379 var handlerExecutionContext = {
2380 logger: logger,
2381 clientName: clientName,
2382 commandName: commandName,
2383 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StartDeliveryStreamEncryptionInput"].filterSensitiveLog,
2384 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StartDeliveryStreamEncryptionOutput"].filterSensitiveLog,
2385 };
2386 var requestHandler = configuration.requestHandler;
2387 return stack.resolve(function (request) {
2388 return requestHandler.handle(request.request, options || {});
2389 }, handlerExecutionContext);
2390 };
2391 StartDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) {
2392 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartDeliveryStreamEncryptionCommand"])(input, context);
2393 };
2394 StartDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) {
2395 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartDeliveryStreamEncryptionCommand"])(output, context);
2396 };
2397 return StartDeliveryStreamEncryptionCommand;
2398}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2399
2400//# sourceMappingURL=StartDeliveryStreamEncryptionCommand.js.map
2401
2402/***/ }),
2403
2404/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js":
2405/*!**********************************************************************************************************************!*\
2406 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js ***!
2407 \**********************************************************************************************************************/
2408/*! exports provided: StopDeliveryStreamEncryptionCommand */
2409/***/ (function(module, __webpack_exports__, __webpack_require__) {
2410
2411"use strict";
2412__webpack_require__.r(__webpack_exports__);
2413/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionCommand", function() { return StopDeliveryStreamEncryptionCommand; });
2414/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2415/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2416/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2417/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2418/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2419
2420
2421
2422
2423
2424/**
2425 * <p>Disables server-side encryption (SSE) for the delivery stream. </p>
2426 * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
2427 * Firehose first sets the encryption status of the stream to <code>DISABLING</code>, and then
2428 * to <code>DISABLED</code>. You can continue to read and write data to your stream while its
2429 * status is <code>DISABLING</code>. It can take up to 5 seconds after the encryption status
2430 * changes to <code>DISABLED</code> before all records written to the delivery stream are no
2431 * longer subject to encryption. To find out whether a record or a batch of records was
2432 * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
2433 * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
2434 * <p>To check the encryption state of a delivery stream, use <a>DescribeDeliveryStream</a>. </p>
2435 * <p>If SSE is enabled using a customer managed CMK and then you invoke
2436 * <code>StopDeliveryStreamEncryption</code>, Kinesis Data Firehose schedules the related
2437 * KMS grant for retirement and then retires it after it ensures that it is finished
2438 * delivering records to the destination.</p>
2439 * <p>The <code>StartDeliveryStreamEncryption</code> and
2440 * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
2441 * per delivery stream per 24 hours. For example, you reach the limit if you call
2442 * <code>StartDeliveryStreamEncryption</code> 13 times and
2443 * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
2444 * 24-hour period.</p>
2445 */
2446var StopDeliveryStreamEncryptionCommand = /** @class */ (function (_super) {
2447 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopDeliveryStreamEncryptionCommand, _super);
2448 // Start section: command_properties
2449 // End section: command_properties
2450 function StopDeliveryStreamEncryptionCommand(input) {
2451 var _this =
2452 // Start section: command_constructor
2453 _super.call(this) || this;
2454 _this.input = input;
2455 return _this;
2456 // End section: command_constructor
2457 }
2458 /**
2459 * @internal
2460 */
2461 StopDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2462 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2463 var stack = clientStack.concat(this.middlewareStack);
2464 var logger = configuration.logger;
2465 var clientName = "FirehoseClient";
2466 var commandName = "StopDeliveryStreamEncryptionCommand";
2467 var handlerExecutionContext = {
2468 logger: logger,
2469 clientName: clientName,
2470 commandName: commandName,
2471 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StopDeliveryStreamEncryptionInput"].filterSensitiveLog,
2472 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StopDeliveryStreamEncryptionOutput"].filterSensitiveLog,
2473 };
2474 var requestHandler = configuration.requestHandler;
2475 return stack.resolve(function (request) {
2476 return requestHandler.handle(request.request, options || {});
2477 }, handlerExecutionContext);
2478 };
2479 StopDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) {
2480 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopDeliveryStreamEncryptionCommand"])(input, context);
2481 };
2482 StopDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) {
2483 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopDeliveryStreamEncryptionCommand"])(output, context);
2484 };
2485 return StopDeliveryStreamEncryptionCommand;
2486}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2487
2488//# sourceMappingURL=StopDeliveryStreamEncryptionCommand.js.map
2489
2490/***/ }),
2491
2492/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js":
2493/*!***********************************************************************************************************!*\
2494 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js ***!
2495 \***********************************************************************************************************/
2496/*! exports provided: TagDeliveryStreamCommand */
2497/***/ (function(module, __webpack_exports__, __webpack_require__) {
2498
2499"use strict";
2500__webpack_require__.r(__webpack_exports__);
2501/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamCommand", function() { return TagDeliveryStreamCommand; });
2502/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2503/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2504/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2505/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2506/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2507
2508
2509
2510
2511
2512/**
2513 * <p>Adds or updates tags for the specified delivery stream. A tag is a key-value pair
2514 * that you can define and assign to AWS resources. If you specify a tag that already exists,
2515 * the tag value is replaced with the value that you specify in the request. Tags are
2516 * metadata. For example, you can add friendly names and descriptions or other types of
2517 * information that can help you distinguish the delivery stream. For more information about
2518 * tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation Tags</a> in the <i>AWS Billing and Cost Management
2519 * User Guide</i>. </p>
2520 * <p>Each delivery stream can have up to 50 tags. </p>
2521 * <p>This operation has a limit of five transactions per second per account. </p>
2522 */
2523var TagDeliveryStreamCommand = /** @class */ (function (_super) {
2524 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagDeliveryStreamCommand, _super);
2525 // Start section: command_properties
2526 // End section: command_properties
2527 function TagDeliveryStreamCommand(input) {
2528 var _this =
2529 // Start section: command_constructor
2530 _super.call(this) || this;
2531 _this.input = input;
2532 return _this;
2533 // End section: command_constructor
2534 }
2535 /**
2536 * @internal
2537 */
2538 TagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2539 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2540 var stack = clientStack.concat(this.middlewareStack);
2541 var logger = configuration.logger;
2542 var clientName = "FirehoseClient";
2543 var commandName = "TagDeliveryStreamCommand";
2544 var handlerExecutionContext = {
2545 logger: logger,
2546 clientName: clientName,
2547 commandName: commandName,
2548 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["TagDeliveryStreamInput"].filterSensitiveLog,
2549 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["TagDeliveryStreamOutput"].filterSensitiveLog,
2550 };
2551 var requestHandler = configuration.requestHandler;
2552 return stack.resolve(function (request) {
2553 return requestHandler.handle(request.request, options || {});
2554 }, handlerExecutionContext);
2555 };
2556 TagDeliveryStreamCommand.prototype.serialize = function (input, context) {
2557 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1TagDeliveryStreamCommand"])(input, context);
2558 };
2559 TagDeliveryStreamCommand.prototype.deserialize = function (output, context) {
2560 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1TagDeliveryStreamCommand"])(output, context);
2561 };
2562 return TagDeliveryStreamCommand;
2563}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2564
2565//# sourceMappingURL=TagDeliveryStreamCommand.js.map
2566
2567/***/ }),
2568
2569/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js":
2570/*!*************************************************************************************************************!*\
2571 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js ***!
2572 \*************************************************************************************************************/
2573/*! exports provided: UntagDeliveryStreamCommand */
2574/***/ (function(module, __webpack_exports__, __webpack_require__) {
2575
2576"use strict";
2577__webpack_require__.r(__webpack_exports__);
2578/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamCommand", function() { return UntagDeliveryStreamCommand; });
2579/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2580/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2581/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2582/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2583/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2584
2585
2586
2587
2588
2589/**
2590 * <p>Removes tags from the specified delivery stream. Removed tags are deleted, and you
2591 * can't recover them after this operation successfully completes.</p>
2592 * <p>If you specify a tag that doesn't exist, the operation ignores it.</p>
2593 * <p>This operation has a limit of five transactions per second per account. </p>
2594 */
2595var UntagDeliveryStreamCommand = /** @class */ (function (_super) {
2596 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UntagDeliveryStreamCommand, _super);
2597 // Start section: command_properties
2598 // End section: command_properties
2599 function UntagDeliveryStreamCommand(input) {
2600 var _this =
2601 // Start section: command_constructor
2602 _super.call(this) || this;
2603 _this.input = input;
2604 return _this;
2605 // End section: command_constructor
2606 }
2607 /**
2608 * @internal
2609 */
2610 UntagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2611 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2612 var stack = clientStack.concat(this.middlewareStack);
2613 var logger = configuration.logger;
2614 var clientName = "FirehoseClient";
2615 var commandName = "UntagDeliveryStreamCommand";
2616 var handlerExecutionContext = {
2617 logger: logger,
2618 clientName: clientName,
2619 commandName: commandName,
2620 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UntagDeliveryStreamInput"].filterSensitiveLog,
2621 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UntagDeliveryStreamOutput"].filterSensitiveLog,
2622 };
2623 var requestHandler = configuration.requestHandler;
2624 return stack.resolve(function (request) {
2625 return requestHandler.handle(request.request, options || {});
2626 }, handlerExecutionContext);
2627 };
2628 UntagDeliveryStreamCommand.prototype.serialize = function (input, context) {
2629 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UntagDeliveryStreamCommand"])(input, context);
2630 };
2631 UntagDeliveryStreamCommand.prototype.deserialize = function (output, context) {
2632 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UntagDeliveryStreamCommand"])(output, context);
2633 };
2634 return UntagDeliveryStreamCommand;
2635}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2636
2637//# sourceMappingURL=UntagDeliveryStreamCommand.js.map
2638
2639/***/ }),
2640
2641/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js":
2642/*!***********************************************************************************************************!*\
2643 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js ***!
2644 \***********************************************************************************************************/
2645/*! exports provided: UpdateDestinationCommand */
2646/***/ (function(module, __webpack_exports__, __webpack_require__) {
2647
2648"use strict";
2649__webpack_require__.r(__webpack_exports__);
2650/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationCommand", function() { return UpdateDestinationCommand; });
2651/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2652/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
2653/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js");
2654/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
2655/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
2656
2657
2658
2659
2660
2661/**
2662 * <p>Updates the specified destination of the specified delivery stream.</p>
2663 *
2664 * <p>Use this operation to change the destination type (for example, to replace the Amazon
2665 * S3 destination with Amazon Redshift) or change the parameters associated with a destination
2666 * (for example, to change the bucket name of the Amazon S3 destination). The update might not
2667 * occur immediately. The target delivery stream remains active while the configurations are
2668 * updated, so data writes to the delivery stream can continue during this process. The
2669 * updated configurations are usually effective within a few minutes.</p>
2670 * <p>Switching between Amazon ES and other services is not supported. For an Amazon ES
2671 * destination, you can only update to another Amazon ES destination.</p>
2672 * <p>If the destination type is the same, Kinesis Data Firehose merges the configuration
2673 * parameters specified with the destination configuration that already exists on the delivery
2674 * stream. If any of the parameters are not specified in the call, the existing values are
2675 * retained. For example, in the Amazon S3 destination, if <a>EncryptionConfiguration</a> is not specified, then the existing
2676 * <code>EncryptionConfiguration</code> is maintained on the destination.</p>
2677 * <p>If the destination type is not the same, for example, changing the destination from
2678 * Amazon S3 to Amazon Redshift, Kinesis Data Firehose does not merge any parameters. In this
2679 * case, all parameters must be specified.</p>
2680 *
2681 * <p>Kinesis Data Firehose uses <code>CurrentDeliveryStreamVersionId</code> to avoid race
2682 * conditions and conflicting merges. This is a required field, and the service updates the
2683 * configuration only if the existing configuration has a version ID that matches. After the
2684 * update is applied successfully, the version ID is updated, and can be retrieved using <a>DescribeDeliveryStream</a>. Use the new version ID to set
2685 * <code>CurrentDeliveryStreamVersionId</code> in the next call.</p>
2686 */
2687var UpdateDestinationCommand = /** @class */ (function (_super) {
2688 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateDestinationCommand, _super);
2689 // Start section: command_properties
2690 // End section: command_properties
2691 function UpdateDestinationCommand(input) {
2692 var _this =
2693 // Start section: command_constructor
2694 _super.call(this) || this;
2695 _this.input = input;
2696 return _this;
2697 // End section: command_constructor
2698 }
2699 /**
2700 * @internal
2701 */
2702 UpdateDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
2703 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
2704 var stack = clientStack.concat(this.middlewareStack);
2705 var logger = configuration.logger;
2706 var clientName = "FirehoseClient";
2707 var commandName = "UpdateDestinationCommand";
2708 var handlerExecutionContext = {
2709 logger: logger,
2710 clientName: clientName,
2711 commandName: commandName,
2712 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateDestinationInput"].filterSensitiveLog,
2713 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateDestinationOutput"].filterSensitiveLog,
2714 };
2715 var requestHandler = configuration.requestHandler;
2716 return stack.resolve(function (request) {
2717 return requestHandler.handle(request.request, options || {});
2718 }, handlerExecutionContext);
2719 };
2720 UpdateDestinationCommand.prototype.serialize = function (input, context) {
2721 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UpdateDestinationCommand"])(input, context);
2722 };
2723 UpdateDestinationCommand.prototype.deserialize = function (output, context) {
2724 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UpdateDestinationCommand"])(output, context);
2725 };
2726 return UpdateDestinationCommand;
2727}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
2728
2729//# sourceMappingURL=UpdateDestinationCommand.js.map
2730
2731/***/ }),
2732
2733/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js":
2734/*!***********************************************************************************!*\
2735 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js ***!
2736 \***********************************************************************************/
2737/*! exports provided: defaultRegionInfoProvider */
2738/***/ (function(module, __webpack_exports__, __webpack_require__) {
2739
2740"use strict";
2741__webpack_require__.r(__webpack_exports__);
2742/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
2743/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
2744
2745// Partition default templates
2746var AWS_TEMPLATE = "firehose.{region}.amazonaws.com";
2747var AWS_CN_TEMPLATE = "firehose.{region}.amazonaws.com.cn";
2748var AWS_ISO_TEMPLATE = "firehose.{region}.c2s.ic.gov";
2749var AWS_ISO_B_TEMPLATE = "firehose.{region}.sc2s.sgov.gov";
2750var AWS_US_GOV_TEMPLATE = "firehose.{region}.amazonaws.com";
2751// Partition regions
2752var AWS_REGIONS = new Set([
2753 "af-south-1",
2754 "ap-east-1",
2755 "ap-northeast-1",
2756 "ap-northeast-2",
2757 "ap-south-1",
2758 "ap-southeast-1",
2759 "ap-southeast-2",
2760 "ca-central-1",
2761 "eu-central-1",
2762 "eu-north-1",
2763 "eu-south-1",
2764 "eu-west-1",
2765 "eu-west-2",
2766 "eu-west-3",
2767 "me-south-1",
2768 "sa-east-1",
2769 "us-east-1",
2770 "us-east-2",
2771 "us-west-1",
2772 "us-west-2",
2773]);
2774var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
2775var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
2776var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
2777var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
2778var defaultRegionInfoProvider = function (region, options) {
2779 var regionInfo = undefined;
2780 switch (region) {
2781 // First, try to match exact region names.
2782 case "af-south-1":
2783 regionInfo = {
2784 hostname: "firehose.af-south-1.amazonaws.com",
2785 partition: "aws",
2786 };
2787 break;
2788 case "ap-east-1":
2789 regionInfo = {
2790 hostname: "firehose.ap-east-1.amazonaws.com",
2791 partition: "aws",
2792 };
2793 break;
2794 case "ap-northeast-1":
2795 regionInfo = {
2796 hostname: "firehose.ap-northeast-1.amazonaws.com",
2797 partition: "aws",
2798 };
2799 break;
2800 case "ap-northeast-2":
2801 regionInfo = {
2802 hostname: "firehose.ap-northeast-2.amazonaws.com",
2803 partition: "aws",
2804 };
2805 break;
2806 case "ap-south-1":
2807 regionInfo = {
2808 hostname: "firehose.ap-south-1.amazonaws.com",
2809 partition: "aws",
2810 };
2811 break;
2812 case "ap-southeast-1":
2813 regionInfo = {
2814 hostname: "firehose.ap-southeast-1.amazonaws.com",
2815 partition: "aws",
2816 };
2817 break;
2818 case "ap-southeast-2":
2819 regionInfo = {
2820 hostname: "firehose.ap-southeast-2.amazonaws.com",
2821 partition: "aws",
2822 };
2823 break;
2824 case "ca-central-1":
2825 regionInfo = {
2826 hostname: "firehose.ca-central-1.amazonaws.com",
2827 partition: "aws",
2828 };
2829 break;
2830 case "cn-north-1":
2831 regionInfo = {
2832 hostname: "firehose.cn-north-1.amazonaws.com.cn",
2833 partition: "aws-cn",
2834 };
2835 break;
2836 case "cn-northwest-1":
2837 regionInfo = {
2838 hostname: "firehose.cn-northwest-1.amazonaws.com.cn",
2839 partition: "aws-cn",
2840 };
2841 break;
2842 case "eu-central-1":
2843 regionInfo = {
2844 hostname: "firehose.eu-central-1.amazonaws.com",
2845 partition: "aws",
2846 };
2847 break;
2848 case "eu-north-1":
2849 regionInfo = {
2850 hostname: "firehose.eu-north-1.amazonaws.com",
2851 partition: "aws",
2852 };
2853 break;
2854 case "eu-south-1":
2855 regionInfo = {
2856 hostname: "firehose.eu-south-1.amazonaws.com",
2857 partition: "aws",
2858 };
2859 break;
2860 case "eu-west-1":
2861 regionInfo = {
2862 hostname: "firehose.eu-west-1.amazonaws.com",
2863 partition: "aws",
2864 };
2865 break;
2866 case "eu-west-2":
2867 regionInfo = {
2868 hostname: "firehose.eu-west-2.amazonaws.com",
2869 partition: "aws",
2870 };
2871 break;
2872 case "eu-west-3":
2873 regionInfo = {
2874 hostname: "firehose.eu-west-3.amazonaws.com",
2875 partition: "aws",
2876 };
2877 break;
2878 case "fips-us-east-1":
2879 regionInfo = {
2880 hostname: "firehose-fips.us-east-1.amazonaws.com",
2881 partition: "aws",
2882 signingRegion: "us-east-1",
2883 };
2884 break;
2885 case "fips-us-east-2":
2886 regionInfo = {
2887 hostname: "firehose-fips.us-east-2.amazonaws.com",
2888 partition: "aws",
2889 signingRegion: "us-east-2",
2890 };
2891 break;
2892 case "fips-us-gov-east-1":
2893 regionInfo = {
2894 hostname: "firehose-fips.us-gov-east-1.amazonaws.com",
2895 partition: "aws-us-gov",
2896 signingRegion: "us-gov-east-1",
2897 };
2898 break;
2899 case "fips-us-gov-west-1":
2900 regionInfo = {
2901 hostname: "firehose-fips.us-gov-west-1.amazonaws.com",
2902 partition: "aws-us-gov",
2903 signingRegion: "us-gov-west-1",
2904 };
2905 break;
2906 case "fips-us-west-1":
2907 regionInfo = {
2908 hostname: "firehose-fips.us-west-1.amazonaws.com",
2909 partition: "aws",
2910 signingRegion: "us-west-1",
2911 };
2912 break;
2913 case "fips-us-west-2":
2914 regionInfo = {
2915 hostname: "firehose-fips.us-west-2.amazonaws.com",
2916 partition: "aws",
2917 signingRegion: "us-west-2",
2918 };
2919 break;
2920 case "me-south-1":
2921 regionInfo = {
2922 hostname: "firehose.me-south-1.amazonaws.com",
2923 partition: "aws",
2924 };
2925 break;
2926 case "sa-east-1":
2927 regionInfo = {
2928 hostname: "firehose.sa-east-1.amazonaws.com",
2929 partition: "aws",
2930 };
2931 break;
2932 case "us-east-1":
2933 regionInfo = {
2934 hostname: "firehose.us-east-1.amazonaws.com",
2935 partition: "aws",
2936 };
2937 break;
2938 case "us-east-2":
2939 regionInfo = {
2940 hostname: "firehose.us-east-2.amazonaws.com",
2941 partition: "aws",
2942 };
2943 break;
2944 case "us-gov-east-1":
2945 regionInfo = {
2946 hostname: "firehose.us-gov-east-1.amazonaws.com",
2947 partition: "aws-us-gov",
2948 };
2949 break;
2950 case "us-gov-west-1":
2951 regionInfo = {
2952 hostname: "firehose.us-gov-west-1.amazonaws.com",
2953 partition: "aws-us-gov",
2954 };
2955 break;
2956 case "us-west-1":
2957 regionInfo = {
2958 hostname: "firehose.us-west-1.amazonaws.com",
2959 partition: "aws",
2960 };
2961 break;
2962 case "us-west-2":
2963 regionInfo = {
2964 hostname: "firehose.us-west-2.amazonaws.com",
2965 partition: "aws",
2966 };
2967 break;
2968 // Next, try to match partition endpoints.
2969 default:
2970 if (AWS_REGIONS.has(region)) {
2971 regionInfo = {
2972 hostname: AWS_TEMPLATE.replace("{region}", region),
2973 partition: "aws",
2974 };
2975 }
2976 if (AWS_CN_REGIONS.has(region)) {
2977 regionInfo = {
2978 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
2979 partition: "aws-cn",
2980 };
2981 }
2982 if (AWS_ISO_REGIONS.has(region)) {
2983 regionInfo = {
2984 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
2985 partition: "aws-iso",
2986 };
2987 }
2988 if (AWS_ISO_B_REGIONS.has(region)) {
2989 regionInfo = {
2990 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
2991 partition: "aws-iso-b",
2992 };
2993 }
2994 if (AWS_US_GOV_REGIONS.has(region)) {
2995 regionInfo = {
2996 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
2997 partition: "aws-us-gov",
2998 };
2999 }
3000 // Finally, assume it's an AWS partition endpoint.
3001 if (regionInfo === undefined) {
3002 regionInfo = {
3003 hostname: AWS_TEMPLATE.replace("{region}", region),
3004 partition: "aws",
3005 };
3006 }
3007 }
3008 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "firehose" }, regionInfo));
3009};
3010//# sourceMappingURL=endpoints.js.map
3011
3012/***/ }),
3013
3014/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/index.js":
3015/*!*******************************************************************************!*\
3016 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/index.js ***!
3017 \*******************************************************************************/
3018/*! exports provided: FirehoseClient, Firehose, CreateDeliveryStreamCommand, DeleteDeliveryStreamCommand, DescribeDeliveryStreamCommand, ListDeliveryStreamsCommand, ListTagsForDeliveryStreamCommand, PutRecordCommand, PutRecordBatchCommand, StartDeliveryStreamEncryptionCommand, StopDeliveryStreamEncryptionCommand, TagDeliveryStreamCommand, UntagDeliveryStreamCommand, UpdateDestinationCommand, BufferingHints, CloudWatchLoggingOptions, CompressionFormat, ConcurrentModificationException, ContentEncoding, CopyCommand, KeyType, DeliveryStreamEncryptionConfigurationInput, ElasticsearchBufferingHints, ProcessorParameterName, ProcessorParameter, Processor, ProcessingConfiguration, ElasticsearchRetryOptions, KMSEncryptionConfig, EncryptionConfiguration, S3DestinationConfiguration, VpcConfiguration, ElasticsearchDestinationConfiguration, HiveJsonSerDe, OpenXJsonSerDe, Deserializer, InputFormatConfiguration, OrcCompression, OrcFormatVersion, OrcSerDe, ParquetCompression, ParquetWriterVersion, ParquetSerDe, Serializer, OutputFormatConfiguration, SchemaConfiguration, DataFormatConversionConfiguration, ExtendedS3DestinationConfiguration, HttpEndpointBufferingHints, HttpEndpointConfiguration, HttpEndpointCommonAttribute, HttpEndpointRequestConfiguration, HttpEndpointRetryOptions, HttpEndpointDestinationConfiguration, KinesisStreamSourceConfiguration, RedshiftRetryOptions, RedshiftDestinationConfiguration, SplunkRetryOptions, SplunkDestinationConfiguration, Tag, CreateDeliveryStreamInput, CreateDeliveryStreamOutput, InvalidArgumentException, InvalidKMSResourceException, LimitExceededException, ResourceInUseException, DeleteDeliveryStreamInput, DeleteDeliveryStreamOutput, ResourceNotFoundException, DeliveryStreamFailureType, FailureDescription, DeliveryStreamEncryptionStatus, DeliveryStreamEncryptionConfiguration, DeliveryStreamStatus, S3DestinationDescription, VpcConfigurationDescription, ElasticsearchDestinationDescription, ExtendedS3DestinationDescription, HttpEndpointDescription, HttpEndpointDestinationDescription, RedshiftDestinationDescription, SplunkDestinationDescription, DestinationDescription, KinesisStreamSourceDescription, SourceDescription, DeliveryStreamDescription, DescribeDeliveryStreamInput, DescribeDeliveryStreamOutput, S3DestinationUpdate, ElasticsearchDestinationUpdate, ExtendedS3DestinationUpdate, ListDeliveryStreamsInput, ListDeliveryStreamsOutput, ListTagsForDeliveryStreamInput, ListTagsForDeliveryStreamOutput, _Record, PutRecordInput, PutRecordOutput, ServiceUnavailableException, PutRecordBatchInput, PutRecordBatchResponseEntry, PutRecordBatchOutput, StartDeliveryStreamEncryptionInput, StartDeliveryStreamEncryptionOutput, StopDeliveryStreamEncryptionInput, StopDeliveryStreamEncryptionOutput, TagDeliveryStreamInput, TagDeliveryStreamOutput, UntagDeliveryStreamInput, UntagDeliveryStreamOutput, HttpEndpointDestinationUpdate, RedshiftDestinationUpdate, SplunkDestinationUpdate, UpdateDestinationInput, UpdateDestinationOutput */
3019/***/ (function(module, __webpack_exports__, __webpack_require__) {
3020
3021"use strict";
3022__webpack_require__.r(__webpack_exports__);
3023/* harmony import */ var _FirehoseClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FirehoseClient */ "../../node_modules/@aws-sdk/client-firehose/dist/es/FirehoseClient.js");
3024/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FirehoseClient", function() { return _FirehoseClient__WEBPACK_IMPORTED_MODULE_0__["FirehoseClient"]; });
3025
3026/* harmony import */ var _Firehose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Firehose */ "../../node_modules/@aws-sdk/client-firehose/dist/es/Firehose.js");
3027/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Firehose", function() { return _Firehose__WEBPACK_IMPORTED_MODULE_1__["Firehose"]; });
3028
3029/* harmony import */ var _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/CreateDeliveryStreamCommand.js");
3030/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamCommand", function() { return _commands_CreateDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_2__["CreateDeliveryStreamCommand"]; });
3031
3032/* harmony import */ var _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/DeleteDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DeleteDeliveryStreamCommand.js");
3033/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamCommand", function() { return _commands_DeleteDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_3__["DeleteDeliveryStreamCommand"]; });
3034
3035/* harmony import */ var _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DescribeDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/DescribeDeliveryStreamCommand.js");
3036/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamCommand", function() { return _commands_DescribeDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_4__["DescribeDeliveryStreamCommand"]; });
3037
3038/* harmony import */ var _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/ListDeliveryStreamsCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListDeliveryStreamsCommand.js");
3039/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsCommand", function() { return _commands_ListDeliveryStreamsCommand__WEBPACK_IMPORTED_MODULE_5__["ListDeliveryStreamsCommand"]; });
3040
3041/* harmony import */ var _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/ListTagsForDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/ListTagsForDeliveryStreamCommand.js");
3042/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamCommand", function() { return _commands_ListTagsForDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_6__["ListTagsForDeliveryStreamCommand"]; });
3043
3044/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordCommand.js");
3045/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_7__["PutRecordCommand"]; });
3046
3047/* harmony import */ var _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/PutRecordBatchCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/PutRecordBatchCommand.js");
3048/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchCommand", function() { return _commands_PutRecordBatchCommand__WEBPACK_IMPORTED_MODULE_8__["PutRecordBatchCommand"]; });
3049
3050/* harmony import */ var _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/StartDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StartDeliveryStreamEncryptionCommand.js");
3051/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionCommand", function() { return _commands_StartDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_9__["StartDeliveryStreamEncryptionCommand"]; });
3052
3053/* harmony import */ var _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/StopDeliveryStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/StopDeliveryStreamEncryptionCommand.js");
3054/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionCommand", function() { return _commands_StopDeliveryStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_10__["StopDeliveryStreamEncryptionCommand"]; });
3055
3056/* harmony import */ var _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/TagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/TagDeliveryStreamCommand.js");
3057/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamCommand", function() { return _commands_TagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_11__["TagDeliveryStreamCommand"]; });
3058
3059/* harmony import */ var _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/UntagDeliveryStreamCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UntagDeliveryStreamCommand.js");
3060/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamCommand", function() { return _commands_UntagDeliveryStreamCommand__WEBPACK_IMPORTED_MODULE_12__["UntagDeliveryStreamCommand"]; });
3061
3062/* harmony import */ var _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/UpdateDestinationCommand */ "../../node_modules/@aws-sdk/client-firehose/dist/es/commands/UpdateDestinationCommand.js");
3063/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationCommand", function() { return _commands_UpdateDestinationCommand__WEBPACK_IMPORTED_MODULE_13__["UpdateDestinationCommand"]; });
3064
3065/* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./models/index */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/index.js");
3066/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BufferingHints", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["BufferingHints"]; });
3067
3068/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CloudWatchLoggingOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CloudWatchLoggingOptions"]; });
3069
3070/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompressionFormat", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CompressionFormat"]; });
3071
3072/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ConcurrentModificationException"]; });
3073
3074/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentEncoding", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ContentEncoding"]; });
3075
3076/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyCommand", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CopyCommand"]; });
3077
3078/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KeyType"]; });
3079
3080/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfigurationInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamEncryptionConfigurationInput"]; });
3081
3082/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchBufferingHints", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchBufferingHints"]; });
3083
3084/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameterName", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ProcessorParameterName"]; });
3085
3086/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ProcessorParameter"]; });
3087
3088/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Processor", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Processor"]; });
3089
3090/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessingConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ProcessingConfiguration"]; });
3091
3092/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchRetryOptions"]; });
3093
3094/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSEncryptionConfig", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KMSEncryptionConfig"]; });
3095
3096/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["EncryptionConfiguration"]; });
3097
3098/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["S3DestinationConfiguration"]; });
3099
3100/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["VpcConfiguration"]; });
3101
3102/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchDestinationConfiguration"]; });
3103
3104/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HiveJsonSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HiveJsonSerDe"]; });
3105
3106/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OpenXJsonSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OpenXJsonSerDe"]; });
3107
3108/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Deserializer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Deserializer"]; });
3109
3110/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputFormatConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InputFormatConfiguration"]; });
3111
3112/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcCompression", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OrcCompression"]; });
3113
3114/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcFormatVersion", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OrcFormatVersion"]; });
3115
3116/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OrcSerDe"]; });
3117
3118/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetCompression", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ParquetCompression"]; });
3119
3120/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetWriterVersion", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ParquetWriterVersion"]; });
3121
3122/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetSerDe", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ParquetSerDe"]; });
3123
3124/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Serializer"]; });
3125
3126/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputFormatConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["OutputFormatConfiguration"]; });
3127
3128/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SchemaConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SchemaConfiguration"]; });
3129
3130/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataFormatConversionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DataFormatConversionConfiguration"]; });
3131
3132/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ExtendedS3DestinationConfiguration"]; });
3133
3134/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointBufferingHints", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointBufferingHints"]; });
3135
3136/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointConfiguration"]; });
3137
3138/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointCommonAttribute", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointCommonAttribute"]; });
3139
3140/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRequestConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointRequestConfiguration"]; });
3141
3142/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointRetryOptions"]; });
3143
3144/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDestinationConfiguration"]; });
3145
3146/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KinesisStreamSourceConfiguration"]; });
3147
3148/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftRetryOptions"]; });
3149
3150/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftDestinationConfiguration"]; });
3151
3152/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkRetryOptions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkRetryOptions"]; });
3153
3154/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkDestinationConfiguration"]; });
3155
3156/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["Tag"]; });
3157
3158/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CreateDeliveryStreamInput"]; });
3159
3160/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["CreateDeliveryStreamOutput"]; });
3161
3162/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidArgumentException"]; });
3163
3164/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidKMSResourceException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["InvalidKMSResourceException"]; });
3165
3166/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["LimitExceededException"]; });
3167
3168/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ResourceInUseException"]; });
3169
3170/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeleteDeliveryStreamInput"]; });
3171
3172/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeleteDeliveryStreamOutput"]; });
3173
3174/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ResourceNotFoundException"]; });
3175
3176/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamFailureType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamFailureType"]; });
3177
3178/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FailureDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["FailureDescription"]; });
3179
3180/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamEncryptionStatus"]; });
3181
3182/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamEncryptionConfiguration"]; });
3183
3184/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamStatus"]; });
3185
3186/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["S3DestinationDescription"]; });
3187
3188/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfigurationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["VpcConfigurationDescription"]; });
3189
3190/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchDestinationDescription"]; });
3191
3192/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ExtendedS3DestinationDescription"]; });
3193
3194/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDescription"]; });
3195
3196/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDestinationDescription"]; });
3197
3198/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftDestinationDescription"]; });
3199
3200/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkDestinationDescription"]; });
3201
3202/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DestinationDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DestinationDescription"]; });
3203
3204/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["KinesisStreamSourceDescription"]; });
3205
3206/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SourceDescription"]; });
3207
3208/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DeliveryStreamDescription"]; });
3209
3210/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DescribeDeliveryStreamInput"]; });
3211
3212/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["DescribeDeliveryStreamOutput"]; });
3213
3214/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["S3DestinationUpdate"]; });
3215
3216/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ElasticsearchDestinationUpdate"]; });
3217
3218/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ExtendedS3DestinationUpdate"]; });
3219
3220/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListDeliveryStreamsInput"]; });
3221
3222/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListDeliveryStreamsOutput"]; });
3223
3224/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTagsForDeliveryStreamInput"]; });
3225
3226/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ListTagsForDeliveryStreamOutput"]; });
3227
3228/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["_Record"]; });
3229
3230/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordInput"]; });
3231
3232/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordOutput"]; });
3233
3234/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["ServiceUnavailableException"]; });
3235
3236/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordBatchInput"]; });
3237
3238/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchResponseEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordBatchResponseEntry"]; });
3239
3240/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["PutRecordBatchOutput"]; });
3241
3242/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StartDeliveryStreamEncryptionInput"]; });
3243
3244/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StartDeliveryStreamEncryptionOutput"]; });
3245
3246/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StopDeliveryStreamEncryptionInput"]; });
3247
3248/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["StopDeliveryStreamEncryptionOutput"]; });
3249
3250/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TagDeliveryStreamInput"]; });
3251
3252/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["TagDeliveryStreamOutput"]; });
3253
3254/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UntagDeliveryStreamInput"]; });
3255
3256/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UntagDeliveryStreamOutput"]; });
3257
3258/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["HttpEndpointDestinationUpdate"]; });
3259
3260/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["RedshiftDestinationUpdate"]; });
3261
3262/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationUpdate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["SplunkDestinationUpdate"]; });
3263
3264/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UpdateDestinationInput"]; });
3265
3266/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_14__["UpdateDestinationOutput"]; });
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283//# sourceMappingURL=index.js.map
3284
3285/***/ }),
3286
3287/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/index.js":
3288/*!**************************************************************************************!*\
3289 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/models/index.js ***!
3290 \**************************************************************************************/
3291/*! exports provided: BufferingHints, CloudWatchLoggingOptions, CompressionFormat, ConcurrentModificationException, ContentEncoding, CopyCommand, KeyType, DeliveryStreamEncryptionConfigurationInput, ElasticsearchBufferingHints, ProcessorParameterName, ProcessorParameter, Processor, ProcessingConfiguration, ElasticsearchRetryOptions, KMSEncryptionConfig, EncryptionConfiguration, S3DestinationConfiguration, VpcConfiguration, ElasticsearchDestinationConfiguration, HiveJsonSerDe, OpenXJsonSerDe, Deserializer, InputFormatConfiguration, OrcCompression, OrcFormatVersion, OrcSerDe, ParquetCompression, ParquetWriterVersion, ParquetSerDe, Serializer, OutputFormatConfiguration, SchemaConfiguration, DataFormatConversionConfiguration, ExtendedS3DestinationConfiguration, HttpEndpointBufferingHints, HttpEndpointConfiguration, HttpEndpointCommonAttribute, HttpEndpointRequestConfiguration, HttpEndpointRetryOptions, HttpEndpointDestinationConfiguration, KinesisStreamSourceConfiguration, RedshiftRetryOptions, RedshiftDestinationConfiguration, SplunkRetryOptions, SplunkDestinationConfiguration, Tag, CreateDeliveryStreamInput, CreateDeliveryStreamOutput, InvalidArgumentException, InvalidKMSResourceException, LimitExceededException, ResourceInUseException, DeleteDeliveryStreamInput, DeleteDeliveryStreamOutput, ResourceNotFoundException, DeliveryStreamFailureType, FailureDescription, DeliveryStreamEncryptionStatus, DeliveryStreamEncryptionConfiguration, DeliveryStreamStatus, S3DestinationDescription, VpcConfigurationDescription, ElasticsearchDestinationDescription, ExtendedS3DestinationDescription, HttpEndpointDescription, HttpEndpointDestinationDescription, RedshiftDestinationDescription, SplunkDestinationDescription, DestinationDescription, KinesisStreamSourceDescription, SourceDescription, DeliveryStreamDescription, DescribeDeliveryStreamInput, DescribeDeliveryStreamOutput, S3DestinationUpdate, ElasticsearchDestinationUpdate, ExtendedS3DestinationUpdate, ListDeliveryStreamsInput, ListDeliveryStreamsOutput, ListTagsForDeliveryStreamInput, ListTagsForDeliveryStreamOutput, _Record, PutRecordInput, PutRecordOutput, ServiceUnavailableException, PutRecordBatchInput, PutRecordBatchResponseEntry, PutRecordBatchOutput, StartDeliveryStreamEncryptionInput, StartDeliveryStreamEncryptionOutput, StopDeliveryStreamEncryptionInput, StopDeliveryStreamEncryptionOutput, TagDeliveryStreamInput, TagDeliveryStreamOutput, UntagDeliveryStreamInput, UntagDeliveryStreamOutput, HttpEndpointDestinationUpdate, RedshiftDestinationUpdate, SplunkDestinationUpdate, UpdateDestinationInput, UpdateDestinationOutput */
3292/***/ (function(module, __webpack_exports__, __webpack_require__) {
3293
3294"use strict";
3295__webpack_require__.r(__webpack_exports__);
3296/* harmony import */ var _models_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./models_0 */ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js");
3297/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BufferingHints", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BufferingHints"]; });
3298
3299/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CloudWatchLoggingOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CloudWatchLoggingOptions"]; });
3300
3301/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompressionFormat", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CompressionFormat"]; });
3302
3303/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConcurrentModificationException"]; });
3304
3305/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContentEncoding", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ContentEncoding"]; });
3306
3307/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CopyCommand", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CopyCommand"]; });
3308
3309/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KeyType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KeyType"]; });
3310
3311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfigurationInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamEncryptionConfigurationInput"]; });
3312
3313/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchBufferingHints", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchBufferingHints"]; });
3314
3315/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameterName", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProcessorParameterName"]; });
3316
3317/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProcessorParameter"]; });
3318
3319/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Processor", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Processor"]; });
3320
3321/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProcessingConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProcessingConfiguration"]; });
3322
3323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchRetryOptions"]; });
3324
3325/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSEncryptionConfig", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSEncryptionConfig"]; });
3326
3327/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EncryptionConfiguration"]; });
3328
3329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["S3DestinationConfiguration"]; });
3330
3331/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VpcConfiguration"]; });
3332
3333/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchDestinationConfiguration"]; });
3334
3335/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HiveJsonSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HiveJsonSerDe"]; });
3336
3337/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OpenXJsonSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OpenXJsonSerDe"]; });
3338
3339/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Deserializer", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Deserializer"]; });
3340
3341/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputFormatConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InputFormatConfiguration"]; });
3342
3343/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcCompression", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OrcCompression"]; });
3344
3345/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcFormatVersion", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OrcFormatVersion"]; });
3346
3347/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OrcSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OrcSerDe"]; });
3348
3349/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetCompression", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ParquetCompression"]; });
3350
3351/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetWriterVersion", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ParquetWriterVersion"]; });
3352
3353/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParquetSerDe", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ParquetSerDe"]; });
3354
3355/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Serializer"]; });
3356
3357/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OutputFormatConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["OutputFormatConfiguration"]; });
3358
3359/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SchemaConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SchemaConfiguration"]; });
3360
3361/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DataFormatConversionConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DataFormatConversionConfiguration"]; });
3362
3363/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExtendedS3DestinationConfiguration"]; });
3364
3365/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointBufferingHints", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointBufferingHints"]; });
3366
3367/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointConfiguration"]; });
3368
3369/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointCommonAttribute", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointCommonAttribute"]; });
3370
3371/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRequestConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointRequestConfiguration"]; });
3372
3373/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointRetryOptions"]; });
3374
3375/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDestinationConfiguration"]; });
3376
3377/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KinesisStreamSourceConfiguration"]; });
3378
3379/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftRetryOptions"]; });
3380
3381/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftDestinationConfiguration"]; });
3382
3383/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkRetryOptions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkRetryOptions"]; });
3384
3385/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkDestinationConfiguration"]; });
3386
3387/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Tag"]; });
3388
3389/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateDeliveryStreamInput"]; });
3390
3391/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateDeliveryStreamOutput"]; });
3392
3393/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidArgumentException"]; });
3394
3395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidKMSResourceException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidKMSResourceException"]; });
3396
3397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["LimitExceededException"]; });
3398
3399/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceInUseException"]; });
3400
3401/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteDeliveryStreamInput"]; });
3402
3403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteDeliveryStreamOutput"]; });
3404
3405/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceNotFoundException"]; });
3406
3407/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamFailureType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamFailureType"]; });
3408
3409/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FailureDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["FailureDescription"]; });
3410
3411/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamEncryptionStatus"]; });
3412
3413/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamEncryptionConfiguration"]; });
3414
3415/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamStatus"]; });
3416
3417/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["S3DestinationDescription"]; });
3418
3419/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VpcConfigurationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VpcConfigurationDescription"]; });
3420
3421/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchDestinationDescription"]; });
3422
3423/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExtendedS3DestinationDescription"]; });
3424
3425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDescription"]; });
3426
3427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDestinationDescription"]; });
3428
3429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftDestinationDescription"]; });
3430
3431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkDestinationDescription"]; });
3432
3433/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DestinationDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DestinationDescription"]; });
3434
3435/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KinesisStreamSourceDescription"]; });
3436
3437/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SourceDescription"]; });
3438
3439/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStreamDescription"]; });
3440
3441/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeDeliveryStreamInput"]; });
3442
3443/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeDeliveryStreamOutput"]; });
3444
3445/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "S3DestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["S3DestinationUpdate"]; });
3446
3447/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ElasticsearchDestinationUpdate"]; });
3448
3449/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExtendedS3DestinationUpdate"]; });
3450
3451/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListDeliveryStreamsInput"]; });
3452
3453/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListDeliveryStreamsOutput"]; });
3454
3455/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForDeliveryStreamInput"]; });
3456
3457/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForDeliveryStreamOutput"]; });
3458
3459/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["_Record"]; });
3460
3461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordInput"]; });
3462
3463/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordOutput"]; });
3464
3465/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ServiceUnavailableException"]; });
3466
3467/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordBatchInput"]; });
3468
3469/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchResponseEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordBatchResponseEntry"]; });
3470
3471/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordBatchOutput"]; });
3472
3473/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartDeliveryStreamEncryptionInput"]; });
3474
3475/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartDeliveryStreamEncryptionOutput"]; });
3476
3477/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StopDeliveryStreamEncryptionInput"]; });
3478
3479/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StopDeliveryStreamEncryptionOutput"]; });
3480
3481/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TagDeliveryStreamInput"]; });
3482
3483/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TagDeliveryStreamOutput"]; });
3484
3485/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UntagDeliveryStreamInput"]; });
3486
3487/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UntagDeliveryStreamOutput"]; });
3488
3489/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HttpEndpointDestinationUpdate"]; });
3490
3491/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RedshiftDestinationUpdate"]; });
3492
3493/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationUpdate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplunkDestinationUpdate"]; });
3494
3495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateDestinationInput"]; });
3496
3497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateDestinationOutput"]; });
3498
3499
3500//# sourceMappingURL=index.js.map
3501
3502/***/ }),
3503
3504/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js":
3505/*!*****************************************************************************************!*\
3506 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/models/models_0.js ***!
3507 \*****************************************************************************************/
3508/*! exports provided: BufferingHints, CloudWatchLoggingOptions, CompressionFormat, ConcurrentModificationException, ContentEncoding, CopyCommand, KeyType, DeliveryStreamEncryptionConfigurationInput, ElasticsearchBufferingHints, ProcessorParameterName, ProcessorParameter, Processor, ProcessingConfiguration, ElasticsearchRetryOptions, KMSEncryptionConfig, EncryptionConfiguration, S3DestinationConfiguration, VpcConfiguration, ElasticsearchDestinationConfiguration, HiveJsonSerDe, OpenXJsonSerDe, Deserializer, InputFormatConfiguration, OrcCompression, OrcFormatVersion, OrcSerDe, ParquetCompression, ParquetWriterVersion, ParquetSerDe, Serializer, OutputFormatConfiguration, SchemaConfiguration, DataFormatConversionConfiguration, ExtendedS3DestinationConfiguration, HttpEndpointBufferingHints, HttpEndpointConfiguration, HttpEndpointCommonAttribute, HttpEndpointRequestConfiguration, HttpEndpointRetryOptions, HttpEndpointDestinationConfiguration, KinesisStreamSourceConfiguration, RedshiftRetryOptions, RedshiftDestinationConfiguration, SplunkRetryOptions, SplunkDestinationConfiguration, Tag, CreateDeliveryStreamInput, CreateDeliveryStreamOutput, InvalidArgumentException, InvalidKMSResourceException, LimitExceededException, ResourceInUseException, DeleteDeliveryStreamInput, DeleteDeliveryStreamOutput, ResourceNotFoundException, DeliveryStreamFailureType, FailureDescription, DeliveryStreamEncryptionStatus, DeliveryStreamEncryptionConfiguration, DeliveryStreamStatus, S3DestinationDescription, VpcConfigurationDescription, ElasticsearchDestinationDescription, ExtendedS3DestinationDescription, HttpEndpointDescription, HttpEndpointDestinationDescription, RedshiftDestinationDescription, SplunkDestinationDescription, DestinationDescription, KinesisStreamSourceDescription, SourceDescription, DeliveryStreamDescription, DescribeDeliveryStreamInput, DescribeDeliveryStreamOutput, S3DestinationUpdate, ElasticsearchDestinationUpdate, ExtendedS3DestinationUpdate, ListDeliveryStreamsInput, ListDeliveryStreamsOutput, ListTagsForDeliveryStreamInput, ListTagsForDeliveryStreamOutput, _Record, PutRecordInput, PutRecordOutput, ServiceUnavailableException, PutRecordBatchInput, PutRecordBatchResponseEntry, PutRecordBatchOutput, StartDeliveryStreamEncryptionInput, StartDeliveryStreamEncryptionOutput, StopDeliveryStreamEncryptionInput, StopDeliveryStreamEncryptionOutput, TagDeliveryStreamInput, TagDeliveryStreamOutput, UntagDeliveryStreamInput, UntagDeliveryStreamOutput, HttpEndpointDestinationUpdate, RedshiftDestinationUpdate, SplunkDestinationUpdate, UpdateDestinationInput, UpdateDestinationOutput */
3509/***/ (function(module, __webpack_exports__, __webpack_require__) {
3510
3511"use strict";
3512__webpack_require__.r(__webpack_exports__);
3513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BufferingHints", function() { return BufferingHints; });
3514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloudWatchLoggingOptions", function() { return CloudWatchLoggingOptions; });
3515/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompressionFormat", function() { return CompressionFormat; });
3516/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConcurrentModificationException", function() { return ConcurrentModificationException; });
3517/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentEncoding", function() { return ContentEncoding; });
3518/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CopyCommand", function() { return CopyCommand; });
3519/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyType", function() { return KeyType; });
3520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfigurationInput", function() { return DeliveryStreamEncryptionConfigurationInput; });
3521/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchBufferingHints", function() { return ElasticsearchBufferingHints; });
3522/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameterName", function() { return ProcessorParameterName; });
3523/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessorParameter", function() { return ProcessorParameter; });
3524/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Processor", function() { return Processor; });
3525/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessingConfiguration", function() { return ProcessingConfiguration; });
3526/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchRetryOptions", function() { return ElasticsearchRetryOptions; });
3527/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSEncryptionConfig", function() { return KMSEncryptionConfig; });
3528/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionConfiguration", function() { return EncryptionConfiguration; });
3529/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3DestinationConfiguration", function() { return S3DestinationConfiguration; });
3530/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VpcConfiguration", function() { return VpcConfiguration; });
3531/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationConfiguration", function() { return ElasticsearchDestinationConfiguration; });
3532/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HiveJsonSerDe", function() { return HiveJsonSerDe; });
3533/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpenXJsonSerDe", function() { return OpenXJsonSerDe; });
3534/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Deserializer", function() { return Deserializer; });
3535/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputFormatConfiguration", function() { return InputFormatConfiguration; });
3536/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrcCompression", function() { return OrcCompression; });
3537/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrcFormatVersion", function() { return OrcFormatVersion; });
3538/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrcSerDe", function() { return OrcSerDe; });
3539/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParquetCompression", function() { return ParquetCompression; });
3540/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParquetWriterVersion", function() { return ParquetWriterVersion; });
3541/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParquetSerDe", function() { return ParquetSerDe; });
3542/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Serializer", function() { return Serializer; });
3543/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputFormatConfiguration", function() { return OutputFormatConfiguration; });
3544/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaConfiguration", function() { return SchemaConfiguration; });
3545/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataFormatConversionConfiguration", function() { return DataFormatConversionConfiguration; });
3546/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationConfiguration", function() { return ExtendedS3DestinationConfiguration; });
3547/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointBufferingHints", function() { return HttpEndpointBufferingHints; });
3548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointConfiguration", function() { return HttpEndpointConfiguration; });
3549/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointCommonAttribute", function() { return HttpEndpointCommonAttribute; });
3550/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRequestConfiguration", function() { return HttpEndpointRequestConfiguration; });
3551/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointRetryOptions", function() { return HttpEndpointRetryOptions; });
3552/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationConfiguration", function() { return HttpEndpointDestinationConfiguration; });
3553/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceConfiguration", function() { return KinesisStreamSourceConfiguration; });
3554/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftRetryOptions", function() { return RedshiftRetryOptions; });
3555/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationConfiguration", function() { return RedshiftDestinationConfiguration; });
3556/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkRetryOptions", function() { return SplunkRetryOptions; });
3557/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationConfiguration", function() { return SplunkDestinationConfiguration; });
3558/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return Tag; });
3559/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamInput", function() { return CreateDeliveryStreamInput; });
3560/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateDeliveryStreamOutput", function() { return CreateDeliveryStreamOutput; });
3561/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return InvalidArgumentException; });
3562/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidKMSResourceException", function() { return InvalidKMSResourceException; });
3563/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; });
3564/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return ResourceInUseException; });
3565/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamInput", function() { return DeleteDeliveryStreamInput; });
3566/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteDeliveryStreamOutput", function() { return DeleteDeliveryStreamOutput; });
3567/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; });
3568/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamFailureType", function() { return DeliveryStreamFailureType; });
3569/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FailureDescription", function() { return FailureDescription; });
3570/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionStatus", function() { return DeliveryStreamEncryptionStatus; });
3571/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamEncryptionConfiguration", function() { return DeliveryStreamEncryptionConfiguration; });
3572/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamStatus", function() { return DeliveryStreamStatus; });
3573/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3DestinationDescription", function() { return S3DestinationDescription; });
3574/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VpcConfigurationDescription", function() { return VpcConfigurationDescription; });
3575/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationDescription", function() { return ElasticsearchDestinationDescription; });
3576/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationDescription", function() { return ExtendedS3DestinationDescription; });
3577/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDescription", function() { return HttpEndpointDescription; });
3578/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationDescription", function() { return HttpEndpointDestinationDescription; });
3579/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationDescription", function() { return RedshiftDestinationDescription; });
3580/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationDescription", function() { return SplunkDestinationDescription; });
3581/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinationDescription", function() { return DestinationDescription; });
3582/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KinesisStreamSourceDescription", function() { return KinesisStreamSourceDescription; });
3583/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SourceDescription", function() { return SourceDescription; });
3584/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStreamDescription", function() { return DeliveryStreamDescription; });
3585/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamInput", function() { return DescribeDeliveryStreamInput; });
3586/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeDeliveryStreamOutput", function() { return DescribeDeliveryStreamOutput; });
3587/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S3DestinationUpdate", function() { return S3DestinationUpdate; });
3588/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElasticsearchDestinationUpdate", function() { return ElasticsearchDestinationUpdate; });
3589/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedS3DestinationUpdate", function() { return ExtendedS3DestinationUpdate; });
3590/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsInput", function() { return ListDeliveryStreamsInput; });
3591/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListDeliveryStreamsOutput", function() { return ListDeliveryStreamsOutput; });
3592/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamInput", function() { return ListTagsForDeliveryStreamInput; });
3593/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForDeliveryStreamOutput", function() { return ListTagsForDeliveryStreamOutput; });
3594/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _Record; });
3595/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return PutRecordInput; });
3596/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return PutRecordOutput; });
3597/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceUnavailableException", function() { return ServiceUnavailableException; });
3598/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchInput", function() { return PutRecordBatchInput; });
3599/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchResponseEntry", function() { return PutRecordBatchResponseEntry; });
3600/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordBatchOutput", function() { return PutRecordBatchOutput; });
3601/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionInput", function() { return StartDeliveryStreamEncryptionInput; });
3602/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartDeliveryStreamEncryptionOutput", function() { return StartDeliveryStreamEncryptionOutput; });
3603/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionInput", function() { return StopDeliveryStreamEncryptionInput; });
3604/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopDeliveryStreamEncryptionOutput", function() { return StopDeliveryStreamEncryptionOutput; });
3605/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamInput", function() { return TagDeliveryStreamInput; });
3606/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagDeliveryStreamOutput", function() { return TagDeliveryStreamOutput; });
3607/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamInput", function() { return UntagDeliveryStreamInput; });
3608/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagDeliveryStreamOutput", function() { return UntagDeliveryStreamOutput; });
3609/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEndpointDestinationUpdate", function() { return HttpEndpointDestinationUpdate; });
3610/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedshiftDestinationUpdate", function() { return RedshiftDestinationUpdate; });
3611/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplunkDestinationUpdate", function() { return SplunkDestinationUpdate; });
3612/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationInput", function() { return UpdateDestinationInput; });
3613/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateDestinationOutput", function() { return UpdateDestinationOutput; });
3614/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
3615/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
3616
3617
3618var BufferingHints;
3619(function (BufferingHints) {
3620 BufferingHints.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3621})(BufferingHints || (BufferingHints = {}));
3622var CloudWatchLoggingOptions;
3623(function (CloudWatchLoggingOptions) {
3624 CloudWatchLoggingOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3625})(CloudWatchLoggingOptions || (CloudWatchLoggingOptions = {}));
3626var CompressionFormat;
3627(function (CompressionFormat) {
3628 CompressionFormat["GZIP"] = "GZIP";
3629 CompressionFormat["HADOOP_SNAPPY"] = "HADOOP_SNAPPY";
3630 CompressionFormat["SNAPPY"] = "Snappy";
3631 CompressionFormat["UNCOMPRESSED"] = "UNCOMPRESSED";
3632 CompressionFormat["ZIP"] = "ZIP";
3633})(CompressionFormat || (CompressionFormat = {}));
3634var ConcurrentModificationException;
3635(function (ConcurrentModificationException) {
3636 ConcurrentModificationException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3637})(ConcurrentModificationException || (ConcurrentModificationException = {}));
3638var ContentEncoding;
3639(function (ContentEncoding) {
3640 ContentEncoding["GZIP"] = "GZIP";
3641 ContentEncoding["NONE"] = "NONE";
3642})(ContentEncoding || (ContentEncoding = {}));
3643var CopyCommand;
3644(function (CopyCommand) {
3645 CopyCommand.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3646})(CopyCommand || (CopyCommand = {}));
3647var KeyType;
3648(function (KeyType) {
3649 KeyType["AWS_OWNED_CMK"] = "AWS_OWNED_CMK";
3650 KeyType["CUSTOMER_MANAGED_CMK"] = "CUSTOMER_MANAGED_CMK";
3651})(KeyType || (KeyType = {}));
3652var DeliveryStreamEncryptionConfigurationInput;
3653(function (DeliveryStreamEncryptionConfigurationInput) {
3654 DeliveryStreamEncryptionConfigurationInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3655})(DeliveryStreamEncryptionConfigurationInput || (DeliveryStreamEncryptionConfigurationInput = {}));
3656var ElasticsearchBufferingHints;
3657(function (ElasticsearchBufferingHints) {
3658 ElasticsearchBufferingHints.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3659})(ElasticsearchBufferingHints || (ElasticsearchBufferingHints = {}));
3660var ProcessorParameterName;
3661(function (ProcessorParameterName) {
3662 ProcessorParameterName["BUFFER_INTERVAL_IN_SECONDS"] = "BufferIntervalInSeconds";
3663 ProcessorParameterName["BUFFER_SIZE_IN_MB"] = "BufferSizeInMBs";
3664 ProcessorParameterName["LAMBDA_ARN"] = "LambdaArn";
3665 ProcessorParameterName["LAMBDA_NUMBER_OF_RETRIES"] = "NumberOfRetries";
3666 ProcessorParameterName["ROLE_ARN"] = "RoleArn";
3667})(ProcessorParameterName || (ProcessorParameterName = {}));
3668var ProcessorParameter;
3669(function (ProcessorParameter) {
3670 ProcessorParameter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3671})(ProcessorParameter || (ProcessorParameter = {}));
3672var Processor;
3673(function (Processor) {
3674 Processor.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3675})(Processor || (Processor = {}));
3676var ProcessingConfiguration;
3677(function (ProcessingConfiguration) {
3678 ProcessingConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3679})(ProcessingConfiguration || (ProcessingConfiguration = {}));
3680var ElasticsearchRetryOptions;
3681(function (ElasticsearchRetryOptions) {
3682 ElasticsearchRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3683})(ElasticsearchRetryOptions || (ElasticsearchRetryOptions = {}));
3684var KMSEncryptionConfig;
3685(function (KMSEncryptionConfig) {
3686 KMSEncryptionConfig.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3687})(KMSEncryptionConfig || (KMSEncryptionConfig = {}));
3688var EncryptionConfiguration;
3689(function (EncryptionConfiguration) {
3690 EncryptionConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3691})(EncryptionConfiguration || (EncryptionConfiguration = {}));
3692var S3DestinationConfiguration;
3693(function (S3DestinationConfiguration) {
3694 S3DestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3695})(S3DestinationConfiguration || (S3DestinationConfiguration = {}));
3696var VpcConfiguration;
3697(function (VpcConfiguration) {
3698 VpcConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3699})(VpcConfiguration || (VpcConfiguration = {}));
3700var ElasticsearchDestinationConfiguration;
3701(function (ElasticsearchDestinationConfiguration) {
3702 ElasticsearchDestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3703})(ElasticsearchDestinationConfiguration || (ElasticsearchDestinationConfiguration = {}));
3704var HiveJsonSerDe;
3705(function (HiveJsonSerDe) {
3706 HiveJsonSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3707})(HiveJsonSerDe || (HiveJsonSerDe = {}));
3708var OpenXJsonSerDe;
3709(function (OpenXJsonSerDe) {
3710 OpenXJsonSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3711})(OpenXJsonSerDe || (OpenXJsonSerDe = {}));
3712var Deserializer;
3713(function (Deserializer) {
3714 Deserializer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3715})(Deserializer || (Deserializer = {}));
3716var InputFormatConfiguration;
3717(function (InputFormatConfiguration) {
3718 InputFormatConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3719})(InputFormatConfiguration || (InputFormatConfiguration = {}));
3720var OrcCompression;
3721(function (OrcCompression) {
3722 OrcCompression["NONE"] = "NONE";
3723 OrcCompression["SNAPPY"] = "SNAPPY";
3724 OrcCompression["ZLIB"] = "ZLIB";
3725})(OrcCompression || (OrcCompression = {}));
3726var OrcFormatVersion;
3727(function (OrcFormatVersion) {
3728 OrcFormatVersion["V0_11"] = "V0_11";
3729 OrcFormatVersion["V0_12"] = "V0_12";
3730})(OrcFormatVersion || (OrcFormatVersion = {}));
3731var OrcSerDe;
3732(function (OrcSerDe) {
3733 OrcSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3734})(OrcSerDe || (OrcSerDe = {}));
3735var ParquetCompression;
3736(function (ParquetCompression) {
3737 ParquetCompression["GZIP"] = "GZIP";
3738 ParquetCompression["SNAPPY"] = "SNAPPY";
3739 ParquetCompression["UNCOMPRESSED"] = "UNCOMPRESSED";
3740})(ParquetCompression || (ParquetCompression = {}));
3741var ParquetWriterVersion;
3742(function (ParquetWriterVersion) {
3743 ParquetWriterVersion["V1"] = "V1";
3744 ParquetWriterVersion["V2"] = "V2";
3745})(ParquetWriterVersion || (ParquetWriterVersion = {}));
3746var ParquetSerDe;
3747(function (ParquetSerDe) {
3748 ParquetSerDe.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3749})(ParquetSerDe || (ParquetSerDe = {}));
3750var Serializer;
3751(function (Serializer) {
3752 Serializer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3753})(Serializer || (Serializer = {}));
3754var OutputFormatConfiguration;
3755(function (OutputFormatConfiguration) {
3756 OutputFormatConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3757})(OutputFormatConfiguration || (OutputFormatConfiguration = {}));
3758var SchemaConfiguration;
3759(function (SchemaConfiguration) {
3760 SchemaConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3761})(SchemaConfiguration || (SchemaConfiguration = {}));
3762var DataFormatConversionConfiguration;
3763(function (DataFormatConversionConfiguration) {
3764 DataFormatConversionConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3765})(DataFormatConversionConfiguration || (DataFormatConversionConfiguration = {}));
3766var ExtendedS3DestinationConfiguration;
3767(function (ExtendedS3DestinationConfiguration) {
3768 ExtendedS3DestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3769})(ExtendedS3DestinationConfiguration || (ExtendedS3DestinationConfiguration = {}));
3770var HttpEndpointBufferingHints;
3771(function (HttpEndpointBufferingHints) {
3772 HttpEndpointBufferingHints.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3773})(HttpEndpointBufferingHints || (HttpEndpointBufferingHints = {}));
3774var HttpEndpointConfiguration;
3775(function (HttpEndpointConfiguration) {
3776 HttpEndpointConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Url && { Url: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.AccessKey && { AccessKey: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); };
3777})(HttpEndpointConfiguration || (HttpEndpointConfiguration = {}));
3778var HttpEndpointCommonAttribute;
3779(function (HttpEndpointCommonAttribute) {
3780 HttpEndpointCommonAttribute.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.AttributeName && { AttributeName: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.AttributeValue && { AttributeValue: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); };
3781})(HttpEndpointCommonAttribute || (HttpEndpointCommonAttribute = {}));
3782var HttpEndpointRequestConfiguration;
3783(function (HttpEndpointRequestConfiguration) {
3784 HttpEndpointRequestConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.CommonAttributes && {
3785 CommonAttributes: obj.CommonAttributes.map(function (item) { return HttpEndpointCommonAttribute.filterSensitiveLog(item); }),
3786 }))); };
3787})(HttpEndpointRequestConfiguration || (HttpEndpointRequestConfiguration = {}));
3788var HttpEndpointRetryOptions;
3789(function (HttpEndpointRetryOptions) {
3790 HttpEndpointRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3791})(HttpEndpointRetryOptions || (HttpEndpointRetryOptions = {}));
3792var HttpEndpointDestinationConfiguration;
3793(function (HttpEndpointDestinationConfiguration) {
3794 HttpEndpointDestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EndpointConfiguration && {
3795 EndpointConfiguration: HttpEndpointConfiguration.filterSensitiveLog(obj.EndpointConfiguration),
3796 })), (obj.RequestConfiguration && {
3797 RequestConfiguration: HttpEndpointRequestConfiguration.filterSensitiveLog(obj.RequestConfiguration),
3798 }))); };
3799})(HttpEndpointDestinationConfiguration || (HttpEndpointDestinationConfiguration = {}));
3800var KinesisStreamSourceConfiguration;
3801(function (KinesisStreamSourceConfiguration) {
3802 KinesisStreamSourceConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3803})(KinesisStreamSourceConfiguration || (KinesisStreamSourceConfiguration = {}));
3804var RedshiftRetryOptions;
3805(function (RedshiftRetryOptions) {
3806 RedshiftRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3807})(RedshiftRetryOptions || (RedshiftRetryOptions = {}));
3808var RedshiftDestinationConfiguration;
3809(function (RedshiftDestinationConfiguration) {
3810 RedshiftDestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Username && { Username: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.Password && { Password: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); };
3811})(RedshiftDestinationConfiguration || (RedshiftDestinationConfiguration = {}));
3812var SplunkRetryOptions;
3813(function (SplunkRetryOptions) {
3814 SplunkRetryOptions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3815})(SplunkRetryOptions || (SplunkRetryOptions = {}));
3816var SplunkDestinationConfiguration;
3817(function (SplunkDestinationConfiguration) {
3818 SplunkDestinationConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3819})(SplunkDestinationConfiguration || (SplunkDestinationConfiguration = {}));
3820var Tag;
3821(function (Tag) {
3822 Tag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3823})(Tag || (Tag = {}));
3824var CreateDeliveryStreamInput;
3825(function (CreateDeliveryStreamInput) {
3826 CreateDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.RedshiftDestinationConfiguration && {
3827 RedshiftDestinationConfiguration: RedshiftDestinationConfiguration.filterSensitiveLog(obj.RedshiftDestinationConfiguration),
3828 })), (obj.HttpEndpointDestinationConfiguration && {
3829 HttpEndpointDestinationConfiguration: HttpEndpointDestinationConfiguration.filterSensitiveLog(obj.HttpEndpointDestinationConfiguration),
3830 }))); };
3831})(CreateDeliveryStreamInput || (CreateDeliveryStreamInput = {}));
3832var CreateDeliveryStreamOutput;
3833(function (CreateDeliveryStreamOutput) {
3834 CreateDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3835})(CreateDeliveryStreamOutput || (CreateDeliveryStreamOutput = {}));
3836var InvalidArgumentException;
3837(function (InvalidArgumentException) {
3838 InvalidArgumentException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3839})(InvalidArgumentException || (InvalidArgumentException = {}));
3840var InvalidKMSResourceException;
3841(function (InvalidKMSResourceException) {
3842 InvalidKMSResourceException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3843})(InvalidKMSResourceException || (InvalidKMSResourceException = {}));
3844var LimitExceededException;
3845(function (LimitExceededException) {
3846 LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3847})(LimitExceededException || (LimitExceededException = {}));
3848var ResourceInUseException;
3849(function (ResourceInUseException) {
3850 ResourceInUseException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3851})(ResourceInUseException || (ResourceInUseException = {}));
3852var DeleteDeliveryStreamInput;
3853(function (DeleteDeliveryStreamInput) {
3854 DeleteDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3855})(DeleteDeliveryStreamInput || (DeleteDeliveryStreamInput = {}));
3856var DeleteDeliveryStreamOutput;
3857(function (DeleteDeliveryStreamOutput) {
3858 DeleteDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3859})(DeleteDeliveryStreamOutput || (DeleteDeliveryStreamOutput = {}));
3860var ResourceNotFoundException;
3861(function (ResourceNotFoundException) {
3862 ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3863})(ResourceNotFoundException || (ResourceNotFoundException = {}));
3864var DeliveryStreamFailureType;
3865(function (DeliveryStreamFailureType) {
3866 DeliveryStreamFailureType["CREATE_ENI_FAILED"] = "CREATE_ENI_FAILED";
3867 DeliveryStreamFailureType["CREATE_KMS_GRANT_FAILED"] = "CREATE_KMS_GRANT_FAILED";
3868 DeliveryStreamFailureType["DELETE_ENI_FAILED"] = "DELETE_ENI_FAILED";
3869 DeliveryStreamFailureType["DISABLED_KMS_KEY"] = "DISABLED_KMS_KEY";
3870 DeliveryStreamFailureType["ENI_ACCESS_DENIED"] = "ENI_ACCESS_DENIED";
3871 DeliveryStreamFailureType["INVALID_KMS_KEY"] = "INVALID_KMS_KEY";
3872 DeliveryStreamFailureType["KMS_ACCESS_DENIED"] = "KMS_ACCESS_DENIED";
3873 DeliveryStreamFailureType["KMS_KEY_NOT_FOUND"] = "KMS_KEY_NOT_FOUND";
3874 DeliveryStreamFailureType["KMS_OPT_IN_REQUIRED"] = "KMS_OPT_IN_REQUIRED";
3875 DeliveryStreamFailureType["RETIRE_KMS_GRANT_FAILED"] = "RETIRE_KMS_GRANT_FAILED";
3876 DeliveryStreamFailureType["SECURITY_GROUP_ACCESS_DENIED"] = "SECURITY_GROUP_ACCESS_DENIED";
3877 DeliveryStreamFailureType["SECURITY_GROUP_NOT_FOUND"] = "SECURITY_GROUP_NOT_FOUND";
3878 DeliveryStreamFailureType["SUBNET_ACCESS_DENIED"] = "SUBNET_ACCESS_DENIED";
3879 DeliveryStreamFailureType["SUBNET_NOT_FOUND"] = "SUBNET_NOT_FOUND";
3880 DeliveryStreamFailureType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
3881})(DeliveryStreamFailureType || (DeliveryStreamFailureType = {}));
3882var FailureDescription;
3883(function (FailureDescription) {
3884 FailureDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3885})(FailureDescription || (FailureDescription = {}));
3886var DeliveryStreamEncryptionStatus;
3887(function (DeliveryStreamEncryptionStatus) {
3888 DeliveryStreamEncryptionStatus["DISABLED"] = "DISABLED";
3889 DeliveryStreamEncryptionStatus["DISABLING"] = "DISABLING";
3890 DeliveryStreamEncryptionStatus["DISABLING_FAILED"] = "DISABLING_FAILED";
3891 DeliveryStreamEncryptionStatus["ENABLED"] = "ENABLED";
3892 DeliveryStreamEncryptionStatus["ENABLING"] = "ENABLING";
3893 DeliveryStreamEncryptionStatus["ENABLING_FAILED"] = "ENABLING_FAILED";
3894})(DeliveryStreamEncryptionStatus || (DeliveryStreamEncryptionStatus = {}));
3895var DeliveryStreamEncryptionConfiguration;
3896(function (DeliveryStreamEncryptionConfiguration) {
3897 DeliveryStreamEncryptionConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3898})(DeliveryStreamEncryptionConfiguration || (DeliveryStreamEncryptionConfiguration = {}));
3899var DeliveryStreamStatus;
3900(function (DeliveryStreamStatus) {
3901 DeliveryStreamStatus["ACTIVE"] = "ACTIVE";
3902 DeliveryStreamStatus["CREATING"] = "CREATING";
3903 DeliveryStreamStatus["CREATING_FAILED"] = "CREATING_FAILED";
3904 DeliveryStreamStatus["DELETING"] = "DELETING";
3905 DeliveryStreamStatus["DELETING_FAILED"] = "DELETING_FAILED";
3906})(DeliveryStreamStatus || (DeliveryStreamStatus = {}));
3907var S3DestinationDescription;
3908(function (S3DestinationDescription) {
3909 S3DestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3910})(S3DestinationDescription || (S3DestinationDescription = {}));
3911var VpcConfigurationDescription;
3912(function (VpcConfigurationDescription) {
3913 VpcConfigurationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3914})(VpcConfigurationDescription || (VpcConfigurationDescription = {}));
3915var ElasticsearchDestinationDescription;
3916(function (ElasticsearchDestinationDescription) {
3917 ElasticsearchDestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3918})(ElasticsearchDestinationDescription || (ElasticsearchDestinationDescription = {}));
3919var ExtendedS3DestinationDescription;
3920(function (ExtendedS3DestinationDescription) {
3921 ExtendedS3DestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3922})(ExtendedS3DestinationDescription || (ExtendedS3DestinationDescription = {}));
3923var HttpEndpointDescription;
3924(function (HttpEndpointDescription) {
3925 HttpEndpointDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Url && { Url: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); };
3926})(HttpEndpointDescription || (HttpEndpointDescription = {}));
3927var HttpEndpointDestinationDescription;
3928(function (HttpEndpointDestinationDescription) {
3929 HttpEndpointDestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EndpointConfiguration && {
3930 EndpointConfiguration: HttpEndpointDescription.filterSensitiveLog(obj.EndpointConfiguration),
3931 })), (obj.RequestConfiguration && {
3932 RequestConfiguration: HttpEndpointRequestConfiguration.filterSensitiveLog(obj.RequestConfiguration),
3933 }))); };
3934})(HttpEndpointDestinationDescription || (HttpEndpointDestinationDescription = {}));
3935var RedshiftDestinationDescription;
3936(function (RedshiftDestinationDescription) {
3937 RedshiftDestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Username && { Username: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); };
3938})(RedshiftDestinationDescription || (RedshiftDestinationDescription = {}));
3939var SplunkDestinationDescription;
3940(function (SplunkDestinationDescription) {
3941 SplunkDestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3942})(SplunkDestinationDescription || (SplunkDestinationDescription = {}));
3943var DestinationDescription;
3944(function (DestinationDescription) {
3945 DestinationDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.RedshiftDestinationDescription && {
3946 RedshiftDestinationDescription: RedshiftDestinationDescription.filterSensitiveLog(obj.RedshiftDestinationDescription),
3947 })), (obj.HttpEndpointDestinationDescription && {
3948 HttpEndpointDestinationDescription: HttpEndpointDestinationDescription.filterSensitiveLog(obj.HttpEndpointDestinationDescription),
3949 }))); };
3950})(DestinationDescription || (DestinationDescription = {}));
3951var KinesisStreamSourceDescription;
3952(function (KinesisStreamSourceDescription) {
3953 KinesisStreamSourceDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3954})(KinesisStreamSourceDescription || (KinesisStreamSourceDescription = {}));
3955var SourceDescription;
3956(function (SourceDescription) {
3957 SourceDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3958})(SourceDescription || (SourceDescription = {}));
3959var DeliveryStreamDescription;
3960(function (DeliveryStreamDescription) {
3961 DeliveryStreamDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Destinations && {
3962 Destinations: obj.Destinations.map(function (item) { return DestinationDescription.filterSensitiveLog(item); }),
3963 }))); };
3964})(DeliveryStreamDescription || (DeliveryStreamDescription = {}));
3965var DescribeDeliveryStreamInput;
3966(function (DescribeDeliveryStreamInput) {
3967 DescribeDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3968})(DescribeDeliveryStreamInput || (DescribeDeliveryStreamInput = {}));
3969var DescribeDeliveryStreamOutput;
3970(function (DescribeDeliveryStreamOutput) {
3971 DescribeDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.DeliveryStreamDescription && {
3972 DeliveryStreamDescription: DeliveryStreamDescription.filterSensitiveLog(obj.DeliveryStreamDescription),
3973 }))); };
3974})(DescribeDeliveryStreamOutput || (DescribeDeliveryStreamOutput = {}));
3975var S3DestinationUpdate;
3976(function (S3DestinationUpdate) {
3977 S3DestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3978})(S3DestinationUpdate || (S3DestinationUpdate = {}));
3979var ElasticsearchDestinationUpdate;
3980(function (ElasticsearchDestinationUpdate) {
3981 ElasticsearchDestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3982})(ElasticsearchDestinationUpdate || (ElasticsearchDestinationUpdate = {}));
3983var ExtendedS3DestinationUpdate;
3984(function (ExtendedS3DestinationUpdate) {
3985 ExtendedS3DestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3986})(ExtendedS3DestinationUpdate || (ExtendedS3DestinationUpdate = {}));
3987var ListDeliveryStreamsInput;
3988(function (ListDeliveryStreamsInput) {
3989 ListDeliveryStreamsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3990})(ListDeliveryStreamsInput || (ListDeliveryStreamsInput = {}));
3991var ListDeliveryStreamsOutput;
3992(function (ListDeliveryStreamsOutput) {
3993 ListDeliveryStreamsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3994})(ListDeliveryStreamsOutput || (ListDeliveryStreamsOutput = {}));
3995var ListTagsForDeliveryStreamInput;
3996(function (ListTagsForDeliveryStreamInput) {
3997 ListTagsForDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
3998})(ListTagsForDeliveryStreamInput || (ListTagsForDeliveryStreamInput = {}));
3999var ListTagsForDeliveryStreamOutput;
4000(function (ListTagsForDeliveryStreamOutput) {
4001 ListTagsForDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4002})(ListTagsForDeliveryStreamOutput || (ListTagsForDeliveryStreamOutput = {}));
4003var _Record;
4004(function (_Record) {
4005 _Record.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4006})(_Record || (_Record = {}));
4007var PutRecordInput;
4008(function (PutRecordInput) {
4009 PutRecordInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4010})(PutRecordInput || (PutRecordInput = {}));
4011var PutRecordOutput;
4012(function (PutRecordOutput) {
4013 PutRecordOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4014})(PutRecordOutput || (PutRecordOutput = {}));
4015var ServiceUnavailableException;
4016(function (ServiceUnavailableException) {
4017 ServiceUnavailableException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4018})(ServiceUnavailableException || (ServiceUnavailableException = {}));
4019var PutRecordBatchInput;
4020(function (PutRecordBatchInput) {
4021 PutRecordBatchInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4022})(PutRecordBatchInput || (PutRecordBatchInput = {}));
4023var PutRecordBatchResponseEntry;
4024(function (PutRecordBatchResponseEntry) {
4025 PutRecordBatchResponseEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4026})(PutRecordBatchResponseEntry || (PutRecordBatchResponseEntry = {}));
4027var PutRecordBatchOutput;
4028(function (PutRecordBatchOutput) {
4029 PutRecordBatchOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4030})(PutRecordBatchOutput || (PutRecordBatchOutput = {}));
4031var StartDeliveryStreamEncryptionInput;
4032(function (StartDeliveryStreamEncryptionInput) {
4033 StartDeliveryStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4034})(StartDeliveryStreamEncryptionInput || (StartDeliveryStreamEncryptionInput = {}));
4035var StartDeliveryStreamEncryptionOutput;
4036(function (StartDeliveryStreamEncryptionOutput) {
4037 StartDeliveryStreamEncryptionOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4038})(StartDeliveryStreamEncryptionOutput || (StartDeliveryStreamEncryptionOutput = {}));
4039var StopDeliveryStreamEncryptionInput;
4040(function (StopDeliveryStreamEncryptionInput) {
4041 StopDeliveryStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4042})(StopDeliveryStreamEncryptionInput || (StopDeliveryStreamEncryptionInput = {}));
4043var StopDeliveryStreamEncryptionOutput;
4044(function (StopDeliveryStreamEncryptionOutput) {
4045 StopDeliveryStreamEncryptionOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4046})(StopDeliveryStreamEncryptionOutput || (StopDeliveryStreamEncryptionOutput = {}));
4047var TagDeliveryStreamInput;
4048(function (TagDeliveryStreamInput) {
4049 TagDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4050})(TagDeliveryStreamInput || (TagDeliveryStreamInput = {}));
4051var TagDeliveryStreamOutput;
4052(function (TagDeliveryStreamOutput) {
4053 TagDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4054})(TagDeliveryStreamOutput || (TagDeliveryStreamOutput = {}));
4055var UntagDeliveryStreamInput;
4056(function (UntagDeliveryStreamInput) {
4057 UntagDeliveryStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4058})(UntagDeliveryStreamInput || (UntagDeliveryStreamInput = {}));
4059var UntagDeliveryStreamOutput;
4060(function (UntagDeliveryStreamOutput) {
4061 UntagDeliveryStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4062})(UntagDeliveryStreamOutput || (UntagDeliveryStreamOutput = {}));
4063var HttpEndpointDestinationUpdate;
4064(function (HttpEndpointDestinationUpdate) {
4065 HttpEndpointDestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EndpointConfiguration && {
4066 EndpointConfiguration: HttpEndpointConfiguration.filterSensitiveLog(obj.EndpointConfiguration),
4067 })), (obj.RequestConfiguration && {
4068 RequestConfiguration: HttpEndpointRequestConfiguration.filterSensitiveLog(obj.RequestConfiguration),
4069 }))); };
4070})(HttpEndpointDestinationUpdate || (HttpEndpointDestinationUpdate = {}));
4071var RedshiftDestinationUpdate;
4072(function (RedshiftDestinationUpdate) {
4073 RedshiftDestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.Username && { Username: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] })), (obj.Password && { Password: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_1__["SENSITIVE_STRING"] }))); };
4074})(RedshiftDestinationUpdate || (RedshiftDestinationUpdate = {}));
4075var SplunkDestinationUpdate;
4076(function (SplunkDestinationUpdate) {
4077 SplunkDestinationUpdate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4078})(SplunkDestinationUpdate || (SplunkDestinationUpdate = {}));
4079var UpdateDestinationInput;
4080(function (UpdateDestinationInput) {
4081 UpdateDestinationInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.RedshiftDestinationUpdate && {
4082 RedshiftDestinationUpdate: RedshiftDestinationUpdate.filterSensitiveLog(obj.RedshiftDestinationUpdate),
4083 })), (obj.HttpEndpointDestinationUpdate && {
4084 HttpEndpointDestinationUpdate: HttpEndpointDestinationUpdate.filterSensitiveLog(obj.HttpEndpointDestinationUpdate),
4085 }))); };
4086})(UpdateDestinationInput || (UpdateDestinationInput = {}));
4087var UpdateDestinationOutput;
4088(function (UpdateDestinationOutput) {
4089 UpdateDestinationOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
4090})(UpdateDestinationOutput || (UpdateDestinationOutput = {}));
4091//# sourceMappingURL=models_0.js.map
4092
4093/***/ }),
4094
4095/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/package.json":
4096/*!***********************************************************************************!*\
4097 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/package.json ***!
4098 \***********************************************************************************/
4099/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
4100/***/ (function(module) {
4101
4102module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-firehose\",\"description\":\"AWS SDK for JavaScript Firehose Client for Node.js, Browser and React Native\",\"version\":\"3.6.1\",\"scripts\":{\"clean\":\"yarn remove-definitions && yarn remove-dist && yarn remove-documentation\",\"build-documentation\":\"yarn remove-documentation && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\",\"postbuild\":\"downlevel-dts types types/ts3.4\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0\",\"@aws-crypto/sha256-js\":\"^1.0.0\",\"@aws-sdk/config-resolver\":\"3.6.1\",\"@aws-sdk/credential-provider-node\":\"3.6.1\",\"@aws-sdk/fetch-http-handler\":\"3.6.1\",\"@aws-sdk/hash-node\":\"3.6.1\",\"@aws-sdk/invalid-dependency\":\"3.6.1\",\"@aws-sdk/middleware-content-length\":\"3.6.1\",\"@aws-sdk/middleware-host-header\":\"3.6.1\",\"@aws-sdk/middleware-logger\":\"3.6.1\",\"@aws-sdk/middleware-retry\":\"3.6.1\",\"@aws-sdk/middleware-serde\":\"3.6.1\",\"@aws-sdk/middleware-signing\":\"3.6.1\",\"@aws-sdk/middleware-stack\":\"3.6.1\",\"@aws-sdk/middleware-user-agent\":\"3.6.1\",\"@aws-sdk/node-config-provider\":\"3.6.1\",\"@aws-sdk/node-http-handler\":\"3.6.1\",\"@aws-sdk/protocol-http\":\"3.6.1\",\"@aws-sdk/smithy-client\":\"3.6.1\",\"@aws-sdk/types\":\"3.6.1\",\"@aws-sdk/url-parser\":\"3.6.1\",\"@aws-sdk/url-parser-native\":\"3.6.1\",\"@aws-sdk/util-base64-browser\":\"3.6.1\",\"@aws-sdk/util-base64-node\":\"3.6.1\",\"@aws-sdk/util-body-length-browser\":\"3.6.1\",\"@aws-sdk/util-body-length-node\":\"3.6.1\",\"@aws-sdk/util-user-agent-browser\":\"3.6.1\",\"@aws-sdk/util-user-agent-node\":\"3.6.1\",\"@aws-sdk/util-utf8-browser\":\"3.6.1\",\"@aws-sdk/util-utf8-node\":\"3.6.1\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"3.6.1\",\"@types/node\":\"^12.7.5\",\"downlevel-dts\":\"0.7.0\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.19.2\",\"typescript\":\"~4.1.2\"},\"engines\":{\"node\":\">=10.0.0\"},\"typesVersions\":{\"<4.0\":{\"types/*\":[\"types/ts3.4/*\"]}},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\",\"homepage\":\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-firehose\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/aws/aws-sdk-js-v3.git\",\"directory\":\"clients/client-firehose\"}}");
4103
4104/***/ }),
4105
4106/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js":
4107/*!***********************************************************************************************!*\
4108 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/protocols/Aws_json1_1.js ***!
4109 \***********************************************************************************************/
4110/*! exports provided: serializeAws_json1_1CreateDeliveryStreamCommand, serializeAws_json1_1DeleteDeliveryStreamCommand, serializeAws_json1_1DescribeDeliveryStreamCommand, serializeAws_json1_1ListDeliveryStreamsCommand, serializeAws_json1_1ListTagsForDeliveryStreamCommand, serializeAws_json1_1PutRecordCommand, serializeAws_json1_1PutRecordBatchCommand, serializeAws_json1_1StartDeliveryStreamEncryptionCommand, serializeAws_json1_1StopDeliveryStreamEncryptionCommand, serializeAws_json1_1TagDeliveryStreamCommand, serializeAws_json1_1UntagDeliveryStreamCommand, serializeAws_json1_1UpdateDestinationCommand, deserializeAws_json1_1CreateDeliveryStreamCommand, deserializeAws_json1_1DeleteDeliveryStreamCommand, deserializeAws_json1_1DescribeDeliveryStreamCommand, deserializeAws_json1_1ListDeliveryStreamsCommand, deserializeAws_json1_1ListTagsForDeliveryStreamCommand, deserializeAws_json1_1PutRecordCommand, deserializeAws_json1_1PutRecordBatchCommand, deserializeAws_json1_1StartDeliveryStreamEncryptionCommand, deserializeAws_json1_1StopDeliveryStreamEncryptionCommand, deserializeAws_json1_1TagDeliveryStreamCommand, deserializeAws_json1_1UntagDeliveryStreamCommand, deserializeAws_json1_1UpdateDestinationCommand */
4111/***/ (function(module, __webpack_exports__, __webpack_require__) {
4112
4113"use strict";
4114__webpack_require__.r(__webpack_exports__);
4115/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateDeliveryStreamCommand", function() { return serializeAws_json1_1CreateDeliveryStreamCommand; });
4116/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteDeliveryStreamCommand", function() { return serializeAws_json1_1DeleteDeliveryStreamCommand; });
4117/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeDeliveryStreamCommand", function() { return serializeAws_json1_1DescribeDeliveryStreamCommand; });
4118/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListDeliveryStreamsCommand", function() { return serializeAws_json1_1ListDeliveryStreamsCommand; });
4119/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForDeliveryStreamCommand", function() { return serializeAws_json1_1ListTagsForDeliveryStreamCommand; });
4120/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordCommand", function() { return serializeAws_json1_1PutRecordCommand; });
4121/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordBatchCommand", function() { return serializeAws_json1_1PutRecordBatchCommand; });
4122/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartDeliveryStreamEncryptionCommand", function() { return serializeAws_json1_1StartDeliveryStreamEncryptionCommand; });
4123/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopDeliveryStreamEncryptionCommand", function() { return serializeAws_json1_1StopDeliveryStreamEncryptionCommand; });
4124/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1TagDeliveryStreamCommand", function() { return serializeAws_json1_1TagDeliveryStreamCommand; });
4125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UntagDeliveryStreamCommand", function() { return serializeAws_json1_1UntagDeliveryStreamCommand; });
4126/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateDestinationCommand", function() { return serializeAws_json1_1UpdateDestinationCommand; });
4127/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateDeliveryStreamCommand", function() { return deserializeAws_json1_1CreateDeliveryStreamCommand; });
4128/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteDeliveryStreamCommand", function() { return deserializeAws_json1_1DeleteDeliveryStreamCommand; });
4129/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeDeliveryStreamCommand", function() { return deserializeAws_json1_1DescribeDeliveryStreamCommand; });
4130/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListDeliveryStreamsCommand", function() { return deserializeAws_json1_1ListDeliveryStreamsCommand; });
4131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForDeliveryStreamCommand", function() { return deserializeAws_json1_1ListTagsForDeliveryStreamCommand; });
4132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordCommand", function() { return deserializeAws_json1_1PutRecordCommand; });
4133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordBatchCommand", function() { return deserializeAws_json1_1PutRecordBatchCommand; });
4134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartDeliveryStreamEncryptionCommand", function() { return deserializeAws_json1_1StartDeliveryStreamEncryptionCommand; });
4135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopDeliveryStreamEncryptionCommand", function() { return deserializeAws_json1_1StopDeliveryStreamEncryptionCommand; });
4136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1TagDeliveryStreamCommand", function() { return deserializeAws_json1_1TagDeliveryStreamCommand; });
4137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UntagDeliveryStreamCommand", function() { return deserializeAws_json1_1UntagDeliveryStreamCommand; });
4138/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateDestinationCommand", function() { return deserializeAws_json1_1UpdateDestinationCommand; });
4139/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
4140/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
4141
4142
4143var serializeAws_json1_1CreateDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4144 var headers, body;
4145 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4146 headers = {
4147 "content-type": "application/x-amz-json-1.1",
4148 "x-amz-target": "Firehose_20150804.CreateDeliveryStream",
4149 };
4150 body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context));
4151 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4152 });
4153}); };
4154var serializeAws_json1_1DeleteDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4155 var headers, body;
4156 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4157 headers = {
4158 "content-type": "application/x-amz-json-1.1",
4159 "x-amz-target": "Firehose_20150804.DeleteDeliveryStream",
4160 };
4161 body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context));
4162 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4163 });
4164}); };
4165var serializeAws_json1_1DescribeDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4166 var headers, body;
4167 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4168 headers = {
4169 "content-type": "application/x-amz-json-1.1",
4170 "x-amz-target": "Firehose_20150804.DescribeDeliveryStream",
4171 };
4172 body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context));
4173 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4174 });
4175}); };
4176var serializeAws_json1_1ListDeliveryStreamsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4177 var headers, body;
4178 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4179 headers = {
4180 "content-type": "application/x-amz-json-1.1",
4181 "x-amz-target": "Firehose_20150804.ListDeliveryStreams",
4182 };
4183 body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context));
4184 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4185 });
4186}); };
4187var serializeAws_json1_1ListTagsForDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4188 var headers, body;
4189 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4190 headers = {
4191 "content-type": "application/x-amz-json-1.1",
4192 "x-amz-target": "Firehose_20150804.ListTagsForDeliveryStream",
4193 };
4194 body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context));
4195 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4196 });
4197}); };
4198var serializeAws_json1_1PutRecordCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4199 var headers, body;
4200 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4201 headers = {
4202 "content-type": "application/x-amz-json-1.1",
4203 "x-amz-target": "Firehose_20150804.PutRecord",
4204 };
4205 body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
4206 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4207 });
4208}); };
4209var serializeAws_json1_1PutRecordBatchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4210 var headers, body;
4211 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4212 headers = {
4213 "content-type": "application/x-amz-json-1.1",
4214 "x-amz-target": "Firehose_20150804.PutRecordBatch",
4215 };
4216 body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context));
4217 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4218 });
4219}); };
4220var serializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4221 var headers, body;
4222 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4223 headers = {
4224 "content-type": "application/x-amz-json-1.1",
4225 "x-amz-target": "Firehose_20150804.StartDeliveryStreamEncryption",
4226 };
4227 body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context));
4228 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4229 });
4230}); };
4231var serializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4232 var headers, body;
4233 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4234 headers = {
4235 "content-type": "application/x-amz-json-1.1",
4236 "x-amz-target": "Firehose_20150804.StopDeliveryStreamEncryption",
4237 };
4238 body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context));
4239 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4240 });
4241}); };
4242var serializeAws_json1_1TagDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4243 var headers, body;
4244 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4245 headers = {
4246 "content-type": "application/x-amz-json-1.1",
4247 "x-amz-target": "Firehose_20150804.TagDeliveryStream",
4248 };
4249 body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context));
4250 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4251 });
4252}); };
4253var serializeAws_json1_1UntagDeliveryStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4254 var headers, body;
4255 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4256 headers = {
4257 "content-type": "application/x-amz-json-1.1",
4258 "x-amz-target": "Firehose_20150804.UntagDeliveryStream",
4259 };
4260 body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context));
4261 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4262 });
4263}); };
4264var serializeAws_json1_1UpdateDestinationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4265 var headers, body;
4266 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4267 headers = {
4268 "content-type": "application/x-amz-json-1.1",
4269 "x-amz-target": "Firehose_20150804.UpdateDestination",
4270 };
4271 body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context));
4272 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4273 });
4274}); };
4275var deserializeAws_json1_1CreateDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4276 var data, contents, response;
4277 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4278 switch (_a.label) {
4279 case 0:
4280 if (output.statusCode >= 300) {
4281 return [2 /*return*/, deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context)];
4282 }
4283 return [4 /*yield*/, parseBody(output.body, context)];
4284 case 1:
4285 data = _a.sent();
4286 contents = {};
4287 contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context);
4288 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4289 return [2 /*return*/, Promise.resolve(response)];
4290 }
4291 });
4292}); };
4293var deserializeAws_json1_1CreateDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4294 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4295 var _g;
4296 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4297 switch (_h.label) {
4298 case 0:
4299 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4300 _g = {};
4301 return [4 /*yield*/, parseBody(output.body, context)];
4302 case 1:
4303 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4304 errorCode = "UnknownError";
4305 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4306 _b = errorCode;
4307 switch (_b) {
4308 case "InvalidArgumentException": return [3 /*break*/, 2];
4309 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4310 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4311 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4312 case "LimitExceededException": return [3 /*break*/, 6];
4313 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 6];
4314 case "ResourceInUseException": return [3 /*break*/, 8];
4315 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 8];
4316 }
4317 return [3 /*break*/, 10];
4318 case 2:
4319 _c = [{}];
4320 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4321 case 3:
4322 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4323 return [3 /*break*/, 11];
4324 case 4:
4325 _d = [{}];
4326 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4327 case 5:
4328 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4329 return [3 /*break*/, 11];
4330 case 6:
4331 _e = [{}];
4332 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4333 case 7:
4334 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4335 return [3 /*break*/, 11];
4336 case 8:
4337 _f = [{}];
4338 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4339 case 9:
4340 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4341 return [3 /*break*/, 11];
4342 case 10:
4343 parsedBody = parsedOutput.body;
4344 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4345 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4346 _h.label = 11;
4347 case 11:
4348 message = response.message || response.Message || errorCode;
4349 response.message = message;
4350 delete response.Message;
4351 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4352 }
4353 });
4354}); };
4355var deserializeAws_json1_1DeleteDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4356 var data, contents, response;
4357 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4358 switch (_a.label) {
4359 case 0:
4360 if (output.statusCode >= 300) {
4361 return [2 /*return*/, deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context)];
4362 }
4363 return [4 /*yield*/, parseBody(output.body, context)];
4364 case 1:
4365 data = _a.sent();
4366 contents = {};
4367 contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context);
4368 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4369 return [2 /*return*/, Promise.resolve(response)];
4370 }
4371 });
4372}); };
4373var deserializeAws_json1_1DeleteDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4374 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
4375 var _e;
4376 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
4377 switch (_f.label) {
4378 case 0:
4379 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4380 _e = {};
4381 return [4 /*yield*/, parseBody(output.body, context)];
4382 case 1:
4383 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
4384 errorCode = "UnknownError";
4385 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4386 _b = errorCode;
4387 switch (_b) {
4388 case "ResourceInUseException": return [3 /*break*/, 2];
4389 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 2];
4390 case "ResourceNotFoundException": return [3 /*break*/, 4];
4391 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 4];
4392 }
4393 return [3 /*break*/, 6];
4394 case 2:
4395 _c = [{}];
4396 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4397 case 3:
4398 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4399 return [3 /*break*/, 7];
4400 case 4:
4401 _d = [{}];
4402 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4403 case 5:
4404 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4405 return [3 /*break*/, 7];
4406 case 6:
4407 parsedBody = parsedOutput.body;
4408 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4409 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4410 _f.label = 7;
4411 case 7:
4412 message = response.message || response.Message || errorCode;
4413 response.message = message;
4414 delete response.Message;
4415 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4416 }
4417 });
4418}); };
4419var deserializeAws_json1_1DescribeDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4420 var data, contents, response;
4421 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4422 switch (_a.label) {
4423 case 0:
4424 if (output.statusCode >= 300) {
4425 return [2 /*return*/, deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context)];
4426 }
4427 return [4 /*yield*/, parseBody(output.body, context)];
4428 case 1:
4429 data = _a.sent();
4430 contents = {};
4431 contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context);
4432 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4433 return [2 /*return*/, Promise.resolve(response)];
4434 }
4435 });
4436}); };
4437var deserializeAws_json1_1DescribeDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4438 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
4439 var _d;
4440 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
4441 switch (_e.label) {
4442 case 0:
4443 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4444 _d = {};
4445 return [4 /*yield*/, parseBody(output.body, context)];
4446 case 1:
4447 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
4448 errorCode = "UnknownError";
4449 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4450 _b = errorCode;
4451 switch (_b) {
4452 case "ResourceNotFoundException": return [3 /*break*/, 2];
4453 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 2];
4454 }
4455 return [3 /*break*/, 4];
4456 case 2:
4457 _c = [{}];
4458 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4459 case 3:
4460 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4461 return [3 /*break*/, 5];
4462 case 4:
4463 parsedBody = parsedOutput.body;
4464 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4465 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4466 _e.label = 5;
4467 case 5:
4468 message = response.message || response.Message || errorCode;
4469 response.message = message;
4470 delete response.Message;
4471 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4472 }
4473 });
4474}); };
4475var deserializeAws_json1_1ListDeliveryStreamsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4476 var data, contents, response;
4477 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4478 switch (_a.label) {
4479 case 0:
4480 if (output.statusCode >= 300) {
4481 return [2 /*return*/, deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context)];
4482 }
4483 return [4 /*yield*/, parseBody(output.body, context)];
4484 case 1:
4485 data = _a.sent();
4486 contents = {};
4487 contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context);
4488 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4489 return [2 /*return*/, Promise.resolve(response)];
4490 }
4491 });
4492}); };
4493var deserializeAws_json1_1ListDeliveryStreamsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4494 var parsedOutput, _a, response, errorCode, parsedBody, message;
4495 var _b;
4496 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
4497 switch (_c.label) {
4498 case 0:
4499 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4500 _b = {};
4501 return [4 /*yield*/, parseBody(output.body, context)];
4502 case 1:
4503 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
4504 errorCode = "UnknownError";
4505 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4506 switch (errorCode) {
4507 default:
4508 parsedBody = parsedOutput.body;
4509 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4510 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4511 }
4512 message = response.message || response.Message || errorCode;
4513 response.message = message;
4514 delete response.Message;
4515 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4516 }
4517 });
4518}); };
4519var deserializeAws_json1_1ListTagsForDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4520 var data, contents, response;
4521 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4522 switch (_a.label) {
4523 case 0:
4524 if (output.statusCode >= 300) {
4525 return [2 /*return*/, deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context)];
4526 }
4527 return [4 /*yield*/, parseBody(output.body, context)];
4528 case 1:
4529 data = _a.sent();
4530 contents = {};
4531 contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context);
4532 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4533 return [2 /*return*/, Promise.resolve(response)];
4534 }
4535 });
4536}); };
4537var deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4538 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
4539 var _f;
4540 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
4541 switch (_g.label) {
4542 case 0:
4543 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4544 _f = {};
4545 return [4 /*yield*/, parseBody(output.body, context)];
4546 case 1:
4547 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4548 errorCode = "UnknownError";
4549 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4550 _b = errorCode;
4551 switch (_b) {
4552 case "InvalidArgumentException": return [3 /*break*/, 2];
4553 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4554 case "LimitExceededException": return [3 /*break*/, 4];
4555 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
4556 case "ResourceNotFoundException": return [3 /*break*/, 6];
4557 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6];
4558 }
4559 return [3 /*break*/, 8];
4560 case 2:
4561 _c = [{}];
4562 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4563 case 3:
4564 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4565 return [3 /*break*/, 9];
4566 case 4:
4567 _d = [{}];
4568 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4569 case 5:
4570 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4571 return [3 /*break*/, 9];
4572 case 6:
4573 _e = [{}];
4574 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4575 case 7:
4576 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4577 return [3 /*break*/, 9];
4578 case 8:
4579 parsedBody = parsedOutput.body;
4580 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4581 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4582 _g.label = 9;
4583 case 9:
4584 message = response.message || response.Message || errorCode;
4585 response.message = message;
4586 delete response.Message;
4587 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4588 }
4589 });
4590}); };
4591var deserializeAws_json1_1PutRecordCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4592 var data, contents, response;
4593 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4594 switch (_a.label) {
4595 case 0:
4596 if (output.statusCode >= 300) {
4597 return [2 /*return*/, deserializeAws_json1_1PutRecordCommandError(output, context)];
4598 }
4599 return [4 /*yield*/, parseBody(output.body, context)];
4600 case 1:
4601 data = _a.sent();
4602 contents = {};
4603 contents = deserializeAws_json1_1PutRecordOutput(data, context);
4604 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4605 return [2 /*return*/, Promise.resolve(response)];
4606 }
4607 });
4608}); };
4609var deserializeAws_json1_1PutRecordCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4610 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4611 var _g;
4612 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4613 switch (_h.label) {
4614 case 0:
4615 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4616 _g = {};
4617 return [4 /*yield*/, parseBody(output.body, context)];
4618 case 1:
4619 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4620 errorCode = "UnknownError";
4621 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4622 _b = errorCode;
4623 switch (_b) {
4624 case "InvalidArgumentException": return [3 /*break*/, 2];
4625 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4626 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4627 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4628 case "ResourceNotFoundException": return [3 /*break*/, 6];
4629 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6];
4630 case "ServiceUnavailableException": return [3 /*break*/, 8];
4631 case "com.amazonaws.firehose#ServiceUnavailableException": return [3 /*break*/, 8];
4632 }
4633 return [3 /*break*/, 10];
4634 case 2:
4635 _c = [{}];
4636 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4637 case 3:
4638 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4639 return [3 /*break*/, 11];
4640 case 4:
4641 _d = [{}];
4642 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4643 case 5:
4644 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4645 return [3 /*break*/, 11];
4646 case 6:
4647 _e = [{}];
4648 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4649 case 7:
4650 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4651 return [3 /*break*/, 11];
4652 case 8:
4653 _f = [{}];
4654 return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4655 case 9:
4656 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4657 return [3 /*break*/, 11];
4658 case 10:
4659 parsedBody = parsedOutput.body;
4660 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4661 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4662 _h.label = 11;
4663 case 11:
4664 message = response.message || response.Message || errorCode;
4665 response.message = message;
4666 delete response.Message;
4667 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4668 }
4669 });
4670}); };
4671var deserializeAws_json1_1PutRecordBatchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4672 var data, contents, response;
4673 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4674 switch (_a.label) {
4675 case 0:
4676 if (output.statusCode >= 300) {
4677 return [2 /*return*/, deserializeAws_json1_1PutRecordBatchCommandError(output, context)];
4678 }
4679 return [4 /*yield*/, parseBody(output.body, context)];
4680 case 1:
4681 data = _a.sent();
4682 contents = {};
4683 contents = deserializeAws_json1_1PutRecordBatchOutput(data, context);
4684 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4685 return [2 /*return*/, Promise.resolve(response)];
4686 }
4687 });
4688}); };
4689var deserializeAws_json1_1PutRecordBatchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4690 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4691 var _g;
4692 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4693 switch (_h.label) {
4694 case 0:
4695 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4696 _g = {};
4697 return [4 /*yield*/, parseBody(output.body, context)];
4698 case 1:
4699 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4700 errorCode = "UnknownError";
4701 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4702 _b = errorCode;
4703 switch (_b) {
4704 case "InvalidArgumentException": return [3 /*break*/, 2];
4705 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4706 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4707 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4708 case "ResourceNotFoundException": return [3 /*break*/, 6];
4709 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 6];
4710 case "ServiceUnavailableException": return [3 /*break*/, 8];
4711 case "com.amazonaws.firehose#ServiceUnavailableException": return [3 /*break*/, 8];
4712 }
4713 return [3 /*break*/, 10];
4714 case 2:
4715 _c = [{}];
4716 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4717 case 3:
4718 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4719 return [3 /*break*/, 11];
4720 case 4:
4721 _d = [{}];
4722 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4723 case 5:
4724 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4725 return [3 /*break*/, 11];
4726 case 6:
4727 _e = [{}];
4728 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4729 case 7:
4730 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4731 return [3 /*break*/, 11];
4732 case 8:
4733 _f = [{}];
4734 return [4 /*yield*/, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4735 case 9:
4736 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4737 return [3 /*break*/, 11];
4738 case 10:
4739 parsedBody = parsedOutput.body;
4740 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4741 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4742 _h.label = 11;
4743 case 11:
4744 message = response.message || response.Message || errorCode;
4745 response.message = message;
4746 delete response.Message;
4747 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4748 }
4749 });
4750}); };
4751var deserializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4752 var data, contents, response;
4753 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4754 switch (_a.label) {
4755 case 0:
4756 if (output.statusCode >= 300) {
4757 return [2 /*return*/, deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context)];
4758 }
4759 return [4 /*yield*/, parseBody(output.body, context)];
4760 case 1:
4761 data = _a.sent();
4762 contents = {};
4763 contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context);
4764 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4765 return [2 /*return*/, Promise.resolve(response)];
4766 }
4767 });
4768}); };
4769var deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4770 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
4771 var _h;
4772 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
4773 switch (_j.label) {
4774 case 0:
4775 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4776 _h = {};
4777 return [4 /*yield*/, parseBody(output.body, context)];
4778 case 1:
4779 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
4780 errorCode = "UnknownError";
4781 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4782 _b = errorCode;
4783 switch (_b) {
4784 case "InvalidArgumentException": return [3 /*break*/, 2];
4785 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4786 case "InvalidKMSResourceException": return [3 /*break*/, 4];
4787 case "com.amazonaws.firehose#InvalidKMSResourceException": return [3 /*break*/, 4];
4788 case "LimitExceededException": return [3 /*break*/, 6];
4789 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 6];
4790 case "ResourceInUseException": return [3 /*break*/, 8];
4791 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 8];
4792 case "ResourceNotFoundException": return [3 /*break*/, 10];
4793 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 10];
4794 }
4795 return [3 /*break*/, 12];
4796 case 2:
4797 _c = [{}];
4798 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4799 case 3:
4800 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4801 return [3 /*break*/, 13];
4802 case 4:
4803 _d = [{}];
4804 return [4 /*yield*/, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
4805 case 5:
4806 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4807 return [3 /*break*/, 13];
4808 case 6:
4809 _e = [{}];
4810 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4811 case 7:
4812 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4813 return [3 /*break*/, 13];
4814 case 8:
4815 _f = [{}];
4816 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4817 case 9:
4818 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4819 return [3 /*break*/, 13];
4820 case 10:
4821 _g = [{}];
4822 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4823 case 11:
4824 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4825 return [3 /*break*/, 13];
4826 case 12:
4827 parsedBody = parsedOutput.body;
4828 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4829 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4830 _j.label = 13;
4831 case 13:
4832 message = response.message || response.Message || errorCode;
4833 response.message = message;
4834 delete response.Message;
4835 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4836 }
4837 });
4838}); };
4839var deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4840 var data, contents, response;
4841 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4842 switch (_a.label) {
4843 case 0:
4844 if (output.statusCode >= 300) {
4845 return [2 /*return*/, deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context)];
4846 }
4847 return [4 /*yield*/, parseBody(output.body, context)];
4848 case 1:
4849 data = _a.sent();
4850 contents = {};
4851 contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context);
4852 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4853 return [2 /*return*/, Promise.resolve(response)];
4854 }
4855 });
4856}); };
4857var deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4858 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4859 var _g;
4860 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4861 switch (_h.label) {
4862 case 0:
4863 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4864 _g = {};
4865 return [4 /*yield*/, parseBody(output.body, context)];
4866 case 1:
4867 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4868 errorCode = "UnknownError";
4869 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4870 _b = errorCode;
4871 switch (_b) {
4872 case "InvalidArgumentException": return [3 /*break*/, 2];
4873 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4874 case "LimitExceededException": return [3 /*break*/, 4];
4875 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
4876 case "ResourceInUseException": return [3 /*break*/, 6];
4877 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
4878 case "ResourceNotFoundException": return [3 /*break*/, 8];
4879 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
4880 }
4881 return [3 /*break*/, 10];
4882 case 2:
4883 _c = [{}];
4884 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4885 case 3:
4886 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4887 return [3 /*break*/, 11];
4888 case 4:
4889 _d = [{}];
4890 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4891 case 5:
4892 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4893 return [3 /*break*/, 11];
4894 case 6:
4895 _e = [{}];
4896 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4897 case 7:
4898 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4899 return [3 /*break*/, 11];
4900 case 8:
4901 _f = [{}];
4902 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4903 case 9:
4904 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4905 return [3 /*break*/, 11];
4906 case 10:
4907 parsedBody = parsedOutput.body;
4908 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4909 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4910 _h.label = 11;
4911 case 11:
4912 message = response.message || response.Message || errorCode;
4913 response.message = message;
4914 delete response.Message;
4915 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4916 }
4917 });
4918}); };
4919var deserializeAws_json1_1TagDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4920 var data, contents, response;
4921 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
4922 switch (_a.label) {
4923 case 0:
4924 if (output.statusCode >= 300) {
4925 return [2 /*return*/, deserializeAws_json1_1TagDeliveryStreamCommandError(output, context)];
4926 }
4927 return [4 /*yield*/, parseBody(output.body, context)];
4928 case 1:
4929 data = _a.sent();
4930 contents = {};
4931 contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context);
4932 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
4933 return [2 /*return*/, Promise.resolve(response)];
4934 }
4935 });
4936}); };
4937var deserializeAws_json1_1TagDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
4938 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
4939 var _g;
4940 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
4941 switch (_h.label) {
4942 case 0:
4943 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
4944 _g = {};
4945 return [4 /*yield*/, parseBody(output.body, context)];
4946 case 1:
4947 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
4948 errorCode = "UnknownError";
4949 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4950 _b = errorCode;
4951 switch (_b) {
4952 case "InvalidArgumentException": return [3 /*break*/, 2];
4953 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
4954 case "LimitExceededException": return [3 /*break*/, 4];
4955 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
4956 case "ResourceInUseException": return [3 /*break*/, 6];
4957 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
4958 case "ResourceNotFoundException": return [3 /*break*/, 8];
4959 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
4960 }
4961 return [3 /*break*/, 10];
4962 case 2:
4963 _c = [{}];
4964 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
4965 case 3:
4966 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4967 return [3 /*break*/, 11];
4968 case 4:
4969 _d = [{}];
4970 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
4971 case 5:
4972 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4973 return [3 /*break*/, 11];
4974 case 6:
4975 _e = [{}];
4976 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
4977 case 7:
4978 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4979 return [3 /*break*/, 11];
4980 case 8:
4981 _f = [{}];
4982 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4983 case 9:
4984 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4985 return [3 /*break*/, 11];
4986 case 10:
4987 parsedBody = parsedOutput.body;
4988 errorCode = parsedBody.code || parsedBody.Code || errorCode;
4989 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4990 _h.label = 11;
4991 case 11:
4992 message = response.message || response.Message || errorCode;
4993 response.message = message;
4994 delete response.Message;
4995 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4996 }
4997 });
4998}); };
4999var deserializeAws_json1_1UntagDeliveryStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5000 var data, contents, response;
5001 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5002 switch (_a.label) {
5003 case 0:
5004 if (output.statusCode >= 300) {
5005 return [2 /*return*/, deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context)];
5006 }
5007 return [4 /*yield*/, parseBody(output.body, context)];
5008 case 1:
5009 data = _a.sent();
5010 contents = {};
5011 contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
5012 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
5013 return [2 /*return*/, Promise.resolve(response)];
5014 }
5015 });
5016}); };
5017var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5018 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
5019 var _g;
5020 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
5021 switch (_h.label) {
5022 case 0:
5023 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
5024 _g = {};
5025 return [4 /*yield*/, parseBody(output.body, context)];
5026 case 1:
5027 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
5028 errorCode = "UnknownError";
5029 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5030 _b = errorCode;
5031 switch (_b) {
5032 case "InvalidArgumentException": return [3 /*break*/, 2];
5033 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 2];
5034 case "LimitExceededException": return [3 /*break*/, 4];
5035 case "com.amazonaws.firehose#LimitExceededException": return [3 /*break*/, 4];
5036 case "ResourceInUseException": return [3 /*break*/, 6];
5037 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
5038 case "ResourceNotFoundException": return [3 /*break*/, 8];
5039 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
5040 }
5041 return [3 /*break*/, 10];
5042 case 2:
5043 _c = [{}];
5044 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
5045 case 3:
5046 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5047 return [3 /*break*/, 11];
5048 case 4:
5049 _d = [{}];
5050 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
5051 case 5:
5052 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5053 return [3 /*break*/, 11];
5054 case 6:
5055 _e = [{}];
5056 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
5057 case 7:
5058 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5059 return [3 /*break*/, 11];
5060 case 8:
5061 _f = [{}];
5062 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5063 case 9:
5064 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5065 return [3 /*break*/, 11];
5066 case 10:
5067 parsedBody = parsedOutput.body;
5068 errorCode = parsedBody.code || parsedBody.Code || errorCode;
5069 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
5070 _h.label = 11;
5071 case 11:
5072 message = response.message || response.Message || errorCode;
5073 response.message = message;
5074 delete response.Message;
5075 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
5076 }
5077 });
5078}); };
5079var deserializeAws_json1_1UpdateDestinationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5080 var data, contents, response;
5081 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5082 switch (_a.label) {
5083 case 0:
5084 if (output.statusCode >= 300) {
5085 return [2 /*return*/, deserializeAws_json1_1UpdateDestinationCommandError(output, context)];
5086 }
5087 return [4 /*yield*/, parseBody(output.body, context)];
5088 case 1:
5089 data = _a.sent();
5090 contents = {};
5091 contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
5092 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
5093 return [2 /*return*/, Promise.resolve(response)];
5094 }
5095 });
5096}); };
5097var deserializeAws_json1_1UpdateDestinationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5098 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
5099 var _g;
5100 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
5101 switch (_h.label) {
5102 case 0:
5103 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
5104 _g = {};
5105 return [4 /*yield*/, parseBody(output.body, context)];
5106 case 1:
5107 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
5108 errorCode = "UnknownError";
5109 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5110 _b = errorCode;
5111 switch (_b) {
5112 case "ConcurrentModificationException": return [3 /*break*/, 2];
5113 case "com.amazonaws.firehose#ConcurrentModificationException": return [3 /*break*/, 2];
5114 case "InvalidArgumentException": return [3 /*break*/, 4];
5115 case "com.amazonaws.firehose#InvalidArgumentException": return [3 /*break*/, 4];
5116 case "ResourceInUseException": return [3 /*break*/, 6];
5117 case "com.amazonaws.firehose#ResourceInUseException": return [3 /*break*/, 6];
5118 case "ResourceNotFoundException": return [3 /*break*/, 8];
5119 case "com.amazonaws.firehose#ResourceNotFoundException": return [3 /*break*/, 8];
5120 }
5121 return [3 /*break*/, 10];
5122 case 2:
5123 _c = [{}];
5124 return [4 /*yield*/, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
5125 case 3:
5126 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5127 return [3 /*break*/, 11];
5128 case 4:
5129 _d = [{}];
5130 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
5131 case 5:
5132 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5133 return [3 /*break*/, 11];
5134 case 6:
5135 _e = [{}];
5136 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
5137 case 7:
5138 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5139 return [3 /*break*/, 11];
5140 case 8:
5141 _f = [{}];
5142 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5143 case 9:
5144 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5145 return [3 /*break*/, 11];
5146 case 10:
5147 parsedBody = parsedOutput.body;
5148 errorCode = parsedBody.code || parsedBody.Code || errorCode;
5149 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
5150 _h.label = 11;
5151 case 11:
5152 message = response.message || response.Message || errorCode;
5153 response.message = message;
5154 delete response.Message;
5155 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
5156 }
5157 });
5158}); };
5159var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5160 var body, deserialized, contents;
5161 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5162 body = parsedOutput.body;
5163 deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
5164 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5165 return [2 /*return*/, contents];
5166 });
5167}); };
5168var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5169 var body, deserialized, contents;
5170 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5171 body = parsedOutput.body;
5172 deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
5173 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5174 return [2 /*return*/, contents];
5175 });
5176}); };
5177var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5178 var body, deserialized, contents;
5179 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5180 body = parsedOutput.body;
5181 deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
5182 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidKMSResourceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5183 return [2 /*return*/, contents];
5184 });
5185}); };
5186var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5187 var body, deserialized, contents;
5188 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5189 body = parsedOutput.body;
5190 deserialized = deserializeAws_json1_1LimitExceededException(body, context);
5191 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5192 return [2 /*return*/, contents];
5193 });
5194}); };
5195var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5196 var body, deserialized, contents;
5197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5198 body = parsedOutput.body;
5199 deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
5200 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5201 return [2 /*return*/, contents];
5202 });
5203}); };
5204var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5205 var body, deserialized, contents;
5206 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5207 body = parsedOutput.body;
5208 deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
5209 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5210 return [2 /*return*/, contents];
5211 });
5212}); };
5213var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
5214 var body, deserialized, contents;
5215 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
5216 body = parsedOutput.body;
5217 deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
5218 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5219 return [2 /*return*/, contents];
5220 });
5221}); };
5222var serializeAws_json1_1BufferingHints = function (input, context) {
5223 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined &&
5224 input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
5225};
5226var serializeAws_json1_1CloudWatchLoggingOptions = function (input, context) {
5227 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.LogGroupName !== undefined && input.LogGroupName !== null && { LogGroupName: input.LogGroupName })), (input.LogStreamName !== undefined && input.LogStreamName !== null && { LogStreamName: input.LogStreamName }));
5228};
5229var serializeAws_json1_1ColumnToJsonKeyMappings = function (input, context) {
5230 return Object.entries(input).reduce(function (acc, _a) {
5231 var _b;
5232 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
5233 if (value === null) {
5234 return acc;
5235 }
5236 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
5237 }, {});
5238};
5239var serializeAws_json1_1CopyCommand = function (input, context) {
5240 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CopyOptions !== undefined && input.CopyOptions !== null && { CopyOptions: input.CopyOptions })), (input.DataTableColumns !== undefined &&
5241 input.DataTableColumns !== null && { DataTableColumns: input.DataTableColumns })), (input.DataTableName !== undefined && input.DataTableName !== null && { DataTableName: input.DataTableName }));
5242};
5243var serializeAws_json1_1CreateDeliveryStreamInput = function (input, context) {
5244 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamEncryptionConfigurationInput !== undefined &&
5245 input.DeliveryStreamEncryptionConfigurationInput !== null && {
5246 DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
5247 })), (input.DeliveryStreamName !== undefined &&
5248 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.DeliveryStreamType !== undefined &&
5249 input.DeliveryStreamType !== null && { DeliveryStreamType: input.DeliveryStreamType })), (input.ElasticsearchDestinationConfiguration !== undefined &&
5250 input.ElasticsearchDestinationConfiguration !== null && {
5251 ElasticsearchDestinationConfiguration: serializeAws_json1_1ElasticsearchDestinationConfiguration(input.ElasticsearchDestinationConfiguration, context),
5252 })), (input.ExtendedS3DestinationConfiguration !== undefined &&
5253 input.ExtendedS3DestinationConfiguration !== null && {
5254 ExtendedS3DestinationConfiguration: serializeAws_json1_1ExtendedS3DestinationConfiguration(input.ExtendedS3DestinationConfiguration, context),
5255 })), (input.HttpEndpointDestinationConfiguration !== undefined &&
5256 input.HttpEndpointDestinationConfiguration !== null && {
5257 HttpEndpointDestinationConfiguration: serializeAws_json1_1HttpEndpointDestinationConfiguration(input.HttpEndpointDestinationConfiguration, context),
5258 })), (input.KinesisStreamSourceConfiguration !== undefined &&
5259 input.KinesisStreamSourceConfiguration !== null && {
5260 KinesisStreamSourceConfiguration: serializeAws_json1_1KinesisStreamSourceConfiguration(input.KinesisStreamSourceConfiguration, context),
5261 })), (input.RedshiftDestinationConfiguration !== undefined &&
5262 input.RedshiftDestinationConfiguration !== null && {
5263 RedshiftDestinationConfiguration: serializeAws_json1_1RedshiftDestinationConfiguration(input.RedshiftDestinationConfiguration, context),
5264 })), (input.S3DestinationConfiguration !== undefined &&
5265 input.S3DestinationConfiguration !== null && {
5266 S3DestinationConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3DestinationConfiguration, context),
5267 })), (input.SplunkDestinationConfiguration !== undefined &&
5268 input.SplunkDestinationConfiguration !== null && {
5269 SplunkDestinationConfiguration: serializeAws_json1_1SplunkDestinationConfiguration(input.SplunkDestinationConfiguration, context),
5270 })), (input.Tags !== undefined &&
5271 input.Tags !== null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }));
5272};
5273var serializeAws_json1_1DataFormatConversionConfiguration = function (input, context) {
5274 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.InputFormatConfiguration !== undefined &&
5275 input.InputFormatConfiguration !== null && {
5276 InputFormatConfiguration: serializeAws_json1_1InputFormatConfiguration(input.InputFormatConfiguration, context),
5277 })), (input.OutputFormatConfiguration !== undefined &&
5278 input.OutputFormatConfiguration !== null && {
5279 OutputFormatConfiguration: serializeAws_json1_1OutputFormatConfiguration(input.OutputFormatConfiguration, context),
5280 })), (input.SchemaConfiguration !== undefined &&
5281 input.SchemaConfiguration !== null && {
5282 SchemaConfiguration: serializeAws_json1_1SchemaConfiguration(input.SchemaConfiguration, context),
5283 }));
5284};
5285var serializeAws_json1_1DeleteDeliveryStreamInput = function (input, context) {
5286 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AllowForceDelete !== undefined &&
5287 input.AllowForceDelete !== null && { AllowForceDelete: input.AllowForceDelete })), (input.DeliveryStreamName !== undefined &&
5288 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName }));
5289};
5290var serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput = function (input, context) {
5291 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KeyARN !== undefined && input.KeyARN !== null && { KeyARN: input.KeyARN })), (input.KeyType !== undefined && input.KeyType !== null && { KeyType: input.KeyType }));
5292};
5293var serializeAws_json1_1DescribeDeliveryStreamInput = function (input, context) {
5294 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5295 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartDestinationId !== undefined &&
5296 input.ExclusiveStartDestinationId !== null && { ExclusiveStartDestinationId: input.ExclusiveStartDestinationId })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
5297};
5298var serializeAws_json1_1Deserializer = function (input, context) {
5299 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HiveJsonSerDe !== undefined &&
5300 input.HiveJsonSerDe !== null && {
5301 HiveJsonSerDe: serializeAws_json1_1HiveJsonSerDe(input.HiveJsonSerDe, context),
5302 })), (input.OpenXJsonSerDe !== undefined &&
5303 input.OpenXJsonSerDe !== null && {
5304 OpenXJsonSerDe: serializeAws_json1_1OpenXJsonSerDe(input.OpenXJsonSerDe, context),
5305 }));
5306};
5307var serializeAws_json1_1ElasticsearchBufferingHints = function (input, context) {
5308 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined &&
5309 input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
5310};
5311var serializeAws_json1_1ElasticsearchDestinationConfiguration = function (input, context) {
5312 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined &&
5313 input.BufferingHints !== null && {
5314 BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
5315 })), (input.CloudWatchLoggingOptions !== undefined &&
5316 input.CloudWatchLoggingOptions !== null && {
5317 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5318 })), (input.ClusterEndpoint !== undefined &&
5319 input.ClusterEndpoint !== null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN !== undefined && input.DomainARN !== null && { DomainARN: input.DomainARN })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.IndexRotationPeriod !== undefined &&
5320 input.IndexRotationPeriod !== null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined &&
5321 input.ProcessingConfiguration !== null && {
5322 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5323 })), (input.RetryOptions !== undefined &&
5324 input.RetryOptions !== null && {
5325 RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
5326 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5327 input.S3Configuration !== null && {
5328 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5329 })), (input.TypeName !== undefined && input.TypeName !== null && { TypeName: input.TypeName })), (input.VpcConfiguration !== undefined &&
5330 input.VpcConfiguration !== null && {
5331 VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
5332 }));
5333};
5334var serializeAws_json1_1ElasticsearchDestinationUpdate = function (input, context) {
5335 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined &&
5336 input.BufferingHints !== null && {
5337 BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
5338 })), (input.CloudWatchLoggingOptions !== undefined &&
5339 input.CloudWatchLoggingOptions !== null && {
5340 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5341 })), (input.ClusterEndpoint !== undefined &&
5342 input.ClusterEndpoint !== null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN !== undefined && input.DomainARN !== null && { DomainARN: input.DomainARN })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.IndexRotationPeriod !== undefined &&
5343 input.IndexRotationPeriod !== null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration !== undefined &&
5344 input.ProcessingConfiguration !== null && {
5345 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5346 })), (input.RetryOptions !== undefined &&
5347 input.RetryOptions !== null && {
5348 RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
5349 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3Update !== undefined &&
5350 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName !== undefined && input.TypeName !== null && { TypeName: input.TypeName }));
5351};
5352var serializeAws_json1_1ElasticsearchRetryOptions = function (input, context) {
5353 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5354 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5355};
5356var serializeAws_json1_1EncryptionConfiguration = function (input, context) {
5357 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KMSEncryptionConfig !== undefined &&
5358 input.KMSEncryptionConfig !== null && {
5359 KMSEncryptionConfig: serializeAws_json1_1KMSEncryptionConfig(input.KMSEncryptionConfig, context),
5360 })), (input.NoEncryptionConfig !== undefined &&
5361 input.NoEncryptionConfig !== null && { NoEncryptionConfig: input.NoEncryptionConfig }));
5362};
5363var serializeAws_json1_1ExtendedS3DestinationConfiguration = function (input, context) {
5364 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && input.BucketARN !== null && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined &&
5365 input.BufferingHints !== null && {
5366 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5367 })), (input.CloudWatchLoggingOptions !== undefined &&
5368 input.CloudWatchLoggingOptions !== null && {
5369 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5370 })), (input.CompressionFormat !== undefined &&
5371 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration !== undefined &&
5372 input.DataFormatConversionConfiguration !== null && {
5373 DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
5374 })), (input.EncryptionConfiguration !== undefined &&
5375 input.EncryptionConfiguration !== null && {
5376 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5377 })), (input.ErrorOutputPrefix !== undefined &&
5378 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.ProcessingConfiguration !== undefined &&
5379 input.ProcessingConfiguration !== null && {
5380 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5381 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration !== undefined &&
5382 input.S3BackupConfiguration !== null && {
5383 S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
5384 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode }));
5385};
5386var serializeAws_json1_1ExtendedS3DestinationUpdate = function (input, context) {
5387 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && input.BucketARN !== null && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined &&
5388 input.BufferingHints !== null && {
5389 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5390 })), (input.CloudWatchLoggingOptions !== undefined &&
5391 input.CloudWatchLoggingOptions !== null && {
5392 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5393 })), (input.CompressionFormat !== undefined &&
5394 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration !== undefined &&
5395 input.DataFormatConversionConfiguration !== null && {
5396 DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
5397 })), (input.EncryptionConfiguration !== undefined &&
5398 input.EncryptionConfiguration !== null && {
5399 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5400 })), (input.ErrorOutputPrefix !== undefined &&
5401 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.ProcessingConfiguration !== undefined &&
5402 input.ProcessingConfiguration !== null && {
5403 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5404 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate !== undefined &&
5405 input.S3BackupUpdate !== null && {
5406 S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
5407 }));
5408};
5409var serializeAws_json1_1HiveJsonSerDe = function (input, context) {
5410 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TimestampFormats !== undefined &&
5411 input.TimestampFormats !== null && {
5412 TimestampFormats: serializeAws_json1_1ListOfNonEmptyStrings(input.TimestampFormats, context),
5413 }));
5414};
5415var serializeAws_json1_1HttpEndpointBufferingHints = function (input, context) {
5416 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IntervalInSeconds !== undefined &&
5417 input.IntervalInSeconds !== null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs !== undefined && input.SizeInMBs !== null && { SizeInMBs: input.SizeInMBs }));
5418};
5419var serializeAws_json1_1HttpEndpointCommonAttribute = function (input, context) {
5420 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.AttributeValue !== undefined &&
5421 input.AttributeValue !== null && { AttributeValue: input.AttributeValue }));
5422};
5423var serializeAws_json1_1HttpEndpointCommonAttributesList = function (input, context) {
5424 return input
5425 .filter(function (e) { return e != null; })
5426 .map(function (entry) {
5427 if (entry === null) {
5428 return null;
5429 }
5430 return serializeAws_json1_1HttpEndpointCommonAttribute(entry, context);
5431 });
5432};
5433var serializeAws_json1_1HttpEndpointConfiguration = function (input, context) {
5434 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AccessKey !== undefined && input.AccessKey !== null && { AccessKey: input.AccessKey })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
5435};
5436var serializeAws_json1_1HttpEndpointDestinationConfiguration = function (input, context) {
5437 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined &&
5438 input.BufferingHints !== null && {
5439 BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
5440 })), (input.CloudWatchLoggingOptions !== undefined &&
5441 input.CloudWatchLoggingOptions !== null && {
5442 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5443 })), (input.EndpointConfiguration !== undefined &&
5444 input.EndpointConfiguration !== null && {
5445 EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
5446 })), (input.ProcessingConfiguration !== undefined &&
5447 input.ProcessingConfiguration !== null && {
5448 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5449 })), (input.RequestConfiguration !== undefined &&
5450 input.RequestConfiguration !== null && {
5451 RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
5452 })), (input.RetryOptions !== undefined &&
5453 input.RetryOptions !== null && {
5454 RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
5455 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5456 input.S3Configuration !== null && {
5457 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5458 }));
5459};
5460var serializeAws_json1_1HttpEndpointDestinationUpdate = function (input, context) {
5461 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BufferingHints !== undefined &&
5462 input.BufferingHints !== null && {
5463 BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
5464 })), (input.CloudWatchLoggingOptions !== undefined &&
5465 input.CloudWatchLoggingOptions !== null && {
5466 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5467 })), (input.EndpointConfiguration !== undefined &&
5468 input.EndpointConfiguration !== null && {
5469 EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
5470 })), (input.ProcessingConfiguration !== undefined &&
5471 input.ProcessingConfiguration !== null && {
5472 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5473 })), (input.RequestConfiguration !== undefined &&
5474 input.RequestConfiguration !== null && {
5475 RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
5476 })), (input.RetryOptions !== undefined &&
5477 input.RetryOptions !== null && {
5478 RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
5479 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Update !== undefined &&
5480 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }));
5481};
5482var serializeAws_json1_1HttpEndpointRequestConfiguration = function (input, context) {
5483 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CommonAttributes !== undefined &&
5484 input.CommonAttributes !== null && {
5485 CommonAttributes: serializeAws_json1_1HttpEndpointCommonAttributesList(input.CommonAttributes, context),
5486 })), (input.ContentEncoding !== undefined &&
5487 input.ContentEncoding !== null && { ContentEncoding: input.ContentEncoding }));
5488};
5489var serializeAws_json1_1HttpEndpointRetryOptions = function (input, context) {
5490 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5491 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5492};
5493var serializeAws_json1_1InputFormatConfiguration = function (input, context) {
5494 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Deserializer !== undefined &&
5495 input.Deserializer !== null && { Deserializer: serializeAws_json1_1Deserializer(input.Deserializer, context) }));
5496};
5497var serializeAws_json1_1KinesisStreamSourceConfiguration = function (input, context) {
5498 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.KinesisStreamARN !== undefined &&
5499 input.KinesisStreamARN !== null && { KinesisStreamARN: input.KinesisStreamARN })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
5500};
5501var serializeAws_json1_1KMSEncryptionConfig = function (input, context) {
5502 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AWSKMSKeyARN !== undefined && input.AWSKMSKeyARN !== null && { AWSKMSKeyARN: input.AWSKMSKeyARN }));
5503};
5504var serializeAws_json1_1ListDeliveryStreamsInput = function (input, context) {
5505 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamType !== undefined &&
5506 input.DeliveryStreamType !== null && { DeliveryStreamType: input.DeliveryStreamType })), (input.ExclusiveStartDeliveryStreamName !== undefined &&
5507 input.ExclusiveStartDeliveryStreamName !== null && {
5508 ExclusiveStartDeliveryStreamName: input.ExclusiveStartDeliveryStreamName,
5509 })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
5510};
5511var serializeAws_json1_1ListOfNonEmptyStrings = function (input, context) {
5512 return input
5513 .filter(function (e) { return e != null; })
5514 .map(function (entry) {
5515 if (entry === null) {
5516 return null;
5517 }
5518 return entry;
5519 });
5520};
5521var serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (input, context) {
5522 return input
5523 .filter(function (e) { return e != null; })
5524 .map(function (entry) {
5525 if (entry === null) {
5526 return null;
5527 }
5528 return entry;
5529 });
5530};
5531var serializeAws_json1_1ListTagsForDeliveryStreamInput = function (input, context) {
5532 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5533 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartTagKey !== undefined &&
5534 input.ExclusiveStartTagKey !== null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
5535};
5536var serializeAws_json1_1OpenXJsonSerDe = function (input, context) {
5537 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CaseInsensitive !== undefined &&
5538 input.CaseInsensitive !== null && { CaseInsensitive: input.CaseInsensitive })), (input.ColumnToJsonKeyMappings !== undefined &&
5539 input.ColumnToJsonKeyMappings !== null && {
5540 ColumnToJsonKeyMappings: serializeAws_json1_1ColumnToJsonKeyMappings(input.ColumnToJsonKeyMappings, context),
5541 })), (input.ConvertDotsInJsonKeysToUnderscores !== undefined &&
5542 input.ConvertDotsInJsonKeysToUnderscores !== null && {
5543 ConvertDotsInJsonKeysToUnderscores: input.ConvertDotsInJsonKeysToUnderscores,
5544 }));
5545};
5546var serializeAws_json1_1OrcSerDe = function (input, context) {
5547 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BlockSizeBytes !== undefined &&
5548 input.BlockSizeBytes !== null && { BlockSizeBytes: input.BlockSizeBytes })), (input.BloomFilterColumns !== undefined &&
5549 input.BloomFilterColumns !== null && {
5550 BloomFilterColumns: serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(input.BloomFilterColumns, context),
5551 })), (input.BloomFilterFalsePositiveProbability !== undefined &&
5552 input.BloomFilterFalsePositiveProbability !== null && {
5553 BloomFilterFalsePositiveProbability: input.BloomFilterFalsePositiveProbability,
5554 })), (input.Compression !== undefined && input.Compression !== null && { Compression: input.Compression })), (input.DictionaryKeyThreshold !== undefined &&
5555 input.DictionaryKeyThreshold !== null && { DictionaryKeyThreshold: input.DictionaryKeyThreshold })), (input.EnablePadding !== undefined && input.EnablePadding !== null && { EnablePadding: input.EnablePadding })), (input.FormatVersion !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion })), (input.PaddingTolerance !== undefined &&
5556 input.PaddingTolerance !== null && { PaddingTolerance: input.PaddingTolerance })), (input.RowIndexStride !== undefined &&
5557 input.RowIndexStride !== null && { RowIndexStride: input.RowIndexStride })), (input.StripeSizeBytes !== undefined &&
5558 input.StripeSizeBytes !== null && { StripeSizeBytes: input.StripeSizeBytes }));
5559};
5560var serializeAws_json1_1OutputFormatConfiguration = function (input, context) {
5561 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Serializer !== undefined &&
5562 input.Serializer !== null && { Serializer: serializeAws_json1_1Serializer(input.Serializer, context) }));
5563};
5564var serializeAws_json1_1ParquetSerDe = function (input, context) {
5565 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BlockSizeBytes !== undefined &&
5566 input.BlockSizeBytes !== null && { BlockSizeBytes: input.BlockSizeBytes })), (input.Compression !== undefined && input.Compression !== null && { Compression: input.Compression })), (input.EnableDictionaryCompression !== undefined &&
5567 input.EnableDictionaryCompression !== null && { EnableDictionaryCompression: input.EnableDictionaryCompression })), (input.MaxPaddingBytes !== undefined &&
5568 input.MaxPaddingBytes !== null && { MaxPaddingBytes: input.MaxPaddingBytes })), (input.PageSizeBytes !== undefined && input.PageSizeBytes !== null && { PageSizeBytes: input.PageSizeBytes })), (input.WriterVersion !== undefined && input.WriterVersion !== null && { WriterVersion: input.WriterVersion }));
5569};
5570var serializeAws_json1_1ProcessingConfiguration = function (input, context) {
5571 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.Processors !== undefined &&
5572 input.Processors !== null && { Processors: serializeAws_json1_1ProcessorList(input.Processors, context) }));
5573};
5574var serializeAws_json1_1Processor = function (input, context) {
5575 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Parameters !== undefined &&
5576 input.Parameters !== null && {
5577 Parameters: serializeAws_json1_1ProcessorParameterList(input.Parameters, context),
5578 })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
5579};
5580var serializeAws_json1_1ProcessorList = function (input, context) {
5581 return input
5582 .filter(function (e) { return e != null; })
5583 .map(function (entry) {
5584 if (entry === null) {
5585 return null;
5586 }
5587 return serializeAws_json1_1Processor(entry, context);
5588 });
5589};
5590var serializeAws_json1_1ProcessorParameter = function (input, context) {
5591 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ParameterName !== undefined && input.ParameterName !== null && { ParameterName: input.ParameterName })), (input.ParameterValue !== undefined &&
5592 input.ParameterValue !== null && { ParameterValue: input.ParameterValue }));
5593};
5594var serializeAws_json1_1ProcessorParameterList = function (input, context) {
5595 return input
5596 .filter(function (e) { return e != null; })
5597 .map(function (entry) {
5598 if (entry === null) {
5599 return null;
5600 }
5601 return serializeAws_json1_1ProcessorParameter(entry, context);
5602 });
5603};
5604var serializeAws_json1_1PutRecordBatchInput = function (input, context) {
5605 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5606 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Records !== undefined &&
5607 input.Records !== null && {
5608 Records: serializeAws_json1_1PutRecordBatchRequestEntryList(input.Records, context),
5609 }));
5610};
5611var serializeAws_json1_1PutRecordBatchRequestEntryList = function (input, context) {
5612 return input
5613 .filter(function (e) { return e != null; })
5614 .map(function (entry) {
5615 if (entry === null) {
5616 return null;
5617 }
5618 return serializeAws_json1_1_Record(entry, context);
5619 });
5620};
5621var serializeAws_json1_1PutRecordInput = function (input, context) {
5622 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5623 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Record !== undefined &&
5624 input.Record !== null && { Record: serializeAws_json1_1_Record(input.Record, context) }));
5625};
5626var serializeAws_json1_1_Record = function (input, context) {
5627 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) }));
5628};
5629var serializeAws_json1_1RedshiftDestinationConfiguration = function (input, context) {
5630 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined &&
5631 input.CloudWatchLoggingOptions !== null && {
5632 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5633 })), (input.ClusterJDBCURL !== undefined &&
5634 input.ClusterJDBCURL !== null && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand !== undefined &&
5635 input.CopyCommand !== null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.ProcessingConfiguration !== undefined &&
5636 input.ProcessingConfiguration !== null && {
5637 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5638 })), (input.RetryOptions !== undefined &&
5639 input.RetryOptions !== null && {
5640 RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
5641 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration !== undefined &&
5642 input.S3BackupConfiguration !== null && {
5643 S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
5644 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5645 input.S3Configuration !== null && {
5646 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5647 })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
5648};
5649var serializeAws_json1_1RedshiftDestinationUpdate = function (input, context) {
5650 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined &&
5651 input.CloudWatchLoggingOptions !== null && {
5652 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5653 })), (input.ClusterJDBCURL !== undefined &&
5654 input.ClusterJDBCURL !== null && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand !== undefined &&
5655 input.CopyCommand !== null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.ProcessingConfiguration !== undefined &&
5656 input.ProcessingConfiguration !== null && {
5657 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5658 })), (input.RetryOptions !== undefined &&
5659 input.RetryOptions !== null && {
5660 RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
5661 })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate !== undefined &&
5662 input.S3BackupUpdate !== null && {
5663 S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
5664 })), (input.S3Update !== undefined &&
5665 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
5666};
5667var serializeAws_json1_1RedshiftRetryOptions = function (input, context) {
5668 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5669 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5670};
5671var serializeAws_json1_1S3DestinationConfiguration = function (input, context) {
5672 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && input.BucketARN !== null && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined &&
5673 input.BufferingHints !== null && {
5674 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5675 })), (input.CloudWatchLoggingOptions !== undefined &&
5676 input.CloudWatchLoggingOptions !== null && {
5677 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5678 })), (input.CompressionFormat !== undefined &&
5679 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration !== undefined &&
5680 input.EncryptionConfiguration !== null && {
5681 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5682 })), (input.ErrorOutputPrefix !== undefined &&
5683 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
5684};
5685var serializeAws_json1_1S3DestinationUpdate = function (input, context) {
5686 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BucketARN !== undefined && input.BucketARN !== null && { BucketARN: input.BucketARN })), (input.BufferingHints !== undefined &&
5687 input.BufferingHints !== null && {
5688 BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
5689 })), (input.CloudWatchLoggingOptions !== undefined &&
5690 input.CloudWatchLoggingOptions !== null && {
5691 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5692 })), (input.CompressionFormat !== undefined &&
5693 input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration !== undefined &&
5694 input.EncryptionConfiguration !== null && {
5695 EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
5696 })), (input.ErrorOutputPrefix !== undefined &&
5697 input.ErrorOutputPrefix !== null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN }));
5698};
5699var serializeAws_json1_1SchemaConfiguration = function (input, context) {
5700 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId })), (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.Region !== undefined && input.Region !== null && { Region: input.Region })), (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.VersionId !== undefined && input.VersionId !== null && { VersionId: input.VersionId }));
5701};
5702var serializeAws_json1_1SecurityGroupIdList = function (input, context) {
5703 return input
5704 .filter(function (e) { return e != null; })
5705 .map(function (entry) {
5706 if (entry === null) {
5707 return null;
5708 }
5709 return entry;
5710 });
5711};
5712var serializeAws_json1_1Serializer = function (input, context) {
5713 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.OrcSerDe !== undefined &&
5714 input.OrcSerDe !== null && { OrcSerDe: serializeAws_json1_1OrcSerDe(input.OrcSerDe, context) })), (input.ParquetSerDe !== undefined &&
5715 input.ParquetSerDe !== null && { ParquetSerDe: serializeAws_json1_1ParquetSerDe(input.ParquetSerDe, context) }));
5716};
5717var serializeAws_json1_1SplunkDestinationConfiguration = function (input, context) {
5718 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined &&
5719 input.CloudWatchLoggingOptions !== null && {
5720 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5721 })), (input.HECAcknowledgmentTimeoutInSeconds !== undefined &&
5722 input.HECAcknowledgmentTimeoutInSeconds !== null && {
5723 HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
5724 })), (input.HECEndpoint !== undefined && input.HECEndpoint !== null && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType !== undefined &&
5725 input.HECEndpointType !== null && { HECEndpointType: input.HECEndpointType })), (input.HECToken !== undefined && input.HECToken !== null && { HECToken: input.HECToken })), (input.ProcessingConfiguration !== undefined &&
5726 input.ProcessingConfiguration !== null && {
5727 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5728 })), (input.RetryOptions !== undefined &&
5729 input.RetryOptions !== null && {
5730 RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
5731 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration !== undefined &&
5732 input.S3Configuration !== null && {
5733 S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
5734 }));
5735};
5736var serializeAws_json1_1SplunkDestinationUpdate = function (input, context) {
5737 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CloudWatchLoggingOptions !== undefined &&
5738 input.CloudWatchLoggingOptions !== null && {
5739 CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
5740 })), (input.HECAcknowledgmentTimeoutInSeconds !== undefined &&
5741 input.HECAcknowledgmentTimeoutInSeconds !== null && {
5742 HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
5743 })), (input.HECEndpoint !== undefined && input.HECEndpoint !== null && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType !== undefined &&
5744 input.HECEndpointType !== null && { HECEndpointType: input.HECEndpointType })), (input.HECToken !== undefined && input.HECToken !== null && { HECToken: input.HECToken })), (input.ProcessingConfiguration !== undefined &&
5745 input.ProcessingConfiguration !== null && {
5746 ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
5747 })), (input.RetryOptions !== undefined &&
5748 input.RetryOptions !== null && {
5749 RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
5750 })), (input.S3BackupMode !== undefined && input.S3BackupMode !== null && { S3BackupMode: input.S3BackupMode })), (input.S3Update !== undefined &&
5751 input.S3Update !== null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }));
5752};
5753var serializeAws_json1_1SplunkRetryOptions = function (input, context) {
5754 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DurationInSeconds !== undefined &&
5755 input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }));
5756};
5757var serializeAws_json1_1StartDeliveryStreamEncryptionInput = function (input, context) {
5758 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamEncryptionConfigurationInput !== undefined &&
5759 input.DeliveryStreamEncryptionConfigurationInput !== null && {
5760 DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
5761 })), (input.DeliveryStreamName !== undefined &&
5762 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName }));
5763};
5764var serializeAws_json1_1StopDeliveryStreamEncryptionInput = function (input, context) {
5765 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5766 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName }));
5767};
5768var serializeAws_json1_1SubnetIdList = function (input, context) {
5769 return input
5770 .filter(function (e) { return e != null; })
5771 .map(function (entry) {
5772 if (entry === null) {
5773 return null;
5774 }
5775 return entry;
5776 });
5777};
5778var serializeAws_json1_1Tag = function (input, context) {
5779 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
5780};
5781var serializeAws_json1_1TagDeliveryStreamInput = function (input, context) {
5782 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5783 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Tags !== undefined &&
5784 input.Tags !== null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }));
5785};
5786var serializeAws_json1_1TagDeliveryStreamInputTagList = function (input, context) {
5787 return input
5788 .filter(function (e) { return e != null; })
5789 .map(function (entry) {
5790 if (entry === null) {
5791 return null;
5792 }
5793 return serializeAws_json1_1Tag(entry, context);
5794 });
5795};
5796var serializeAws_json1_1TagKeyList = function (input, context) {
5797 return input
5798 .filter(function (e) { return e != null; })
5799 .map(function (entry) {
5800 if (entry === null) {
5801 return null;
5802 }
5803 return entry;
5804 });
5805};
5806var serializeAws_json1_1UntagDeliveryStreamInput = function (input, context) {
5807 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryStreamName !== undefined &&
5808 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.TagKeys !== undefined &&
5809 input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
5810};
5811var serializeAws_json1_1UpdateDestinationInput = function (input, context) {
5812 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CurrentDeliveryStreamVersionId !== undefined &&
5813 input.CurrentDeliveryStreamVersionId !== null && {
5814 CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId,
5815 })), (input.DeliveryStreamName !== undefined &&
5816 input.DeliveryStreamName !== null && { DeliveryStreamName: input.DeliveryStreamName })), (input.DestinationId !== undefined && input.DestinationId !== null && { DestinationId: input.DestinationId })), (input.ElasticsearchDestinationUpdate !== undefined &&
5817 input.ElasticsearchDestinationUpdate !== null && {
5818 ElasticsearchDestinationUpdate: serializeAws_json1_1ElasticsearchDestinationUpdate(input.ElasticsearchDestinationUpdate, context),
5819 })), (input.ExtendedS3DestinationUpdate !== undefined &&
5820 input.ExtendedS3DestinationUpdate !== null && {
5821 ExtendedS3DestinationUpdate: serializeAws_json1_1ExtendedS3DestinationUpdate(input.ExtendedS3DestinationUpdate, context),
5822 })), (input.HttpEndpointDestinationUpdate !== undefined &&
5823 input.HttpEndpointDestinationUpdate !== null && {
5824 HttpEndpointDestinationUpdate: serializeAws_json1_1HttpEndpointDestinationUpdate(input.HttpEndpointDestinationUpdate, context),
5825 })), (input.RedshiftDestinationUpdate !== undefined &&
5826 input.RedshiftDestinationUpdate !== null && {
5827 RedshiftDestinationUpdate: serializeAws_json1_1RedshiftDestinationUpdate(input.RedshiftDestinationUpdate, context),
5828 })), (input.S3DestinationUpdate !== undefined &&
5829 input.S3DestinationUpdate !== null && {
5830 S3DestinationUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3DestinationUpdate, context),
5831 })), (input.SplunkDestinationUpdate !== undefined &&
5832 input.SplunkDestinationUpdate !== null && {
5833 SplunkDestinationUpdate: serializeAws_json1_1SplunkDestinationUpdate(input.SplunkDestinationUpdate, context),
5834 }));
5835};
5836var serializeAws_json1_1VpcConfiguration = function (input, context) {
5837 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RoleARN !== undefined && input.RoleARN !== null && { RoleARN: input.RoleARN })), (input.SecurityGroupIds !== undefined &&
5838 input.SecurityGroupIds !== null && {
5839 SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
5840 })), (input.SubnetIds !== undefined &&
5841 input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }));
5842};
5843var deserializeAws_json1_1BufferingHints = function (output, context) {
5844 return {
5845 IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null
5846 ? output.IntervalInSeconds
5847 : undefined,
5848 SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined,
5849 };
5850};
5851var deserializeAws_json1_1CloudWatchLoggingOptions = function (output, context) {
5852 return {
5853 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
5854 LogGroupName: output.LogGroupName !== undefined && output.LogGroupName !== null ? output.LogGroupName : undefined,
5855 LogStreamName: output.LogStreamName !== undefined && output.LogStreamName !== null ? output.LogStreamName : undefined,
5856 };
5857};
5858var deserializeAws_json1_1ColumnToJsonKeyMappings = function (output, context) {
5859 return Object.entries(output).reduce(function (acc, _a) {
5860 var _b;
5861 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
5862 if (value === null) {
5863 return acc;
5864 }
5865 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
5866 }, {});
5867};
5868var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
5869 return {
5870 message: output.message !== undefined && output.message !== null ? output.message : undefined,
5871 };
5872};
5873var deserializeAws_json1_1CopyCommand = function (output, context) {
5874 return {
5875 CopyOptions: output.CopyOptions !== undefined && output.CopyOptions !== null ? output.CopyOptions : undefined,
5876 DataTableColumns: output.DataTableColumns !== undefined && output.DataTableColumns !== null ? output.DataTableColumns : undefined,
5877 DataTableName: output.DataTableName !== undefined && output.DataTableName !== null ? output.DataTableName : undefined,
5878 };
5879};
5880var deserializeAws_json1_1CreateDeliveryStreamOutput = function (output, context) {
5881 return {
5882 DeliveryStreamARN: output.DeliveryStreamARN !== undefined && output.DeliveryStreamARN !== null
5883 ? output.DeliveryStreamARN
5884 : undefined,
5885 };
5886};
5887var deserializeAws_json1_1DataFormatConversionConfiguration = function (output, context) {
5888 return {
5889 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
5890 InputFormatConfiguration: output.InputFormatConfiguration !== undefined && output.InputFormatConfiguration !== null
5891 ? deserializeAws_json1_1InputFormatConfiguration(output.InputFormatConfiguration, context)
5892 : undefined,
5893 OutputFormatConfiguration: output.OutputFormatConfiguration !== undefined && output.OutputFormatConfiguration !== null
5894 ? deserializeAws_json1_1OutputFormatConfiguration(output.OutputFormatConfiguration, context)
5895 : undefined,
5896 SchemaConfiguration: output.SchemaConfiguration !== undefined && output.SchemaConfiguration !== null
5897 ? deserializeAws_json1_1SchemaConfiguration(output.SchemaConfiguration, context)
5898 : undefined,
5899 };
5900};
5901var deserializeAws_json1_1DeleteDeliveryStreamOutput = function (output, context) {
5902 return {};
5903};
5904var deserializeAws_json1_1DeliveryStreamDescription = function (output, context) {
5905 return {
5906 CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
5907 ? new Date(Math.round(output.CreateTimestamp * 1000))
5908 : undefined,
5909 DeliveryStreamARN: output.DeliveryStreamARN !== undefined && output.DeliveryStreamARN !== null
5910 ? output.DeliveryStreamARN
5911 : undefined,
5912 DeliveryStreamEncryptionConfiguration: output.DeliveryStreamEncryptionConfiguration !== undefined &&
5913 output.DeliveryStreamEncryptionConfiguration !== null
5914 ? deserializeAws_json1_1DeliveryStreamEncryptionConfiguration(output.DeliveryStreamEncryptionConfiguration, context)
5915 : undefined,
5916 DeliveryStreamName: output.DeliveryStreamName !== undefined && output.DeliveryStreamName !== null
5917 ? output.DeliveryStreamName
5918 : undefined,
5919 DeliveryStreamStatus: output.DeliveryStreamStatus !== undefined && output.DeliveryStreamStatus !== null
5920 ? output.DeliveryStreamStatus
5921 : undefined,
5922 DeliveryStreamType: output.DeliveryStreamType !== undefined && output.DeliveryStreamType !== null
5923 ? output.DeliveryStreamType
5924 : undefined,
5925 Destinations: output.Destinations !== undefined && output.Destinations !== null
5926 ? deserializeAws_json1_1DestinationDescriptionList(output.Destinations, context)
5927 : undefined,
5928 FailureDescription: output.FailureDescription !== undefined && output.FailureDescription !== null
5929 ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context)
5930 : undefined,
5931 HasMoreDestinations: output.HasMoreDestinations !== undefined && output.HasMoreDestinations !== null
5932 ? output.HasMoreDestinations
5933 : undefined,
5934 LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
5935 ? new Date(Math.round(output.LastUpdateTimestamp * 1000))
5936 : undefined,
5937 Source: output.Source !== undefined && output.Source !== null
5938 ? deserializeAws_json1_1SourceDescription(output.Source, context)
5939 : undefined,
5940 VersionId: output.VersionId !== undefined && output.VersionId !== null ? output.VersionId : undefined,
5941 };
5942};
5943var deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = function (output, context) {
5944 return {
5945 FailureDescription: output.FailureDescription !== undefined && output.FailureDescription !== null
5946 ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context)
5947 : undefined,
5948 KeyARN: output.KeyARN !== undefined && output.KeyARN !== null ? output.KeyARN : undefined,
5949 KeyType: output.KeyType !== undefined && output.KeyType !== null ? output.KeyType : undefined,
5950 Status: output.Status !== undefined && output.Status !== null ? output.Status : undefined,
5951 };
5952};
5953var deserializeAws_json1_1DeliveryStreamNameList = function (output, context) {
5954 return (output || [])
5955 .filter(function (e) { return e != null; })
5956 .map(function (entry) {
5957 if (entry === null) {
5958 return null;
5959 }
5960 return entry;
5961 });
5962};
5963var deserializeAws_json1_1DescribeDeliveryStreamOutput = function (output, context) {
5964 return {
5965 DeliveryStreamDescription: output.DeliveryStreamDescription !== undefined && output.DeliveryStreamDescription !== null
5966 ? deserializeAws_json1_1DeliveryStreamDescription(output.DeliveryStreamDescription, context)
5967 : undefined,
5968 };
5969};
5970var deserializeAws_json1_1Deserializer = function (output, context) {
5971 return {
5972 HiveJsonSerDe: output.HiveJsonSerDe !== undefined && output.HiveJsonSerDe !== null
5973 ? deserializeAws_json1_1HiveJsonSerDe(output.HiveJsonSerDe, context)
5974 : undefined,
5975 OpenXJsonSerDe: output.OpenXJsonSerDe !== undefined && output.OpenXJsonSerDe !== null
5976 ? deserializeAws_json1_1OpenXJsonSerDe(output.OpenXJsonSerDe, context)
5977 : undefined,
5978 };
5979};
5980var deserializeAws_json1_1DestinationDescription = function (output, context) {
5981 return {
5982 DestinationId: output.DestinationId !== undefined && output.DestinationId !== null ? output.DestinationId : undefined,
5983 ElasticsearchDestinationDescription: output.ElasticsearchDestinationDescription !== undefined && output.ElasticsearchDestinationDescription !== null
5984 ? deserializeAws_json1_1ElasticsearchDestinationDescription(output.ElasticsearchDestinationDescription, context)
5985 : undefined,
5986 ExtendedS3DestinationDescription: output.ExtendedS3DestinationDescription !== undefined && output.ExtendedS3DestinationDescription !== null
5987 ? deserializeAws_json1_1ExtendedS3DestinationDescription(output.ExtendedS3DestinationDescription, context)
5988 : undefined,
5989 HttpEndpointDestinationDescription: output.HttpEndpointDestinationDescription !== undefined && output.HttpEndpointDestinationDescription !== null
5990 ? deserializeAws_json1_1HttpEndpointDestinationDescription(output.HttpEndpointDestinationDescription, context)
5991 : undefined,
5992 RedshiftDestinationDescription: output.RedshiftDestinationDescription !== undefined && output.RedshiftDestinationDescription !== null
5993 ? deserializeAws_json1_1RedshiftDestinationDescription(output.RedshiftDestinationDescription, context)
5994 : undefined,
5995 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
5996 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
5997 : undefined,
5998 SplunkDestinationDescription: output.SplunkDestinationDescription !== undefined && output.SplunkDestinationDescription !== null
5999 ? deserializeAws_json1_1SplunkDestinationDescription(output.SplunkDestinationDescription, context)
6000 : undefined,
6001 };
6002};
6003var deserializeAws_json1_1DestinationDescriptionList = function (output, context) {
6004 return (output || [])
6005 .filter(function (e) { return e != null; })
6006 .map(function (entry) {
6007 if (entry === null) {
6008 return null;
6009 }
6010 return deserializeAws_json1_1DestinationDescription(entry, context);
6011 });
6012};
6013var deserializeAws_json1_1ElasticsearchBufferingHints = function (output, context) {
6014 return {
6015 IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null
6016 ? output.IntervalInSeconds
6017 : undefined,
6018 SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined,
6019 };
6020};
6021var deserializeAws_json1_1ElasticsearchDestinationDescription = function (output, context) {
6022 return {
6023 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6024 ? deserializeAws_json1_1ElasticsearchBufferingHints(output.BufferingHints, context)
6025 : undefined,
6026 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6027 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6028 : undefined,
6029 ClusterEndpoint: output.ClusterEndpoint !== undefined && output.ClusterEndpoint !== null ? output.ClusterEndpoint : undefined,
6030 DomainARN: output.DomainARN !== undefined && output.DomainARN !== null ? output.DomainARN : undefined,
6031 IndexName: output.IndexName !== undefined && output.IndexName !== null ? output.IndexName : undefined,
6032 IndexRotationPeriod: output.IndexRotationPeriod !== undefined && output.IndexRotationPeriod !== null
6033 ? output.IndexRotationPeriod
6034 : undefined,
6035 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6036 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6037 : undefined,
6038 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6039 ? deserializeAws_json1_1ElasticsearchRetryOptions(output.RetryOptions, context)
6040 : undefined,
6041 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6042 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6043 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6044 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6045 : undefined,
6046 TypeName: output.TypeName !== undefined && output.TypeName !== null ? output.TypeName : undefined,
6047 VpcConfigurationDescription: output.VpcConfigurationDescription !== undefined && output.VpcConfigurationDescription !== null
6048 ? deserializeAws_json1_1VpcConfigurationDescription(output.VpcConfigurationDescription, context)
6049 : undefined,
6050 };
6051};
6052var deserializeAws_json1_1ElasticsearchRetryOptions = function (output, context) {
6053 return {
6054 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6055 ? output.DurationInSeconds
6056 : undefined,
6057 };
6058};
6059var deserializeAws_json1_1EncryptionConfiguration = function (output, context) {
6060 return {
6061 KMSEncryptionConfig: output.KMSEncryptionConfig !== undefined && output.KMSEncryptionConfig !== null
6062 ? deserializeAws_json1_1KMSEncryptionConfig(output.KMSEncryptionConfig, context)
6063 : undefined,
6064 NoEncryptionConfig: output.NoEncryptionConfig !== undefined && output.NoEncryptionConfig !== null
6065 ? output.NoEncryptionConfig
6066 : undefined,
6067 };
6068};
6069var deserializeAws_json1_1ExtendedS3DestinationDescription = function (output, context) {
6070 return {
6071 BucketARN: output.BucketARN !== undefined && output.BucketARN !== null ? output.BucketARN : undefined,
6072 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6073 ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context)
6074 : undefined,
6075 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6076 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6077 : undefined,
6078 CompressionFormat: output.CompressionFormat !== undefined && output.CompressionFormat !== null
6079 ? output.CompressionFormat
6080 : undefined,
6081 DataFormatConversionConfiguration: output.DataFormatConversionConfiguration !== undefined && output.DataFormatConversionConfiguration !== null
6082 ? deserializeAws_json1_1DataFormatConversionConfiguration(output.DataFormatConversionConfiguration, context)
6083 : undefined,
6084 EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
6085 ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
6086 : undefined,
6087 ErrorOutputPrefix: output.ErrorOutputPrefix !== undefined && output.ErrorOutputPrefix !== null
6088 ? output.ErrorOutputPrefix
6089 : undefined,
6090 Prefix: output.Prefix !== undefined && output.Prefix !== null ? output.Prefix : undefined,
6091 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6092 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6093 : undefined,
6094 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6095 S3BackupDescription: output.S3BackupDescription !== undefined && output.S3BackupDescription !== null
6096 ? deserializeAws_json1_1S3DestinationDescription(output.S3BackupDescription, context)
6097 : undefined,
6098 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6099 };
6100};
6101var deserializeAws_json1_1FailureDescription = function (output, context) {
6102 return {
6103 Details: output.Details !== undefined && output.Details !== null ? output.Details : undefined,
6104 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
6105 };
6106};
6107var deserializeAws_json1_1HiveJsonSerDe = function (output, context) {
6108 return {
6109 TimestampFormats: output.TimestampFormats !== undefined && output.TimestampFormats !== null
6110 ? deserializeAws_json1_1ListOfNonEmptyStrings(output.TimestampFormats, context)
6111 : undefined,
6112 };
6113};
6114var deserializeAws_json1_1HttpEndpointBufferingHints = function (output, context) {
6115 return {
6116 IntervalInSeconds: output.IntervalInSeconds !== undefined && output.IntervalInSeconds !== null
6117 ? output.IntervalInSeconds
6118 : undefined,
6119 SizeInMBs: output.SizeInMBs !== undefined && output.SizeInMBs !== null ? output.SizeInMBs : undefined,
6120 };
6121};
6122var deserializeAws_json1_1HttpEndpointCommonAttribute = function (output, context) {
6123 return {
6124 AttributeName: output.AttributeName !== undefined && output.AttributeName !== null ? output.AttributeName : undefined,
6125 AttributeValue: output.AttributeValue !== undefined && output.AttributeValue !== null ? output.AttributeValue : undefined,
6126 };
6127};
6128var deserializeAws_json1_1HttpEndpointCommonAttributesList = function (output, context) {
6129 return (output || [])
6130 .filter(function (e) { return e != null; })
6131 .map(function (entry) {
6132 if (entry === null) {
6133 return null;
6134 }
6135 return deserializeAws_json1_1HttpEndpointCommonAttribute(entry, context);
6136 });
6137};
6138var deserializeAws_json1_1HttpEndpointDescription = function (output, context) {
6139 return {
6140 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
6141 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
6142 };
6143};
6144var deserializeAws_json1_1HttpEndpointDestinationDescription = function (output, context) {
6145 return {
6146 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6147 ? deserializeAws_json1_1HttpEndpointBufferingHints(output.BufferingHints, context)
6148 : undefined,
6149 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6150 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6151 : undefined,
6152 EndpointConfiguration: output.EndpointConfiguration !== undefined && output.EndpointConfiguration !== null
6153 ? deserializeAws_json1_1HttpEndpointDescription(output.EndpointConfiguration, context)
6154 : undefined,
6155 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6156 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6157 : undefined,
6158 RequestConfiguration: output.RequestConfiguration !== undefined && output.RequestConfiguration !== null
6159 ? deserializeAws_json1_1HttpEndpointRequestConfiguration(output.RequestConfiguration, context)
6160 : undefined,
6161 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6162 ? deserializeAws_json1_1HttpEndpointRetryOptions(output.RetryOptions, context)
6163 : undefined,
6164 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6165 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6166 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6167 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6168 : undefined,
6169 };
6170};
6171var deserializeAws_json1_1HttpEndpointRequestConfiguration = function (output, context) {
6172 return {
6173 CommonAttributes: output.CommonAttributes !== undefined && output.CommonAttributes !== null
6174 ? deserializeAws_json1_1HttpEndpointCommonAttributesList(output.CommonAttributes, context)
6175 : undefined,
6176 ContentEncoding: output.ContentEncoding !== undefined && output.ContentEncoding !== null ? output.ContentEncoding : undefined,
6177 };
6178};
6179var deserializeAws_json1_1HttpEndpointRetryOptions = function (output, context) {
6180 return {
6181 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6182 ? output.DurationInSeconds
6183 : undefined,
6184 };
6185};
6186var deserializeAws_json1_1InputFormatConfiguration = function (output, context) {
6187 return {
6188 Deserializer: output.Deserializer !== undefined && output.Deserializer !== null
6189 ? deserializeAws_json1_1Deserializer(output.Deserializer, context)
6190 : undefined,
6191 };
6192};
6193var deserializeAws_json1_1InvalidArgumentException = function (output, context) {
6194 return {
6195 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6196 };
6197};
6198var deserializeAws_json1_1InvalidKMSResourceException = function (output, context) {
6199 return {
6200 code: output.code !== undefined && output.code !== null ? output.code : undefined,
6201 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6202 };
6203};
6204var deserializeAws_json1_1KinesisStreamSourceDescription = function (output, context) {
6205 return {
6206 DeliveryStartTimestamp: output.DeliveryStartTimestamp !== undefined && output.DeliveryStartTimestamp !== null
6207 ? new Date(Math.round(output.DeliveryStartTimestamp * 1000))
6208 : undefined,
6209 KinesisStreamARN: output.KinesisStreamARN !== undefined && output.KinesisStreamARN !== null ? output.KinesisStreamARN : undefined,
6210 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6211 };
6212};
6213var deserializeAws_json1_1KMSEncryptionConfig = function (output, context) {
6214 return {
6215 AWSKMSKeyARN: output.AWSKMSKeyARN !== undefined && output.AWSKMSKeyARN !== null ? output.AWSKMSKeyARN : undefined,
6216 };
6217};
6218var deserializeAws_json1_1LimitExceededException = function (output, context) {
6219 return {
6220 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6221 };
6222};
6223var deserializeAws_json1_1ListDeliveryStreamsOutput = function (output, context) {
6224 return {
6225 DeliveryStreamNames: output.DeliveryStreamNames !== undefined && output.DeliveryStreamNames !== null
6226 ? deserializeAws_json1_1DeliveryStreamNameList(output.DeliveryStreamNames, context)
6227 : undefined,
6228 HasMoreDeliveryStreams: output.HasMoreDeliveryStreams !== undefined && output.HasMoreDeliveryStreams !== null
6229 ? output.HasMoreDeliveryStreams
6230 : undefined,
6231 };
6232};
6233var deserializeAws_json1_1ListOfNonEmptyStrings = function (output, context) {
6234 return (output || [])
6235 .filter(function (e) { return e != null; })
6236 .map(function (entry) {
6237 if (entry === null) {
6238 return null;
6239 }
6240 return entry;
6241 });
6242};
6243var deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (output, context) {
6244 return (output || [])
6245 .filter(function (e) { return e != null; })
6246 .map(function (entry) {
6247 if (entry === null) {
6248 return null;
6249 }
6250 return entry;
6251 });
6252};
6253var deserializeAws_json1_1ListTagsForDeliveryStreamOutput = function (output, context) {
6254 return {
6255 HasMoreTags: output.HasMoreTags !== undefined && output.HasMoreTags !== null ? output.HasMoreTags : undefined,
6256 Tags: output.Tags !== undefined && output.Tags !== null
6257 ? deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList(output.Tags, context)
6258 : undefined,
6259 };
6260};
6261var deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = function (output, context) {
6262 return (output || [])
6263 .filter(function (e) { return e != null; })
6264 .map(function (entry) {
6265 if (entry === null) {
6266 return null;
6267 }
6268 return deserializeAws_json1_1Tag(entry, context);
6269 });
6270};
6271var deserializeAws_json1_1OpenXJsonSerDe = function (output, context) {
6272 return {
6273 CaseInsensitive: output.CaseInsensitive !== undefined && output.CaseInsensitive !== null ? output.CaseInsensitive : undefined,
6274 ColumnToJsonKeyMappings: output.ColumnToJsonKeyMappings !== undefined && output.ColumnToJsonKeyMappings !== null
6275 ? deserializeAws_json1_1ColumnToJsonKeyMappings(output.ColumnToJsonKeyMappings, context)
6276 : undefined,
6277 ConvertDotsInJsonKeysToUnderscores: output.ConvertDotsInJsonKeysToUnderscores !== undefined && output.ConvertDotsInJsonKeysToUnderscores !== null
6278 ? output.ConvertDotsInJsonKeysToUnderscores
6279 : undefined,
6280 };
6281};
6282var deserializeAws_json1_1OrcSerDe = function (output, context) {
6283 return {
6284 BlockSizeBytes: output.BlockSizeBytes !== undefined && output.BlockSizeBytes !== null ? output.BlockSizeBytes : undefined,
6285 BloomFilterColumns: output.BloomFilterColumns !== undefined && output.BloomFilterColumns !== null
6286 ? deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(output.BloomFilterColumns, context)
6287 : undefined,
6288 BloomFilterFalsePositiveProbability: output.BloomFilterFalsePositiveProbability !== undefined && output.BloomFilterFalsePositiveProbability !== null
6289 ? output.BloomFilterFalsePositiveProbability
6290 : undefined,
6291 Compression: output.Compression !== undefined && output.Compression !== null ? output.Compression : undefined,
6292 DictionaryKeyThreshold: output.DictionaryKeyThreshold !== undefined && output.DictionaryKeyThreshold !== null
6293 ? output.DictionaryKeyThreshold
6294 : undefined,
6295 EnablePadding: output.EnablePadding !== undefined && output.EnablePadding !== null ? output.EnablePadding : undefined,
6296 FormatVersion: output.FormatVersion !== undefined && output.FormatVersion !== null ? output.FormatVersion : undefined,
6297 PaddingTolerance: output.PaddingTolerance !== undefined && output.PaddingTolerance !== null ? output.PaddingTolerance : undefined,
6298 RowIndexStride: output.RowIndexStride !== undefined && output.RowIndexStride !== null ? output.RowIndexStride : undefined,
6299 StripeSizeBytes: output.StripeSizeBytes !== undefined && output.StripeSizeBytes !== null ? output.StripeSizeBytes : undefined,
6300 };
6301};
6302var deserializeAws_json1_1OutputFormatConfiguration = function (output, context) {
6303 return {
6304 Serializer: output.Serializer !== undefined && output.Serializer !== null
6305 ? deserializeAws_json1_1Serializer(output.Serializer, context)
6306 : undefined,
6307 };
6308};
6309var deserializeAws_json1_1ParquetSerDe = function (output, context) {
6310 return {
6311 BlockSizeBytes: output.BlockSizeBytes !== undefined && output.BlockSizeBytes !== null ? output.BlockSizeBytes : undefined,
6312 Compression: output.Compression !== undefined && output.Compression !== null ? output.Compression : undefined,
6313 EnableDictionaryCompression: output.EnableDictionaryCompression !== undefined && output.EnableDictionaryCompression !== null
6314 ? output.EnableDictionaryCompression
6315 : undefined,
6316 MaxPaddingBytes: output.MaxPaddingBytes !== undefined && output.MaxPaddingBytes !== null ? output.MaxPaddingBytes : undefined,
6317 PageSizeBytes: output.PageSizeBytes !== undefined && output.PageSizeBytes !== null ? output.PageSizeBytes : undefined,
6318 WriterVersion: output.WriterVersion !== undefined && output.WriterVersion !== null ? output.WriterVersion : undefined,
6319 };
6320};
6321var deserializeAws_json1_1ProcessingConfiguration = function (output, context) {
6322 return {
6323 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
6324 Processors: output.Processors !== undefined && output.Processors !== null
6325 ? deserializeAws_json1_1ProcessorList(output.Processors, context)
6326 : undefined,
6327 };
6328};
6329var deserializeAws_json1_1Processor = function (output, context) {
6330 return {
6331 Parameters: output.Parameters !== undefined && output.Parameters !== null
6332 ? deserializeAws_json1_1ProcessorParameterList(output.Parameters, context)
6333 : undefined,
6334 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
6335 };
6336};
6337var deserializeAws_json1_1ProcessorList = function (output, context) {
6338 return (output || [])
6339 .filter(function (e) { return e != null; })
6340 .map(function (entry) {
6341 if (entry === null) {
6342 return null;
6343 }
6344 return deserializeAws_json1_1Processor(entry, context);
6345 });
6346};
6347var deserializeAws_json1_1ProcessorParameter = function (output, context) {
6348 return {
6349 ParameterName: output.ParameterName !== undefined && output.ParameterName !== null ? output.ParameterName : undefined,
6350 ParameterValue: output.ParameterValue !== undefined && output.ParameterValue !== null ? output.ParameterValue : undefined,
6351 };
6352};
6353var deserializeAws_json1_1ProcessorParameterList = function (output, context) {
6354 return (output || [])
6355 .filter(function (e) { return e != null; })
6356 .map(function (entry) {
6357 if (entry === null) {
6358 return null;
6359 }
6360 return deserializeAws_json1_1ProcessorParameter(entry, context);
6361 });
6362};
6363var deserializeAws_json1_1PutRecordBatchOutput = function (output, context) {
6364 return {
6365 Encrypted: output.Encrypted !== undefined && output.Encrypted !== null ? output.Encrypted : undefined,
6366 FailedPutCount: output.FailedPutCount !== undefined && output.FailedPutCount !== null ? output.FailedPutCount : undefined,
6367 RequestResponses: output.RequestResponses !== undefined && output.RequestResponses !== null
6368 ? deserializeAws_json1_1PutRecordBatchResponseEntryList(output.RequestResponses, context)
6369 : undefined,
6370 };
6371};
6372var deserializeAws_json1_1PutRecordBatchResponseEntry = function (output, context) {
6373 return {
6374 ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined,
6375 ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null ? output.ErrorMessage : undefined,
6376 RecordId: output.RecordId !== undefined && output.RecordId !== null ? output.RecordId : undefined,
6377 };
6378};
6379var deserializeAws_json1_1PutRecordBatchResponseEntryList = function (output, context) {
6380 return (output || [])
6381 .filter(function (e) { return e != null; })
6382 .map(function (entry) {
6383 if (entry === null) {
6384 return null;
6385 }
6386 return deserializeAws_json1_1PutRecordBatchResponseEntry(entry, context);
6387 });
6388};
6389var deserializeAws_json1_1PutRecordOutput = function (output, context) {
6390 return {
6391 Encrypted: output.Encrypted !== undefined && output.Encrypted !== null ? output.Encrypted : undefined,
6392 RecordId: output.RecordId !== undefined && output.RecordId !== null ? output.RecordId : undefined,
6393 };
6394};
6395var deserializeAws_json1_1RedshiftDestinationDescription = function (output, context) {
6396 return {
6397 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6398 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6399 : undefined,
6400 ClusterJDBCURL: output.ClusterJDBCURL !== undefined && output.ClusterJDBCURL !== null ? output.ClusterJDBCURL : undefined,
6401 CopyCommand: output.CopyCommand !== undefined && output.CopyCommand !== null
6402 ? deserializeAws_json1_1CopyCommand(output.CopyCommand, context)
6403 : undefined,
6404 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6405 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6406 : undefined,
6407 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6408 ? deserializeAws_json1_1RedshiftRetryOptions(output.RetryOptions, context)
6409 : undefined,
6410 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6411 S3BackupDescription: output.S3BackupDescription !== undefined && output.S3BackupDescription !== null
6412 ? deserializeAws_json1_1S3DestinationDescription(output.S3BackupDescription, context)
6413 : undefined,
6414 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6415 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6416 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6417 : undefined,
6418 Username: output.Username !== undefined && output.Username !== null ? output.Username : undefined,
6419 };
6420};
6421var deserializeAws_json1_1RedshiftRetryOptions = function (output, context) {
6422 return {
6423 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6424 ? output.DurationInSeconds
6425 : undefined,
6426 };
6427};
6428var deserializeAws_json1_1ResourceInUseException = function (output, context) {
6429 return {
6430 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6431 };
6432};
6433var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
6434 return {
6435 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6436 };
6437};
6438var deserializeAws_json1_1S3DestinationDescription = function (output, context) {
6439 return {
6440 BucketARN: output.BucketARN !== undefined && output.BucketARN !== null ? output.BucketARN : undefined,
6441 BufferingHints: output.BufferingHints !== undefined && output.BufferingHints !== null
6442 ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context)
6443 : undefined,
6444 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6445 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6446 : undefined,
6447 CompressionFormat: output.CompressionFormat !== undefined && output.CompressionFormat !== null
6448 ? output.CompressionFormat
6449 : undefined,
6450 EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
6451 ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
6452 : undefined,
6453 ErrorOutputPrefix: output.ErrorOutputPrefix !== undefined && output.ErrorOutputPrefix !== null
6454 ? output.ErrorOutputPrefix
6455 : undefined,
6456 Prefix: output.Prefix !== undefined && output.Prefix !== null ? output.Prefix : undefined,
6457 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6458 };
6459};
6460var deserializeAws_json1_1SchemaConfiguration = function (output, context) {
6461 return {
6462 CatalogId: output.CatalogId !== undefined && output.CatalogId !== null ? output.CatalogId : undefined,
6463 DatabaseName: output.DatabaseName !== undefined && output.DatabaseName !== null ? output.DatabaseName : undefined,
6464 Region: output.Region !== undefined && output.Region !== null ? output.Region : undefined,
6465 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6466 TableName: output.TableName !== undefined && output.TableName !== null ? output.TableName : undefined,
6467 VersionId: output.VersionId !== undefined && output.VersionId !== null ? output.VersionId : undefined,
6468 };
6469};
6470var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
6471 return (output || [])
6472 .filter(function (e) { return e != null; })
6473 .map(function (entry) {
6474 if (entry === null) {
6475 return null;
6476 }
6477 return entry;
6478 });
6479};
6480var deserializeAws_json1_1Serializer = function (output, context) {
6481 return {
6482 OrcSerDe: output.OrcSerDe !== undefined && output.OrcSerDe !== null
6483 ? deserializeAws_json1_1OrcSerDe(output.OrcSerDe, context)
6484 : undefined,
6485 ParquetSerDe: output.ParquetSerDe !== undefined && output.ParquetSerDe !== null
6486 ? deserializeAws_json1_1ParquetSerDe(output.ParquetSerDe, context)
6487 : undefined,
6488 };
6489};
6490var deserializeAws_json1_1ServiceUnavailableException = function (output, context) {
6491 return {
6492 message: output.message !== undefined && output.message !== null ? output.message : undefined,
6493 };
6494};
6495var deserializeAws_json1_1SourceDescription = function (output, context) {
6496 return {
6497 KinesisStreamSourceDescription: output.KinesisStreamSourceDescription !== undefined && output.KinesisStreamSourceDescription !== null
6498 ? deserializeAws_json1_1KinesisStreamSourceDescription(output.KinesisStreamSourceDescription, context)
6499 : undefined,
6500 };
6501};
6502var deserializeAws_json1_1SplunkDestinationDescription = function (output, context) {
6503 return {
6504 CloudWatchLoggingOptions: output.CloudWatchLoggingOptions !== undefined && output.CloudWatchLoggingOptions !== null
6505 ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
6506 : undefined,
6507 HECAcknowledgmentTimeoutInSeconds: output.HECAcknowledgmentTimeoutInSeconds !== undefined && output.HECAcknowledgmentTimeoutInSeconds !== null
6508 ? output.HECAcknowledgmentTimeoutInSeconds
6509 : undefined,
6510 HECEndpoint: output.HECEndpoint !== undefined && output.HECEndpoint !== null ? output.HECEndpoint : undefined,
6511 HECEndpointType: output.HECEndpointType !== undefined && output.HECEndpointType !== null ? output.HECEndpointType : undefined,
6512 HECToken: output.HECToken !== undefined && output.HECToken !== null ? output.HECToken : undefined,
6513 ProcessingConfiguration: output.ProcessingConfiguration !== undefined && output.ProcessingConfiguration !== null
6514 ? deserializeAws_json1_1ProcessingConfiguration(output.ProcessingConfiguration, context)
6515 : undefined,
6516 RetryOptions: output.RetryOptions !== undefined && output.RetryOptions !== null
6517 ? deserializeAws_json1_1SplunkRetryOptions(output.RetryOptions, context)
6518 : undefined,
6519 S3BackupMode: output.S3BackupMode !== undefined && output.S3BackupMode !== null ? output.S3BackupMode : undefined,
6520 S3DestinationDescription: output.S3DestinationDescription !== undefined && output.S3DestinationDescription !== null
6521 ? deserializeAws_json1_1S3DestinationDescription(output.S3DestinationDescription, context)
6522 : undefined,
6523 };
6524};
6525var deserializeAws_json1_1SplunkRetryOptions = function (output, context) {
6526 return {
6527 DurationInSeconds: output.DurationInSeconds !== undefined && output.DurationInSeconds !== null
6528 ? output.DurationInSeconds
6529 : undefined,
6530 };
6531};
6532var deserializeAws_json1_1StartDeliveryStreamEncryptionOutput = function (output, context) {
6533 return {};
6534};
6535var deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = function (output, context) {
6536 return {};
6537};
6538var deserializeAws_json1_1SubnetIdList = function (output, context) {
6539 return (output || [])
6540 .filter(function (e) { return e != null; })
6541 .map(function (entry) {
6542 if (entry === null) {
6543 return null;
6544 }
6545 return entry;
6546 });
6547};
6548var deserializeAws_json1_1Tag = function (output, context) {
6549 return {
6550 Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined,
6551 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
6552 };
6553};
6554var deserializeAws_json1_1TagDeliveryStreamOutput = function (output, context) {
6555 return {};
6556};
6557var deserializeAws_json1_1UntagDeliveryStreamOutput = function (output, context) {
6558 return {};
6559};
6560var deserializeAws_json1_1UpdateDestinationOutput = function (output, context) {
6561 return {};
6562};
6563var deserializeAws_json1_1VpcConfigurationDescription = function (output, context) {
6564 return {
6565 RoleARN: output.RoleARN !== undefined && output.RoleARN !== null ? output.RoleARN : undefined,
6566 SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
6567 ? deserializeAws_json1_1SecurityGroupIdList(output.SecurityGroupIds, context)
6568 : undefined,
6569 SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
6570 ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context)
6571 : undefined,
6572 VpcId: output.VpcId !== undefined && output.VpcId !== null ? output.VpcId : undefined,
6573 };
6574};
6575var deserializeMetadata = function (output) {
6576 var _a;
6577 return ({
6578 httpStatusCode: output.statusCode,
6579 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
6580 extendedRequestId: output.headers["x-amz-id-2"],
6581 cfId: output.headers["x-amz-cf-id"],
6582 });
6583};
6584// Collect low-level response body stream to Uint8Array.
6585var collectBody = function (streamBody, context) {
6586 if (streamBody === void 0) { streamBody = new Uint8Array(); }
6587 if (streamBody instanceof Uint8Array) {
6588 return Promise.resolve(streamBody);
6589 }
6590 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6591};
6592// Encode Uint8Array data into string with utf-8.
6593var collectBodyString = function (streamBody, context) {
6594 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
6595};
6596var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
6597 var _a, hostname, _b, protocol, port, contents;
6598 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
6599 switch (_c.label) {
6600 case 0: return [4 /*yield*/, context.endpoint()];
6601 case 1:
6602 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
6603 contents = {
6604 protocol: protocol,
6605 hostname: hostname,
6606 port: port,
6607 method: "POST",
6608 path: path,
6609 headers: headers,
6610 };
6611 if (resolvedHostname !== undefined) {
6612 contents.hostname = resolvedHostname;
6613 }
6614 if (body !== undefined) {
6615 contents.body = body;
6616 }
6617 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)];
6618 }
6619 });
6620}); };
6621var parseBody = function (streamBody, context) {
6622 return collectBodyString(streamBody, context).then(function (encoded) {
6623 if (encoded.length) {
6624 return JSON.parse(encoded);
6625 }
6626 return {};
6627 });
6628};
6629/**
6630 * Load an error code for the aws.rest-json-1.1 protocol.
6631 */
6632var loadRestJsonErrorCode = function (output, data) {
6633 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
6634 var sanitizeErrorCode = function (rawValue) {
6635 var cleanValue = rawValue;
6636 if (cleanValue.indexOf(":") >= 0) {
6637 cleanValue = cleanValue.split(":")[0];
6638 }
6639 if (cleanValue.indexOf("#") >= 0) {
6640 cleanValue = cleanValue.split("#")[1];
6641 }
6642 return cleanValue;
6643 };
6644 var headerKey = findKey(output.headers, "x-amzn-errortype");
6645 if (headerKey !== undefined) {
6646 return sanitizeErrorCode(output.headers[headerKey]);
6647 }
6648 if (data.code !== undefined) {
6649 return sanitizeErrorCode(data.code);
6650 }
6651 if (data["__type"] !== undefined) {
6652 return sanitizeErrorCode(data["__type"]);
6653 }
6654 return "";
6655};
6656//# sourceMappingURL=Aws_json1_1.js.map
6657
6658/***/ }),
6659
6660/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js":
6661/*!***********************************************************************************************!*\
6662 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.browser.js ***!
6663 \***********************************************************************************************/
6664/*! exports provided: ClientDefaultValues */
6665/***/ (function(module, __webpack_exports__, __webpack_require__) {
6666
6667"use strict";
6668__webpack_require__.r(__webpack_exports__);
6669/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
6670/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js");
6671/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-firehose/dist/es/package.json");
6672var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-firehose/dist/es/package.json", 1);
6673/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "../../node_modules/@aws-crypto/sha256-browser/build/index.js");
6674/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
6675/* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js");
6676/* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/index.js");
6677/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
6678/* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js");
6679/* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "../../node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js");
6680/* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "../../node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js");
6681/* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
6682/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js");
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694/**
6695 * @internal
6696 */
6697var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_7__["calculateBodyLength"], credentialDefaultProvider: function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }, defaultUserAgentProvider: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_8__["defaultUserAgent"])({
6698 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"].serviceId,
6699 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
6700 }), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidProvider"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__["toUtf8"] });
6701//# sourceMappingURL=runtimeConfig.browser.js.map
6702
6703/***/ }),
6704
6705/***/ "../../node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js":
6706/*!**********************************************************************************************!*\
6707 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/dist/es/runtimeConfig.shared.js ***!
6708 \**********************************************************************************************/
6709/*! exports provided: ClientSharedValues */
6710/***/ (function(module, __webpack_exports__, __webpack_require__) {
6711
6712"use strict";
6713__webpack_require__.r(__webpack_exports__);
6714/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
6715/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-firehose/dist/es/endpoints.js");
6716/* harmony import */ var _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/url-parser */ "../../node_modules/@aws-sdk/url-parser/dist/es/index.js");
6717
6718
6719/**
6720 * @internal
6721 */
6722var ClientSharedValues = {
6723 apiVersion: "2015-08-04",
6724 disableHostPrefix: false,
6725 logger: {},
6726 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
6727 serviceId: "Firehose",
6728 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
6729};
6730//# sourceMappingURL=runtimeConfig.shared.js.map
6731
6732/***/ }),
6733
6734/***/ "../../node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js":
6735/*!**********************************************************************************************!*\
6736 !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js ***!
6737 \**********************************************************************************************/
6738/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
6739/***/ (function(module, __webpack_exports__, __webpack_require__) {
6740
6741"use strict";
6742__webpack_require__.r(__webpack_exports__);
6743/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
6744/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
6745/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
6746/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
6747/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
6748/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
6749/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
6750/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
6751/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
6752/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
6753/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
6754/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
6755/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
6756/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
6757/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
6758/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
6759/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
6760/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
6761/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
6762/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
6763/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
6764/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
6765/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
6766/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
6767/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
6768/******************************************************************************
6769Copyright (c) Microsoft Corporation.
6770
6771Permission to use, copy, modify, and/or distribute this software for any
6772purpose with or without fee is hereby granted.
6773
6774THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
6775REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6776AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
6777INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6778LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
6779OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6780PERFORMANCE OF THIS SOFTWARE.
6781***************************************************************************** */
6782/* global Reflect, Promise */
6783
6784var extendStatics = function(d, b) {
6785 extendStatics = Object.setPrototypeOf ||
6786 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6787 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6788 return extendStatics(d, b);
6789};
6790
6791function __extends(d, b) {
6792 if (typeof b !== "function" && b !== null)
6793 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
6794 extendStatics(d, b);
6795 function __() { this.constructor = d; }
6796 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6797}
6798
6799var __assign = function() {
6800 __assign = Object.assign || function __assign(t) {
6801 for (var s, i = 1, n = arguments.length; i < n; i++) {
6802 s = arguments[i];
6803 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
6804 }
6805 return t;
6806 }
6807 return __assign.apply(this, arguments);
6808}
6809
6810function __rest(s, e) {
6811 var t = {};
6812 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
6813 t[p] = s[p];
6814 if (s != null && typeof Object.getOwnPropertySymbols === "function")
6815 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
6816 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
6817 t[p[i]] = s[p[i]];
6818 }
6819 return t;
6820}
6821
6822function __decorate(decorators, target, key, desc) {
6823 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6824 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6825 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;
6826 return c > 3 && r && Object.defineProperty(target, key, r), r;
6827}
6828
6829function __param(paramIndex, decorator) {
6830 return function (target, key) { decorator(target, key, paramIndex); }
6831}
6832
6833function __metadata(metadataKey, metadataValue) {
6834 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
6835}
6836
6837function __awaiter(thisArg, _arguments, P, generator) {
6838 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6839 return new (P || (P = Promise))(function (resolve, reject) {
6840 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6841 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6842 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
6843 step((generator = generator.apply(thisArg, _arguments || [])).next());
6844 });
6845}
6846
6847function __generator(thisArg, body) {
6848 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
6849 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
6850 function verb(n) { return function (v) { return step([n, v]); }; }
6851 function step(op) {
6852 if (f) throw new TypeError("Generator is already executing.");
6853 while (_) try {
6854 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;
6855 if (y = 0, t) op = [op[0] & 2, t.value];
6856 switch (op[0]) {
6857 case 0: case 1: t = op; break;
6858 case 4: _.label++; return { value: op[1], done: false };
6859 case 5: _.label++; y = op[1]; op = [0]; continue;
6860 case 7: op = _.ops.pop(); _.trys.pop(); continue;
6861 default:
6862 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
6863 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
6864 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
6865 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
6866 if (t[2]) _.ops.pop();
6867 _.trys.pop(); continue;
6868 }
6869 op = body.call(thisArg, _);
6870 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
6871 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
6872 }
6873}
6874
6875var __createBinding = Object.create ? (function(o, m, k, k2) {
6876 if (k2 === undefined) k2 = k;
6877 var desc = Object.getOwnPropertyDescriptor(m, k);
6878 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6879 desc = { enumerable: true, get: function() { return m[k]; } };
6880 }
6881 Object.defineProperty(o, k2, desc);
6882}) : (function(o, m, k, k2) {
6883 if (k2 === undefined) k2 = k;
6884 o[k2] = m[k];
6885});
6886
6887function __exportStar(m, o) {
6888 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
6889}
6890
6891function __values(o) {
6892 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
6893 if (m) return m.call(o);
6894 if (o && typeof o.length === "number") return {
6895 next: function () {
6896 if (o && i >= o.length) o = void 0;
6897 return { value: o && o[i++], done: !o };
6898 }
6899 };
6900 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
6901}
6902
6903function __read(o, n) {
6904 var m = typeof Symbol === "function" && o[Symbol.iterator];
6905 if (!m) return o;
6906 var i = m.call(o), r, ar = [], e;
6907 try {
6908 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
6909 }
6910 catch (error) { e = { error: error }; }
6911 finally {
6912 try {
6913 if (r && !r.done && (m = i["return"])) m.call(i);
6914 }
6915 finally { if (e) throw e.error; }
6916 }
6917 return ar;
6918}
6919
6920/** @deprecated */
6921function __spread() {
6922 for (var ar = [], i = 0; i < arguments.length; i++)
6923 ar = ar.concat(__read(arguments[i]));
6924 return ar;
6925}
6926
6927/** @deprecated */
6928function __spreadArrays() {
6929 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
6930 for (var r = Array(s), k = 0, i = 0; i < il; i++)
6931 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6932 r[k] = a[j];
6933 return r;
6934}
6935
6936function __spreadArray(to, from, pack) {
6937 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
6938 if (ar || !(i in from)) {
6939 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
6940 ar[i] = from[i];
6941 }
6942 }
6943 return to.concat(ar || Array.prototype.slice.call(from));
6944}
6945
6946function __await(v) {
6947 return this instanceof __await ? (this.v = v, this) : new __await(v);
6948}
6949
6950function __asyncGenerator(thisArg, _arguments, generator) {
6951 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6952 var g = generator.apply(thisArg, _arguments || []), i, q = [];
6953 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
6954 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); }); }; }
6955 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
6956 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
6957 function fulfill(value) { resume("next", value); }
6958 function reject(value) { resume("throw", value); }
6959 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
6960}
6961
6962function __asyncDelegator(o) {
6963 var i, p;
6964 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
6965 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; }
6966}
6967
6968function __asyncValues(o) {
6969 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
6970 var m = o[Symbol.asyncIterator], i;
6971 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);
6972 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); }); }; }
6973 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
6974}
6975
6976function __makeTemplateObject(cooked, raw) {
6977 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
6978 return cooked;
6979};
6980
6981var __setModuleDefault = Object.create ? (function(o, v) {
6982 Object.defineProperty(o, "default", { enumerable: true, value: v });
6983}) : function(o, v) {
6984 o["default"] = v;
6985};
6986
6987function __importStar(mod) {
6988 if (mod && mod.__esModule) return mod;
6989 var result = {};
6990 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6991 __setModuleDefault(result, mod);
6992 return result;
6993}
6994
6995function __importDefault(mod) {
6996 return (mod && mod.__esModule) ? mod : { default: mod };
6997}
6998
6999function __classPrivateFieldGet(receiver, state, kind, f) {
7000 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7001 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");
7002 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7003}
7004
7005function __classPrivateFieldSet(receiver, state, value, kind, f) {
7006 if (kind === "m") throw new TypeError("Private method is not writable");
7007 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7008 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");
7009 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7010}
7011
7012function __classPrivateFieldIn(state, receiver) {
7013 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
7014 return typeof state === "function" ? receiver === state : state.has(receiver);
7015}
7016
7017
7018/***/ }),
7019
7020/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js":
7021/*!********************************************************************************!*\
7022 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js ***!
7023 \********************************************************************************/
7024/*! exports provided: Kinesis */
7025/***/ (function(module, __webpack_exports__, __webpack_require__) {
7026
7027"use strict";
7028__webpack_require__.r(__webpack_exports__);
7029/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kinesis", function() { return Kinesis; });
7030/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7031/* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./KinesisClient */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js");
7032/* harmony import */ var _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AddTagsToStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js");
7033/* harmony import */ var _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js");
7034/* harmony import */ var _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DecreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js");
7035/* harmony import */ var _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DeleteStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js");
7036/* harmony import */ var _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DeregisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js");
7037/* harmony import */ var _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DescribeLimitsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js");
7038/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
7039/* harmony import */ var _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/DescribeStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js");
7040/* harmony import */ var _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/DescribeStreamSummaryCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js");
7041/* harmony import */ var _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DisableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js");
7042/* harmony import */ var _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/EnableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js");
7043/* harmony import */ var _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/GetRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js");
7044/* harmony import */ var _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/GetShardIteratorCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js");
7045/* harmony import */ var _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/IncreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js");
7046/* harmony import */ var _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/ListShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js");
7047/* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/ListStreamConsumersCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js");
7048/* harmony import */ var _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/ListStreamsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js");
7049/* harmony import */ var _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/ListTagsForStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js");
7050/* harmony import */ var _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/MergeShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js");
7051/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js");
7052/* harmony import */ var _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/PutRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js");
7053/* harmony import */ var _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/RegisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js");
7054/* harmony import */ var _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/RemoveTagsFromStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js");
7055/* harmony import */ var _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/SplitShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js");
7056/* harmony import */ var _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/StartStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js");
7057/* harmony import */ var _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/StopStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js");
7058/* harmony import */ var _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/SubscribeToShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js");
7059/* harmony import */ var _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/UpdateShardCountCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js");
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090/**
7091 * <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
7092 * <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
7093 * real-time processing of streaming big data.</p>
7094 */
7095var Kinesis = /** @class */ (function (_super) {
7096 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Kinesis, _super);
7097 function Kinesis() {
7098 return _super !== null && _super.apply(this, arguments) || this;
7099 }
7100 Kinesis.prototype.addTagsToStream = function (args, optionsOrCb, cb) {
7101 var command = new _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__["AddTagsToStreamCommand"](args);
7102 if (typeof optionsOrCb === "function") {
7103 this.send(command, optionsOrCb);
7104 }
7105 else if (typeof cb === "function") {
7106 if (typeof optionsOrCb !== "object")
7107 throw new Error("Expect http options but get " + typeof optionsOrCb);
7108 this.send(command, optionsOrCb || {}, cb);
7109 }
7110 else {
7111 return this.send(command, optionsOrCb);
7112 }
7113 };
7114 Kinesis.prototype.createStream = function (args, optionsOrCb, cb) {
7115 var command = new _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__["CreateStreamCommand"](args);
7116 if (typeof optionsOrCb === "function") {
7117 this.send(command, optionsOrCb);
7118 }
7119 else if (typeof cb === "function") {
7120 if (typeof optionsOrCb !== "object")
7121 throw new Error("Expect http options but get " + typeof optionsOrCb);
7122 this.send(command, optionsOrCb || {}, cb);
7123 }
7124 else {
7125 return this.send(command, optionsOrCb);
7126 }
7127 };
7128 Kinesis.prototype.decreaseStreamRetentionPeriod = function (args, optionsOrCb, cb) {
7129 var command = new _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__["DecreaseStreamRetentionPeriodCommand"](args);
7130 if (typeof optionsOrCb === "function") {
7131 this.send(command, optionsOrCb);
7132 }
7133 else if (typeof cb === "function") {
7134 if (typeof optionsOrCb !== "object")
7135 throw new Error("Expect http options but get " + typeof optionsOrCb);
7136 this.send(command, optionsOrCb || {}, cb);
7137 }
7138 else {
7139 return this.send(command, optionsOrCb);
7140 }
7141 };
7142 Kinesis.prototype.deleteStream = function (args, optionsOrCb, cb) {
7143 var command = new _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__["DeleteStreamCommand"](args);
7144 if (typeof optionsOrCb === "function") {
7145 this.send(command, optionsOrCb);
7146 }
7147 else if (typeof cb === "function") {
7148 if (typeof optionsOrCb !== "object")
7149 throw new Error("Expect http options but get " + typeof optionsOrCb);
7150 this.send(command, optionsOrCb || {}, cb);
7151 }
7152 else {
7153 return this.send(command, optionsOrCb);
7154 }
7155 };
7156 Kinesis.prototype.deregisterStreamConsumer = function (args, optionsOrCb, cb) {
7157 var command = new _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__["DeregisterStreamConsumerCommand"](args);
7158 if (typeof optionsOrCb === "function") {
7159 this.send(command, optionsOrCb);
7160 }
7161 else if (typeof cb === "function") {
7162 if (typeof optionsOrCb !== "object")
7163 throw new Error("Expect http options but get " + typeof optionsOrCb);
7164 this.send(command, optionsOrCb || {}, cb);
7165 }
7166 else {
7167 return this.send(command, optionsOrCb);
7168 }
7169 };
7170 Kinesis.prototype.describeLimits = function (args, optionsOrCb, cb) {
7171 var command = new _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__["DescribeLimitsCommand"](args);
7172 if (typeof optionsOrCb === "function") {
7173 this.send(command, optionsOrCb);
7174 }
7175 else if (typeof cb === "function") {
7176 if (typeof optionsOrCb !== "object")
7177 throw new Error("Expect http options but get " + typeof optionsOrCb);
7178 this.send(command, optionsOrCb || {}, cb);
7179 }
7180 else {
7181 return this.send(command, optionsOrCb);
7182 }
7183 };
7184 Kinesis.prototype.describeStream = function (args, optionsOrCb, cb) {
7185 var command = new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__["DescribeStreamCommand"](args);
7186 if (typeof optionsOrCb === "function") {
7187 this.send(command, optionsOrCb);
7188 }
7189 else if (typeof cb === "function") {
7190 if (typeof optionsOrCb !== "object")
7191 throw new Error("Expect http options but get " + typeof optionsOrCb);
7192 this.send(command, optionsOrCb || {}, cb);
7193 }
7194 else {
7195 return this.send(command, optionsOrCb);
7196 }
7197 };
7198 Kinesis.prototype.describeStreamConsumer = function (args, optionsOrCb, cb) {
7199 var command = new _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_9__["DescribeStreamConsumerCommand"](args);
7200 if (typeof optionsOrCb === "function") {
7201 this.send(command, optionsOrCb);
7202 }
7203 else if (typeof cb === "function") {
7204 if (typeof optionsOrCb !== "object")
7205 throw new Error("Expect http options but get " + typeof optionsOrCb);
7206 this.send(command, optionsOrCb || {}, cb);
7207 }
7208 else {
7209 return this.send(command, optionsOrCb);
7210 }
7211 };
7212 Kinesis.prototype.describeStreamSummary = function (args, optionsOrCb, cb) {
7213 var command = new _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_10__["DescribeStreamSummaryCommand"](args);
7214 if (typeof optionsOrCb === "function") {
7215 this.send(command, optionsOrCb);
7216 }
7217 else if (typeof cb === "function") {
7218 if (typeof optionsOrCb !== "object")
7219 throw new Error("Expect http options but get " + typeof optionsOrCb);
7220 this.send(command, optionsOrCb || {}, cb);
7221 }
7222 else {
7223 return this.send(command, optionsOrCb);
7224 }
7225 };
7226 Kinesis.prototype.disableEnhancedMonitoring = function (args, optionsOrCb, cb) {
7227 var command = new _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_11__["DisableEnhancedMonitoringCommand"](args);
7228 if (typeof optionsOrCb === "function") {
7229 this.send(command, optionsOrCb);
7230 }
7231 else if (typeof cb === "function") {
7232 if (typeof optionsOrCb !== "object")
7233 throw new Error("Expect http options but get " + typeof optionsOrCb);
7234 this.send(command, optionsOrCb || {}, cb);
7235 }
7236 else {
7237 return this.send(command, optionsOrCb);
7238 }
7239 };
7240 Kinesis.prototype.enableEnhancedMonitoring = function (args, optionsOrCb, cb) {
7241 var command = new _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_12__["EnableEnhancedMonitoringCommand"](args);
7242 if (typeof optionsOrCb === "function") {
7243 this.send(command, optionsOrCb);
7244 }
7245 else if (typeof cb === "function") {
7246 if (typeof optionsOrCb !== "object")
7247 throw new Error("Expect http options but get " + typeof optionsOrCb);
7248 this.send(command, optionsOrCb || {}, cb);
7249 }
7250 else {
7251 return this.send(command, optionsOrCb);
7252 }
7253 };
7254 Kinesis.prototype.getRecords = function (args, optionsOrCb, cb) {
7255 var command = new _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_13__["GetRecordsCommand"](args);
7256 if (typeof optionsOrCb === "function") {
7257 this.send(command, optionsOrCb);
7258 }
7259 else if (typeof cb === "function") {
7260 if (typeof optionsOrCb !== "object")
7261 throw new Error("Expect http options but get " + typeof optionsOrCb);
7262 this.send(command, optionsOrCb || {}, cb);
7263 }
7264 else {
7265 return this.send(command, optionsOrCb);
7266 }
7267 };
7268 Kinesis.prototype.getShardIterator = function (args, optionsOrCb, cb) {
7269 var command = new _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_14__["GetShardIteratorCommand"](args);
7270 if (typeof optionsOrCb === "function") {
7271 this.send(command, optionsOrCb);
7272 }
7273 else if (typeof cb === "function") {
7274 if (typeof optionsOrCb !== "object")
7275 throw new Error("Expect http options but get " + typeof optionsOrCb);
7276 this.send(command, optionsOrCb || {}, cb);
7277 }
7278 else {
7279 return this.send(command, optionsOrCb);
7280 }
7281 };
7282 Kinesis.prototype.increaseStreamRetentionPeriod = function (args, optionsOrCb, cb) {
7283 var command = new _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_15__["IncreaseStreamRetentionPeriodCommand"](args);
7284 if (typeof optionsOrCb === "function") {
7285 this.send(command, optionsOrCb);
7286 }
7287 else if (typeof cb === "function") {
7288 if (typeof optionsOrCb !== "object")
7289 throw new Error("Expect http options but get " + typeof optionsOrCb);
7290 this.send(command, optionsOrCb || {}, cb);
7291 }
7292 else {
7293 return this.send(command, optionsOrCb);
7294 }
7295 };
7296 Kinesis.prototype.listShards = function (args, optionsOrCb, cb) {
7297 var command = new _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_16__["ListShardsCommand"](args);
7298 if (typeof optionsOrCb === "function") {
7299 this.send(command, optionsOrCb);
7300 }
7301 else if (typeof cb === "function") {
7302 if (typeof optionsOrCb !== "object")
7303 throw new Error("Expect http options but get " + typeof optionsOrCb);
7304 this.send(command, optionsOrCb || {}, cb);
7305 }
7306 else {
7307 return this.send(command, optionsOrCb);
7308 }
7309 };
7310 Kinesis.prototype.listStreamConsumers = function (args, optionsOrCb, cb) {
7311 var command = new _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_17__["ListStreamConsumersCommand"](args);
7312 if (typeof optionsOrCb === "function") {
7313 this.send(command, optionsOrCb);
7314 }
7315 else if (typeof cb === "function") {
7316 if (typeof optionsOrCb !== "object")
7317 throw new Error("Expect http options but get " + typeof optionsOrCb);
7318 this.send(command, optionsOrCb || {}, cb);
7319 }
7320 else {
7321 return this.send(command, optionsOrCb);
7322 }
7323 };
7324 Kinesis.prototype.listStreams = function (args, optionsOrCb, cb) {
7325 var command = new _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_18__["ListStreamsCommand"](args);
7326 if (typeof optionsOrCb === "function") {
7327 this.send(command, optionsOrCb);
7328 }
7329 else if (typeof cb === "function") {
7330 if (typeof optionsOrCb !== "object")
7331 throw new Error("Expect http options but get " + typeof optionsOrCb);
7332 this.send(command, optionsOrCb || {}, cb);
7333 }
7334 else {
7335 return this.send(command, optionsOrCb);
7336 }
7337 };
7338 Kinesis.prototype.listTagsForStream = function (args, optionsOrCb, cb) {
7339 var command = new _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_19__["ListTagsForStreamCommand"](args);
7340 if (typeof optionsOrCb === "function") {
7341 this.send(command, optionsOrCb);
7342 }
7343 else if (typeof cb === "function") {
7344 if (typeof optionsOrCb !== "object")
7345 throw new Error("Expect http options but get " + typeof optionsOrCb);
7346 this.send(command, optionsOrCb || {}, cb);
7347 }
7348 else {
7349 return this.send(command, optionsOrCb);
7350 }
7351 };
7352 Kinesis.prototype.mergeShards = function (args, optionsOrCb, cb) {
7353 var command = new _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_20__["MergeShardsCommand"](args);
7354 if (typeof optionsOrCb === "function") {
7355 this.send(command, optionsOrCb);
7356 }
7357 else if (typeof cb === "function") {
7358 if (typeof optionsOrCb !== "object")
7359 throw new Error("Expect http options but get " + typeof optionsOrCb);
7360 this.send(command, optionsOrCb || {}, cb);
7361 }
7362 else {
7363 return this.send(command, optionsOrCb);
7364 }
7365 };
7366 Kinesis.prototype.putRecord = function (args, optionsOrCb, cb) {
7367 var command = new _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_21__["PutRecordCommand"](args);
7368 if (typeof optionsOrCb === "function") {
7369 this.send(command, optionsOrCb);
7370 }
7371 else if (typeof cb === "function") {
7372 if (typeof optionsOrCb !== "object")
7373 throw new Error("Expect http options but get " + typeof optionsOrCb);
7374 this.send(command, optionsOrCb || {}, cb);
7375 }
7376 else {
7377 return this.send(command, optionsOrCb);
7378 }
7379 };
7380 Kinesis.prototype.putRecords = function (args, optionsOrCb, cb) {
7381 var command = new _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_22__["PutRecordsCommand"](args);
7382 if (typeof optionsOrCb === "function") {
7383 this.send(command, optionsOrCb);
7384 }
7385 else if (typeof cb === "function") {
7386 if (typeof optionsOrCb !== "object")
7387 throw new Error("Expect http options but get " + typeof optionsOrCb);
7388 this.send(command, optionsOrCb || {}, cb);
7389 }
7390 else {
7391 return this.send(command, optionsOrCb);
7392 }
7393 };
7394 Kinesis.prototype.registerStreamConsumer = function (args, optionsOrCb, cb) {
7395 var command = new _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_23__["RegisterStreamConsumerCommand"](args);
7396 if (typeof optionsOrCb === "function") {
7397 this.send(command, optionsOrCb);
7398 }
7399 else if (typeof cb === "function") {
7400 if (typeof optionsOrCb !== "object")
7401 throw new Error("Expect http options but get " + typeof optionsOrCb);
7402 this.send(command, optionsOrCb || {}, cb);
7403 }
7404 else {
7405 return this.send(command, optionsOrCb);
7406 }
7407 };
7408 Kinesis.prototype.removeTagsFromStream = function (args, optionsOrCb, cb) {
7409 var command = new _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_24__["RemoveTagsFromStreamCommand"](args);
7410 if (typeof optionsOrCb === "function") {
7411 this.send(command, optionsOrCb);
7412 }
7413 else if (typeof cb === "function") {
7414 if (typeof optionsOrCb !== "object")
7415 throw new Error("Expect http options but get " + typeof optionsOrCb);
7416 this.send(command, optionsOrCb || {}, cb);
7417 }
7418 else {
7419 return this.send(command, optionsOrCb);
7420 }
7421 };
7422 Kinesis.prototype.splitShard = function (args, optionsOrCb, cb) {
7423 var command = new _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_25__["SplitShardCommand"](args);
7424 if (typeof optionsOrCb === "function") {
7425 this.send(command, optionsOrCb);
7426 }
7427 else if (typeof cb === "function") {
7428 if (typeof optionsOrCb !== "object")
7429 throw new Error("Expect http options but get " + typeof optionsOrCb);
7430 this.send(command, optionsOrCb || {}, cb);
7431 }
7432 else {
7433 return this.send(command, optionsOrCb);
7434 }
7435 };
7436 Kinesis.prototype.startStreamEncryption = function (args, optionsOrCb, cb) {
7437 var command = new _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_26__["StartStreamEncryptionCommand"](args);
7438 if (typeof optionsOrCb === "function") {
7439 this.send(command, optionsOrCb);
7440 }
7441 else if (typeof cb === "function") {
7442 if (typeof optionsOrCb !== "object")
7443 throw new Error("Expect http options but get " + typeof optionsOrCb);
7444 this.send(command, optionsOrCb || {}, cb);
7445 }
7446 else {
7447 return this.send(command, optionsOrCb);
7448 }
7449 };
7450 Kinesis.prototype.stopStreamEncryption = function (args, optionsOrCb, cb) {
7451 var command = new _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_27__["StopStreamEncryptionCommand"](args);
7452 if (typeof optionsOrCb === "function") {
7453 this.send(command, optionsOrCb);
7454 }
7455 else if (typeof cb === "function") {
7456 if (typeof optionsOrCb !== "object")
7457 throw new Error("Expect http options but get " + typeof optionsOrCb);
7458 this.send(command, optionsOrCb || {}, cb);
7459 }
7460 else {
7461 return this.send(command, optionsOrCb);
7462 }
7463 };
7464 Kinesis.prototype.subscribeToShard = function (args, optionsOrCb, cb) {
7465 var command = new _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_28__["SubscribeToShardCommand"](args);
7466 if (typeof optionsOrCb === "function") {
7467 this.send(command, optionsOrCb);
7468 }
7469 else if (typeof cb === "function") {
7470 if (typeof optionsOrCb !== "object")
7471 throw new Error("Expect http options but get " + typeof optionsOrCb);
7472 this.send(command, optionsOrCb || {}, cb);
7473 }
7474 else {
7475 return this.send(command, optionsOrCb);
7476 }
7477 };
7478 Kinesis.prototype.updateShardCount = function (args, optionsOrCb, cb) {
7479 var command = new _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_29__["UpdateShardCountCommand"](args);
7480 if (typeof optionsOrCb === "function") {
7481 this.send(command, optionsOrCb);
7482 }
7483 else if (typeof cb === "function") {
7484 if (typeof optionsOrCb !== "object")
7485 throw new Error("Expect http options but get " + typeof optionsOrCb);
7486 this.send(command, optionsOrCb || {}, cb);
7487 }
7488 else {
7489 return this.send(command, optionsOrCb);
7490 }
7491 };
7492 return Kinesis;
7493}(_KinesisClient__WEBPACK_IMPORTED_MODULE_1__["KinesisClient"]));
7494
7495//# sourceMappingURL=Kinesis.js.map
7496
7497/***/ }),
7498
7499/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js":
7500/*!**************************************************************************************!*\
7501 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js ***!
7502 \**************************************************************************************/
7503/*! exports provided: KinesisClient */
7504/***/ (function(module, __webpack_exports__, __webpack_require__) {
7505
7506"use strict";
7507__webpack_require__.r(__webpack_exports__);
7508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KinesisClient", function() { return KinesisClient; });
7509/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7510/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js");
7511/* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "../../node_modules/@aws-sdk/config-resolver/dist/es/index.js");
7512/* harmony import */ var _aws_sdk_eventstream_serde_config_resolver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/eventstream-serde-config-resolver */ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/index.js");
7513/* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "../../node_modules/@aws-sdk/middleware-content-length/dist/es/index.js");
7514/* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "../../node_modules/@aws-sdk/middleware-host-header/dist/es/index.js");
7515/* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "../../node_modules/@aws-sdk/middleware-logger/dist/es/index.js");
7516/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
7517/* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/index.js");
7518/* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js");
7519/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531/**
7532 * <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
7533 * <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
7534 * real-time processing of streaming big data.</p>
7535 */
7536var KinesisClient = /** @class */ (function (_super) {
7537 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(KinesisClient, _super);
7538 function KinesisClient(configuration) {
7539 var _this = this;
7540 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
7541 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
7542 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
7543 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_8__["resolveAwsAuthConfig"])(_config_2);
7544 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_7__["resolveRetryConfig"])(_config_3);
7545 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_5__["resolveHostHeaderConfig"])(_config_4);
7546 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_9__["resolveUserAgentConfig"])(_config_5);
7547 var _config_7 = Object(_aws_sdk_eventstream_serde_config_resolver__WEBPACK_IMPORTED_MODULE_3__["resolveEventStreamSerdeConfig"])(_config_6);
7548 _this = _super.call(this, _config_7) || this;
7549 _this.config = _config_7;
7550 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_8__["getAwsAuthPlugin"])(_this.config));
7551 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_7__["getRetryPlugin"])(_this.config));
7552 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_4__["getContentLengthPlugin"])(_this.config));
7553 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_5__["getHostHeaderPlugin"])(_this.config));
7554 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_6__["getLoggerPlugin"])(_this.config));
7555 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_9__["getUserAgentPlugin"])(_this.config));
7556 return _this;
7557 }
7558 KinesisClient.prototype.destroy = function () {
7559 _super.prototype.destroy.call(this);
7560 };
7561 return KinesisClient;
7562}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_10__["Client"]));
7563
7564//# sourceMappingURL=KinesisClient.js.map
7565
7566/***/ }),
7567
7568/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js":
7569/*!********************************************************************************************************!*\
7570 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js ***!
7571 \********************************************************************************************************/
7572/*! exports provided: AddTagsToStreamCommand */
7573/***/ (function(module, __webpack_exports__, __webpack_require__) {
7574
7575"use strict";
7576__webpack_require__.r(__webpack_exports__);
7577/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamCommand", function() { return AddTagsToStreamCommand; });
7578/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7579/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
7580/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
7581/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
7582/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
7583
7584
7585
7586
7587
7588/**
7589 * <p>Adds or updates tags for the specified Kinesis data stream. Each time you invoke
7590 * this operation, you can specify up to 10 tags. If you want to add more than 10 tags to
7591 * your stream, you can invoke this operation multiple times. In total, each stream can
7592 * have up to 50 tags.</p>
7593 * <p>If tags have already been assigned to the stream, <code>AddTagsToStream</code>
7594 * overwrites any existing tags that correspond to the specified tag keys.</p>
7595 * <p>
7596 * <a>AddTagsToStream</a> has a limit of five transactions per second per
7597 * account.</p>
7598 */
7599var AddTagsToStreamCommand = /** @class */ (function (_super) {
7600 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(AddTagsToStreamCommand, _super);
7601 // Start section: command_properties
7602 // End section: command_properties
7603 function AddTagsToStreamCommand(input) {
7604 var _this =
7605 // Start section: command_constructor
7606 _super.call(this) || this;
7607 _this.input = input;
7608 return _this;
7609 // End section: command_constructor
7610 }
7611 /**
7612 * @internal
7613 */
7614 AddTagsToStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7615 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7616 var stack = clientStack.concat(this.middlewareStack);
7617 var logger = configuration.logger;
7618 var clientName = "KinesisClient";
7619 var commandName = "AddTagsToStreamCommand";
7620 var handlerExecutionContext = {
7621 logger: logger,
7622 clientName: clientName,
7623 commandName: commandName,
7624 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["AddTagsToStreamInput"].filterSensitiveLog,
7625 outputFilterSensitiveLog: function (output) { return output; },
7626 };
7627 var requestHandler = configuration.requestHandler;
7628 return stack.resolve(function (request) {
7629 return requestHandler.handle(request.request, options || {});
7630 }, handlerExecutionContext);
7631 };
7632 AddTagsToStreamCommand.prototype.serialize = function (input, context) {
7633 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1AddTagsToStreamCommand"])(input, context);
7634 };
7635 AddTagsToStreamCommand.prototype.deserialize = function (output, context) {
7636 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1AddTagsToStreamCommand"])(output, context);
7637 };
7638 return AddTagsToStreamCommand;
7639}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7640
7641//# sourceMappingURL=AddTagsToStreamCommand.js.map
7642
7643/***/ }),
7644
7645/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js":
7646/*!*****************************************************************************************************!*\
7647 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js ***!
7648 \*****************************************************************************************************/
7649/*! exports provided: CreateStreamCommand */
7650/***/ (function(module, __webpack_exports__, __webpack_require__) {
7651
7652"use strict";
7653__webpack_require__.r(__webpack_exports__);
7654/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamCommand", function() { return CreateStreamCommand; });
7655/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7656/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
7657/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
7658/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
7659/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
7660
7661
7662
7663
7664
7665/**
7666 * <p>Creates a Kinesis data stream. A stream captures and transports data records that
7667 * are continuously emitted from different data sources or <i>producers</i>.
7668 * Scale-out within a stream is explicitly supported by means of shards, which are uniquely
7669 * identified groups of data records in a stream.</p>
7670 * <p>You specify and control the number of shards that a stream is composed of. Each
7671 * shard can support reads up to five transactions per second, up to a maximum data read
7672 * total of 2 MiB per second. Each shard can support writes up to 1,000 records per second,
7673 * up to a maximum data write total of 1 MiB per second. If the amount of data input
7674 * increases or decreases, you can add or remove shards.</p>
7675 * <p>The stream name identifies the stream. The name is scoped to the AWS account used
7676 * by the application. It is also scoped by AWS Region. That is, two streams in two
7677 * different accounts can have the same name, and two streams in the same account, but in
7678 * two different Regions, can have the same name.</p>
7679 * <p>
7680 * <code>CreateStream</code> is an asynchronous operation. Upon receiving a
7681 * <code>CreateStream</code> request, Kinesis Data Streams immediately returns and sets
7682 * the stream status to <code>CREATING</code>. After the stream is created, Kinesis Data
7683 * Streams sets the stream status to <code>ACTIVE</code>. You should perform read and write
7684 * operations only on an <code>ACTIVE</code> stream. </p>
7685 * <p>You receive a <code>LimitExceededException</code> when making a
7686 * <code>CreateStream</code> request when you try to do one of the following:</p>
7687 * <ul>
7688 * <li>
7689 *
7690 * <p>Have more than five streams in the <code>CREATING</code> state at any point
7691 * in time.</p>
7692 * </li>
7693 * <li>
7694 *
7695 * <p>Create more shards than are authorized for your account.</p>
7696 * </li>
7697 * </ul>
7698 * <p>For the default shard limit for an AWS account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Amazon Kinesis Data Streams
7699 * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
7700 * Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact AWS
7701 * Support</a>.</p>
7702 * <p>You can use <code>DescribeStream</code> to check the stream status, which is
7703 * returned in <code>StreamStatus</code>.</p>
7704 * <p>
7705 * <a>CreateStream</a> has a limit of five transactions per second per
7706 * account.</p>
7707 */
7708var CreateStreamCommand = /** @class */ (function (_super) {
7709 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateStreamCommand, _super);
7710 // Start section: command_properties
7711 // End section: command_properties
7712 function CreateStreamCommand(input) {
7713 var _this =
7714 // Start section: command_constructor
7715 _super.call(this) || this;
7716 _this.input = input;
7717 return _this;
7718 // End section: command_constructor
7719 }
7720 /**
7721 * @internal
7722 */
7723 CreateStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7724 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7725 var stack = clientStack.concat(this.middlewareStack);
7726 var logger = configuration.logger;
7727 var clientName = "KinesisClient";
7728 var commandName = "CreateStreamCommand";
7729 var handlerExecutionContext = {
7730 logger: logger,
7731 clientName: clientName,
7732 commandName: commandName,
7733 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateStreamInput"].filterSensitiveLog,
7734 outputFilterSensitiveLog: function (output) { return output; },
7735 };
7736 var requestHandler = configuration.requestHandler;
7737 return stack.resolve(function (request) {
7738 return requestHandler.handle(request.request, options || {});
7739 }, handlerExecutionContext);
7740 };
7741 CreateStreamCommand.prototype.serialize = function (input, context) {
7742 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1CreateStreamCommand"])(input, context);
7743 };
7744 CreateStreamCommand.prototype.deserialize = function (output, context) {
7745 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1CreateStreamCommand"])(output, context);
7746 };
7747 return CreateStreamCommand;
7748}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7749
7750//# sourceMappingURL=CreateStreamCommand.js.map
7751
7752/***/ }),
7753
7754/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js":
7755/*!**********************************************************************************************************************!*\
7756 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js ***!
7757 \**********************************************************************************************************************/
7758/*! exports provided: DecreaseStreamRetentionPeriodCommand */
7759/***/ (function(module, __webpack_exports__, __webpack_require__) {
7760
7761"use strict";
7762__webpack_require__.r(__webpack_exports__);
7763/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodCommand", function() { return DecreaseStreamRetentionPeriodCommand; });
7764/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7765/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
7766/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
7767/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
7768/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
7769
7770
7771
7772
7773
7774/**
7775 * <p>Decreases the Kinesis data stream's retention period, which is the length of time
7776 * data records are accessible after they are added to the stream. The minimum value of a
7777 * stream's retention period is 24 hours.</p>
7778 * <p>This operation may result in lost data. For example, if the stream's retention
7779 * period is 48 hours and is decreased to 24 hours, any data already in the stream that is
7780 * older than 24 hours is inaccessible.</p>
7781 */
7782var DecreaseStreamRetentionPeriodCommand = /** @class */ (function (_super) {
7783 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DecreaseStreamRetentionPeriodCommand, _super);
7784 // Start section: command_properties
7785 // End section: command_properties
7786 function DecreaseStreamRetentionPeriodCommand(input) {
7787 var _this =
7788 // Start section: command_constructor
7789 _super.call(this) || this;
7790 _this.input = input;
7791 return _this;
7792 // End section: command_constructor
7793 }
7794 /**
7795 * @internal
7796 */
7797 DecreaseStreamRetentionPeriodCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7798 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7799 var stack = clientStack.concat(this.middlewareStack);
7800 var logger = configuration.logger;
7801 var clientName = "KinesisClient";
7802 var commandName = "DecreaseStreamRetentionPeriodCommand";
7803 var handlerExecutionContext = {
7804 logger: logger,
7805 clientName: clientName,
7806 commandName: commandName,
7807 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DecreaseStreamRetentionPeriodInput"].filterSensitiveLog,
7808 outputFilterSensitiveLog: function (output) { return output; },
7809 };
7810 var requestHandler = configuration.requestHandler;
7811 return stack.resolve(function (request) {
7812 return requestHandler.handle(request.request, options || {});
7813 }, handlerExecutionContext);
7814 };
7815 DecreaseStreamRetentionPeriodCommand.prototype.serialize = function (input, context) {
7816 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DecreaseStreamRetentionPeriodCommand"])(input, context);
7817 };
7818 DecreaseStreamRetentionPeriodCommand.prototype.deserialize = function (output, context) {
7819 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand"])(output, context);
7820 };
7821 return DecreaseStreamRetentionPeriodCommand;
7822}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7823
7824//# sourceMappingURL=DecreaseStreamRetentionPeriodCommand.js.map
7825
7826/***/ }),
7827
7828/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js":
7829/*!*****************************************************************************************************!*\
7830 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js ***!
7831 \*****************************************************************************************************/
7832/*! exports provided: DeleteStreamCommand */
7833/***/ (function(module, __webpack_exports__, __webpack_require__) {
7834
7835"use strict";
7836__webpack_require__.r(__webpack_exports__);
7837/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamCommand", function() { return DeleteStreamCommand; });
7838/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7839/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
7840/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
7841/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
7842/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
7843
7844
7845
7846
7847
7848/**
7849 * <p>Deletes a Kinesis data stream and all its shards and data. You must shut down any
7850 * applications that are operating on the stream before you delete the stream. If an
7851 * application attempts to operate on a deleted stream, it receives the exception
7852 * <code>ResourceNotFoundException</code>.</p>
7853 * <p>If the stream is in the <code>ACTIVE</code> state, you can delete it. After a
7854 * <code>DeleteStream</code> request, the specified stream is in the
7855 * <code>DELETING</code> state until Kinesis Data Streams completes the
7856 * deletion.</p>
7857 * <p>
7858 * <b>Note:</b> Kinesis Data Streams might continue to accept
7859 * data read and write operations, such as <a>PutRecord</a>, <a>PutRecords</a>, and <a>GetRecords</a>, on a stream in the
7860 * <code>DELETING</code> state until the stream deletion is complete.</p>
7861 * <p>When you delete a stream, any shards in that stream are also deleted, and any tags
7862 * are dissociated from the stream.</p>
7863 * <p>You can use the <a>DescribeStream</a> operation to check the state of
7864 * the stream, which is returned in <code>StreamStatus</code>.</p>
7865 * <p>
7866 * <a>DeleteStream</a> has a limit of five transactions per second per
7867 * account.</p>
7868 */
7869var DeleteStreamCommand = /** @class */ (function (_super) {
7870 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteStreamCommand, _super);
7871 // Start section: command_properties
7872 // End section: command_properties
7873 function DeleteStreamCommand(input) {
7874 var _this =
7875 // Start section: command_constructor
7876 _super.call(this) || this;
7877 _this.input = input;
7878 return _this;
7879 // End section: command_constructor
7880 }
7881 /**
7882 * @internal
7883 */
7884 DeleteStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7885 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7886 var stack = clientStack.concat(this.middlewareStack);
7887 var logger = configuration.logger;
7888 var clientName = "KinesisClient";
7889 var commandName = "DeleteStreamCommand";
7890 var handlerExecutionContext = {
7891 logger: logger,
7892 clientName: clientName,
7893 commandName: commandName,
7894 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteStreamInput"].filterSensitiveLog,
7895 outputFilterSensitiveLog: function (output) { return output; },
7896 };
7897 var requestHandler = configuration.requestHandler;
7898 return stack.resolve(function (request) {
7899 return requestHandler.handle(request.request, options || {});
7900 }, handlerExecutionContext);
7901 };
7902 DeleteStreamCommand.prototype.serialize = function (input, context) {
7903 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeleteStreamCommand"])(input, context);
7904 };
7905 DeleteStreamCommand.prototype.deserialize = function (output, context) {
7906 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeleteStreamCommand"])(output, context);
7907 };
7908 return DeleteStreamCommand;
7909}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7910
7911//# sourceMappingURL=DeleteStreamCommand.js.map
7912
7913/***/ }),
7914
7915/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js":
7916/*!*****************************************************************************************************************!*\
7917 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js ***!
7918 \*****************************************************************************************************************/
7919/*! exports provided: DeregisterStreamConsumerCommand */
7920/***/ (function(module, __webpack_exports__, __webpack_require__) {
7921
7922"use strict";
7923__webpack_require__.r(__webpack_exports__);
7924/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerCommand", function() { return DeregisterStreamConsumerCommand; });
7925/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
7926/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
7927/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
7928/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
7929/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
7930
7931
7932
7933
7934
7935/**
7936 * <p>To deregister a consumer, provide its ARN. Alternatively, you can provide the ARN of
7937 * the data stream and the name you gave the consumer when you registered it. You may also
7938 * provide all three parameters, as long as they don't conflict with each other. If you
7939 * don't know the name or ARN of the consumer that you want to deregister, you can use the
7940 * <a>ListStreamConsumers</a> operation to get a list of the descriptions of
7941 * all the consumers that are currently registered with a given data stream. The
7942 * description of a consumer contains its name and ARN.</p>
7943 * <p>This operation has a limit of five transactions per second per stream.</p>
7944 */
7945var DeregisterStreamConsumerCommand = /** @class */ (function (_super) {
7946 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeregisterStreamConsumerCommand, _super);
7947 // Start section: command_properties
7948 // End section: command_properties
7949 function DeregisterStreamConsumerCommand(input) {
7950 var _this =
7951 // Start section: command_constructor
7952 _super.call(this) || this;
7953 _this.input = input;
7954 return _this;
7955 // End section: command_constructor
7956 }
7957 /**
7958 * @internal
7959 */
7960 DeregisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
7961 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
7962 var stack = clientStack.concat(this.middlewareStack);
7963 var logger = configuration.logger;
7964 var clientName = "KinesisClient";
7965 var commandName = "DeregisterStreamConsumerCommand";
7966 var handlerExecutionContext = {
7967 logger: logger,
7968 clientName: clientName,
7969 commandName: commandName,
7970 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeregisterStreamConsumerInput"].filterSensitiveLog,
7971 outputFilterSensitiveLog: function (output) { return output; },
7972 };
7973 var requestHandler = configuration.requestHandler;
7974 return stack.resolve(function (request) {
7975 return requestHandler.handle(request.request, options || {});
7976 }, handlerExecutionContext);
7977 };
7978 DeregisterStreamConsumerCommand.prototype.serialize = function (input, context) {
7979 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DeregisterStreamConsumerCommand"])(input, context);
7980 };
7981 DeregisterStreamConsumerCommand.prototype.deserialize = function (output, context) {
7982 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DeregisterStreamConsumerCommand"])(output, context);
7983 };
7984 return DeregisterStreamConsumerCommand;
7985}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
7986
7987//# sourceMappingURL=DeregisterStreamConsumerCommand.js.map
7988
7989/***/ }),
7990
7991/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js":
7992/*!*******************************************************************************************************!*\
7993 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js ***!
7994 \*******************************************************************************************************/
7995/*! exports provided: DescribeLimitsCommand */
7996/***/ (function(module, __webpack_exports__, __webpack_require__) {
7997
7998"use strict";
7999__webpack_require__.r(__webpack_exports__);
8000/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsCommand", function() { return DescribeLimitsCommand; });
8001/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8002/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8003/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8004/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8005/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8006
8007
8008
8009
8010
8011/**
8012 * <p>Describes the shard limits and usage for the account.</p>
8013 * <p>If you update your account limits, the old limits might be returned for a few
8014 * minutes.</p>
8015 * <p>This operation has a limit of one transaction per second per account.</p>
8016 */
8017var DescribeLimitsCommand = /** @class */ (function (_super) {
8018 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeLimitsCommand, _super);
8019 // Start section: command_properties
8020 // End section: command_properties
8021 function DescribeLimitsCommand(input) {
8022 var _this =
8023 // Start section: command_constructor
8024 _super.call(this) || this;
8025 _this.input = input;
8026 return _this;
8027 // End section: command_constructor
8028 }
8029 /**
8030 * @internal
8031 */
8032 DescribeLimitsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8033 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8034 var stack = clientStack.concat(this.middlewareStack);
8035 var logger = configuration.logger;
8036 var clientName = "KinesisClient";
8037 var commandName = "DescribeLimitsCommand";
8038 var handlerExecutionContext = {
8039 logger: logger,
8040 clientName: clientName,
8041 commandName: commandName,
8042 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeLimitsInput"].filterSensitiveLog,
8043 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeLimitsOutput"].filterSensitiveLog,
8044 };
8045 var requestHandler = configuration.requestHandler;
8046 return stack.resolve(function (request) {
8047 return requestHandler.handle(request.request, options || {});
8048 }, handlerExecutionContext);
8049 };
8050 DescribeLimitsCommand.prototype.serialize = function (input, context) {
8051 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeLimitsCommand"])(input, context);
8052 };
8053 DescribeLimitsCommand.prototype.deserialize = function (output, context) {
8054 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeLimitsCommand"])(output, context);
8055 };
8056 return DescribeLimitsCommand;
8057}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8058
8059//# sourceMappingURL=DescribeLimitsCommand.js.map
8060
8061/***/ }),
8062
8063/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js":
8064/*!*******************************************************************************************************!*\
8065 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js ***!
8066 \*******************************************************************************************************/
8067/*! exports provided: DescribeStreamCommand */
8068/***/ (function(module, __webpack_exports__, __webpack_require__) {
8069
8070"use strict";
8071__webpack_require__.r(__webpack_exports__);
8072/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamCommand", function() { return DescribeStreamCommand; });
8073/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8074/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8075/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8076/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8077/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8078
8079
8080
8081
8082
8083/**
8084 * <p>Describes the specified Kinesis data stream.</p>
8085 *
8086 * <p>The information returned includes the stream name, Amazon Resource Name (ARN),
8087 * creation time, enhanced metric configuration, and shard map. The shard map is an array
8088 * of shard objects. For each shard object, there is the hash key and sequence number
8089 * ranges that the shard spans, and the IDs of any earlier shards that played in a role in
8090 * creating the shard. Every record ingested in the stream is identified by a sequence
8091 * number, which is assigned when the record is put into the stream.</p>
8092 *
8093 * <p>You can limit the number of shards returned by each call. For more information, see
8094 * <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html">Retrieving
8095 * Shards from a Stream</a> in the <i>Amazon Kinesis Data Streams Developer
8096 * Guide</i>.</p>
8097 * <p>There are no guarantees about the chronological order shards returned. To process
8098 * shards in chronological order, use the ID of the parent shard to track the lineage to
8099 * the oldest shard.</p>
8100 * <p>This operation has a limit of 10 transactions per second per account.</p>
8101 */
8102var DescribeStreamCommand = /** @class */ (function (_super) {
8103 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamCommand, _super);
8104 // Start section: command_properties
8105 // End section: command_properties
8106 function DescribeStreamCommand(input) {
8107 var _this =
8108 // Start section: command_constructor
8109 _super.call(this) || this;
8110 _this.input = input;
8111 return _this;
8112 // End section: command_constructor
8113 }
8114 /**
8115 * @internal
8116 */
8117 DescribeStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8118 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8119 var stack = clientStack.concat(this.middlewareStack);
8120 var logger = configuration.logger;
8121 var clientName = "KinesisClient";
8122 var commandName = "DescribeStreamCommand";
8123 var handlerExecutionContext = {
8124 logger: logger,
8125 clientName: clientName,
8126 commandName: commandName,
8127 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamInput"].filterSensitiveLog,
8128 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamOutput"].filterSensitiveLog,
8129 };
8130 var requestHandler = configuration.requestHandler;
8131 return stack.resolve(function (request) {
8132 return requestHandler.handle(request.request, options || {});
8133 }, handlerExecutionContext);
8134 };
8135 DescribeStreamCommand.prototype.serialize = function (input, context) {
8136 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamCommand"])(input, context);
8137 };
8138 DescribeStreamCommand.prototype.deserialize = function (output, context) {
8139 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamCommand"])(output, context);
8140 };
8141 return DescribeStreamCommand;
8142}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8143
8144//# sourceMappingURL=DescribeStreamCommand.js.map
8145
8146/***/ }),
8147
8148/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js":
8149/*!***************************************************************************************************************!*\
8150 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js ***!
8151 \***************************************************************************************************************/
8152/*! exports provided: DescribeStreamConsumerCommand */
8153/***/ (function(module, __webpack_exports__, __webpack_require__) {
8154
8155"use strict";
8156__webpack_require__.r(__webpack_exports__);
8157/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerCommand", function() { return DescribeStreamConsumerCommand; });
8158/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8159/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8160/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8161/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8162/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8163
8164
8165
8166
8167
8168/**
8169 * <p>To get the description of a registered consumer, provide the ARN of the consumer.
8170 * Alternatively, you can provide the ARN of the data stream and the name you gave the
8171 * consumer when you registered it. You may also provide all three parameters, as long as
8172 * they don't conflict with each other. If you don't know the name or ARN of the consumer
8173 * that you want to describe, you can use the <a>ListStreamConsumers</a>
8174 * operation to get a list of the descriptions of all the consumers that are currently
8175 * registered with a given data stream.</p>
8176 * <p>This operation has a limit of 20 transactions per second per stream.</p>
8177 */
8178var DescribeStreamConsumerCommand = /** @class */ (function (_super) {
8179 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamConsumerCommand, _super);
8180 // Start section: command_properties
8181 // End section: command_properties
8182 function DescribeStreamConsumerCommand(input) {
8183 var _this =
8184 // Start section: command_constructor
8185 _super.call(this) || this;
8186 _this.input = input;
8187 return _this;
8188 // End section: command_constructor
8189 }
8190 /**
8191 * @internal
8192 */
8193 DescribeStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8194 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8195 var stack = clientStack.concat(this.middlewareStack);
8196 var logger = configuration.logger;
8197 var clientName = "KinesisClient";
8198 var commandName = "DescribeStreamConsumerCommand";
8199 var handlerExecutionContext = {
8200 logger: logger,
8201 clientName: clientName,
8202 commandName: commandName,
8203 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamConsumerInput"].filterSensitiveLog,
8204 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamConsumerOutput"].filterSensitiveLog,
8205 };
8206 var requestHandler = configuration.requestHandler;
8207 return stack.resolve(function (request) {
8208 return requestHandler.handle(request.request, options || {});
8209 }, handlerExecutionContext);
8210 };
8211 DescribeStreamConsumerCommand.prototype.serialize = function (input, context) {
8212 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamConsumerCommand"])(input, context);
8213 };
8214 DescribeStreamConsumerCommand.prototype.deserialize = function (output, context) {
8215 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamConsumerCommand"])(output, context);
8216 };
8217 return DescribeStreamConsumerCommand;
8218}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8219
8220//# sourceMappingURL=DescribeStreamConsumerCommand.js.map
8221
8222/***/ }),
8223
8224/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js":
8225/*!**************************************************************************************************************!*\
8226 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js ***!
8227 \**************************************************************************************************************/
8228/*! exports provided: DescribeStreamSummaryCommand */
8229/***/ (function(module, __webpack_exports__, __webpack_require__) {
8230
8231"use strict";
8232__webpack_require__.r(__webpack_exports__);
8233/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryCommand", function() { return DescribeStreamSummaryCommand; });
8234/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8235/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8236/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8237/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8238/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8239
8240
8241
8242
8243
8244/**
8245 * <p>Provides a summarized description of the specified Kinesis data stream without the
8246 * shard list.</p>
8247 * <p>The information returned includes the stream name, Amazon Resource Name (ARN),
8248 * status, record retention period, approximate creation time, monitoring, encryption
8249 * details, and open shard count. </p>
8250 * <p>
8251 * <a>DescribeStreamSummary</a> has a limit of 20 transactions per second
8252 * per account.</p>
8253 */
8254var DescribeStreamSummaryCommand = /** @class */ (function (_super) {
8255 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DescribeStreamSummaryCommand, _super);
8256 // Start section: command_properties
8257 // End section: command_properties
8258 function DescribeStreamSummaryCommand(input) {
8259 var _this =
8260 // Start section: command_constructor
8261 _super.call(this) || this;
8262 _this.input = input;
8263 return _this;
8264 // End section: command_constructor
8265 }
8266 /**
8267 * @internal
8268 */
8269 DescribeStreamSummaryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8270 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8271 var stack = clientStack.concat(this.middlewareStack);
8272 var logger = configuration.logger;
8273 var clientName = "KinesisClient";
8274 var commandName = "DescribeStreamSummaryCommand";
8275 var handlerExecutionContext = {
8276 logger: logger,
8277 clientName: clientName,
8278 commandName: commandName,
8279 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamSummaryInput"].filterSensitiveLog,
8280 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamSummaryOutput"].filterSensitiveLog,
8281 };
8282 var requestHandler = configuration.requestHandler;
8283 return stack.resolve(function (request) {
8284 return requestHandler.handle(request.request, options || {});
8285 }, handlerExecutionContext);
8286 };
8287 DescribeStreamSummaryCommand.prototype.serialize = function (input, context) {
8288 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DescribeStreamSummaryCommand"])(input, context);
8289 };
8290 DescribeStreamSummaryCommand.prototype.deserialize = function (output, context) {
8291 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DescribeStreamSummaryCommand"])(output, context);
8292 };
8293 return DescribeStreamSummaryCommand;
8294}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8295
8296//# sourceMappingURL=DescribeStreamSummaryCommand.js.map
8297
8298/***/ }),
8299
8300/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js":
8301/*!******************************************************************************************************************!*\
8302 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js ***!
8303 \******************************************************************************************************************/
8304/*! exports provided: DisableEnhancedMonitoringCommand */
8305/***/ (function(module, __webpack_exports__, __webpack_require__) {
8306
8307"use strict";
8308__webpack_require__.r(__webpack_exports__);
8309/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringCommand", function() { return DisableEnhancedMonitoringCommand; });
8310/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8311/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8312/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8313/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8314/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8315
8316
8317
8318
8319
8320/**
8321 * <p>Disables enhanced monitoring.</p>
8322 */
8323var DisableEnhancedMonitoringCommand = /** @class */ (function (_super) {
8324 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DisableEnhancedMonitoringCommand, _super);
8325 // Start section: command_properties
8326 // End section: command_properties
8327 function DisableEnhancedMonitoringCommand(input) {
8328 var _this =
8329 // Start section: command_constructor
8330 _super.call(this) || this;
8331 _this.input = input;
8332 return _this;
8333 // End section: command_constructor
8334 }
8335 /**
8336 * @internal
8337 */
8338 DisableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8339 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8340 var stack = clientStack.concat(this.middlewareStack);
8341 var logger = configuration.logger;
8342 var clientName = "KinesisClient";
8343 var commandName = "DisableEnhancedMonitoringCommand";
8344 var handlerExecutionContext = {
8345 logger: logger,
8346 clientName: clientName,
8347 commandName: commandName,
8348 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DisableEnhancedMonitoringInput"].filterSensitiveLog,
8349 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["EnhancedMonitoringOutput"].filterSensitiveLog,
8350 };
8351 var requestHandler = configuration.requestHandler;
8352 return stack.resolve(function (request) {
8353 return requestHandler.handle(request.request, options || {});
8354 }, handlerExecutionContext);
8355 };
8356 DisableEnhancedMonitoringCommand.prototype.serialize = function (input, context) {
8357 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1DisableEnhancedMonitoringCommand"])(input, context);
8358 };
8359 DisableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) {
8360 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1DisableEnhancedMonitoringCommand"])(output, context);
8361 };
8362 return DisableEnhancedMonitoringCommand;
8363}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8364
8365//# sourceMappingURL=DisableEnhancedMonitoringCommand.js.map
8366
8367/***/ }),
8368
8369/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js":
8370/*!*****************************************************************************************************************!*\
8371 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js ***!
8372 \*****************************************************************************************************************/
8373/*! exports provided: EnableEnhancedMonitoringCommand */
8374/***/ (function(module, __webpack_exports__, __webpack_require__) {
8375
8376"use strict";
8377__webpack_require__.r(__webpack_exports__);
8378/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringCommand", function() { return EnableEnhancedMonitoringCommand; });
8379/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8380/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8381/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8382/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8383/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8384
8385
8386
8387
8388
8389/**
8390 * <p>Enables enhanced Kinesis data stream monitoring for shard-level metrics.</p>
8391 */
8392var EnableEnhancedMonitoringCommand = /** @class */ (function (_super) {
8393 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(EnableEnhancedMonitoringCommand, _super);
8394 // Start section: command_properties
8395 // End section: command_properties
8396 function EnableEnhancedMonitoringCommand(input) {
8397 var _this =
8398 // Start section: command_constructor
8399 _super.call(this) || this;
8400 _this.input = input;
8401 return _this;
8402 // End section: command_constructor
8403 }
8404 /**
8405 * @internal
8406 */
8407 EnableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8408 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8409 var stack = clientStack.concat(this.middlewareStack);
8410 var logger = configuration.logger;
8411 var clientName = "KinesisClient";
8412 var commandName = "EnableEnhancedMonitoringCommand";
8413 var handlerExecutionContext = {
8414 logger: logger,
8415 clientName: clientName,
8416 commandName: commandName,
8417 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["EnableEnhancedMonitoringInput"].filterSensitiveLog,
8418 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["EnhancedMonitoringOutput"].filterSensitiveLog,
8419 };
8420 var requestHandler = configuration.requestHandler;
8421 return stack.resolve(function (request) {
8422 return requestHandler.handle(request.request, options || {});
8423 }, handlerExecutionContext);
8424 };
8425 EnableEnhancedMonitoringCommand.prototype.serialize = function (input, context) {
8426 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1EnableEnhancedMonitoringCommand"])(input, context);
8427 };
8428 EnableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) {
8429 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1EnableEnhancedMonitoringCommand"])(output, context);
8430 };
8431 return EnableEnhancedMonitoringCommand;
8432}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8433
8434//# sourceMappingURL=EnableEnhancedMonitoringCommand.js.map
8435
8436/***/ }),
8437
8438/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js":
8439/*!***************************************************************************************************!*\
8440 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js ***!
8441 \***************************************************************************************************/
8442/*! exports provided: GetRecordsCommand */
8443/***/ (function(module, __webpack_exports__, __webpack_require__) {
8444
8445"use strict";
8446__webpack_require__.r(__webpack_exports__);
8447/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsCommand", function() { return GetRecordsCommand; });
8448/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8449/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8450/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8451/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8452/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8453
8454
8455
8456
8457
8458/**
8459 * <p>Gets data records from a Kinesis data stream's shard.</p>
8460 * <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard
8461 * iterator specifies the position in the shard from which you want to start reading data
8462 * records sequentially. If there are no records available in the portion of the shard that
8463 * the iterator points to, <a>GetRecords</a> returns an empty list. It might
8464 * take multiple calls to get to a portion of the shard that contains records.</p>
8465 * <p>You can scale by provisioning multiple shards per stream while considering service
8466 * limits (for more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Amazon Kinesis Data Streams
8467 * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
8468 * Guide</i>). Your application should have one thread per shard, each reading
8469 * continuously from its stream. To read from a stream continually, call <a>GetRecords</a> in a loop. Use <a>GetShardIterator</a> to get the
8470 * shard iterator to specify in the first <a>GetRecords</a> call. <a>GetRecords</a> returns a new shard iterator in
8471 * <code>NextShardIterator</code>. Specify the shard iterator returned in
8472 * <code>NextShardIterator</code> in subsequent calls to <a>GetRecords</a>.
8473 * If the shard has been closed, the shard iterator can't return more data and <a>GetRecords</a> returns <code>null</code> in <code>NextShardIterator</code>.
8474 * You can terminate the loop when the shard is closed, or when the shard iterator reaches
8475 * the record with the sequence number or other attribute that marks it as the last record
8476 * to process.</p>
8477 * <p>Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB
8478 * per second. You can ensure that your calls don't exceed the maximum supported size or
8479 * throughput by using the <code>Limit</code> parameter to specify the maximum number of
8480 * records that <a>GetRecords</a> can return. Consider your average record size
8481 * when determining this limit. The maximum number of records that can be returned per call
8482 * is 10,000.</p>
8483 *
8484 * <p>The size of the data returned by <a>GetRecords</a> varies depending on
8485 * the utilization of the shard. The maximum size of data that <a>GetRecords</a>
8486 * can return is 10 MiB. If a call returns this amount of data, subsequent calls made
8487 * within the next 5 seconds throw <code>ProvisionedThroughputExceededException</code>. If
8488 * there is insufficient provisioned throughput on the stream, subsequent calls made within
8489 * the next 1 second throw <code>ProvisionedThroughputExceededException</code>. <a>GetRecords</a> doesn't return any data when it throws an exception. For this
8490 * reason, we recommend that you wait 1 second between calls to <a>GetRecords</a>. However, it's possible that the application will get exceptions for longer than 1
8491 * second.</p>
8492 * <p>To detect whether the application is falling behind in processing, you can use the
8493 * <code>MillisBehindLatest</code> response attribute. You can also monitor the stream
8494 * using CloudWatch metrics and other mechanisms (see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html">Monitoring</a> in the <i>Amazon
8495 * Kinesis Data Streams Developer Guide</i>).</p>
8496 * <p>Each Amazon Kinesis record includes a value,
8497 * <code>ApproximateArrivalTimestamp</code>, that is set when a stream successfully
8498 * receives and stores a record. This is commonly referred to as a server-side time stamp,
8499 * whereas a client-side time stamp is set when a data producer creates or sends the record
8500 * to a stream (a data producer is any data source putting data records into a stream, for
8501 * example with <a>PutRecords</a>). The time stamp has millisecond precision.
8502 * There are no guarantees about the time stamp accuracy, or that the time stamp is always
8503 * increasing. For example, records in a shard or across a stream might have time stamps
8504 * that are out of order.</p>
8505 * <p>This operation has a limit of five transactions per second per shard.</p>
8506 */
8507var GetRecordsCommand = /** @class */ (function (_super) {
8508 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecordsCommand, _super);
8509 // Start section: command_properties
8510 // End section: command_properties
8511 function GetRecordsCommand(input) {
8512 var _this =
8513 // Start section: command_constructor
8514 _super.call(this) || this;
8515 _this.input = input;
8516 return _this;
8517 // End section: command_constructor
8518 }
8519 /**
8520 * @internal
8521 */
8522 GetRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8523 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8524 var stack = clientStack.concat(this.middlewareStack);
8525 var logger = configuration.logger;
8526 var clientName = "KinesisClient";
8527 var commandName = "GetRecordsCommand";
8528 var handlerExecutionContext = {
8529 logger: logger,
8530 clientName: clientName,
8531 commandName: commandName,
8532 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetRecordsInput"].filterSensitiveLog,
8533 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetRecordsOutput"].filterSensitiveLog,
8534 };
8535 var requestHandler = configuration.requestHandler;
8536 return stack.resolve(function (request) {
8537 return requestHandler.handle(request.request, options || {});
8538 }, handlerExecutionContext);
8539 };
8540 GetRecordsCommand.prototype.serialize = function (input, context) {
8541 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetRecordsCommand"])(input, context);
8542 };
8543 GetRecordsCommand.prototype.deserialize = function (output, context) {
8544 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetRecordsCommand"])(output, context);
8545 };
8546 return GetRecordsCommand;
8547}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8548
8549//# sourceMappingURL=GetRecordsCommand.js.map
8550
8551/***/ }),
8552
8553/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js":
8554/*!*********************************************************************************************************!*\
8555 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js ***!
8556 \*********************************************************************************************************/
8557/*! exports provided: GetShardIteratorCommand */
8558/***/ (function(module, __webpack_exports__, __webpack_require__) {
8559
8560"use strict";
8561__webpack_require__.r(__webpack_exports__);
8562/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorCommand", function() { return GetShardIteratorCommand; });
8563/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8564/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8565/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8566/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8567/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8568
8569
8570
8571
8572
8573/**
8574 * <p>Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it
8575 * is returned to the requester.</p>
8576 * <p>A shard iterator specifies the shard position from which to start reading data
8577 * records sequentially. The position is specified using the sequence number of a data
8578 * record in a shard. A sequence number is the identifier associated with every record
8579 * ingested in the stream, and is assigned when a record is put into the stream. Each
8580 * stream has one or more shards.</p>
8581 * <p>You must specify the shard iterator type. For example, you can set the
8582 * <code>ShardIteratorType</code> parameter to read exactly from the position denoted
8583 * by a specific sequence number by using the <code>AT_SEQUENCE_NUMBER</code> shard
8584 * iterator type. Alternatively, the parameter can read right after the sequence number by
8585 * using the <code>AFTER_SEQUENCE_NUMBER</code> shard iterator type, using sequence numbers
8586 * returned by earlier calls to <a>PutRecord</a>, <a>PutRecords</a>,
8587 * <a>GetRecords</a>, or <a>DescribeStream</a>. In the request,
8588 * you can specify the shard iterator type <code>AT_TIMESTAMP</code> to read records from
8589 * an arbitrary point in time, <code>TRIM_HORIZON</code> to cause
8590 * <code>ShardIterator</code> to point to the last untrimmed record in the shard in the
8591 * system (the oldest data record in the shard), or <code>LATEST</code> so that you always
8592 * read the most recent data in the shard. </p>
8593 * <p>When you read repeatedly from a stream, use a <a>GetShardIterator</a>
8594 * request to get the first shard iterator for use in your first <a>GetRecords</a> request and for subsequent reads use the shard iterator returned by the <a>GetRecords</a> request in <code>NextShardIterator</code>. A new shard
8595 * iterator is returned by every <a>GetRecords</a> request in
8596 * <code>NextShardIterator</code>, which you use in the <code>ShardIterator</code>
8597 * parameter of the next <a>GetRecords</a> request. </p>
8598 * <p>If a <a>GetShardIterator</a> request is made too often, you receive a
8599 * <code>ProvisionedThroughputExceededException</code>. For more information about
8600 * throughput limits, see <a>GetRecords</a>, and <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams Limits</a> in the
8601 * <i>Amazon Kinesis Data Streams Developer Guide</i>.</p>
8602 * <p>If the shard is closed, <a>GetShardIterator</a> returns a valid iterator
8603 * for the last sequence number of the shard. A shard can be closed as a result of using
8604 * <a>SplitShard</a> or <a>MergeShards</a>.</p>
8605 * <p>
8606 * <a>GetShardIterator</a> has a limit of five transactions per second per
8607 * account per open shard.</p>
8608 */
8609var GetShardIteratorCommand = /** @class */ (function (_super) {
8610 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetShardIteratorCommand, _super);
8611 // Start section: command_properties
8612 // End section: command_properties
8613 function GetShardIteratorCommand(input) {
8614 var _this =
8615 // Start section: command_constructor
8616 _super.call(this) || this;
8617 _this.input = input;
8618 return _this;
8619 // End section: command_constructor
8620 }
8621 /**
8622 * @internal
8623 */
8624 GetShardIteratorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8625 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8626 var stack = clientStack.concat(this.middlewareStack);
8627 var logger = configuration.logger;
8628 var clientName = "KinesisClient";
8629 var commandName = "GetShardIteratorCommand";
8630 var handlerExecutionContext = {
8631 logger: logger,
8632 clientName: clientName,
8633 commandName: commandName,
8634 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetShardIteratorInput"].filterSensitiveLog,
8635 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetShardIteratorOutput"].filterSensitiveLog,
8636 };
8637 var requestHandler = configuration.requestHandler;
8638 return stack.resolve(function (request) {
8639 return requestHandler.handle(request.request, options || {});
8640 }, handlerExecutionContext);
8641 };
8642 GetShardIteratorCommand.prototype.serialize = function (input, context) {
8643 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1GetShardIteratorCommand"])(input, context);
8644 };
8645 GetShardIteratorCommand.prototype.deserialize = function (output, context) {
8646 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1GetShardIteratorCommand"])(output, context);
8647 };
8648 return GetShardIteratorCommand;
8649}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8650
8651//# sourceMappingURL=GetShardIteratorCommand.js.map
8652
8653/***/ }),
8654
8655/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js":
8656/*!**********************************************************************************************************************!*\
8657 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js ***!
8658 \**********************************************************************************************************************/
8659/*! exports provided: IncreaseStreamRetentionPeriodCommand */
8660/***/ (function(module, __webpack_exports__, __webpack_require__) {
8661
8662"use strict";
8663__webpack_require__.r(__webpack_exports__);
8664/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodCommand", function() { return IncreaseStreamRetentionPeriodCommand; });
8665/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8666/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8667/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8668/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8669/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8670
8671
8672
8673
8674
8675/**
8676 * <p>Increases the Kinesis data stream's retention period, which is the length of time
8677 * data records are accessible after they are added to the stream. The maximum value of a
8678 * stream's retention period is 168 hours (7 days).</p>
8679 * <p>If you choose a longer stream retention period, this operation increases the time
8680 * period during which records that have not yet expired are accessible. However, it does
8681 * not make previous, expired data (older than the stream's previous retention period)
8682 * accessible after the operation has been called. For example, if a stream's retention
8683 * period is set to 24 hours and is increased to 168 hours, any data that is older than 24
8684 * hours remains inaccessible to consumer applications.</p>
8685 */
8686var IncreaseStreamRetentionPeriodCommand = /** @class */ (function (_super) {
8687 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(IncreaseStreamRetentionPeriodCommand, _super);
8688 // Start section: command_properties
8689 // End section: command_properties
8690 function IncreaseStreamRetentionPeriodCommand(input) {
8691 var _this =
8692 // Start section: command_constructor
8693 _super.call(this) || this;
8694 _this.input = input;
8695 return _this;
8696 // End section: command_constructor
8697 }
8698 /**
8699 * @internal
8700 */
8701 IncreaseStreamRetentionPeriodCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8702 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8703 var stack = clientStack.concat(this.middlewareStack);
8704 var logger = configuration.logger;
8705 var clientName = "KinesisClient";
8706 var commandName = "IncreaseStreamRetentionPeriodCommand";
8707 var handlerExecutionContext = {
8708 logger: logger,
8709 clientName: clientName,
8710 commandName: commandName,
8711 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["IncreaseStreamRetentionPeriodInput"].filterSensitiveLog,
8712 outputFilterSensitiveLog: function (output) { return output; },
8713 };
8714 var requestHandler = configuration.requestHandler;
8715 return stack.resolve(function (request) {
8716 return requestHandler.handle(request.request, options || {});
8717 }, handlerExecutionContext);
8718 };
8719 IncreaseStreamRetentionPeriodCommand.prototype.serialize = function (input, context) {
8720 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1IncreaseStreamRetentionPeriodCommand"])(input, context);
8721 };
8722 IncreaseStreamRetentionPeriodCommand.prototype.deserialize = function (output, context) {
8723 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand"])(output, context);
8724 };
8725 return IncreaseStreamRetentionPeriodCommand;
8726}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8727
8728//# sourceMappingURL=IncreaseStreamRetentionPeriodCommand.js.map
8729
8730/***/ }),
8731
8732/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js":
8733/*!***************************************************************************************************!*\
8734 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js ***!
8735 \***************************************************************************************************/
8736/*! exports provided: ListShardsCommand */
8737/***/ (function(module, __webpack_exports__, __webpack_require__) {
8738
8739"use strict";
8740__webpack_require__.r(__webpack_exports__);
8741/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsCommand", function() { return ListShardsCommand; });
8742/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8743/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8744/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8745/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8746/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8747
8748
8749
8750
8751
8752/**
8753 * <p>Lists the shards in a stream and provides information about each shard. This
8754 * operation has a limit of 100 transactions per second per data stream.</p>
8755 * <important>
8756 * <p>This API is a new operation that is used by the Amazon Kinesis Client Library
8757 * (KCL). If you have a fine-grained IAM policy that only allows specific operations,
8758 * you must update your policy to allow calls to this API. For more information, see
8759 * <a href="https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html">Controlling Access to Amazon Kinesis Data Streams Resources Using
8760 * IAM</a>.</p>
8761 * </important>
8762 */
8763var ListShardsCommand = /** @class */ (function (_super) {
8764 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListShardsCommand, _super);
8765 // Start section: command_properties
8766 // End section: command_properties
8767 function ListShardsCommand(input) {
8768 var _this =
8769 // Start section: command_constructor
8770 _super.call(this) || this;
8771 _this.input = input;
8772 return _this;
8773 // End section: command_constructor
8774 }
8775 /**
8776 * @internal
8777 */
8778 ListShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8779 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8780 var stack = clientStack.concat(this.middlewareStack);
8781 var logger = configuration.logger;
8782 var clientName = "KinesisClient";
8783 var commandName = "ListShardsCommand";
8784 var handlerExecutionContext = {
8785 logger: logger,
8786 clientName: clientName,
8787 commandName: commandName,
8788 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListShardsInput"].filterSensitiveLog,
8789 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListShardsOutput"].filterSensitiveLog,
8790 };
8791 var requestHandler = configuration.requestHandler;
8792 return stack.resolve(function (request) {
8793 return requestHandler.handle(request.request, options || {});
8794 }, handlerExecutionContext);
8795 };
8796 ListShardsCommand.prototype.serialize = function (input, context) {
8797 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListShardsCommand"])(input, context);
8798 };
8799 ListShardsCommand.prototype.deserialize = function (output, context) {
8800 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListShardsCommand"])(output, context);
8801 };
8802 return ListShardsCommand;
8803}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8804
8805//# sourceMappingURL=ListShardsCommand.js.map
8806
8807/***/ }),
8808
8809/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js":
8810/*!************************************************************************************************************!*\
8811 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js ***!
8812 \************************************************************************************************************/
8813/*! exports provided: ListStreamConsumersCommand */
8814/***/ (function(module, __webpack_exports__, __webpack_require__) {
8815
8816"use strict";
8817__webpack_require__.r(__webpack_exports__);
8818/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersCommand", function() { return ListStreamConsumersCommand; });
8819/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8820/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8821/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8822/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8823/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8824
8825
8826
8827
8828
8829/**
8830 * <p>Lists the consumers registered to receive data from a stream using enhanced fan-out,
8831 * and provides information about each consumer.</p>
8832 * <p>This operation has a limit of 5 transactions per second per stream.</p>
8833 */
8834var ListStreamConsumersCommand = /** @class */ (function (_super) {
8835 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListStreamConsumersCommand, _super);
8836 // Start section: command_properties
8837 // End section: command_properties
8838 function ListStreamConsumersCommand(input) {
8839 var _this =
8840 // Start section: command_constructor
8841 _super.call(this) || this;
8842 _this.input = input;
8843 return _this;
8844 // End section: command_constructor
8845 }
8846 /**
8847 * @internal
8848 */
8849 ListStreamConsumersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8850 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8851 var stack = clientStack.concat(this.middlewareStack);
8852 var logger = configuration.logger;
8853 var clientName = "KinesisClient";
8854 var commandName = "ListStreamConsumersCommand";
8855 var handlerExecutionContext = {
8856 logger: logger,
8857 clientName: clientName,
8858 commandName: commandName,
8859 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamConsumersInput"].filterSensitiveLog,
8860 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamConsumersOutput"].filterSensitiveLog,
8861 };
8862 var requestHandler = configuration.requestHandler;
8863 return stack.resolve(function (request) {
8864 return requestHandler.handle(request.request, options || {});
8865 }, handlerExecutionContext);
8866 };
8867 ListStreamConsumersCommand.prototype.serialize = function (input, context) {
8868 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListStreamConsumersCommand"])(input, context);
8869 };
8870 ListStreamConsumersCommand.prototype.deserialize = function (output, context) {
8871 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListStreamConsumersCommand"])(output, context);
8872 };
8873 return ListStreamConsumersCommand;
8874}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8875
8876//# sourceMappingURL=ListStreamConsumersCommand.js.map
8877
8878/***/ }),
8879
8880/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js":
8881/*!****************************************************************************************************!*\
8882 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js ***!
8883 \****************************************************************************************************/
8884/*! exports provided: ListStreamsCommand */
8885/***/ (function(module, __webpack_exports__, __webpack_require__) {
8886
8887"use strict";
8888__webpack_require__.r(__webpack_exports__);
8889/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsCommand", function() { return ListStreamsCommand; });
8890/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8891/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8892/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8893/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8894/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8895
8896
8897
8898
8899
8900/**
8901 * <p>Lists your Kinesis data streams.</p>
8902 * <p>The number of streams may be too large to return from a single call to
8903 * <code>ListStreams</code>. You can limit the number of returned streams using the
8904 * <code>Limit</code> parameter. If you do not specify a value for the
8905 * <code>Limit</code> parameter, Kinesis Data Streams uses the default limit, which is
8906 * currently 10.</p>
8907 * <p>You can detect if there are more streams available to list by using the
8908 * <code>HasMoreStreams</code> flag from the returned output. If there are more streams
8909 * available, you can request more streams by using the name of the last stream returned by
8910 * the <code>ListStreams</code> request in the <code>ExclusiveStartStreamName</code>
8911 * parameter in a subsequent request to <code>ListStreams</code>. The group of stream names
8912 * returned by the subsequent request is then added to the list. You can continue this
8913 * process until all the stream names have been collected in the list. </p>
8914 * <p>
8915 * <a>ListStreams</a> has a limit of five transactions per second per
8916 * account.</p>
8917 */
8918var ListStreamsCommand = /** @class */ (function (_super) {
8919 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListStreamsCommand, _super);
8920 // Start section: command_properties
8921 // End section: command_properties
8922 function ListStreamsCommand(input) {
8923 var _this =
8924 // Start section: command_constructor
8925 _super.call(this) || this;
8926 _this.input = input;
8927 return _this;
8928 // End section: command_constructor
8929 }
8930 /**
8931 * @internal
8932 */
8933 ListStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
8934 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
8935 var stack = clientStack.concat(this.middlewareStack);
8936 var logger = configuration.logger;
8937 var clientName = "KinesisClient";
8938 var commandName = "ListStreamsCommand";
8939 var handlerExecutionContext = {
8940 logger: logger,
8941 clientName: clientName,
8942 commandName: commandName,
8943 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamsInput"].filterSensitiveLog,
8944 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListStreamsOutput"].filterSensitiveLog,
8945 };
8946 var requestHandler = configuration.requestHandler;
8947 return stack.resolve(function (request) {
8948 return requestHandler.handle(request.request, options || {});
8949 }, handlerExecutionContext);
8950 };
8951 ListStreamsCommand.prototype.serialize = function (input, context) {
8952 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListStreamsCommand"])(input, context);
8953 };
8954 ListStreamsCommand.prototype.deserialize = function (output, context) {
8955 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListStreamsCommand"])(output, context);
8956 };
8957 return ListStreamsCommand;
8958}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
8959
8960//# sourceMappingURL=ListStreamsCommand.js.map
8961
8962/***/ }),
8963
8964/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js":
8965/*!**********************************************************************************************************!*\
8966 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js ***!
8967 \**********************************************************************************************************/
8968/*! exports provided: ListTagsForStreamCommand */
8969/***/ (function(module, __webpack_exports__, __webpack_require__) {
8970
8971"use strict";
8972__webpack_require__.r(__webpack_exports__);
8973/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamCommand", function() { return ListTagsForStreamCommand; });
8974/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
8975/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
8976/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
8977/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
8978/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
8979
8980
8981
8982
8983
8984/**
8985 * <p>Lists the tags for the specified Kinesis data stream. This operation has a limit of
8986 * five transactions per second per account.</p>
8987 */
8988var ListTagsForStreamCommand = /** @class */ (function (_super) {
8989 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForStreamCommand, _super);
8990 // Start section: command_properties
8991 // End section: command_properties
8992 function ListTagsForStreamCommand(input) {
8993 var _this =
8994 // Start section: command_constructor
8995 _super.call(this) || this;
8996 _this.input = input;
8997 return _this;
8998 // End section: command_constructor
8999 }
9000 /**
9001 * @internal
9002 */
9003 ListTagsForStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9004 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9005 var stack = clientStack.concat(this.middlewareStack);
9006 var logger = configuration.logger;
9007 var clientName = "KinesisClient";
9008 var commandName = "ListTagsForStreamCommand";
9009 var handlerExecutionContext = {
9010 logger: logger,
9011 clientName: clientName,
9012 commandName: commandName,
9013 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForStreamInput"].filterSensitiveLog,
9014 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["ListTagsForStreamOutput"].filterSensitiveLog,
9015 };
9016 var requestHandler = configuration.requestHandler;
9017 return stack.resolve(function (request) {
9018 return requestHandler.handle(request.request, options || {});
9019 }, handlerExecutionContext);
9020 };
9021 ListTagsForStreamCommand.prototype.serialize = function (input, context) {
9022 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1ListTagsForStreamCommand"])(input, context);
9023 };
9024 ListTagsForStreamCommand.prototype.deserialize = function (output, context) {
9025 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1ListTagsForStreamCommand"])(output, context);
9026 };
9027 return ListTagsForStreamCommand;
9028}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9029
9030//# sourceMappingURL=ListTagsForStreamCommand.js.map
9031
9032/***/ }),
9033
9034/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js":
9035/*!****************************************************************************************************!*\
9036 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js ***!
9037 \****************************************************************************************************/
9038/*! exports provided: MergeShardsCommand */
9039/***/ (function(module, __webpack_exports__, __webpack_require__) {
9040
9041"use strict";
9042__webpack_require__.r(__webpack_exports__);
9043/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeShardsCommand", function() { return MergeShardsCommand; });
9044/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9045/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9046/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9047/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9048/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9049
9050
9051
9052
9053
9054/**
9055 * <p>Merges two adjacent shards in a Kinesis data stream and combines them into a single
9056 * shard to reduce the stream's capacity to ingest and transport data. Two shards are
9057 * considered adjacent if the union of the hash key ranges for the two shards form a
9058 * contiguous set with no gaps. For example, if you have two shards, one with a hash key
9059 * range of 276...381 and the other with a hash key range of 382...454, then you could
9060 * merge these two shards into a single shard that would have a hash key range of
9061 * 276...454. After the merge, the single child shard receives data for all hash key values
9062 * covered by the two parent shards.</p>
9063 * <p>
9064 * <code>MergeShards</code> is called when there is a need to reduce the overall capacity
9065 * of a stream because of excess capacity that is not being used. You must specify the
9066 * shard to be merged and the adjacent shard for a stream. For more information about
9067 * merging shards, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html">Merge Two
9068 * Shards</a> in the <i>Amazon Kinesis Data Streams Developer
9069 * Guide</i>.</p>
9070 * <p>If the stream is in the <code>ACTIVE</code> state, you can call
9071 * <code>MergeShards</code>. If a stream is in the <code>CREATING</code>,
9072 * <code>UPDATING</code>, or <code>DELETING</code> state, <code>MergeShards</code>
9073 * returns a <code>ResourceInUseException</code>. If the specified stream does not exist,
9074 * <code>MergeShards</code> returns a <code>ResourceNotFoundException</code>. </p>
9075 * <p>You can use <a>DescribeStream</a> to check the state of the stream,
9076 * which is returned in <code>StreamStatus</code>.</p>
9077 * <p>
9078 * <code>MergeShards</code> is an asynchronous operation. Upon receiving a
9079 * <code>MergeShards</code> request, Amazon Kinesis Data Streams immediately returns a
9080 * response and sets the <code>StreamStatus</code> to <code>UPDATING</code>. After the
9081 * operation is completed, Kinesis Data Streams sets the <code>StreamStatus</code> to
9082 * <code>ACTIVE</code>. Read and write operations continue to work while the stream is
9083 * in the <code>UPDATING</code> state. </p>
9084 * <p>You use <a>DescribeStream</a> to determine the shard IDs that are
9085 * specified in the <code>MergeShards</code> request. </p>
9086 * <p>If you try to operate on too many streams in parallel using <a>CreateStream</a>, <a>DeleteStream</a>, <code>MergeShards</code>,
9087 * or <a>SplitShard</a>, you receive a <code>LimitExceededException</code>. </p>
9088 * <p>
9089 * <code>MergeShards</code> has a limit of five transactions per second per
9090 * account.</p>
9091 */
9092var MergeShardsCommand = /** @class */ (function (_super) {
9093 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MergeShardsCommand, _super);
9094 // Start section: command_properties
9095 // End section: command_properties
9096 function MergeShardsCommand(input) {
9097 var _this =
9098 // Start section: command_constructor
9099 _super.call(this) || this;
9100 _this.input = input;
9101 return _this;
9102 // End section: command_constructor
9103 }
9104 /**
9105 * @internal
9106 */
9107 MergeShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9108 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9109 var stack = clientStack.concat(this.middlewareStack);
9110 var logger = configuration.logger;
9111 var clientName = "KinesisClient";
9112 var commandName = "MergeShardsCommand";
9113 var handlerExecutionContext = {
9114 logger: logger,
9115 clientName: clientName,
9116 commandName: commandName,
9117 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["MergeShardsInput"].filterSensitiveLog,
9118 outputFilterSensitiveLog: function (output) { return output; },
9119 };
9120 var requestHandler = configuration.requestHandler;
9121 return stack.resolve(function (request) {
9122 return requestHandler.handle(request.request, options || {});
9123 }, handlerExecutionContext);
9124 };
9125 MergeShardsCommand.prototype.serialize = function (input, context) {
9126 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1MergeShardsCommand"])(input, context);
9127 };
9128 MergeShardsCommand.prototype.deserialize = function (output, context) {
9129 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1MergeShardsCommand"])(output, context);
9130 };
9131 return MergeShardsCommand;
9132}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9133
9134//# sourceMappingURL=MergeShardsCommand.js.map
9135
9136/***/ }),
9137
9138/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js":
9139/*!**************************************************************************************************!*\
9140 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js ***!
9141 \**************************************************************************************************/
9142/*! exports provided: PutRecordCommand */
9143/***/ (function(module, __webpack_exports__, __webpack_require__) {
9144
9145"use strict";
9146__webpack_require__.r(__webpack_exports__);
9147/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return PutRecordCommand; });
9148/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9149/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9150/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9151/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9152/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9153
9154
9155
9156
9157
9158/**
9159 * <p>Writes a single data record into an Amazon Kinesis data stream. Call
9160 * <code>PutRecord</code> to send data into the stream for real-time ingestion and
9161 * subsequent processing, one record at a time. Each shard can support writes up to 1,000
9162 * records per second, up to a maximum data write total of 1 MiB per second.</p>
9163 * <p>You must specify the name of the stream that captures, stores, and transports the
9164 * data; a partition key; and the data blob itself.</p>
9165 * <p>The data blob can be any type of data; for example, a segment from a log file,
9166 * geographic/location data, website clickstream data, and so on.</p>
9167 * <p>The partition key is used by Kinesis Data Streams to distribute data across shards.
9168 * Kinesis Data Streams segregates the data records that belong to a stream into multiple
9169 * shards, using the partition key associated with each data record to determine the shard
9170 * to which a given data record belongs.</p>
9171 * <p>Partition keys are Unicode strings, with a maximum length limit of 256 characters
9172 * for each key. An MD5 hash function is used to map partition keys to 128-bit integer
9173 * values and to map associated data records to shards using the hash key ranges of the
9174 * shards. You can override hashing the partition key to determine the shard by explicitly
9175 * specifying a hash value using the <code>ExplicitHashKey</code> parameter. For more
9176 * information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream">Adding Data to a Stream</a> in the <i>Amazon Kinesis Data Streams
9177 * Developer Guide</i>.</p>
9178 * <p>
9179 * <code>PutRecord</code> returns the shard ID of where the data record was placed and the
9180 * sequence number that was assigned to the data record.</p>
9181 * <p>Sequence numbers increase over time and are specific to a shard within a stream,
9182 * not across all shards within a stream. To guarantee strictly increasing ordering, write
9183 * serially to a shard and use the <code>SequenceNumberForOrdering</code> parameter. For
9184 * more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream">Adding Data to a Stream</a> in the <i>Amazon Kinesis Data Streams
9185 * Developer Guide</i>.</p>
9186 * <important>
9187 * <p>After you write a record to a stream, you cannot modify that record or its order
9188 * within the stream.</p>
9189 * </important>
9190 * <p>If a <code>PutRecord</code> request cannot be processed because of insufficient
9191 * provisioned throughput on the shard involved in the request, <code>PutRecord</code>
9192 * throws <code>ProvisionedThroughputExceededException</code>. </p>
9193 * <p>By default, data records are accessible for 24 hours from the time that they are
9194 * added to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
9195 */
9196var PutRecordCommand = /** @class */ (function (_super) {
9197 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordCommand, _super);
9198 // Start section: command_properties
9199 // End section: command_properties
9200 function PutRecordCommand(input) {
9201 var _this =
9202 // Start section: command_constructor
9203 _super.call(this) || this;
9204 _this.input = input;
9205 return _this;
9206 // End section: command_constructor
9207 }
9208 /**
9209 * @internal
9210 */
9211 PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9212 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9213 var stack = clientStack.concat(this.middlewareStack);
9214 var logger = configuration.logger;
9215 var clientName = "KinesisClient";
9216 var commandName = "PutRecordCommand";
9217 var handlerExecutionContext = {
9218 logger: logger,
9219 clientName: clientName,
9220 commandName: commandName,
9221 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordInput"].filterSensitiveLog,
9222 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordOutput"].filterSensitiveLog,
9223 };
9224 var requestHandler = configuration.requestHandler;
9225 return stack.resolve(function (request) {
9226 return requestHandler.handle(request.request, options || {});
9227 }, handlerExecutionContext);
9228 };
9229 PutRecordCommand.prototype.serialize = function (input, context) {
9230 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordCommand"])(input, context);
9231 };
9232 PutRecordCommand.prototype.deserialize = function (output, context) {
9233 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordCommand"])(output, context);
9234 };
9235 return PutRecordCommand;
9236}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9237
9238//# sourceMappingURL=PutRecordCommand.js.map
9239
9240/***/ }),
9241
9242/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js":
9243/*!***************************************************************************************************!*\
9244 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js ***!
9245 \***************************************************************************************************/
9246/*! exports provided: PutRecordsCommand */
9247/***/ (function(module, __webpack_exports__, __webpack_require__) {
9248
9249"use strict";
9250__webpack_require__.r(__webpack_exports__);
9251/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsCommand", function() { return PutRecordsCommand; });
9252/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9253/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9254/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9255/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9256/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9257
9258
9259
9260
9261
9262/**
9263 * <p>Writes multiple data records into a Kinesis data stream in a single call (also
9264 * referred to as a <code>PutRecords</code> request). Use this operation to send data into
9265 * the stream for data ingestion and processing. </p>
9266 * <p>Each <code>PutRecords</code> request can support up to 500 records. Each record in
9267 * the request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,
9268 * including partition keys. Each shard can support writes up to 1,000 records per second,
9269 * up to a maximum data write total of 1 MiB per second.</p>
9270 * <p>You must specify the name of the stream that captures, stores, and transports the
9271 * data; and an array of request <code>Records</code>, with each record in the array
9272 * requiring a partition key and data blob. The record size limit applies to the total size
9273 * of the partition key and data blob.</p>
9274 * <p>The data blob can be any type of data; for example, a segment from a log file,
9275 * geographic/location data, website clickstream data, and so on.</p>
9276 * <p>The partition key is used by Kinesis Data Streams as input to a hash function that
9277 * maps the partition key and associated data to a specific shard. An MD5 hash function is
9278 * used to map partition keys to 128-bit integer values and to map associated data records
9279 * to shards. As a result of this hashing mechanism, all data records with the same
9280 * partition key map to the same shard within the stream. For more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream">Adding Data to a Stream</a> in the <i>Amazon Kinesis Data Streams
9281 * Developer Guide</i>.</p>
9282 * <p>Each record in the <code>Records</code> array may include an optional parameter,
9283 * <code>ExplicitHashKey</code>, which overrides the partition key to shard mapping.
9284 * This parameter allows a data producer to determine explicitly the shard where the record
9285 * is stored. For more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-putrecords">Adding Multiple Records with PutRecords</a> in the <i>Amazon Kinesis
9286 * Data Streams Developer Guide</i>.</p>
9287 * <p>The <code>PutRecords</code> response includes an array of response
9288 * <code>Records</code>. Each record in the response array directly correlates with a
9289 * record in the request array using natural ordering, from the top to the bottom of the
9290 * request and response. The response <code>Records</code> array always includes the same
9291 * number of records as the request array.</p>
9292 * <p>The response <code>Records</code> array includes both successfully and
9293 * unsuccessfully processed records. Kinesis Data Streams attempts to process all records
9294 * in each <code>PutRecords</code> request. A single record failure does not stop the
9295 * processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering
9296 * of records. If you need to read records in the same order they are written to the
9297 * stream, use <a>PutRecord</a> instead of <code>PutRecords</code>, and write to
9298 * the same shard.</p>
9299 * <p>A successfully processed record includes <code>ShardId</code> and
9300 * <code>SequenceNumber</code> values. The <code>ShardId</code> parameter identifies
9301 * the shard in the stream where the record is stored. The <code>SequenceNumber</code>
9302 * parameter is an identifier assigned to the put record, unique to all records in the
9303 * stream.</p>
9304 * <p>An unsuccessfully processed record includes <code>ErrorCode</code> and
9305 * <code>ErrorMessage</code> values. <code>ErrorCode</code> reflects the type of error
9306 * and can be one of the following values:
9307 * <code>ProvisionedThroughputExceededException</code> or <code>InternalFailure</code>.
9308 * <code>ErrorMessage</code> provides more detailed information about the
9309 * <code>ProvisionedThroughputExceededException</code> exception including the account
9310 * ID, stream name, and shard ID of the record that was throttled. For more information
9311 * about partially successful responses, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-add-data-to-stream.html#kinesis-using-sdk-java-putrecords">Adding Multiple Records with PutRecords</a> in the <i>Amazon Kinesis
9312 * Data Streams Developer Guide</i>.</p>
9313 * <important>
9314 * <p>After you write a record to a stream, you cannot modify that record or its order
9315 * within the stream.</p>
9316 * </important>
9317 * <p>By default, data records are accessible for 24 hours from the time that they are
9318 * added to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
9319 */
9320var PutRecordsCommand = /** @class */ (function (_super) {
9321 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutRecordsCommand, _super);
9322 // Start section: command_properties
9323 // End section: command_properties
9324 function PutRecordsCommand(input) {
9325 var _this =
9326 // Start section: command_constructor
9327 _super.call(this) || this;
9328 _this.input = input;
9329 return _this;
9330 // End section: command_constructor
9331 }
9332 /**
9333 * @internal
9334 */
9335 PutRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9336 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9337 var stack = clientStack.concat(this.middlewareStack);
9338 var logger = configuration.logger;
9339 var clientName = "KinesisClient";
9340 var commandName = "PutRecordsCommand";
9341 var handlerExecutionContext = {
9342 logger: logger,
9343 clientName: clientName,
9344 commandName: commandName,
9345 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordsInput"].filterSensitiveLog,
9346 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutRecordsOutput"].filterSensitiveLog,
9347 };
9348 var requestHandler = configuration.requestHandler;
9349 return stack.resolve(function (request) {
9350 return requestHandler.handle(request.request, options || {});
9351 }, handlerExecutionContext);
9352 };
9353 PutRecordsCommand.prototype.serialize = function (input, context) {
9354 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1PutRecordsCommand"])(input, context);
9355 };
9356 PutRecordsCommand.prototype.deserialize = function (output, context) {
9357 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1PutRecordsCommand"])(output, context);
9358 };
9359 return PutRecordsCommand;
9360}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9361
9362//# sourceMappingURL=PutRecordsCommand.js.map
9363
9364/***/ }),
9365
9366/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js":
9367/*!***************************************************************************************************************!*\
9368 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js ***!
9369 \***************************************************************************************************************/
9370/*! exports provided: RegisterStreamConsumerCommand */
9371/***/ (function(module, __webpack_exports__, __webpack_require__) {
9372
9373"use strict";
9374__webpack_require__.r(__webpack_exports__);
9375/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerCommand", function() { return RegisterStreamConsumerCommand; });
9376/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9377/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9378/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9379/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9380/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9381
9382
9383
9384
9385
9386/**
9387 * <p>Registers a consumer with a Kinesis data stream. When you use this operation, the
9388 * consumer you register can then call <a>SubscribeToShard</a> to receive data
9389 * from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every
9390 * shard you subscribe to. This rate is unaffected by the total number of consumers that
9391 * read from the same stream.</p>
9392 * <p>You can register up to 20 consumers per stream. A given consumer can only be
9393 * registered with one stream at a time.</p>
9394 * <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
9395 * Using the Kinesis Data Streams API</a>.</p>
9396 * <p>The use of this operation has a limit of five transactions per second per account.
9397 * Also, only 5 consumers can be created simultaneously. In other words, you cannot have
9398 * more than 5 consumers in a <code>CREATING</code> status at the same time. Registering a
9399 * 6th consumer while there are 5 in a <code>CREATING</code> status results in a
9400 * <code>LimitExceededException</code>.</p>
9401 */
9402var RegisterStreamConsumerCommand = /** @class */ (function (_super) {
9403 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RegisterStreamConsumerCommand, _super);
9404 // Start section: command_properties
9405 // End section: command_properties
9406 function RegisterStreamConsumerCommand(input) {
9407 var _this =
9408 // Start section: command_constructor
9409 _super.call(this) || this;
9410 _this.input = input;
9411 return _this;
9412 // End section: command_constructor
9413 }
9414 /**
9415 * @internal
9416 */
9417 RegisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9418 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9419 var stack = clientStack.concat(this.middlewareStack);
9420 var logger = configuration.logger;
9421 var clientName = "KinesisClient";
9422 var commandName = "RegisterStreamConsumerCommand";
9423 var handlerExecutionContext = {
9424 logger: logger,
9425 clientName: clientName,
9426 commandName: commandName,
9427 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["RegisterStreamConsumerInput"].filterSensitiveLog,
9428 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["RegisterStreamConsumerOutput"].filterSensitiveLog,
9429 };
9430 var requestHandler = configuration.requestHandler;
9431 return stack.resolve(function (request) {
9432 return requestHandler.handle(request.request, options || {});
9433 }, handlerExecutionContext);
9434 };
9435 RegisterStreamConsumerCommand.prototype.serialize = function (input, context) {
9436 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1RegisterStreamConsumerCommand"])(input, context);
9437 };
9438 RegisterStreamConsumerCommand.prototype.deserialize = function (output, context) {
9439 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1RegisterStreamConsumerCommand"])(output, context);
9440 };
9441 return RegisterStreamConsumerCommand;
9442}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9443
9444//# sourceMappingURL=RegisterStreamConsumerCommand.js.map
9445
9446/***/ }),
9447
9448/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js":
9449/*!*************************************************************************************************************!*\
9450 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js ***!
9451 \*************************************************************************************************************/
9452/*! exports provided: RemoveTagsFromStreamCommand */
9453/***/ (function(module, __webpack_exports__, __webpack_require__) {
9454
9455"use strict";
9456__webpack_require__.r(__webpack_exports__);
9457/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamCommand", function() { return RemoveTagsFromStreamCommand; });
9458/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9459/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9460/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9461/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9462/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9463
9464
9465
9466
9467
9468/**
9469 * <p>Removes tags from the specified Kinesis data stream. Removed tags are deleted and
9470 * cannot be recovered after this operation successfully completes.</p>
9471 * <p>If you specify a tag that does not exist, it is ignored.</p>
9472 * <p>
9473 * <a>RemoveTagsFromStream</a> has a limit of five transactions per second per
9474 * account.</p>
9475 */
9476var RemoveTagsFromStreamCommand = /** @class */ (function (_super) {
9477 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RemoveTagsFromStreamCommand, _super);
9478 // Start section: command_properties
9479 // End section: command_properties
9480 function RemoveTagsFromStreamCommand(input) {
9481 var _this =
9482 // Start section: command_constructor
9483 _super.call(this) || this;
9484 _this.input = input;
9485 return _this;
9486 // End section: command_constructor
9487 }
9488 /**
9489 * @internal
9490 */
9491 RemoveTagsFromStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9492 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9493 var stack = clientStack.concat(this.middlewareStack);
9494 var logger = configuration.logger;
9495 var clientName = "KinesisClient";
9496 var commandName = "RemoveTagsFromStreamCommand";
9497 var handlerExecutionContext = {
9498 logger: logger,
9499 clientName: clientName,
9500 commandName: commandName,
9501 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["RemoveTagsFromStreamInput"].filterSensitiveLog,
9502 outputFilterSensitiveLog: function (output) { return output; },
9503 };
9504 var requestHandler = configuration.requestHandler;
9505 return stack.resolve(function (request) {
9506 return requestHandler.handle(request.request, options || {});
9507 }, handlerExecutionContext);
9508 };
9509 RemoveTagsFromStreamCommand.prototype.serialize = function (input, context) {
9510 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1RemoveTagsFromStreamCommand"])(input, context);
9511 };
9512 RemoveTagsFromStreamCommand.prototype.deserialize = function (output, context) {
9513 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1RemoveTagsFromStreamCommand"])(output, context);
9514 };
9515 return RemoveTagsFromStreamCommand;
9516}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9517
9518//# sourceMappingURL=RemoveTagsFromStreamCommand.js.map
9519
9520/***/ }),
9521
9522/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js":
9523/*!***************************************************************************************************!*\
9524 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js ***!
9525 \***************************************************************************************************/
9526/*! exports provided: SplitShardCommand */
9527/***/ (function(module, __webpack_exports__, __webpack_require__) {
9528
9529"use strict";
9530__webpack_require__.r(__webpack_exports__);
9531/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplitShardCommand", function() { return SplitShardCommand; });
9532/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9533/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9534/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9535/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9536/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9537
9538
9539
9540
9541
9542/**
9543 * <p>Splits a shard into two new shards in the Kinesis data stream, to increase the
9544 * stream's capacity to ingest and transport data. <code>SplitShard</code> is called when
9545 * there is a need to increase the overall capacity of a stream because of an expected
9546 * increase in the volume of data records being ingested. </p>
9547 * <p>You can also use <code>SplitShard</code> when a shard appears to be approaching its
9548 * maximum utilization; for example, the producers sending data into the specific shard are
9549 * suddenly sending more than previously anticipated. You can also call
9550 * <code>SplitShard</code> to increase stream capacity, so that more Kinesis Data
9551 * Streams applications can simultaneously read data from the stream for real-time
9552 * processing. </p>
9553 * <p>You must specify the shard to be split and the new hash key, which is the position
9554 * in the shard where the shard gets split in two. In many cases, the new hash key might be
9555 * the average of the beginning and ending hash key, but it can be any hash key value in
9556 * the range being mapped into the shard. For more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html">Split a
9557 * Shard</a> in the <i>Amazon Kinesis Data Streams Developer
9558 * Guide</i>.</p>
9559 * <p>You can use <a>DescribeStream</a> to determine the shard ID and hash key
9560 * values for the <code>ShardToSplit</code> and <code>NewStartingHashKey</code> parameters
9561 * that are specified in the <code>SplitShard</code> request.</p>
9562 * <p>
9563 * <code>SplitShard</code> is an asynchronous operation. Upon receiving a
9564 * <code>SplitShard</code> request, Kinesis Data Streams immediately returns a response
9565 * and sets the stream status to <code>UPDATING</code>. After the operation is completed,
9566 * Kinesis Data Streams sets the stream status to <code>ACTIVE</code>. Read and write
9567 * operations continue to work while the stream is in the <code>UPDATING</code> state. </p>
9568 * <p>You can use <code>DescribeStream</code> to check the status of the stream, which is
9569 * returned in <code>StreamStatus</code>. If the stream is in the <code>ACTIVE</code>
9570 * state, you can call <code>SplitShard</code>. If a stream is in <code>CREATING</code> or
9571 * <code>UPDATING</code> or <code>DELETING</code> states, <code>DescribeStream</code>
9572 * returns a <code>ResourceInUseException</code>.</p>
9573 * <p>If the specified stream does not exist, <code>DescribeStream</code> returns a
9574 * <code>ResourceNotFoundException</code>. If you try to create more shards than are
9575 * authorized for your account, you receive a <code>LimitExceededException</code>. </p>
9576 * <p>For the default shard limit for an AWS account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Kinesis Data Streams
9577 * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
9578 * Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact AWS
9579 * Support</a>.</p>
9580 * <p>If you try to operate on too many streams simultaneously using <a>CreateStream</a>, <a>DeleteStream</a>, <a>MergeShards</a>, and/or <a>SplitShard</a>, you receive a
9581 * <code>LimitExceededException</code>. </p>
9582 * <p>
9583 * <code>SplitShard</code> has a limit of five transactions per second per
9584 * account.</p>
9585 */
9586var SplitShardCommand = /** @class */ (function (_super) {
9587 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SplitShardCommand, _super);
9588 // Start section: command_properties
9589 // End section: command_properties
9590 function SplitShardCommand(input) {
9591 var _this =
9592 // Start section: command_constructor
9593 _super.call(this) || this;
9594 _this.input = input;
9595 return _this;
9596 // End section: command_constructor
9597 }
9598 /**
9599 * @internal
9600 */
9601 SplitShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9602 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9603 var stack = clientStack.concat(this.middlewareStack);
9604 var logger = configuration.logger;
9605 var clientName = "KinesisClient";
9606 var commandName = "SplitShardCommand";
9607 var handlerExecutionContext = {
9608 logger: logger,
9609 clientName: clientName,
9610 commandName: commandName,
9611 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["SplitShardInput"].filterSensitiveLog,
9612 outputFilterSensitiveLog: function (output) { return output; },
9613 };
9614 var requestHandler = configuration.requestHandler;
9615 return stack.resolve(function (request) {
9616 return requestHandler.handle(request.request, options || {});
9617 }, handlerExecutionContext);
9618 };
9619 SplitShardCommand.prototype.serialize = function (input, context) {
9620 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SplitShardCommand"])(input, context);
9621 };
9622 SplitShardCommand.prototype.deserialize = function (output, context) {
9623 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SplitShardCommand"])(output, context);
9624 };
9625 return SplitShardCommand;
9626}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9627
9628//# sourceMappingURL=SplitShardCommand.js.map
9629
9630/***/ }),
9631
9632/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js":
9633/*!**************************************************************************************************************!*\
9634 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js ***!
9635 \**************************************************************************************************************/
9636/*! exports provided: StartStreamEncryptionCommand */
9637/***/ (function(module, __webpack_exports__, __webpack_require__) {
9638
9639"use strict";
9640__webpack_require__.r(__webpack_exports__);
9641/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionCommand", function() { return StartStreamEncryptionCommand; });
9642/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9643/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9644/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9645/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9646/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9647
9648
9649
9650
9651
9652/**
9653 * <p>Enables or updates server-side encryption using an AWS KMS key for a specified
9654 * stream. </p>
9655 * <p>Starting encryption is an asynchronous operation. Upon receiving the request,
9656 * Kinesis Data Streams returns immediately and sets the status of the stream to
9657 * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
9658 * status of the stream back to <code>ACTIVE</code>. Updating or applying encryption
9659 * normally takes a few seconds to complete, but it can take minutes. You can continue to
9660 * read and write data to your stream while its status is <code>UPDATING</code>. Once the
9661 * status of the stream is <code>ACTIVE</code>, encryption begins for records written to
9662 * the stream. </p>
9663 * <p>API Limits: You can successfully apply a new AWS KMS key for server-side encryption
9664 * 25 times in a rolling 24-hour period.</p>
9665 * <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
9666 * status before all records written to the stream are encrypted. After you enable
9667 * encryption, you can verify that encryption is applied by inspecting the API response
9668 * from <code>PutRecord</code> or <code>PutRecords</code>.</p>
9669 */
9670var StartStreamEncryptionCommand = /** @class */ (function (_super) {
9671 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StartStreamEncryptionCommand, _super);
9672 // Start section: command_properties
9673 // End section: command_properties
9674 function StartStreamEncryptionCommand(input) {
9675 var _this =
9676 // Start section: command_constructor
9677 _super.call(this) || this;
9678 _this.input = input;
9679 return _this;
9680 // End section: command_constructor
9681 }
9682 /**
9683 * @internal
9684 */
9685 StartStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9686 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9687 var stack = clientStack.concat(this.middlewareStack);
9688 var logger = configuration.logger;
9689 var clientName = "KinesisClient";
9690 var commandName = "StartStreamEncryptionCommand";
9691 var handlerExecutionContext = {
9692 logger: logger,
9693 clientName: clientName,
9694 commandName: commandName,
9695 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StartStreamEncryptionInput"].filterSensitiveLog,
9696 outputFilterSensitiveLog: function (output) { return output; },
9697 };
9698 var requestHandler = configuration.requestHandler;
9699 return stack.resolve(function (request) {
9700 return requestHandler.handle(request.request, options || {});
9701 }, handlerExecutionContext);
9702 };
9703 StartStreamEncryptionCommand.prototype.serialize = function (input, context) {
9704 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StartStreamEncryptionCommand"])(input, context);
9705 };
9706 StartStreamEncryptionCommand.prototype.deserialize = function (output, context) {
9707 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StartStreamEncryptionCommand"])(output, context);
9708 };
9709 return StartStreamEncryptionCommand;
9710}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9711
9712//# sourceMappingURL=StartStreamEncryptionCommand.js.map
9713
9714/***/ }),
9715
9716/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js":
9717/*!*************************************************************************************************************!*\
9718 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js ***!
9719 \*************************************************************************************************************/
9720/*! exports provided: StopStreamEncryptionCommand */
9721/***/ (function(module, __webpack_exports__, __webpack_require__) {
9722
9723"use strict";
9724__webpack_require__.r(__webpack_exports__);
9725/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionCommand", function() { return StopStreamEncryptionCommand; });
9726/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9727/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9728/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9729/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9730/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9731
9732
9733
9734
9735
9736/**
9737 * <p>Disables server-side encryption for a specified stream. </p>
9738 * <p>Stopping encryption is an asynchronous operation. Upon receiving the request,
9739 * Kinesis Data Streams returns immediately and sets the status of the stream to
9740 * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
9741 * status of the stream back to <code>ACTIVE</code>. Stopping encryption normally takes a
9742 * few seconds to complete, but it can take minutes. You can continue to read and write
9743 * data to your stream while its status is <code>UPDATING</code>. Once the status of the
9744 * stream is <code>ACTIVE</code>, records written to the stream are no longer encrypted by
9745 * Kinesis Data Streams. </p>
9746 * <p>API Limits: You can successfully disable server-side encryption 25 times in a
9747 * rolling 24-hour period. </p>
9748 * <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
9749 * status before all records written to the stream are no longer subject to encryption.
9750 * After you disabled encryption, you can verify that encryption is not applied by
9751 * inspecting the API response from <code>PutRecord</code> or
9752 * <code>PutRecords</code>.</p>
9753 */
9754var StopStreamEncryptionCommand = /** @class */ (function (_super) {
9755 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(StopStreamEncryptionCommand, _super);
9756 // Start section: command_properties
9757 // End section: command_properties
9758 function StopStreamEncryptionCommand(input) {
9759 var _this =
9760 // Start section: command_constructor
9761 _super.call(this) || this;
9762 _this.input = input;
9763 return _this;
9764 // End section: command_constructor
9765 }
9766 /**
9767 * @internal
9768 */
9769 StopStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9770 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9771 var stack = clientStack.concat(this.middlewareStack);
9772 var logger = configuration.logger;
9773 var clientName = "KinesisClient";
9774 var commandName = "StopStreamEncryptionCommand";
9775 var handlerExecutionContext = {
9776 logger: logger,
9777 clientName: clientName,
9778 commandName: commandName,
9779 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["StopStreamEncryptionInput"].filterSensitiveLog,
9780 outputFilterSensitiveLog: function (output) { return output; },
9781 };
9782 var requestHandler = configuration.requestHandler;
9783 return stack.resolve(function (request) {
9784 return requestHandler.handle(request.request, options || {});
9785 }, handlerExecutionContext);
9786 };
9787 StopStreamEncryptionCommand.prototype.serialize = function (input, context) {
9788 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1StopStreamEncryptionCommand"])(input, context);
9789 };
9790 StopStreamEncryptionCommand.prototype.deserialize = function (output, context) {
9791 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1StopStreamEncryptionCommand"])(output, context);
9792 };
9793 return StopStreamEncryptionCommand;
9794}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9795
9796//# sourceMappingURL=StopStreamEncryptionCommand.js.map
9797
9798/***/ }),
9799
9800/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js":
9801/*!*********************************************************************************************************!*\
9802 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js ***!
9803 \*********************************************************************************************************/
9804/*! exports provided: SubscribeToShardCommand */
9805/***/ (function(module, __webpack_exports__, __webpack_require__) {
9806
9807"use strict";
9808__webpack_require__.r(__webpack_exports__);
9809/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardCommand", function() { return SubscribeToShardCommand; });
9810/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9811/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9812/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9813/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9814/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9815
9816
9817
9818
9819
9820/**
9821 * <p>This operation establishes an HTTP/2 connection between the consumer you specify in
9822 * the <code>ConsumerARN</code> parameter and the shard you specify in the
9823 * <code>ShardId</code> parameter. After the connection is successfully established,
9824 * Kinesis Data Streams pushes records from the shard to the consumer over this connection.
9825 * Before you call this operation, call <a>RegisterStreamConsumer</a> to
9826 * register the consumer with Kinesis Data Streams.</p>
9827 * <p>When the <code>SubscribeToShard</code> call succeeds, your consumer starts receiving
9828 * events of type <a>SubscribeToShardEvent</a> over the HTTP/2 connection for up
9829 * to 5 minutes, after which time you need to call <code>SubscribeToShard</code> again to
9830 * renew the subscription if you want to continue to receive records.</p>
9831 * <p>You can make one call to <code>SubscribeToShard</code> per second per registered
9832 * consumer per shard. For example, if you have a 4000 shard stream and two registered
9833 * stream consumers, you can make one <code>SubscribeToShard</code> request per second for
9834 * each combination of shard and registered consumer, allowing you to subscribe both
9835 * consumers to all 4000 shards in one second. </p>
9836 * <p>If you call <code>SubscribeToShard</code> again with the same <code>ConsumerARN</code>
9837 * and <code>ShardId</code> within 5 seconds of a successful call, you'll get a
9838 * <code>ResourceInUseException</code>. If you call <code>SubscribeToShard</code> 5
9839 * seconds or more after a successful call, the first connection will expire and the second
9840 * call will take over the subscription.</p>
9841 * <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
9842 * Using the Kinesis Data Streams API</a>.</p>
9843 */
9844var SubscribeToShardCommand = /** @class */ (function (_super) {
9845 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SubscribeToShardCommand, _super);
9846 // Start section: command_properties
9847 // End section: command_properties
9848 function SubscribeToShardCommand(input) {
9849 var _this =
9850 // Start section: command_constructor
9851 _super.call(this) || this;
9852 _this.input = input;
9853 return _this;
9854 // End section: command_constructor
9855 }
9856 /**
9857 * @internal
9858 */
9859 SubscribeToShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9860 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9861 var stack = clientStack.concat(this.middlewareStack);
9862 var logger = configuration.logger;
9863 var clientName = "KinesisClient";
9864 var commandName = "SubscribeToShardCommand";
9865 var handlerExecutionContext = {
9866 logger: logger,
9867 clientName: clientName,
9868 commandName: commandName,
9869 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["SubscribeToShardInput"].filterSensitiveLog,
9870 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["SubscribeToShardOutput"].filterSensitiveLog,
9871 };
9872 var requestHandler = configuration.requestHandler;
9873 return stack.resolve(function (request) {
9874 return requestHandler.handle(request.request, options || {});
9875 }, handlerExecutionContext);
9876 };
9877 SubscribeToShardCommand.prototype.serialize = function (input, context) {
9878 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1SubscribeToShardCommand"])(input, context);
9879 };
9880 SubscribeToShardCommand.prototype.deserialize = function (output, context) {
9881 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1SubscribeToShardCommand"])(output, context);
9882 };
9883 return SubscribeToShardCommand;
9884}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9885
9886//# sourceMappingURL=SubscribeToShardCommand.js.map
9887
9888/***/ }),
9889
9890/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js":
9891/*!*********************************************************************************************************!*\
9892 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js ***!
9893 \*********************************************************************************************************/
9894/*! exports provided: UpdateShardCountCommand */
9895/***/ (function(module, __webpack_exports__, __webpack_require__) {
9896
9897"use strict";
9898__webpack_require__.r(__webpack_exports__);
9899/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountCommand", function() { return UpdateShardCountCommand; });
9900/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
9901/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
9902/* harmony import */ var _protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_json1_1 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js");
9903/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
9904/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
9905
9906
9907
9908
9909
9910/**
9911 * <p>Updates the shard count of the specified stream to the specified number of
9912 * shards.</p>
9913 * <p>Updating the shard count is an asynchronous operation. Upon receiving the request,
9914 * Kinesis Data Streams returns immediately and sets the status of the stream to
9915 * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
9916 * status of the stream back to <code>ACTIVE</code>. Depending on the size of the stream,
9917 * the scaling action could take a few minutes to complete. You can continue to read and
9918 * write data to your stream while its status is <code>UPDATING</code>.</p>
9919 * <p>To update the shard count, Kinesis Data Streams performs splits or merges on
9920 * individual shards. This can cause short-lived shards to be created, in addition to the
9921 * final shards. These short-lived shards count towards your total shard limit for your
9922 * account in the Region.</p>
9923 * <p>When using this operation, we recommend that you specify a target shard count that
9924 * is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your
9925 * shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling
9926 * action might take longer to complete. </p>
9927 * <p>This operation has the following default limits. By default, you cannot do the
9928 * following:</p>
9929 * <ul>
9930 * <li>
9931 * <p>Scale more than ten times per rolling 24-hour period per stream</p>
9932 * </li>
9933 * <li>
9934 * <p>Scale up to more than double your current shard count for a
9935 * stream</p>
9936 * </li>
9937 * <li>
9938 * <p>Scale down below half your current shard count for a stream</p>
9939 * </li>
9940 * <li>
9941 * <p>Scale up to more than 500 shards in a stream</p>
9942 * </li>
9943 * <li>
9944 * <p>Scale a stream with more than 500 shards down unless the result is less
9945 * than 500 shards</p>
9946 * </li>
9947 * <li>
9948 * <p>Scale up to more than the shard limit for your account</p>
9949 * </li>
9950 * </ul>
9951 * <p>For the default limits for an AWS account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams Limits</a> in the
9952 * <i>Amazon Kinesis Data Streams Developer Guide</i>. To request an
9953 * increase in the call rate limit, the shard limit for this API, or your overall shard
9954 * limit, use the <a href="https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis">limits form</a>.</p>
9955 */
9956var UpdateShardCountCommand = /** @class */ (function (_super) {
9957 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateShardCountCommand, _super);
9958 // Start section: command_properties
9959 // End section: command_properties
9960 function UpdateShardCountCommand(input) {
9961 var _this =
9962 // Start section: command_constructor
9963 _super.call(this) || this;
9964 _this.input = input;
9965 return _this;
9966 // End section: command_constructor
9967 }
9968 /**
9969 * @internal
9970 */
9971 UpdateShardCountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9972 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
9973 var stack = clientStack.concat(this.middlewareStack);
9974 var logger = configuration.logger;
9975 var clientName = "KinesisClient";
9976 var commandName = "UpdateShardCountCommand";
9977 var handlerExecutionContext = {
9978 logger: logger,
9979 clientName: clientName,
9980 commandName: commandName,
9981 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateShardCountInput"].filterSensitiveLog,
9982 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["UpdateShardCountOutput"].filterSensitiveLog,
9983 };
9984 var requestHandler = configuration.requestHandler;
9985 return stack.resolve(function (request) {
9986 return requestHandler.handle(request.request, options || {});
9987 }, handlerExecutionContext);
9988 };
9989 UpdateShardCountCommand.prototype.serialize = function (input, context) {
9990 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_json1_1UpdateShardCountCommand"])(input, context);
9991 };
9992 UpdateShardCountCommand.prototype.deserialize = function (output, context) {
9993 return Object(_protocols_Aws_json1_1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_json1_1UpdateShardCountCommand"])(output, context);
9994 };
9995 return UpdateShardCountCommand;
9996}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
9997
9998//# sourceMappingURL=UpdateShardCountCommand.js.map
9999
10000/***/ }),
10001
10002/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js":
10003/*!**********************************************************************************!*\
10004 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js ***!
10005 \**********************************************************************************/
10006/*! exports provided: defaultRegionInfoProvider */
10007/***/ (function(module, __webpack_exports__, __webpack_require__) {
10008
10009"use strict";
10010__webpack_require__.r(__webpack_exports__);
10011/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
10012/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
10013
10014// Partition default templates
10015var AWS_TEMPLATE = "kinesis.{region}.amazonaws.com";
10016var AWS_CN_TEMPLATE = "kinesis.{region}.amazonaws.com.cn";
10017var AWS_ISO_TEMPLATE = "kinesis.{region}.c2s.ic.gov";
10018var AWS_ISO_B_TEMPLATE = "kinesis.{region}.sc2s.sgov.gov";
10019var AWS_US_GOV_TEMPLATE = "kinesis.{region}.amazonaws.com";
10020// Partition regions
10021var AWS_REGIONS = new Set([
10022 "af-south-1",
10023 "ap-east-1",
10024 "ap-northeast-1",
10025 "ap-northeast-2",
10026 "ap-south-1",
10027 "ap-southeast-1",
10028 "ap-southeast-2",
10029 "ca-central-1",
10030 "eu-central-1",
10031 "eu-north-1",
10032 "eu-south-1",
10033 "eu-west-1",
10034 "eu-west-2",
10035 "eu-west-3",
10036 "me-south-1",
10037 "sa-east-1",
10038 "us-east-1",
10039 "us-east-2",
10040 "us-west-1",
10041 "us-west-2",
10042]);
10043var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
10044var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
10045var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
10046var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
10047var defaultRegionInfoProvider = function (region, options) {
10048 var regionInfo = undefined;
10049 switch (region) {
10050 // First, try to match exact region names.
10051 case "af-south-1":
10052 regionInfo = {
10053 hostname: "kinesis.af-south-1.amazonaws.com",
10054 partition: "aws",
10055 };
10056 break;
10057 case "ap-east-1":
10058 regionInfo = {
10059 hostname: "kinesis.ap-east-1.amazonaws.com",
10060 partition: "aws",
10061 };
10062 break;
10063 case "ap-northeast-1":
10064 regionInfo = {
10065 hostname: "kinesis.ap-northeast-1.amazonaws.com",
10066 partition: "aws",
10067 };
10068 break;
10069 case "ap-northeast-2":
10070 regionInfo = {
10071 hostname: "kinesis.ap-northeast-2.amazonaws.com",
10072 partition: "aws",
10073 };
10074 break;
10075 case "ap-south-1":
10076 regionInfo = {
10077 hostname: "kinesis.ap-south-1.amazonaws.com",
10078 partition: "aws",
10079 };
10080 break;
10081 case "ap-southeast-1":
10082 regionInfo = {
10083 hostname: "kinesis.ap-southeast-1.amazonaws.com",
10084 partition: "aws",
10085 };
10086 break;
10087 case "ap-southeast-2":
10088 regionInfo = {
10089 hostname: "kinesis.ap-southeast-2.amazonaws.com",
10090 partition: "aws",
10091 };
10092 break;
10093 case "ca-central-1":
10094 regionInfo = {
10095 hostname: "kinesis.ca-central-1.amazonaws.com",
10096 partition: "aws",
10097 };
10098 break;
10099 case "cn-north-1":
10100 regionInfo = {
10101 hostname: "kinesis.cn-north-1.amazonaws.com.cn",
10102 partition: "aws-cn",
10103 };
10104 break;
10105 case "cn-northwest-1":
10106 regionInfo = {
10107 hostname: "kinesis.cn-northwest-1.amazonaws.com.cn",
10108 partition: "aws-cn",
10109 };
10110 break;
10111 case "eu-central-1":
10112 regionInfo = {
10113 hostname: "kinesis.eu-central-1.amazonaws.com",
10114 partition: "aws",
10115 };
10116 break;
10117 case "eu-north-1":
10118 regionInfo = {
10119 hostname: "kinesis.eu-north-1.amazonaws.com",
10120 partition: "aws",
10121 };
10122 break;
10123 case "eu-south-1":
10124 regionInfo = {
10125 hostname: "kinesis.eu-south-1.amazonaws.com",
10126 partition: "aws",
10127 };
10128 break;
10129 case "eu-west-1":
10130 regionInfo = {
10131 hostname: "kinesis.eu-west-1.amazonaws.com",
10132 partition: "aws",
10133 };
10134 break;
10135 case "eu-west-2":
10136 regionInfo = {
10137 hostname: "kinesis.eu-west-2.amazonaws.com",
10138 partition: "aws",
10139 };
10140 break;
10141 case "eu-west-3":
10142 regionInfo = {
10143 hostname: "kinesis.eu-west-3.amazonaws.com",
10144 partition: "aws",
10145 };
10146 break;
10147 case "fips-us-east-1":
10148 regionInfo = {
10149 hostname: "kinesis-fips.us-east-1.amazonaws.com",
10150 partition: "aws",
10151 signingRegion: "us-east-1",
10152 };
10153 break;
10154 case "fips-us-east-2":
10155 regionInfo = {
10156 hostname: "kinesis-fips.us-east-2.amazonaws.com",
10157 partition: "aws",
10158 signingRegion: "us-east-2",
10159 };
10160 break;
10161 case "fips-us-west-1":
10162 regionInfo = {
10163 hostname: "kinesis-fips.us-west-1.amazonaws.com",
10164 partition: "aws",
10165 signingRegion: "us-west-1",
10166 };
10167 break;
10168 case "fips-us-west-2":
10169 regionInfo = {
10170 hostname: "kinesis-fips.us-west-2.amazonaws.com",
10171 partition: "aws",
10172 signingRegion: "us-west-2",
10173 };
10174 break;
10175 case "me-south-1":
10176 regionInfo = {
10177 hostname: "kinesis.me-south-1.amazonaws.com",
10178 partition: "aws",
10179 };
10180 break;
10181 case "sa-east-1":
10182 regionInfo = {
10183 hostname: "kinesis.sa-east-1.amazonaws.com",
10184 partition: "aws",
10185 };
10186 break;
10187 case "us-east-1":
10188 regionInfo = {
10189 hostname: "kinesis.us-east-1.amazonaws.com",
10190 partition: "aws",
10191 };
10192 break;
10193 case "us-east-2":
10194 regionInfo = {
10195 hostname: "kinesis.us-east-2.amazonaws.com",
10196 partition: "aws",
10197 };
10198 break;
10199 case "us-gov-east-1":
10200 regionInfo = {
10201 hostname: "kinesis.us-gov-east-1.amazonaws.com",
10202 partition: "aws-us-gov",
10203 signingRegion: "us-gov-east-1",
10204 };
10205 break;
10206 case "us-gov-west-1":
10207 regionInfo = {
10208 hostname: "kinesis.us-gov-west-1.amazonaws.com",
10209 partition: "aws-us-gov",
10210 signingRegion: "us-gov-west-1",
10211 };
10212 break;
10213 case "us-iso-east-1":
10214 regionInfo = {
10215 hostname: "kinesis.us-iso-east-1.c2s.ic.gov",
10216 partition: "aws-iso",
10217 };
10218 break;
10219 case "us-isob-east-1":
10220 regionInfo = {
10221 hostname: "kinesis.us-isob-east-1.sc2s.sgov.gov",
10222 partition: "aws-iso-b",
10223 };
10224 break;
10225 case "us-west-1":
10226 regionInfo = {
10227 hostname: "kinesis.us-west-1.amazonaws.com",
10228 partition: "aws",
10229 };
10230 break;
10231 case "us-west-2":
10232 regionInfo = {
10233 hostname: "kinesis.us-west-2.amazonaws.com",
10234 partition: "aws",
10235 };
10236 break;
10237 // Next, try to match partition endpoints.
10238 default:
10239 if (AWS_REGIONS.has(region)) {
10240 regionInfo = {
10241 hostname: AWS_TEMPLATE.replace("{region}", region),
10242 partition: "aws",
10243 };
10244 }
10245 if (AWS_CN_REGIONS.has(region)) {
10246 regionInfo = {
10247 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
10248 partition: "aws-cn",
10249 };
10250 }
10251 if (AWS_ISO_REGIONS.has(region)) {
10252 regionInfo = {
10253 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
10254 partition: "aws-iso",
10255 };
10256 }
10257 if (AWS_ISO_B_REGIONS.has(region)) {
10258 regionInfo = {
10259 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
10260 partition: "aws-iso-b",
10261 };
10262 }
10263 if (AWS_US_GOV_REGIONS.has(region)) {
10264 regionInfo = {
10265 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
10266 partition: "aws-us-gov",
10267 };
10268 }
10269 // Finally, assume it's an AWS partition endpoint.
10270 if (regionInfo === undefined) {
10271 regionInfo = {
10272 hostname: AWS_TEMPLATE.replace("{region}", region),
10273 partition: "aws",
10274 };
10275 }
10276 }
10277 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "kinesis" }, regionInfo));
10278};
10279//# sourceMappingURL=endpoints.js.map
10280
10281/***/ }),
10282
10283/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/index.js":
10284/*!******************************************************************************!*\
10285 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/index.js ***!
10286 \******************************************************************************/
10287/*! exports provided: KinesisClient, Kinesis, AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeLimitsCommand, DescribeStreamCommand, waitForStreamExists, waitForStreamNotExists, DescribeStreamConsumerCommand, DescribeStreamSummaryCommand, DisableEnhancedMonitoringCommand, EnableEnhancedMonitoringCommand, GetRecordsCommand, GetShardIteratorCommand, IncreaseStreamRetentionPeriodCommand, ListShardsCommand, ListStreamConsumersCommand, paginateListStreamConsumers, ListStreamsCommand, ListTagsForStreamCommand, MergeShardsCommand, PutRecordCommand, PutRecordsCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, SplitShardCommand, StartStreamEncryptionCommand, StopStreamEncryptionCommand, SubscribeToShardCommand, UpdateShardCountCommand, AddTagsToStreamInput, InvalidArgumentException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, HashKeyRange, ChildShard, ConsumerStatus, Consumer, ConsumerDescription, CreateStreamInput, DecreaseStreamRetentionPeriodInput, DeleteStreamInput, DeregisterStreamConsumerInput, DescribeLimitsInput, DescribeLimitsOutput, DescribeStreamInput, EncryptionType, MetricsName, EnhancedMetrics, SequenceNumberRange, Shard, StreamStatus, StreamDescription, DescribeStreamOutput, DescribeStreamConsumerInput, DescribeStreamConsumerOutput, DescribeStreamSummaryInput, StreamDescriptionSummary, DescribeStreamSummaryOutput, DisableEnhancedMonitoringInput, EnhancedMonitoringOutput, EnableEnhancedMonitoringInput, ExpiredIteratorException, ExpiredNextTokenException, GetRecordsInput, _Record, GetRecordsOutput, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, ProvisionedThroughputExceededException, ShardIteratorType, GetShardIteratorInput, GetShardIteratorOutput, IncreaseStreamRetentionPeriodInput, InternalFailureException, ShardFilterType, ShardFilter, ListShardsInput, ListShardsOutput, ListStreamConsumersInput, ListStreamConsumersOutput, ListStreamsInput, ListStreamsOutput, ListTagsForStreamInput, Tag, ListTagsForStreamOutput, MergeShardsInput, PutRecordInput, PutRecordOutput, PutRecordsRequestEntry, PutRecordsInput, PutRecordsResultEntry, PutRecordsOutput, RegisterStreamConsumerInput, RegisterStreamConsumerOutput, RemoveTagsFromStreamInput, SplitShardInput, StartStreamEncryptionInput, StopStreamEncryptionInput, StartingPosition, SubscribeToShardInput, SubscribeToShardEvent, SubscribeToShardEventStream, SubscribeToShardOutput, ScalingType, UpdateShardCountInput, UpdateShardCountOutput */
10288/***/ (function(module, __webpack_exports__, __webpack_require__) {
10289
10290"use strict";
10291__webpack_require__.r(__webpack_exports__);
10292/* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KinesisClient */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js");
10293/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KinesisClient", function() { return _KinesisClient__WEBPACK_IMPORTED_MODULE_0__["KinesisClient"]; });
10294
10295/* harmony import */ var _Kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Kinesis */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js");
10296/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Kinesis", function() { return _Kinesis__WEBPACK_IMPORTED_MODULE_1__["Kinesis"]; });
10297
10298/* harmony import */ var _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/AddTagsToStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/AddTagsToStreamCommand.js");
10299/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamCommand", function() { return _commands_AddTagsToStreamCommand__WEBPACK_IMPORTED_MODULE_2__["AddTagsToStreamCommand"]; });
10300
10301/* harmony import */ var _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/CreateStreamCommand.js");
10302/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamCommand", function() { return _commands_CreateStreamCommand__WEBPACK_IMPORTED_MODULE_3__["CreateStreamCommand"]; });
10303
10304/* harmony import */ var _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/DecreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js");
10305/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodCommand", function() { return _commands_DecreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_4__["DecreaseStreamRetentionPeriodCommand"]; });
10306
10307/* harmony import */ var _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/DeleteStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeleteStreamCommand.js");
10308/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamCommand", function() { return _commands_DeleteStreamCommand__WEBPACK_IMPORTED_MODULE_5__["DeleteStreamCommand"]; });
10309
10310/* harmony import */ var _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/DeregisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DeregisterStreamConsumerCommand.js");
10311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerCommand", function() { return _commands_DeregisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_6__["DeregisterStreamConsumerCommand"]; });
10312
10313/* harmony import */ var _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/DescribeLimitsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeLimitsCommand.js");
10314/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsCommand", function() { return _commands_DescribeLimitsCommand__WEBPACK_IMPORTED_MODULE_7__["DescribeLimitsCommand"]; });
10315
10316/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
10317/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamCommand", function() { return _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_8__["DescribeStreamCommand"]; });
10318
10319/* harmony import */ var _waiters_waitForStreamExists__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./waiters/waitForStreamExists */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamExists.js");
10320/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "waitForStreamExists", function() { return _waiters_waitForStreamExists__WEBPACK_IMPORTED_MODULE_9__["waitForStreamExists"]; });
10321
10322/* harmony import */ var _waiters_waitForStreamNotExists__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./waiters/waitForStreamNotExists */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamNotExists.js");
10323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "waitForStreamNotExists", function() { return _waiters_waitForStreamNotExists__WEBPACK_IMPORTED_MODULE_10__["waitForStreamNotExists"]; });
10324
10325/* harmony import */ var _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/DescribeStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamConsumerCommand.js");
10326/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerCommand", function() { return _commands_DescribeStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_11__["DescribeStreamConsumerCommand"]; });
10327
10328/* harmony import */ var _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/DescribeStreamSummaryCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamSummaryCommand.js");
10329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryCommand", function() { return _commands_DescribeStreamSummaryCommand__WEBPACK_IMPORTED_MODULE_12__["DescribeStreamSummaryCommand"]; });
10330
10331/* harmony import */ var _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DisableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DisableEnhancedMonitoringCommand.js");
10332/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringCommand", function() { return _commands_DisableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_13__["DisableEnhancedMonitoringCommand"]; });
10333
10334/* harmony import */ var _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/EnableEnhancedMonitoringCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/EnableEnhancedMonitoringCommand.js");
10335/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringCommand", function() { return _commands_EnableEnhancedMonitoringCommand__WEBPACK_IMPORTED_MODULE_14__["EnableEnhancedMonitoringCommand"]; });
10336
10337/* harmony import */ var _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/GetRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetRecordsCommand.js");
10338/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsCommand", function() { return _commands_GetRecordsCommand__WEBPACK_IMPORTED_MODULE_15__["GetRecordsCommand"]; });
10339
10340/* harmony import */ var _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/GetShardIteratorCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/GetShardIteratorCommand.js");
10341/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorCommand", function() { return _commands_GetShardIteratorCommand__WEBPACK_IMPORTED_MODULE_16__["GetShardIteratorCommand"]; });
10342
10343/* harmony import */ var _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/IncreaseStreamRetentionPeriodCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js");
10344/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodCommand", function() { return _commands_IncreaseStreamRetentionPeriodCommand__WEBPACK_IMPORTED_MODULE_17__["IncreaseStreamRetentionPeriodCommand"]; });
10345
10346/* harmony import */ var _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/ListShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListShardsCommand.js");
10347/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsCommand", function() { return _commands_ListShardsCommand__WEBPACK_IMPORTED_MODULE_18__["ListShardsCommand"]; });
10348
10349/* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/ListStreamConsumersCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js");
10350/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersCommand", function() { return _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_19__["ListStreamConsumersCommand"]; });
10351
10352/* harmony import */ var _pagination_ListStreamConsumersPaginator__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./pagination/ListStreamConsumersPaginator */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js");
10353/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "paginateListStreamConsumers", function() { return _pagination_ListStreamConsumersPaginator__WEBPACK_IMPORTED_MODULE_20__["paginateListStreamConsumers"]; });
10354
10355/* harmony import */ var _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/ListStreamsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamsCommand.js");
10356/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsCommand", function() { return _commands_ListStreamsCommand__WEBPACK_IMPORTED_MODULE_21__["ListStreamsCommand"]; });
10357
10358/* harmony import */ var _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/ListTagsForStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListTagsForStreamCommand.js");
10359/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamCommand", function() { return _commands_ListTagsForStreamCommand__WEBPACK_IMPORTED_MODULE_22__["ListTagsForStreamCommand"]; });
10360
10361/* harmony import */ var _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/MergeShardsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/MergeShardsCommand.js");
10362/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsCommand", function() { return _commands_MergeShardsCommand__WEBPACK_IMPORTED_MODULE_23__["MergeShardsCommand"]; });
10363
10364/* harmony import */ var _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/PutRecordCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordCommand.js");
10365/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordCommand", function() { return _commands_PutRecordCommand__WEBPACK_IMPORTED_MODULE_24__["PutRecordCommand"]; });
10366
10367/* harmony import */ var _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/PutRecordsCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/PutRecordsCommand.js");
10368/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsCommand", function() { return _commands_PutRecordsCommand__WEBPACK_IMPORTED_MODULE_25__["PutRecordsCommand"]; });
10369
10370/* harmony import */ var _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/RegisterStreamConsumerCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RegisterStreamConsumerCommand.js");
10371/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerCommand", function() { return _commands_RegisterStreamConsumerCommand__WEBPACK_IMPORTED_MODULE_26__["RegisterStreamConsumerCommand"]; });
10372
10373/* harmony import */ var _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/RemoveTagsFromStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/RemoveTagsFromStreamCommand.js");
10374/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamCommand", function() { return _commands_RemoveTagsFromStreamCommand__WEBPACK_IMPORTED_MODULE_27__["RemoveTagsFromStreamCommand"]; });
10375
10376/* harmony import */ var _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/SplitShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SplitShardCommand.js");
10377/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardCommand", function() { return _commands_SplitShardCommand__WEBPACK_IMPORTED_MODULE_28__["SplitShardCommand"]; });
10378
10379/* harmony import */ var _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/StartStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StartStreamEncryptionCommand.js");
10380/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionCommand", function() { return _commands_StartStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_29__["StartStreamEncryptionCommand"]; });
10381
10382/* harmony import */ var _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/StopStreamEncryptionCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/StopStreamEncryptionCommand.js");
10383/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionCommand", function() { return _commands_StopStreamEncryptionCommand__WEBPACK_IMPORTED_MODULE_30__["StopStreamEncryptionCommand"]; });
10384
10385/* harmony import */ var _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/SubscribeToShardCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/SubscribeToShardCommand.js");
10386/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardCommand", function() { return _commands_SubscribeToShardCommand__WEBPACK_IMPORTED_MODULE_31__["SubscribeToShardCommand"]; });
10387
10388/* harmony import */ var _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/UpdateShardCountCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/UpdateShardCountCommand.js");
10389/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountCommand", function() { return _commands_UpdateShardCountCommand__WEBPACK_IMPORTED_MODULE_32__["UpdateShardCountCommand"]; });
10390
10391/* harmony import */ var _pagination_Interfaces__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pagination/Interfaces */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js");
10392/* empty/unused harmony star reexport *//* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./models/index */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/index.js");
10393/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["AddTagsToStreamInput"]; });
10394
10395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["InvalidArgumentException"]; });
10396
10397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["LimitExceededException"]; });
10398
10399/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ResourceInUseException"]; });
10400
10401/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ResourceNotFoundException"]; });
10402
10403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["HashKeyRange"]; });
10404
10405/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChildShard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ChildShard"]; });
10406
10407/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ConsumerStatus"]; });
10408
10409/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["Consumer"]; });
10410
10411/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ConsumerDescription"]; });
10412
10413/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["CreateStreamInput"]; });
10414
10415/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DecreaseStreamRetentionPeriodInput"]; });
10416
10417/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DeleteStreamInput"]; });
10418
10419/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DeregisterStreamConsumerInput"]; });
10420
10421/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeLimitsInput"]; });
10422
10423/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeLimitsOutput"]; });
10424
10425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamInput"]; });
10426
10427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EncryptionType"]; });
10428
10429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["MetricsName"]; });
10430
10431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EnhancedMetrics"]; });
10432
10433/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SequenceNumberRange"]; });
10434
10435/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["Shard"]; });
10436
10437/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StreamStatus"]; });
10438
10439/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StreamDescription"]; });
10440
10441/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamOutput"]; });
10442
10443/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamConsumerInput"]; });
10444
10445/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamConsumerOutput"]; });
10446
10447/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamSummaryInput"]; });
10448
10449/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StreamDescriptionSummary"]; });
10450
10451/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DescribeStreamSummaryOutput"]; });
10452
10453/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["DisableEnhancedMonitoringInput"]; });
10454
10455/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EnhancedMonitoringOutput"]; });
10456
10457/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["EnableEnhancedMonitoringInput"]; });
10458
10459/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ExpiredIteratorException"]; });
10460
10461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ExpiredNextTokenException"]; });
10462
10463/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetRecordsInput"]; });
10464
10465/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["_Record"]; });
10466
10467/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetRecordsOutput"]; });
10468
10469/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSAccessDeniedException"]; });
10470
10471/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSDisabledException"]; });
10472
10473/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSInvalidStateException"]; });
10474
10475/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSNotFoundException"]; });
10476
10477/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSOptInRequired"]; });
10478
10479/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["KMSThrottlingException"]; });
10480
10481/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ProvisionedThroughputExceededException"]; });
10482
10483/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ShardIteratorType"]; });
10484
10485/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetShardIteratorInput"]; });
10486
10487/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["GetShardIteratorOutput"]; });
10488
10489/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["IncreaseStreamRetentionPeriodInput"]; });
10490
10491/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["InternalFailureException"]; });
10492
10493/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilterType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ShardFilterType"]; });
10494
10495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ShardFilter"]; });
10496
10497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListShardsInput"]; });
10498
10499/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListShardsOutput"]; });
10500
10501/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamConsumersInput"]; });
10502
10503/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamConsumersOutput"]; });
10504
10505/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamsInput"]; });
10506
10507/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListStreamsOutput"]; });
10508
10509/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListTagsForStreamInput"]; });
10510
10511/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["Tag"]; });
10512
10513/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ListTagsForStreamOutput"]; });
10514
10515/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["MergeShardsInput"]; });
10516
10517/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordInput"]; });
10518
10519/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordOutput"]; });
10520
10521/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsRequestEntry"]; });
10522
10523/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsInput"]; });
10524
10525/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsResultEntry"]; });
10526
10527/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["PutRecordsOutput"]; });
10528
10529/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["RegisterStreamConsumerInput"]; });
10530
10531/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["RegisterStreamConsumerOutput"]; });
10532
10533/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["RemoveTagsFromStreamInput"]; });
10534
10535/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SplitShardInput"]; });
10536
10537/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StartStreamEncryptionInput"]; });
10538
10539/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StopStreamEncryptionInput"]; });
10540
10541/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["StartingPosition"]; });
10542
10543/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardInput"]; });
10544
10545/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardEvent"]; });
10546
10547/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardEventStream"]; });
10548
10549/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["SubscribeToShardOutput"]; });
10550
10551/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["ScalingType"]; });
10552
10553/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["UpdateShardCountInput"]; });
10554
10555/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return _models_index__WEBPACK_IMPORTED_MODULE_34__["UpdateShardCountOutput"]; });
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592//# sourceMappingURL=index.js.map
10593
10594/***/ }),
10595
10596/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/index.js":
10597/*!*************************************************************************************!*\
10598 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/models/index.js ***!
10599 \*************************************************************************************/
10600/*! exports provided: AddTagsToStreamInput, InvalidArgumentException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, HashKeyRange, ChildShard, ConsumerStatus, Consumer, ConsumerDescription, CreateStreamInput, DecreaseStreamRetentionPeriodInput, DeleteStreamInput, DeregisterStreamConsumerInput, DescribeLimitsInput, DescribeLimitsOutput, DescribeStreamInput, EncryptionType, MetricsName, EnhancedMetrics, SequenceNumberRange, Shard, StreamStatus, StreamDescription, DescribeStreamOutput, DescribeStreamConsumerInput, DescribeStreamConsumerOutput, DescribeStreamSummaryInput, StreamDescriptionSummary, DescribeStreamSummaryOutput, DisableEnhancedMonitoringInput, EnhancedMonitoringOutput, EnableEnhancedMonitoringInput, ExpiredIteratorException, ExpiredNextTokenException, GetRecordsInput, _Record, GetRecordsOutput, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, ProvisionedThroughputExceededException, ShardIteratorType, GetShardIteratorInput, GetShardIteratorOutput, IncreaseStreamRetentionPeriodInput, InternalFailureException, ShardFilterType, ShardFilter, ListShardsInput, ListShardsOutput, ListStreamConsumersInput, ListStreamConsumersOutput, ListStreamsInput, ListStreamsOutput, ListTagsForStreamInput, Tag, ListTagsForStreamOutput, MergeShardsInput, PutRecordInput, PutRecordOutput, PutRecordsRequestEntry, PutRecordsInput, PutRecordsResultEntry, PutRecordsOutput, RegisterStreamConsumerInput, RegisterStreamConsumerOutput, RemoveTagsFromStreamInput, SplitShardInput, StartStreamEncryptionInput, StopStreamEncryptionInput, StartingPosition, SubscribeToShardInput, SubscribeToShardEvent, SubscribeToShardEventStream, SubscribeToShardOutput, ScalingType, UpdateShardCountInput, UpdateShardCountOutput */
10601/***/ (function(module, __webpack_exports__, __webpack_require__) {
10602
10603"use strict";
10604__webpack_require__.r(__webpack_exports__);
10605/* harmony import */ var _models_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./models_0 */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js");
10606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AddTagsToStreamInput"]; });
10607
10608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidArgumentException"]; });
10609
10610/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["LimitExceededException"]; });
10611
10612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceInUseException"]; });
10613
10614/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceNotFoundException"]; });
10615
10616/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HashKeyRange"]; });
10617
10618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChildShard", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChildShard"]; });
10619
10620/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConsumerStatus"]; });
10621
10622/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Consumer"]; });
10623
10624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConsumerDescription"]; });
10625
10626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateStreamInput"]; });
10627
10628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DecreaseStreamRetentionPeriodInput"]; });
10629
10630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteStreamInput"]; });
10631
10632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeregisterStreamConsumerInput"]; });
10633
10634/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeLimitsInput"]; });
10635
10636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeLimitsOutput"]; });
10637
10638/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamInput"]; });
10639
10640/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EncryptionType"]; });
10641
10642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MetricsName"]; });
10643
10644/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EnhancedMetrics"]; });
10645
10646/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SequenceNumberRange"]; });
10647
10648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Shard"]; });
10649
10650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StreamStatus"]; });
10651
10652/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StreamDescription"]; });
10653
10654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamOutput"]; });
10655
10656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamConsumerInput"]; });
10657
10658/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamConsumerOutput"]; });
10659
10660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamSummaryInput"]; });
10661
10662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StreamDescriptionSummary"]; });
10663
10664/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DescribeStreamSummaryOutput"]; });
10665
10666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DisableEnhancedMonitoringInput"]; });
10667
10668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EnhancedMonitoringOutput"]; });
10669
10670/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EnableEnhancedMonitoringInput"]; });
10671
10672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExpiredIteratorException"]; });
10673
10674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExpiredNextTokenException"]; });
10675
10676/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetRecordsInput"]; });
10677
10678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["_Record"]; });
10679
10680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetRecordsOutput"]; });
10681
10682/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSAccessDeniedException"]; });
10683
10684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSDisabledException"]; });
10685
10686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSInvalidStateException"]; });
10687
10688/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSNotFoundException"]; });
10689
10690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSOptInRequired"]; });
10691
10692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["KMSThrottlingException"]; });
10693
10694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ProvisionedThroughputExceededException"]; });
10695
10696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ShardIteratorType"]; });
10697
10698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetShardIteratorInput"]; });
10699
10700/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetShardIteratorOutput"]; });
10701
10702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["IncreaseStreamRetentionPeriodInput"]; });
10703
10704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InternalFailureException"]; });
10705
10706/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilterType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ShardFilterType"]; });
10707
10708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShardFilter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ShardFilter"]; });
10709
10710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListShardsInput"]; });
10711
10712/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListShardsOutput"]; });
10713
10714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamConsumersInput"]; });
10715
10716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamConsumersOutput"]; });
10717
10718/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamsInput"]; });
10719
10720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListStreamsOutput"]; });
10721
10722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForStreamInput"]; });
10723
10724/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Tag"]; });
10725
10726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ListTagsForStreamOutput"]; });
10727
10728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MergeShardsInput"]; });
10729
10730/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordInput"]; });
10731
10732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordOutput"]; });
10733
10734/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsRequestEntry"]; });
10735
10736/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsInput"]; });
10737
10738/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsResultEntry"]; });
10739
10740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutRecordsOutput"]; });
10741
10742/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RegisterStreamConsumerInput"]; });
10743
10744/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RegisterStreamConsumerOutput"]; });
10745
10746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RemoveTagsFromStreamInput"]; });
10747
10748/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SplitShardInput"]; });
10749
10750/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartStreamEncryptionInput"]; });
10751
10752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StopStreamEncryptionInput"]; });
10753
10754/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartingPosition"]; });
10755
10756/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardInput"]; });
10757
10758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardEvent"]; });
10759
10760/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardEventStream"]; });
10761
10762/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SubscribeToShardOutput"]; });
10763
10764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ScalingType"]; });
10765
10766/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateShardCountInput"]; });
10767
10768/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["UpdateShardCountOutput"]; });
10769
10770
10771//# sourceMappingURL=index.js.map
10772
10773/***/ }),
10774
10775/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js":
10776/*!****************************************************************************************!*\
10777 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/models/models_0.js ***!
10778 \****************************************************************************************/
10779/*! exports provided: AddTagsToStreamInput, InvalidArgumentException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, HashKeyRange, ChildShard, ConsumerStatus, Consumer, ConsumerDescription, CreateStreamInput, DecreaseStreamRetentionPeriodInput, DeleteStreamInput, DeregisterStreamConsumerInput, DescribeLimitsInput, DescribeLimitsOutput, DescribeStreamInput, EncryptionType, MetricsName, EnhancedMetrics, SequenceNumberRange, Shard, StreamStatus, StreamDescription, DescribeStreamOutput, DescribeStreamConsumerInput, DescribeStreamConsumerOutput, DescribeStreamSummaryInput, StreamDescriptionSummary, DescribeStreamSummaryOutput, DisableEnhancedMonitoringInput, EnhancedMonitoringOutput, EnableEnhancedMonitoringInput, ExpiredIteratorException, ExpiredNextTokenException, GetRecordsInput, _Record, GetRecordsOutput, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, ProvisionedThroughputExceededException, ShardIteratorType, GetShardIteratorInput, GetShardIteratorOutput, IncreaseStreamRetentionPeriodInput, InternalFailureException, ShardFilterType, ShardFilter, ListShardsInput, ListShardsOutput, ListStreamConsumersInput, ListStreamConsumersOutput, ListStreamsInput, ListStreamsOutput, ListTagsForStreamInput, Tag, ListTagsForStreamOutput, MergeShardsInput, PutRecordInput, PutRecordOutput, PutRecordsRequestEntry, PutRecordsInput, PutRecordsResultEntry, PutRecordsOutput, RegisterStreamConsumerInput, RegisterStreamConsumerOutput, RemoveTagsFromStreamInput, SplitShardInput, StartStreamEncryptionInput, StopStreamEncryptionInput, StartingPosition, SubscribeToShardInput, SubscribeToShardEvent, SubscribeToShardEventStream, SubscribeToShardOutput, ScalingType, UpdateShardCountInput, UpdateShardCountOutput */
10780/***/ (function(module, __webpack_exports__, __webpack_require__) {
10781
10782"use strict";
10783__webpack_require__.r(__webpack_exports__);
10784/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddTagsToStreamInput", function() { return AddTagsToStreamInput; });
10785/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidArgumentException", function() { return InvalidArgumentException; });
10786/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LimitExceededException", function() { return LimitExceededException; });
10787/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceInUseException", function() { return ResourceInUseException; });
10788/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; });
10789/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashKeyRange", function() { return HashKeyRange; });
10790/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChildShard", function() { return ChildShard; });
10791/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsumerStatus", function() { return ConsumerStatus; });
10792/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Consumer", function() { return Consumer; });
10793/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsumerDescription", function() { return ConsumerDescription; });
10794/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateStreamInput", function() { return CreateStreamInput; });
10795/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecreaseStreamRetentionPeriodInput", function() { return DecreaseStreamRetentionPeriodInput; });
10796/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteStreamInput", function() { return DeleteStreamInput; });
10797/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeregisterStreamConsumerInput", function() { return DeregisterStreamConsumerInput; });
10798/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsInput", function() { return DescribeLimitsInput; });
10799/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeLimitsOutput", function() { return DescribeLimitsOutput; });
10800/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamInput", function() { return DescribeStreamInput; });
10801/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptionType", function() { return EncryptionType; });
10802/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MetricsName", function() { return MetricsName; });
10803/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnhancedMetrics", function() { return EnhancedMetrics; });
10804/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceNumberRange", function() { return SequenceNumberRange; });
10805/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Shard", function() { return Shard; });
10806/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamStatus", function() { return StreamStatus; });
10807/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamDescription", function() { return StreamDescription; });
10808/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamOutput", function() { return DescribeStreamOutput; });
10809/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerInput", function() { return DescribeStreamConsumerInput; });
10810/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamConsumerOutput", function() { return DescribeStreamConsumerOutput; });
10811/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryInput", function() { return DescribeStreamSummaryInput; });
10812/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StreamDescriptionSummary", function() { return StreamDescriptionSummary; });
10813/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescribeStreamSummaryOutput", function() { return DescribeStreamSummaryOutput; });
10814/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisableEnhancedMonitoringInput", function() { return DisableEnhancedMonitoringInput; });
10815/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnhancedMonitoringOutput", function() { return EnhancedMonitoringOutput; });
10816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableEnhancedMonitoringInput", function() { return EnableEnhancedMonitoringInput; });
10817/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpiredIteratorException", function() { return ExpiredIteratorException; });
10818/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpiredNextTokenException", function() { return ExpiredNextTokenException; });
10819/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsInput", function() { return GetRecordsInput; });
10820/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_Record", function() { return _Record; });
10821/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecordsOutput", function() { return GetRecordsOutput; });
10822/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSAccessDeniedException", function() { return KMSAccessDeniedException; });
10823/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSDisabledException", function() { return KMSDisabledException; });
10824/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSInvalidStateException", function() { return KMSInvalidStateException; });
10825/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSNotFoundException", function() { return KMSNotFoundException; });
10826/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSOptInRequired", function() { return KMSOptInRequired; });
10827/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KMSThrottlingException", function() { return KMSThrottlingException; });
10828/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProvisionedThroughputExceededException", function() { return ProvisionedThroughputExceededException; });
10829/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardIteratorType", function() { return ShardIteratorType; });
10830/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorInput", function() { return GetShardIteratorInput; });
10831/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetShardIteratorOutput", function() { return GetShardIteratorOutput; });
10832/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IncreaseStreamRetentionPeriodInput", function() { return IncreaseStreamRetentionPeriodInput; });
10833/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalFailureException", function() { return InternalFailureException; });
10834/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardFilterType", function() { return ShardFilterType; });
10835/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShardFilter", function() { return ShardFilter; });
10836/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsInput", function() { return ListShardsInput; });
10837/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShardsOutput", function() { return ListShardsOutput; });
10838/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersInput", function() { return ListStreamConsumersInput; });
10839/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamConsumersOutput", function() { return ListStreamConsumersOutput; });
10840/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsInput", function() { return ListStreamsInput; });
10841/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListStreamsOutput", function() { return ListStreamsOutput; });
10842/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamInput", function() { return ListTagsForStreamInput; });
10843/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return Tag; });
10844/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForStreamOutput", function() { return ListTagsForStreamOutput; });
10845/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeShardsInput", function() { return MergeShardsInput; });
10846/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordInput", function() { return PutRecordInput; });
10847/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordOutput", function() { return PutRecordOutput; });
10848/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsRequestEntry", function() { return PutRecordsRequestEntry; });
10849/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsInput", function() { return PutRecordsInput; });
10850/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsResultEntry", function() { return PutRecordsResultEntry; });
10851/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutRecordsOutput", function() { return PutRecordsOutput; });
10852/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerInput", function() { return RegisterStreamConsumerInput; });
10853/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterStreamConsumerOutput", function() { return RegisterStreamConsumerOutput; });
10854/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveTagsFromStreamInput", function() { return RemoveTagsFromStreamInput; });
10855/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SplitShardInput", function() { return SplitShardInput; });
10856/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartStreamEncryptionInput", function() { return StartStreamEncryptionInput; });
10857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StopStreamEncryptionInput", function() { return StopStreamEncryptionInput; });
10858/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartingPosition", function() { return StartingPosition; });
10859/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardInput", function() { return SubscribeToShardInput; });
10860/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEvent", function() { return SubscribeToShardEvent; });
10861/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardEventStream", function() { return SubscribeToShardEventStream; });
10862/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeToShardOutput", function() { return SubscribeToShardOutput; });
10863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScalingType", function() { return ScalingType; });
10864/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountInput", function() { return UpdateShardCountInput; });
10865/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateShardCountOutput", function() { return UpdateShardCountOutput; });
10866/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
10867
10868var AddTagsToStreamInput;
10869(function (AddTagsToStreamInput) {
10870 AddTagsToStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10871})(AddTagsToStreamInput || (AddTagsToStreamInput = {}));
10872var InvalidArgumentException;
10873(function (InvalidArgumentException) {
10874 InvalidArgumentException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10875})(InvalidArgumentException || (InvalidArgumentException = {}));
10876var LimitExceededException;
10877(function (LimitExceededException) {
10878 LimitExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10879})(LimitExceededException || (LimitExceededException = {}));
10880var ResourceInUseException;
10881(function (ResourceInUseException) {
10882 ResourceInUseException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10883})(ResourceInUseException || (ResourceInUseException = {}));
10884var ResourceNotFoundException;
10885(function (ResourceNotFoundException) {
10886 ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10887})(ResourceNotFoundException || (ResourceNotFoundException = {}));
10888var HashKeyRange;
10889(function (HashKeyRange) {
10890 HashKeyRange.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10891})(HashKeyRange || (HashKeyRange = {}));
10892var ChildShard;
10893(function (ChildShard) {
10894 ChildShard.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10895})(ChildShard || (ChildShard = {}));
10896var ConsumerStatus;
10897(function (ConsumerStatus) {
10898 ConsumerStatus["ACTIVE"] = "ACTIVE";
10899 ConsumerStatus["CREATING"] = "CREATING";
10900 ConsumerStatus["DELETING"] = "DELETING";
10901})(ConsumerStatus || (ConsumerStatus = {}));
10902var Consumer;
10903(function (Consumer) {
10904 Consumer.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10905})(Consumer || (Consumer = {}));
10906var ConsumerDescription;
10907(function (ConsumerDescription) {
10908 ConsumerDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10909})(ConsumerDescription || (ConsumerDescription = {}));
10910var CreateStreamInput;
10911(function (CreateStreamInput) {
10912 CreateStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10913})(CreateStreamInput || (CreateStreamInput = {}));
10914var DecreaseStreamRetentionPeriodInput;
10915(function (DecreaseStreamRetentionPeriodInput) {
10916 DecreaseStreamRetentionPeriodInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10917})(DecreaseStreamRetentionPeriodInput || (DecreaseStreamRetentionPeriodInput = {}));
10918var DeleteStreamInput;
10919(function (DeleteStreamInput) {
10920 DeleteStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10921})(DeleteStreamInput || (DeleteStreamInput = {}));
10922var DeregisterStreamConsumerInput;
10923(function (DeregisterStreamConsumerInput) {
10924 DeregisterStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10925})(DeregisterStreamConsumerInput || (DeregisterStreamConsumerInput = {}));
10926var DescribeLimitsInput;
10927(function (DescribeLimitsInput) {
10928 DescribeLimitsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10929})(DescribeLimitsInput || (DescribeLimitsInput = {}));
10930var DescribeLimitsOutput;
10931(function (DescribeLimitsOutput) {
10932 DescribeLimitsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10933})(DescribeLimitsOutput || (DescribeLimitsOutput = {}));
10934var DescribeStreamInput;
10935(function (DescribeStreamInput) {
10936 DescribeStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10937})(DescribeStreamInput || (DescribeStreamInput = {}));
10938var EncryptionType;
10939(function (EncryptionType) {
10940 EncryptionType["KMS"] = "KMS";
10941 EncryptionType["NONE"] = "NONE";
10942})(EncryptionType || (EncryptionType = {}));
10943var MetricsName;
10944(function (MetricsName) {
10945 MetricsName["ALL"] = "ALL";
10946 MetricsName["INCOMING_BYTES"] = "IncomingBytes";
10947 MetricsName["INCOMING_RECORDS"] = "IncomingRecords";
10948 MetricsName["ITERATOR_AGE_MILLISECONDS"] = "IteratorAgeMilliseconds";
10949 MetricsName["OUTGOING_BYTES"] = "OutgoingBytes";
10950 MetricsName["OUTGOING_RECORDS"] = "OutgoingRecords";
10951 MetricsName["READ_PROVISIONED_THROUGHPUT_EXCEEDED"] = "ReadProvisionedThroughputExceeded";
10952 MetricsName["WRITE_PROVISIONED_THROUGHPUT_EXCEEDED"] = "WriteProvisionedThroughputExceeded";
10953})(MetricsName || (MetricsName = {}));
10954var EnhancedMetrics;
10955(function (EnhancedMetrics) {
10956 EnhancedMetrics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10957})(EnhancedMetrics || (EnhancedMetrics = {}));
10958var SequenceNumberRange;
10959(function (SequenceNumberRange) {
10960 SequenceNumberRange.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10961})(SequenceNumberRange || (SequenceNumberRange = {}));
10962var Shard;
10963(function (Shard) {
10964 Shard.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10965})(Shard || (Shard = {}));
10966var StreamStatus;
10967(function (StreamStatus) {
10968 StreamStatus["ACTIVE"] = "ACTIVE";
10969 StreamStatus["CREATING"] = "CREATING";
10970 StreamStatus["DELETING"] = "DELETING";
10971 StreamStatus["UPDATING"] = "UPDATING";
10972})(StreamStatus || (StreamStatus = {}));
10973var StreamDescription;
10974(function (StreamDescription) {
10975 StreamDescription.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10976})(StreamDescription || (StreamDescription = {}));
10977var DescribeStreamOutput;
10978(function (DescribeStreamOutput) {
10979 DescribeStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10980})(DescribeStreamOutput || (DescribeStreamOutput = {}));
10981var DescribeStreamConsumerInput;
10982(function (DescribeStreamConsumerInput) {
10983 DescribeStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10984})(DescribeStreamConsumerInput || (DescribeStreamConsumerInput = {}));
10985var DescribeStreamConsumerOutput;
10986(function (DescribeStreamConsumerOutput) {
10987 DescribeStreamConsumerOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10988})(DescribeStreamConsumerOutput || (DescribeStreamConsumerOutput = {}));
10989var DescribeStreamSummaryInput;
10990(function (DescribeStreamSummaryInput) {
10991 DescribeStreamSummaryInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10992})(DescribeStreamSummaryInput || (DescribeStreamSummaryInput = {}));
10993var StreamDescriptionSummary;
10994(function (StreamDescriptionSummary) {
10995 StreamDescriptionSummary.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
10996})(StreamDescriptionSummary || (StreamDescriptionSummary = {}));
10997var DescribeStreamSummaryOutput;
10998(function (DescribeStreamSummaryOutput) {
10999 DescribeStreamSummaryOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11000})(DescribeStreamSummaryOutput || (DescribeStreamSummaryOutput = {}));
11001var DisableEnhancedMonitoringInput;
11002(function (DisableEnhancedMonitoringInput) {
11003 DisableEnhancedMonitoringInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11004})(DisableEnhancedMonitoringInput || (DisableEnhancedMonitoringInput = {}));
11005var EnhancedMonitoringOutput;
11006(function (EnhancedMonitoringOutput) {
11007 EnhancedMonitoringOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11008})(EnhancedMonitoringOutput || (EnhancedMonitoringOutput = {}));
11009var EnableEnhancedMonitoringInput;
11010(function (EnableEnhancedMonitoringInput) {
11011 EnableEnhancedMonitoringInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11012})(EnableEnhancedMonitoringInput || (EnableEnhancedMonitoringInput = {}));
11013var ExpiredIteratorException;
11014(function (ExpiredIteratorException) {
11015 ExpiredIteratorException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11016})(ExpiredIteratorException || (ExpiredIteratorException = {}));
11017var ExpiredNextTokenException;
11018(function (ExpiredNextTokenException) {
11019 ExpiredNextTokenException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11020})(ExpiredNextTokenException || (ExpiredNextTokenException = {}));
11021var GetRecordsInput;
11022(function (GetRecordsInput) {
11023 GetRecordsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11024})(GetRecordsInput || (GetRecordsInput = {}));
11025var _Record;
11026(function (_Record) {
11027 _Record.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11028})(_Record || (_Record = {}));
11029var GetRecordsOutput;
11030(function (GetRecordsOutput) {
11031 GetRecordsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11032})(GetRecordsOutput || (GetRecordsOutput = {}));
11033var KMSAccessDeniedException;
11034(function (KMSAccessDeniedException) {
11035 KMSAccessDeniedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11036})(KMSAccessDeniedException || (KMSAccessDeniedException = {}));
11037var KMSDisabledException;
11038(function (KMSDisabledException) {
11039 KMSDisabledException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11040})(KMSDisabledException || (KMSDisabledException = {}));
11041var KMSInvalidStateException;
11042(function (KMSInvalidStateException) {
11043 KMSInvalidStateException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11044})(KMSInvalidStateException || (KMSInvalidStateException = {}));
11045var KMSNotFoundException;
11046(function (KMSNotFoundException) {
11047 KMSNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11048})(KMSNotFoundException || (KMSNotFoundException = {}));
11049var KMSOptInRequired;
11050(function (KMSOptInRequired) {
11051 KMSOptInRequired.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11052})(KMSOptInRequired || (KMSOptInRequired = {}));
11053var KMSThrottlingException;
11054(function (KMSThrottlingException) {
11055 KMSThrottlingException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11056})(KMSThrottlingException || (KMSThrottlingException = {}));
11057var ProvisionedThroughputExceededException;
11058(function (ProvisionedThroughputExceededException) {
11059 ProvisionedThroughputExceededException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11060})(ProvisionedThroughputExceededException || (ProvisionedThroughputExceededException = {}));
11061var ShardIteratorType;
11062(function (ShardIteratorType) {
11063 ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
11064 ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER";
11065 ShardIteratorType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
11066 ShardIteratorType["LATEST"] = "LATEST";
11067 ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON";
11068})(ShardIteratorType || (ShardIteratorType = {}));
11069var GetShardIteratorInput;
11070(function (GetShardIteratorInput) {
11071 GetShardIteratorInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11072})(GetShardIteratorInput || (GetShardIteratorInput = {}));
11073var GetShardIteratorOutput;
11074(function (GetShardIteratorOutput) {
11075 GetShardIteratorOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11076})(GetShardIteratorOutput || (GetShardIteratorOutput = {}));
11077var IncreaseStreamRetentionPeriodInput;
11078(function (IncreaseStreamRetentionPeriodInput) {
11079 IncreaseStreamRetentionPeriodInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11080})(IncreaseStreamRetentionPeriodInput || (IncreaseStreamRetentionPeriodInput = {}));
11081var InternalFailureException;
11082(function (InternalFailureException) {
11083 InternalFailureException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11084})(InternalFailureException || (InternalFailureException = {}));
11085var ShardFilterType;
11086(function (ShardFilterType) {
11087 ShardFilterType["AFTER_SHARD_ID"] = "AFTER_SHARD_ID";
11088 ShardFilterType["AT_LATEST"] = "AT_LATEST";
11089 ShardFilterType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
11090 ShardFilterType["AT_TRIM_HORIZON"] = "AT_TRIM_HORIZON";
11091 ShardFilterType["FROM_TIMESTAMP"] = "FROM_TIMESTAMP";
11092 ShardFilterType["FROM_TRIM_HORIZON"] = "FROM_TRIM_HORIZON";
11093})(ShardFilterType || (ShardFilterType = {}));
11094var ShardFilter;
11095(function (ShardFilter) {
11096 ShardFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11097})(ShardFilter || (ShardFilter = {}));
11098var ListShardsInput;
11099(function (ListShardsInput) {
11100 ListShardsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11101})(ListShardsInput || (ListShardsInput = {}));
11102var ListShardsOutput;
11103(function (ListShardsOutput) {
11104 ListShardsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11105})(ListShardsOutput || (ListShardsOutput = {}));
11106var ListStreamConsumersInput;
11107(function (ListStreamConsumersInput) {
11108 ListStreamConsumersInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11109})(ListStreamConsumersInput || (ListStreamConsumersInput = {}));
11110var ListStreamConsumersOutput;
11111(function (ListStreamConsumersOutput) {
11112 ListStreamConsumersOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11113})(ListStreamConsumersOutput || (ListStreamConsumersOutput = {}));
11114var ListStreamsInput;
11115(function (ListStreamsInput) {
11116 ListStreamsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11117})(ListStreamsInput || (ListStreamsInput = {}));
11118var ListStreamsOutput;
11119(function (ListStreamsOutput) {
11120 ListStreamsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11121})(ListStreamsOutput || (ListStreamsOutput = {}));
11122var ListTagsForStreamInput;
11123(function (ListTagsForStreamInput) {
11124 ListTagsForStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11125})(ListTagsForStreamInput || (ListTagsForStreamInput = {}));
11126var Tag;
11127(function (Tag) {
11128 Tag.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11129})(Tag || (Tag = {}));
11130var ListTagsForStreamOutput;
11131(function (ListTagsForStreamOutput) {
11132 ListTagsForStreamOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11133})(ListTagsForStreamOutput || (ListTagsForStreamOutput = {}));
11134var MergeShardsInput;
11135(function (MergeShardsInput) {
11136 MergeShardsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11137})(MergeShardsInput || (MergeShardsInput = {}));
11138var PutRecordInput;
11139(function (PutRecordInput) {
11140 PutRecordInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11141})(PutRecordInput || (PutRecordInput = {}));
11142var PutRecordOutput;
11143(function (PutRecordOutput) {
11144 PutRecordOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11145})(PutRecordOutput || (PutRecordOutput = {}));
11146var PutRecordsRequestEntry;
11147(function (PutRecordsRequestEntry) {
11148 PutRecordsRequestEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11149})(PutRecordsRequestEntry || (PutRecordsRequestEntry = {}));
11150var PutRecordsInput;
11151(function (PutRecordsInput) {
11152 PutRecordsInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11153})(PutRecordsInput || (PutRecordsInput = {}));
11154var PutRecordsResultEntry;
11155(function (PutRecordsResultEntry) {
11156 PutRecordsResultEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11157})(PutRecordsResultEntry || (PutRecordsResultEntry = {}));
11158var PutRecordsOutput;
11159(function (PutRecordsOutput) {
11160 PutRecordsOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11161})(PutRecordsOutput || (PutRecordsOutput = {}));
11162var RegisterStreamConsumerInput;
11163(function (RegisterStreamConsumerInput) {
11164 RegisterStreamConsumerInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11165})(RegisterStreamConsumerInput || (RegisterStreamConsumerInput = {}));
11166var RegisterStreamConsumerOutput;
11167(function (RegisterStreamConsumerOutput) {
11168 RegisterStreamConsumerOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11169})(RegisterStreamConsumerOutput || (RegisterStreamConsumerOutput = {}));
11170var RemoveTagsFromStreamInput;
11171(function (RemoveTagsFromStreamInput) {
11172 RemoveTagsFromStreamInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11173})(RemoveTagsFromStreamInput || (RemoveTagsFromStreamInput = {}));
11174var SplitShardInput;
11175(function (SplitShardInput) {
11176 SplitShardInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11177})(SplitShardInput || (SplitShardInput = {}));
11178var StartStreamEncryptionInput;
11179(function (StartStreamEncryptionInput) {
11180 StartStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11181})(StartStreamEncryptionInput || (StartStreamEncryptionInput = {}));
11182var StopStreamEncryptionInput;
11183(function (StopStreamEncryptionInput) {
11184 StopStreamEncryptionInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11185})(StopStreamEncryptionInput || (StopStreamEncryptionInput = {}));
11186var StartingPosition;
11187(function (StartingPosition) {
11188 StartingPosition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11189})(StartingPosition || (StartingPosition = {}));
11190var SubscribeToShardInput;
11191(function (SubscribeToShardInput) {
11192 SubscribeToShardInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11193})(SubscribeToShardInput || (SubscribeToShardInput = {}));
11194var SubscribeToShardEvent;
11195(function (SubscribeToShardEvent) {
11196 SubscribeToShardEvent.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11197})(SubscribeToShardEvent || (SubscribeToShardEvent = {}));
11198var SubscribeToShardEventStream;
11199(function (SubscribeToShardEventStream) {
11200 SubscribeToShardEventStream.visit = function (value, visitor) {
11201 if (value.SubscribeToShardEvent !== undefined)
11202 return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent);
11203 if (value.ResourceNotFoundException !== undefined)
11204 return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
11205 if (value.ResourceInUseException !== undefined)
11206 return visitor.ResourceInUseException(value.ResourceInUseException);
11207 if (value.KMSDisabledException !== undefined)
11208 return visitor.KMSDisabledException(value.KMSDisabledException);
11209 if (value.KMSInvalidStateException !== undefined)
11210 return visitor.KMSInvalidStateException(value.KMSInvalidStateException);
11211 if (value.KMSAccessDeniedException !== undefined)
11212 return visitor.KMSAccessDeniedException(value.KMSAccessDeniedException);
11213 if (value.KMSNotFoundException !== undefined)
11214 return visitor.KMSNotFoundException(value.KMSNotFoundException);
11215 if (value.KMSOptInRequired !== undefined)
11216 return visitor.KMSOptInRequired(value.KMSOptInRequired);
11217 if (value.KMSThrottlingException !== undefined)
11218 return visitor.KMSThrottlingException(value.KMSThrottlingException);
11219 if (value.InternalFailureException !== undefined)
11220 return visitor.InternalFailureException(value.InternalFailureException);
11221 return visitor._(value.$unknown[0], value.$unknown[1]);
11222 };
11223 SubscribeToShardEventStream.filterSensitiveLog = function (obj) {
11224 var _a;
11225 if (obj.SubscribeToShardEvent !== undefined)
11226 return { SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(obj.SubscribeToShardEvent) };
11227 if (obj.ResourceNotFoundException !== undefined)
11228 return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
11229 if (obj.ResourceInUseException !== undefined)
11230 return { ResourceInUseException: ResourceInUseException.filterSensitiveLog(obj.ResourceInUseException) };
11231 if (obj.KMSDisabledException !== undefined)
11232 return { KMSDisabledException: KMSDisabledException.filterSensitiveLog(obj.KMSDisabledException) };
11233 if (obj.KMSInvalidStateException !== undefined)
11234 return { KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(obj.KMSInvalidStateException) };
11235 if (obj.KMSAccessDeniedException !== undefined)
11236 return { KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(obj.KMSAccessDeniedException) };
11237 if (obj.KMSNotFoundException !== undefined)
11238 return { KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(obj.KMSNotFoundException) };
11239 if (obj.KMSOptInRequired !== undefined)
11240 return { KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(obj.KMSOptInRequired) };
11241 if (obj.KMSThrottlingException !== undefined)
11242 return { KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(obj.KMSThrottlingException) };
11243 if (obj.InternalFailureException !== undefined)
11244 return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
11245 if (obj.$unknown !== undefined)
11246 return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
11247 };
11248})(SubscribeToShardEventStream || (SubscribeToShardEventStream = {}));
11249var SubscribeToShardOutput;
11250(function (SubscribeToShardOutput) {
11251 SubscribeToShardOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj), (obj.EventStream && { EventStream: "STREAMING_CONTENT" }))); };
11252})(SubscribeToShardOutput || (SubscribeToShardOutput = {}));
11253var ScalingType;
11254(function (ScalingType) {
11255 ScalingType["UNIFORM_SCALING"] = "UNIFORM_SCALING";
11256})(ScalingType || (ScalingType = {}));
11257var UpdateShardCountInput;
11258(function (UpdateShardCountInput) {
11259 UpdateShardCountInput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11260})(UpdateShardCountInput || (UpdateShardCountInput = {}));
11261var UpdateShardCountOutput;
11262(function (UpdateShardCountOutput) {
11263 UpdateShardCountOutput.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
11264})(UpdateShardCountOutput || (UpdateShardCountOutput = {}));
11265//# sourceMappingURL=models_0.js.map
11266
11267/***/ }),
11268
11269/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/package.json":
11270/*!**********************************************************************************!*\
11271 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/package.json ***!
11272 \**********************************************************************************/
11273/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
11274/***/ (function(module) {
11275
11276module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-kinesis\",\"description\":\"AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native\",\"version\":\"3.6.1\",\"scripts\":{\"clean\":\"yarn remove-definitions && yarn remove-dist && yarn remove-documentation\",\"build-documentation\":\"yarn remove-documentation && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\",\"postbuild\":\"downlevel-dts types types/ts3.4\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0\",\"@aws-crypto/sha256-js\":\"^1.0.0\",\"@aws-sdk/config-resolver\":\"3.6.1\",\"@aws-sdk/credential-provider-node\":\"3.6.1\",\"@aws-sdk/eventstream-serde-browser\":\"3.6.1\",\"@aws-sdk/eventstream-serde-config-resolver\":\"3.6.1\",\"@aws-sdk/eventstream-serde-node\":\"3.6.1\",\"@aws-sdk/fetch-http-handler\":\"3.6.1\",\"@aws-sdk/hash-node\":\"3.6.1\",\"@aws-sdk/invalid-dependency\":\"3.6.1\",\"@aws-sdk/middleware-content-length\":\"3.6.1\",\"@aws-sdk/middleware-host-header\":\"3.6.1\",\"@aws-sdk/middleware-logger\":\"3.6.1\",\"@aws-sdk/middleware-retry\":\"3.6.1\",\"@aws-sdk/middleware-serde\":\"3.6.1\",\"@aws-sdk/middleware-signing\":\"3.6.1\",\"@aws-sdk/middleware-stack\":\"3.6.1\",\"@aws-sdk/middleware-user-agent\":\"3.6.1\",\"@aws-sdk/node-config-provider\":\"3.6.1\",\"@aws-sdk/node-http-handler\":\"3.6.1\",\"@aws-sdk/protocol-http\":\"3.6.1\",\"@aws-sdk/smithy-client\":\"3.6.1\",\"@aws-sdk/types\":\"3.6.1\",\"@aws-sdk/url-parser\":\"3.6.1\",\"@aws-sdk/url-parser-native\":\"3.6.1\",\"@aws-sdk/util-base64-browser\":\"3.6.1\",\"@aws-sdk/util-base64-node\":\"3.6.1\",\"@aws-sdk/util-body-length-browser\":\"3.6.1\",\"@aws-sdk/util-body-length-node\":\"3.6.1\",\"@aws-sdk/util-user-agent-browser\":\"3.6.1\",\"@aws-sdk/util-user-agent-node\":\"3.6.1\",\"@aws-sdk/util-utf8-browser\":\"3.6.1\",\"@aws-sdk/util-utf8-node\":\"3.6.1\",\"@aws-sdk/util-waiter\":\"3.6.1\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"3.6.1\",\"@types/node\":\"^12.7.5\",\"downlevel-dts\":\"0.7.0\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.19.2\",\"typescript\":\"~4.1.2\"},\"engines\":{\"node\":\">=10.0.0\"},\"typesVersions\":{\"<4.0\":{\"types/*\":[\"types/ts3.4/*\"]}},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\",\"homepage\":\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kinesis\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/aws/aws-sdk-js-v3.git\",\"directory\":\"clients/client-kinesis\"}}");
11277
11278/***/ }),
11279
11280/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js":
11281/*!**********************************************************************************************!*\
11282 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/pagination/Interfaces.js ***!
11283 \**********************************************************************************************/
11284/*! no exports provided */
11285/***/ (function(module, __webpack_exports__, __webpack_require__) {
11286
11287"use strict";
11288__webpack_require__.r(__webpack_exports__);
11289
11290//# sourceMappingURL=Interfaces.js.map
11291
11292/***/ }),
11293
11294/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js":
11295/*!****************************************************************************************************************!*\
11296 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/pagination/ListStreamConsumersPaginator.js ***!
11297 \****************************************************************************************************************/
11298/*! exports provided: paginateListStreamConsumers */
11299/***/ (function(module, __webpack_exports__, __webpack_require__) {
11300
11301"use strict";
11302__webpack_require__.r(__webpack_exports__);
11303/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "paginateListStreamConsumers", function() { return paginateListStreamConsumers; });
11304/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
11305/* harmony import */ var _Kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Kinesis */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/Kinesis.js");
11306/* harmony import */ var _KinesisClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../KinesisClient */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/KinesisClient.js");
11307/* harmony import */ var _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../commands/ListStreamConsumersCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/ListStreamConsumersCommand.js");
11308
11309
11310
11311
11312/**
11313 * @private
11314 */
11315var makePagedClientRequest = function (client, input) {
11316 var args = [];
11317 for (var _i = 2; _i < arguments.length; _i++) {
11318 args[_i - 2] = arguments[_i];
11319 }
11320 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11321 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11322 switch (_a.label) {
11323 case 0: return [4 /*yield*/, client.send.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([new _commands_ListStreamConsumersCommand__WEBPACK_IMPORTED_MODULE_3__["ListStreamConsumersCommand"](input)], args))];
11324 case 1:
11325 // @ts-ignore
11326 return [2 /*return*/, _a.sent()];
11327 }
11328 });
11329 });
11330};
11331/**
11332 * @private
11333 */
11334var makePagedRequest = function (client, input) {
11335 var args = [];
11336 for (var _i = 2; _i < arguments.length; _i++) {
11337 args[_i - 2] = arguments[_i];
11338 }
11339 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11340 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11341 switch (_a.label) {
11342 case 0: return [4 /*yield*/, client.listStreamConsumers.apply(client, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([input], args))];
11343 case 1:
11344 // @ts-ignore
11345 return [2 /*return*/, _a.sent()];
11346 }
11347 });
11348 });
11349};
11350function paginateListStreamConsumers(config, input) {
11351 var additionalArguments = [];
11352 for (var _i = 2; _i < arguments.length; _i++) {
11353 additionalArguments[_i - 2] = arguments[_i];
11354 }
11355 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function paginateListStreamConsumers_1() {
11356 var token, hasNext, page;
11357 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11358 switch (_a.label) {
11359 case 0:
11360 token = config.startingToken || undefined;
11361 hasNext = true;
11362 _a.label = 1;
11363 case 1:
11364 if (!hasNext) return [3 /*break*/, 9];
11365 input.NextToken = token;
11366 input["MaxResults"] = config.pageSize;
11367 if (!(config.client instanceof _Kinesis__WEBPACK_IMPORTED_MODULE_1__["Kinesis"])) return [3 /*break*/, 3];
11368 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))];
11369 case 2:
11370 page = _a.sent();
11371 return [3 /*break*/, 6];
11372 case 3:
11373 if (!(config.client instanceof _KinesisClient__WEBPACK_IMPORTED_MODULE_2__["KinesisClient"])) return [3 /*break*/, 5];
11374 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(makePagedClientRequest.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([config.client, input], additionalArguments)))];
11375 case 4:
11376 page = _a.sent();
11377 return [3 /*break*/, 6];
11378 case 5: throw new Error("Invalid client, expected Kinesis | KinesisClient");
11379 case 6: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(page)];
11380 case 7: return [4 /*yield*/, _a.sent()];
11381 case 8:
11382 _a.sent();
11383 token = page.NextToken;
11384 hasNext = !!token;
11385 return [3 /*break*/, 1];
11386 case 9: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(undefined)];
11387 case 10:
11388 // @ts-ignore
11389 return [2 /*return*/, _a.sent()];
11390 }
11391 });
11392 });
11393}
11394//# sourceMappingURL=ListStreamConsumersPaginator.js.map
11395
11396/***/ }),
11397
11398/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js":
11399/*!**********************************************************************************************!*\
11400 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/protocols/Aws_json1_1.js ***!
11401 \**********************************************************************************************/
11402/*! exports provided: serializeAws_json1_1AddTagsToStreamCommand, serializeAws_json1_1CreateStreamCommand, serializeAws_json1_1DecreaseStreamRetentionPeriodCommand, serializeAws_json1_1DeleteStreamCommand, serializeAws_json1_1DeregisterStreamConsumerCommand, serializeAws_json1_1DescribeLimitsCommand, serializeAws_json1_1DescribeStreamCommand, serializeAws_json1_1DescribeStreamConsumerCommand, serializeAws_json1_1DescribeStreamSummaryCommand, serializeAws_json1_1DisableEnhancedMonitoringCommand, serializeAws_json1_1EnableEnhancedMonitoringCommand, serializeAws_json1_1GetRecordsCommand, serializeAws_json1_1GetShardIteratorCommand, serializeAws_json1_1IncreaseStreamRetentionPeriodCommand, serializeAws_json1_1ListShardsCommand, serializeAws_json1_1ListStreamConsumersCommand, serializeAws_json1_1ListStreamsCommand, serializeAws_json1_1ListTagsForStreamCommand, serializeAws_json1_1MergeShardsCommand, serializeAws_json1_1PutRecordCommand, serializeAws_json1_1PutRecordsCommand, serializeAws_json1_1RegisterStreamConsumerCommand, serializeAws_json1_1RemoveTagsFromStreamCommand, serializeAws_json1_1SplitShardCommand, serializeAws_json1_1StartStreamEncryptionCommand, serializeAws_json1_1StopStreamEncryptionCommand, serializeAws_json1_1SubscribeToShardCommand, serializeAws_json1_1UpdateShardCountCommand, deserializeAws_json1_1AddTagsToStreamCommand, deserializeAws_json1_1CreateStreamCommand, deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand, deserializeAws_json1_1DeleteStreamCommand, deserializeAws_json1_1DeregisterStreamConsumerCommand, deserializeAws_json1_1DescribeLimitsCommand, deserializeAws_json1_1DescribeStreamCommand, deserializeAws_json1_1DescribeStreamConsumerCommand, deserializeAws_json1_1DescribeStreamSummaryCommand, deserializeAws_json1_1DisableEnhancedMonitoringCommand, deserializeAws_json1_1EnableEnhancedMonitoringCommand, deserializeAws_json1_1GetRecordsCommand, deserializeAws_json1_1GetShardIteratorCommand, deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand, deserializeAws_json1_1ListShardsCommand, deserializeAws_json1_1ListStreamConsumersCommand, deserializeAws_json1_1ListStreamsCommand, deserializeAws_json1_1ListTagsForStreamCommand, deserializeAws_json1_1MergeShardsCommand, deserializeAws_json1_1PutRecordCommand, deserializeAws_json1_1PutRecordsCommand, deserializeAws_json1_1RegisterStreamConsumerCommand, deserializeAws_json1_1RemoveTagsFromStreamCommand, deserializeAws_json1_1SplitShardCommand, deserializeAws_json1_1StartStreamEncryptionCommand, deserializeAws_json1_1StopStreamEncryptionCommand, deserializeAws_json1_1SubscribeToShardCommand, deserializeAws_json1_1UpdateShardCountCommand */
11403/***/ (function(module, __webpack_exports__, __webpack_require__) {
11404
11405"use strict";
11406__webpack_require__.r(__webpack_exports__);
11407/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1AddTagsToStreamCommand", function() { return serializeAws_json1_1AddTagsToStreamCommand; });
11408/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1CreateStreamCommand", function() { return serializeAws_json1_1CreateStreamCommand; });
11409/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DecreaseStreamRetentionPeriodCommand", function() { return serializeAws_json1_1DecreaseStreamRetentionPeriodCommand; });
11410/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeleteStreamCommand", function() { return serializeAws_json1_1DeleteStreamCommand; });
11411/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DeregisterStreamConsumerCommand", function() { return serializeAws_json1_1DeregisterStreamConsumerCommand; });
11412/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeLimitsCommand", function() { return serializeAws_json1_1DescribeLimitsCommand; });
11413/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamCommand", function() { return serializeAws_json1_1DescribeStreamCommand; });
11414/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamConsumerCommand", function() { return serializeAws_json1_1DescribeStreamConsumerCommand; });
11415/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DescribeStreamSummaryCommand", function() { return serializeAws_json1_1DescribeStreamSummaryCommand; });
11416/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1DisableEnhancedMonitoringCommand", function() { return serializeAws_json1_1DisableEnhancedMonitoringCommand; });
11417/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1EnableEnhancedMonitoringCommand", function() { return serializeAws_json1_1EnableEnhancedMonitoringCommand; });
11418/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetRecordsCommand", function() { return serializeAws_json1_1GetRecordsCommand; });
11419/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1GetShardIteratorCommand", function() { return serializeAws_json1_1GetShardIteratorCommand; });
11420/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1IncreaseStreamRetentionPeriodCommand", function() { return serializeAws_json1_1IncreaseStreamRetentionPeriodCommand; });
11421/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListShardsCommand", function() { return serializeAws_json1_1ListShardsCommand; });
11422/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListStreamConsumersCommand", function() { return serializeAws_json1_1ListStreamConsumersCommand; });
11423/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListStreamsCommand", function() { return serializeAws_json1_1ListStreamsCommand; });
11424/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1ListTagsForStreamCommand", function() { return serializeAws_json1_1ListTagsForStreamCommand; });
11425/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1MergeShardsCommand", function() { return serializeAws_json1_1MergeShardsCommand; });
11426/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordCommand", function() { return serializeAws_json1_1PutRecordCommand; });
11427/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1PutRecordsCommand", function() { return serializeAws_json1_1PutRecordsCommand; });
11428/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1RegisterStreamConsumerCommand", function() { return serializeAws_json1_1RegisterStreamConsumerCommand; });
11429/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1RemoveTagsFromStreamCommand", function() { return serializeAws_json1_1RemoveTagsFromStreamCommand; });
11430/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SplitShardCommand", function() { return serializeAws_json1_1SplitShardCommand; });
11431/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StartStreamEncryptionCommand", function() { return serializeAws_json1_1StartStreamEncryptionCommand; });
11432/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1StopStreamEncryptionCommand", function() { return serializeAws_json1_1StopStreamEncryptionCommand; });
11433/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1SubscribeToShardCommand", function() { return serializeAws_json1_1SubscribeToShardCommand; });
11434/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_json1_1UpdateShardCountCommand", function() { return serializeAws_json1_1UpdateShardCountCommand; });
11435/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1AddTagsToStreamCommand", function() { return deserializeAws_json1_1AddTagsToStreamCommand; });
11436/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1CreateStreamCommand", function() { return deserializeAws_json1_1CreateStreamCommand; });
11437/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand", function() { return deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand; });
11438/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeleteStreamCommand", function() { return deserializeAws_json1_1DeleteStreamCommand; });
11439/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DeregisterStreamConsumerCommand", function() { return deserializeAws_json1_1DeregisterStreamConsumerCommand; });
11440/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeLimitsCommand", function() { return deserializeAws_json1_1DescribeLimitsCommand; });
11441/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamCommand", function() { return deserializeAws_json1_1DescribeStreamCommand; });
11442/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamConsumerCommand", function() { return deserializeAws_json1_1DescribeStreamConsumerCommand; });
11443/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DescribeStreamSummaryCommand", function() { return deserializeAws_json1_1DescribeStreamSummaryCommand; });
11444/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1DisableEnhancedMonitoringCommand", function() { return deserializeAws_json1_1DisableEnhancedMonitoringCommand; });
11445/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1EnableEnhancedMonitoringCommand", function() { return deserializeAws_json1_1EnableEnhancedMonitoringCommand; });
11446/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetRecordsCommand", function() { return deserializeAws_json1_1GetRecordsCommand; });
11447/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1GetShardIteratorCommand", function() { return deserializeAws_json1_1GetShardIteratorCommand; });
11448/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand", function() { return deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand; });
11449/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListShardsCommand", function() { return deserializeAws_json1_1ListShardsCommand; });
11450/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListStreamConsumersCommand", function() { return deserializeAws_json1_1ListStreamConsumersCommand; });
11451/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListStreamsCommand", function() { return deserializeAws_json1_1ListStreamsCommand; });
11452/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1ListTagsForStreamCommand", function() { return deserializeAws_json1_1ListTagsForStreamCommand; });
11453/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1MergeShardsCommand", function() { return deserializeAws_json1_1MergeShardsCommand; });
11454/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordCommand", function() { return deserializeAws_json1_1PutRecordCommand; });
11455/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1PutRecordsCommand", function() { return deserializeAws_json1_1PutRecordsCommand; });
11456/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1RegisterStreamConsumerCommand", function() { return deserializeAws_json1_1RegisterStreamConsumerCommand; });
11457/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1RemoveTagsFromStreamCommand", function() { return deserializeAws_json1_1RemoveTagsFromStreamCommand; });
11458/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SplitShardCommand", function() { return deserializeAws_json1_1SplitShardCommand; });
11459/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StartStreamEncryptionCommand", function() { return deserializeAws_json1_1StartStreamEncryptionCommand; });
11460/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1StopStreamEncryptionCommand", function() { return deserializeAws_json1_1StopStreamEncryptionCommand; });
11461/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1SubscribeToShardCommand", function() { return deserializeAws_json1_1SubscribeToShardCommand; });
11462/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_json1_1UpdateShardCountCommand", function() { return deserializeAws_json1_1UpdateShardCountCommand; });
11463/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
11464/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
11465
11466
11467var serializeAws_json1_1AddTagsToStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11468 var headers, body;
11469 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11470 headers = {
11471 "content-type": "application/x-amz-json-1.1",
11472 "x-amz-target": "Kinesis_20131202.AddTagsToStream",
11473 };
11474 body = JSON.stringify(serializeAws_json1_1AddTagsToStreamInput(input, context));
11475 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11476 });
11477}); };
11478var serializeAws_json1_1CreateStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11479 var headers, body;
11480 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11481 headers = {
11482 "content-type": "application/x-amz-json-1.1",
11483 "x-amz-target": "Kinesis_20131202.CreateStream",
11484 };
11485 body = JSON.stringify(serializeAws_json1_1CreateStreamInput(input, context));
11486 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11487 });
11488}); };
11489var serializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11490 var headers, body;
11491 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11492 headers = {
11493 "content-type": "application/x-amz-json-1.1",
11494 "x-amz-target": "Kinesis_20131202.DecreaseStreamRetentionPeriod",
11495 };
11496 body = JSON.stringify(serializeAws_json1_1DecreaseStreamRetentionPeriodInput(input, context));
11497 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11498 });
11499}); };
11500var serializeAws_json1_1DeleteStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11501 var headers, body;
11502 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11503 headers = {
11504 "content-type": "application/x-amz-json-1.1",
11505 "x-amz-target": "Kinesis_20131202.DeleteStream",
11506 };
11507 body = JSON.stringify(serializeAws_json1_1DeleteStreamInput(input, context));
11508 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11509 });
11510}); };
11511var serializeAws_json1_1DeregisterStreamConsumerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11512 var headers, body;
11513 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11514 headers = {
11515 "content-type": "application/x-amz-json-1.1",
11516 "x-amz-target": "Kinesis_20131202.DeregisterStreamConsumer",
11517 };
11518 body = JSON.stringify(serializeAws_json1_1DeregisterStreamConsumerInput(input, context));
11519 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11520 });
11521}); };
11522var serializeAws_json1_1DescribeLimitsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11523 var headers, body;
11524 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11525 headers = {
11526 "content-type": "application/x-amz-json-1.1",
11527 "x-amz-target": "Kinesis_20131202.DescribeLimits",
11528 };
11529 body = JSON.stringify(serializeAws_json1_1DescribeLimitsInput(input, context));
11530 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11531 });
11532}); };
11533var serializeAws_json1_1DescribeStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11534 var headers, body;
11535 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11536 headers = {
11537 "content-type": "application/x-amz-json-1.1",
11538 "x-amz-target": "Kinesis_20131202.DescribeStream",
11539 };
11540 body = JSON.stringify(serializeAws_json1_1DescribeStreamInput(input, context));
11541 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11542 });
11543}); };
11544var serializeAws_json1_1DescribeStreamConsumerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11545 var headers, body;
11546 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11547 headers = {
11548 "content-type": "application/x-amz-json-1.1",
11549 "x-amz-target": "Kinesis_20131202.DescribeStreamConsumer",
11550 };
11551 body = JSON.stringify(serializeAws_json1_1DescribeStreamConsumerInput(input, context));
11552 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11553 });
11554}); };
11555var serializeAws_json1_1DescribeStreamSummaryCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11556 var headers, body;
11557 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11558 headers = {
11559 "content-type": "application/x-amz-json-1.1",
11560 "x-amz-target": "Kinesis_20131202.DescribeStreamSummary",
11561 };
11562 body = JSON.stringify(serializeAws_json1_1DescribeStreamSummaryInput(input, context));
11563 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11564 });
11565}); };
11566var serializeAws_json1_1DisableEnhancedMonitoringCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11567 var headers, body;
11568 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11569 headers = {
11570 "content-type": "application/x-amz-json-1.1",
11571 "x-amz-target": "Kinesis_20131202.DisableEnhancedMonitoring",
11572 };
11573 body = JSON.stringify(serializeAws_json1_1DisableEnhancedMonitoringInput(input, context));
11574 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11575 });
11576}); };
11577var serializeAws_json1_1EnableEnhancedMonitoringCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11578 var headers, body;
11579 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11580 headers = {
11581 "content-type": "application/x-amz-json-1.1",
11582 "x-amz-target": "Kinesis_20131202.EnableEnhancedMonitoring",
11583 };
11584 body = JSON.stringify(serializeAws_json1_1EnableEnhancedMonitoringInput(input, context));
11585 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11586 });
11587}); };
11588var serializeAws_json1_1GetRecordsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11589 var headers, body;
11590 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11591 headers = {
11592 "content-type": "application/x-amz-json-1.1",
11593 "x-amz-target": "Kinesis_20131202.GetRecords",
11594 };
11595 body = JSON.stringify(serializeAws_json1_1GetRecordsInput(input, context));
11596 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11597 });
11598}); };
11599var serializeAws_json1_1GetShardIteratorCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11600 var headers, body;
11601 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11602 headers = {
11603 "content-type": "application/x-amz-json-1.1",
11604 "x-amz-target": "Kinesis_20131202.GetShardIterator",
11605 };
11606 body = JSON.stringify(serializeAws_json1_1GetShardIteratorInput(input, context));
11607 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11608 });
11609}); };
11610var serializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11611 var headers, body;
11612 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11613 headers = {
11614 "content-type": "application/x-amz-json-1.1",
11615 "x-amz-target": "Kinesis_20131202.IncreaseStreamRetentionPeriod",
11616 };
11617 body = JSON.stringify(serializeAws_json1_1IncreaseStreamRetentionPeriodInput(input, context));
11618 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11619 });
11620}); };
11621var serializeAws_json1_1ListShardsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11622 var headers, body;
11623 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11624 headers = {
11625 "content-type": "application/x-amz-json-1.1",
11626 "x-amz-target": "Kinesis_20131202.ListShards",
11627 };
11628 body = JSON.stringify(serializeAws_json1_1ListShardsInput(input, context));
11629 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11630 });
11631}); };
11632var serializeAws_json1_1ListStreamConsumersCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11633 var headers, body;
11634 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11635 headers = {
11636 "content-type": "application/x-amz-json-1.1",
11637 "x-amz-target": "Kinesis_20131202.ListStreamConsumers",
11638 };
11639 body = JSON.stringify(serializeAws_json1_1ListStreamConsumersInput(input, context));
11640 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11641 });
11642}); };
11643var serializeAws_json1_1ListStreamsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11644 var headers, body;
11645 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11646 headers = {
11647 "content-type": "application/x-amz-json-1.1",
11648 "x-amz-target": "Kinesis_20131202.ListStreams",
11649 };
11650 body = JSON.stringify(serializeAws_json1_1ListStreamsInput(input, context));
11651 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11652 });
11653}); };
11654var serializeAws_json1_1ListTagsForStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11655 var headers, body;
11656 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11657 headers = {
11658 "content-type": "application/x-amz-json-1.1",
11659 "x-amz-target": "Kinesis_20131202.ListTagsForStream",
11660 };
11661 body = JSON.stringify(serializeAws_json1_1ListTagsForStreamInput(input, context));
11662 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11663 });
11664}); };
11665var serializeAws_json1_1MergeShardsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11666 var headers, body;
11667 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11668 headers = {
11669 "content-type": "application/x-amz-json-1.1",
11670 "x-amz-target": "Kinesis_20131202.MergeShards",
11671 };
11672 body = JSON.stringify(serializeAws_json1_1MergeShardsInput(input, context));
11673 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11674 });
11675}); };
11676var serializeAws_json1_1PutRecordCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11677 var headers, body;
11678 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11679 headers = {
11680 "content-type": "application/x-amz-json-1.1",
11681 "x-amz-target": "Kinesis_20131202.PutRecord",
11682 };
11683 body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
11684 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11685 });
11686}); };
11687var serializeAws_json1_1PutRecordsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11688 var headers, body;
11689 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11690 headers = {
11691 "content-type": "application/x-amz-json-1.1",
11692 "x-amz-target": "Kinesis_20131202.PutRecords",
11693 };
11694 body = JSON.stringify(serializeAws_json1_1PutRecordsInput(input, context));
11695 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11696 });
11697}); };
11698var serializeAws_json1_1RegisterStreamConsumerCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11699 var headers, body;
11700 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11701 headers = {
11702 "content-type": "application/x-amz-json-1.1",
11703 "x-amz-target": "Kinesis_20131202.RegisterStreamConsumer",
11704 };
11705 body = JSON.stringify(serializeAws_json1_1RegisterStreamConsumerInput(input, context));
11706 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11707 });
11708}); };
11709var serializeAws_json1_1RemoveTagsFromStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11710 var headers, body;
11711 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11712 headers = {
11713 "content-type": "application/x-amz-json-1.1",
11714 "x-amz-target": "Kinesis_20131202.RemoveTagsFromStream",
11715 };
11716 body = JSON.stringify(serializeAws_json1_1RemoveTagsFromStreamInput(input, context));
11717 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11718 });
11719}); };
11720var serializeAws_json1_1SplitShardCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11721 var headers, body;
11722 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11723 headers = {
11724 "content-type": "application/x-amz-json-1.1",
11725 "x-amz-target": "Kinesis_20131202.SplitShard",
11726 };
11727 body = JSON.stringify(serializeAws_json1_1SplitShardInput(input, context));
11728 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11729 });
11730}); };
11731var serializeAws_json1_1StartStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11732 var headers, body;
11733 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11734 headers = {
11735 "content-type": "application/x-amz-json-1.1",
11736 "x-amz-target": "Kinesis_20131202.StartStreamEncryption",
11737 };
11738 body = JSON.stringify(serializeAws_json1_1StartStreamEncryptionInput(input, context));
11739 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11740 });
11741}); };
11742var serializeAws_json1_1StopStreamEncryptionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11743 var headers, body;
11744 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11745 headers = {
11746 "content-type": "application/x-amz-json-1.1",
11747 "x-amz-target": "Kinesis_20131202.StopStreamEncryption",
11748 };
11749 body = JSON.stringify(serializeAws_json1_1StopStreamEncryptionInput(input, context));
11750 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11751 });
11752}); };
11753var serializeAws_json1_1SubscribeToShardCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11754 var headers, body;
11755 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11756 headers = {
11757 "content-type": "application/x-amz-json-1.1",
11758 "x-amz-target": "Kinesis_20131202.SubscribeToShard",
11759 };
11760 body = JSON.stringify(serializeAws_json1_1SubscribeToShardInput(input, context));
11761 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11762 });
11763}); };
11764var serializeAws_json1_1UpdateShardCountCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11765 var headers, body;
11766 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11767 headers = {
11768 "content-type": "application/x-amz-json-1.1",
11769 "x-amz-target": "Kinesis_20131202.UpdateShardCount",
11770 };
11771 body = JSON.stringify(serializeAws_json1_1UpdateShardCountInput(input, context));
11772 return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
11773 });
11774}); };
11775var deserializeAws_json1_1AddTagsToStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11776 var response;
11777 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11778 switch (_a.label) {
11779 case 0:
11780 if (output.statusCode >= 300) {
11781 return [2 /*return*/, deserializeAws_json1_1AddTagsToStreamCommandError(output, context)];
11782 }
11783 return [4 /*yield*/, collectBody(output.body, context)];
11784 case 1:
11785 _a.sent();
11786 response = {
11787 $metadata: deserializeMetadata(output),
11788 };
11789 return [2 /*return*/, Promise.resolve(response)];
11790 }
11791 });
11792}); };
11793var deserializeAws_json1_1AddTagsToStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11794 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
11795 var _g;
11796 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
11797 switch (_h.label) {
11798 case 0:
11799 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11800 _g = {};
11801 return [4 /*yield*/, parseBody(output.body, context)];
11802 case 1:
11803 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
11804 errorCode = "UnknownError";
11805 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11806 _b = errorCode;
11807 switch (_b) {
11808 case "InvalidArgumentException": return [3 /*break*/, 2];
11809 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
11810 case "LimitExceededException": return [3 /*break*/, 4];
11811 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
11812 case "ResourceInUseException": return [3 /*break*/, 6];
11813 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
11814 case "ResourceNotFoundException": return [3 /*break*/, 8];
11815 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
11816 }
11817 return [3 /*break*/, 10];
11818 case 2:
11819 _c = [{}];
11820 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
11821 case 3:
11822 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11823 return [3 /*break*/, 11];
11824 case 4:
11825 _d = [{}];
11826 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
11827 case 5:
11828 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11829 return [3 /*break*/, 11];
11830 case 6:
11831 _e = [{}];
11832 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
11833 case 7:
11834 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11835 return [3 /*break*/, 11];
11836 case 8:
11837 _f = [{}];
11838 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
11839 case 9:
11840 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11841 return [3 /*break*/, 11];
11842 case 10:
11843 parsedBody = parsedOutput.body;
11844 errorCode = parsedBody.code || parsedBody.Code || errorCode;
11845 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
11846 _h.label = 11;
11847 case 11:
11848 message = response.message || response.Message || errorCode;
11849 response.message = message;
11850 delete response.Message;
11851 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
11852 }
11853 });
11854}); };
11855var deserializeAws_json1_1CreateStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11856 var response;
11857 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11858 switch (_a.label) {
11859 case 0:
11860 if (output.statusCode >= 300) {
11861 return [2 /*return*/, deserializeAws_json1_1CreateStreamCommandError(output, context)];
11862 }
11863 return [4 /*yield*/, collectBody(output.body, context)];
11864 case 1:
11865 _a.sent();
11866 response = {
11867 $metadata: deserializeMetadata(output),
11868 };
11869 return [2 /*return*/, Promise.resolve(response)];
11870 }
11871 });
11872}); };
11873var deserializeAws_json1_1CreateStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11874 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
11875 var _f;
11876 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
11877 switch (_g.label) {
11878 case 0:
11879 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11880 _f = {};
11881 return [4 /*yield*/, parseBody(output.body, context)];
11882 case 1:
11883 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
11884 errorCode = "UnknownError";
11885 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11886 _b = errorCode;
11887 switch (_b) {
11888 case "InvalidArgumentException": return [3 /*break*/, 2];
11889 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
11890 case "LimitExceededException": return [3 /*break*/, 4];
11891 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
11892 case "ResourceInUseException": return [3 /*break*/, 6];
11893 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
11894 }
11895 return [3 /*break*/, 8];
11896 case 2:
11897 _c = [{}];
11898 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
11899 case 3:
11900 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11901 return [3 /*break*/, 9];
11902 case 4:
11903 _d = [{}];
11904 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
11905 case 5:
11906 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11907 return [3 /*break*/, 9];
11908 case 6:
11909 _e = [{}];
11910 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
11911 case 7:
11912 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11913 return [3 /*break*/, 9];
11914 case 8:
11915 parsedBody = parsedOutput.body;
11916 errorCode = parsedBody.code || parsedBody.Code || errorCode;
11917 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
11918 _g.label = 9;
11919 case 9:
11920 message = response.message || response.Message || errorCode;
11921 response.message = message;
11922 delete response.Message;
11923 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
11924 }
11925 });
11926}); };
11927var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11928 var response;
11929 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
11930 switch (_a.label) {
11931 case 0:
11932 if (output.statusCode >= 300) {
11933 return [2 /*return*/, deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError(output, context)];
11934 }
11935 return [4 /*yield*/, collectBody(output.body, context)];
11936 case 1:
11937 _a.sent();
11938 response = {
11939 $metadata: deserializeMetadata(output),
11940 };
11941 return [2 /*return*/, Promise.resolve(response)];
11942 }
11943 });
11944}); };
11945var deserializeAws_json1_1DecreaseStreamRetentionPeriodCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
11946 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
11947 var _g;
11948 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
11949 switch (_h.label) {
11950 case 0:
11951 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
11952 _g = {};
11953 return [4 /*yield*/, parseBody(output.body, context)];
11954 case 1:
11955 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
11956 errorCode = "UnknownError";
11957 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11958 _b = errorCode;
11959 switch (_b) {
11960 case "InvalidArgumentException": return [3 /*break*/, 2];
11961 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
11962 case "LimitExceededException": return [3 /*break*/, 4];
11963 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
11964 case "ResourceInUseException": return [3 /*break*/, 6];
11965 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
11966 case "ResourceNotFoundException": return [3 /*break*/, 8];
11967 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
11968 }
11969 return [3 /*break*/, 10];
11970 case 2:
11971 _c = [{}];
11972 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
11973 case 3:
11974 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11975 return [3 /*break*/, 11];
11976 case 4:
11977 _d = [{}];
11978 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
11979 case 5:
11980 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11981 return [3 /*break*/, 11];
11982 case 6:
11983 _e = [{}];
11984 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
11985 case 7:
11986 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11987 return [3 /*break*/, 11];
11988 case 8:
11989 _f = [{}];
11990 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
11991 case 9:
11992 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
11993 return [3 /*break*/, 11];
11994 case 10:
11995 parsedBody = parsedOutput.body;
11996 errorCode = parsedBody.code || parsedBody.Code || errorCode;
11997 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
11998 _h.label = 11;
11999 case 11:
12000 message = response.message || response.Message || errorCode;
12001 response.message = message;
12002 delete response.Message;
12003 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12004 }
12005 });
12006}); };
12007var deserializeAws_json1_1DeleteStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12008 var response;
12009 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12010 switch (_a.label) {
12011 case 0:
12012 if (output.statusCode >= 300) {
12013 return [2 /*return*/, deserializeAws_json1_1DeleteStreamCommandError(output, context)];
12014 }
12015 return [4 /*yield*/, collectBody(output.body, context)];
12016 case 1:
12017 _a.sent();
12018 response = {
12019 $metadata: deserializeMetadata(output),
12020 };
12021 return [2 /*return*/, Promise.resolve(response)];
12022 }
12023 });
12024}); };
12025var deserializeAws_json1_1DeleteStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12026 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12027 var _f;
12028 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12029 switch (_g.label) {
12030 case 0:
12031 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12032 _f = {};
12033 return [4 /*yield*/, parseBody(output.body, context)];
12034 case 1:
12035 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12036 errorCode = "UnknownError";
12037 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12038 _b = errorCode;
12039 switch (_b) {
12040 case "LimitExceededException": return [3 /*break*/, 2];
12041 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12042 case "ResourceInUseException": return [3 /*break*/, 4];
12043 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 4];
12044 case "ResourceNotFoundException": return [3 /*break*/, 6];
12045 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12046 }
12047 return [3 /*break*/, 8];
12048 case 2:
12049 _c = [{}];
12050 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12051 case 3:
12052 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12053 return [3 /*break*/, 9];
12054 case 4:
12055 _d = [{}];
12056 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12057 case 5:
12058 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12059 return [3 /*break*/, 9];
12060 case 6:
12061 _e = [{}];
12062 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12063 case 7:
12064 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12065 return [3 /*break*/, 9];
12066 case 8:
12067 parsedBody = parsedOutput.body;
12068 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12069 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12070 _g.label = 9;
12071 case 9:
12072 message = response.message || response.Message || errorCode;
12073 response.message = message;
12074 delete response.Message;
12075 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12076 }
12077 });
12078}); };
12079var deserializeAws_json1_1DeregisterStreamConsumerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12080 var response;
12081 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12082 switch (_a.label) {
12083 case 0:
12084 if (output.statusCode >= 300) {
12085 return [2 /*return*/, deserializeAws_json1_1DeregisterStreamConsumerCommandError(output, context)];
12086 }
12087 return [4 /*yield*/, collectBody(output.body, context)];
12088 case 1:
12089 _a.sent();
12090 response = {
12091 $metadata: deserializeMetadata(output),
12092 };
12093 return [2 /*return*/, Promise.resolve(response)];
12094 }
12095 });
12096}); };
12097var deserializeAws_json1_1DeregisterStreamConsumerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12098 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12099 var _f;
12100 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12101 switch (_g.label) {
12102 case 0:
12103 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12104 _f = {};
12105 return [4 /*yield*/, parseBody(output.body, context)];
12106 case 1:
12107 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12108 errorCode = "UnknownError";
12109 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12110 _b = errorCode;
12111 switch (_b) {
12112 case "InvalidArgumentException": return [3 /*break*/, 2];
12113 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12114 case "LimitExceededException": return [3 /*break*/, 4];
12115 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12116 case "ResourceNotFoundException": return [3 /*break*/, 6];
12117 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12118 }
12119 return [3 /*break*/, 8];
12120 case 2:
12121 _c = [{}];
12122 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12123 case 3:
12124 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12125 return [3 /*break*/, 9];
12126 case 4:
12127 _d = [{}];
12128 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12129 case 5:
12130 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12131 return [3 /*break*/, 9];
12132 case 6:
12133 _e = [{}];
12134 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12135 case 7:
12136 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12137 return [3 /*break*/, 9];
12138 case 8:
12139 parsedBody = parsedOutput.body;
12140 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12141 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12142 _g.label = 9;
12143 case 9:
12144 message = response.message || response.Message || errorCode;
12145 response.message = message;
12146 delete response.Message;
12147 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12148 }
12149 });
12150}); };
12151var deserializeAws_json1_1DescribeLimitsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12152 var data, contents, response;
12153 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12154 switch (_a.label) {
12155 case 0:
12156 if (output.statusCode >= 300) {
12157 return [2 /*return*/, deserializeAws_json1_1DescribeLimitsCommandError(output, context)];
12158 }
12159 return [4 /*yield*/, parseBody(output.body, context)];
12160 case 1:
12161 data = _a.sent();
12162 contents = {};
12163 contents = deserializeAws_json1_1DescribeLimitsOutput(data, context);
12164 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12165 return [2 /*return*/, Promise.resolve(response)];
12166 }
12167 });
12168}); };
12169var deserializeAws_json1_1DescribeLimitsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12170 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
12171 var _d;
12172 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
12173 switch (_e.label) {
12174 case 0:
12175 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12176 _d = {};
12177 return [4 /*yield*/, parseBody(output.body, context)];
12178 case 1:
12179 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
12180 errorCode = "UnknownError";
12181 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12182 _b = errorCode;
12183 switch (_b) {
12184 case "LimitExceededException": return [3 /*break*/, 2];
12185 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12186 }
12187 return [3 /*break*/, 4];
12188 case 2:
12189 _c = [{}];
12190 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12191 case 3:
12192 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12193 return [3 /*break*/, 5];
12194 case 4:
12195 parsedBody = parsedOutput.body;
12196 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12197 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12198 _e.label = 5;
12199 case 5:
12200 message = response.message || response.Message || errorCode;
12201 response.message = message;
12202 delete response.Message;
12203 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12204 }
12205 });
12206}); };
12207var deserializeAws_json1_1DescribeStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12208 var data, contents, response;
12209 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12210 switch (_a.label) {
12211 case 0:
12212 if (output.statusCode >= 300) {
12213 return [2 /*return*/, deserializeAws_json1_1DescribeStreamCommandError(output, context)];
12214 }
12215 return [4 /*yield*/, parseBody(output.body, context)];
12216 case 1:
12217 data = _a.sent();
12218 contents = {};
12219 contents = deserializeAws_json1_1DescribeStreamOutput(data, context);
12220 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12221 return [2 /*return*/, Promise.resolve(response)];
12222 }
12223 });
12224}); };
12225var deserializeAws_json1_1DescribeStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12226 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
12227 var _e;
12228 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
12229 switch (_f.label) {
12230 case 0:
12231 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12232 _e = {};
12233 return [4 /*yield*/, parseBody(output.body, context)];
12234 case 1:
12235 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
12236 errorCode = "UnknownError";
12237 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12238 _b = errorCode;
12239 switch (_b) {
12240 case "LimitExceededException": return [3 /*break*/, 2];
12241 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12242 case "ResourceNotFoundException": return [3 /*break*/, 4];
12243 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 4];
12244 }
12245 return [3 /*break*/, 6];
12246 case 2:
12247 _c = [{}];
12248 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12249 case 3:
12250 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12251 return [3 /*break*/, 7];
12252 case 4:
12253 _d = [{}];
12254 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12255 case 5:
12256 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12257 return [3 /*break*/, 7];
12258 case 6:
12259 parsedBody = parsedOutput.body;
12260 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12261 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12262 _f.label = 7;
12263 case 7:
12264 message = response.message || response.Message || errorCode;
12265 response.message = message;
12266 delete response.Message;
12267 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12268 }
12269 });
12270}); };
12271var deserializeAws_json1_1DescribeStreamConsumerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12272 var data, contents, response;
12273 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12274 switch (_a.label) {
12275 case 0:
12276 if (output.statusCode >= 300) {
12277 return [2 /*return*/, deserializeAws_json1_1DescribeStreamConsumerCommandError(output, context)];
12278 }
12279 return [4 /*yield*/, parseBody(output.body, context)];
12280 case 1:
12281 data = _a.sent();
12282 contents = {};
12283 contents = deserializeAws_json1_1DescribeStreamConsumerOutput(data, context);
12284 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12285 return [2 /*return*/, Promise.resolve(response)];
12286 }
12287 });
12288}); };
12289var deserializeAws_json1_1DescribeStreamConsumerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12290 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12291 var _f;
12292 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12293 switch (_g.label) {
12294 case 0:
12295 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12296 _f = {};
12297 return [4 /*yield*/, parseBody(output.body, context)];
12298 case 1:
12299 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12300 errorCode = "UnknownError";
12301 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12302 _b = errorCode;
12303 switch (_b) {
12304 case "InvalidArgumentException": return [3 /*break*/, 2];
12305 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12306 case "LimitExceededException": return [3 /*break*/, 4];
12307 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12308 case "ResourceNotFoundException": return [3 /*break*/, 6];
12309 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12310 }
12311 return [3 /*break*/, 8];
12312 case 2:
12313 _c = [{}];
12314 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12315 case 3:
12316 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12317 return [3 /*break*/, 9];
12318 case 4:
12319 _d = [{}];
12320 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12321 case 5:
12322 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12323 return [3 /*break*/, 9];
12324 case 6:
12325 _e = [{}];
12326 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12327 case 7:
12328 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12329 return [3 /*break*/, 9];
12330 case 8:
12331 parsedBody = parsedOutput.body;
12332 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12333 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12334 _g.label = 9;
12335 case 9:
12336 message = response.message || response.Message || errorCode;
12337 response.message = message;
12338 delete response.Message;
12339 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12340 }
12341 });
12342}); };
12343var deserializeAws_json1_1DescribeStreamSummaryCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12344 var data, contents, response;
12345 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12346 switch (_a.label) {
12347 case 0:
12348 if (output.statusCode >= 300) {
12349 return [2 /*return*/, deserializeAws_json1_1DescribeStreamSummaryCommandError(output, context)];
12350 }
12351 return [4 /*yield*/, parseBody(output.body, context)];
12352 case 1:
12353 data = _a.sent();
12354 contents = {};
12355 contents = deserializeAws_json1_1DescribeStreamSummaryOutput(data, context);
12356 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12357 return [2 /*return*/, Promise.resolve(response)];
12358 }
12359 });
12360}); };
12361var deserializeAws_json1_1DescribeStreamSummaryCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12362 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
12363 var _e;
12364 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
12365 switch (_f.label) {
12366 case 0:
12367 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12368 _e = {};
12369 return [4 /*yield*/, parseBody(output.body, context)];
12370 case 1:
12371 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
12372 errorCode = "UnknownError";
12373 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12374 _b = errorCode;
12375 switch (_b) {
12376 case "LimitExceededException": return [3 /*break*/, 2];
12377 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
12378 case "ResourceNotFoundException": return [3 /*break*/, 4];
12379 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 4];
12380 }
12381 return [3 /*break*/, 6];
12382 case 2:
12383 _c = [{}];
12384 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12385 case 3:
12386 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12387 return [3 /*break*/, 7];
12388 case 4:
12389 _d = [{}];
12390 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12391 case 5:
12392 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12393 return [3 /*break*/, 7];
12394 case 6:
12395 parsedBody = parsedOutput.body;
12396 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12397 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12398 _f.label = 7;
12399 case 7:
12400 message = response.message || response.Message || errorCode;
12401 response.message = message;
12402 delete response.Message;
12403 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12404 }
12405 });
12406}); };
12407var deserializeAws_json1_1DisableEnhancedMonitoringCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12408 var data, contents, response;
12409 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12410 switch (_a.label) {
12411 case 0:
12412 if (output.statusCode >= 300) {
12413 return [2 /*return*/, deserializeAws_json1_1DisableEnhancedMonitoringCommandError(output, context)];
12414 }
12415 return [4 /*yield*/, parseBody(output.body, context)];
12416 case 1:
12417 data = _a.sent();
12418 contents = {};
12419 contents = deserializeAws_json1_1EnhancedMonitoringOutput(data, context);
12420 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12421 return [2 /*return*/, Promise.resolve(response)];
12422 }
12423 });
12424}); };
12425var deserializeAws_json1_1DisableEnhancedMonitoringCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12426 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
12427 var _g;
12428 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
12429 switch (_h.label) {
12430 case 0:
12431 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12432 _g = {};
12433 return [4 /*yield*/, parseBody(output.body, context)];
12434 case 1:
12435 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
12436 errorCode = "UnknownError";
12437 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12438 _b = errorCode;
12439 switch (_b) {
12440 case "InvalidArgumentException": return [3 /*break*/, 2];
12441 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12442 case "LimitExceededException": return [3 /*break*/, 4];
12443 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12444 case "ResourceInUseException": return [3 /*break*/, 6];
12445 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
12446 case "ResourceNotFoundException": return [3 /*break*/, 8];
12447 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
12448 }
12449 return [3 /*break*/, 10];
12450 case 2:
12451 _c = [{}];
12452 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12453 case 3:
12454 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12455 return [3 /*break*/, 11];
12456 case 4:
12457 _d = [{}];
12458 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12459 case 5:
12460 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12461 return [3 /*break*/, 11];
12462 case 6:
12463 _e = [{}];
12464 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12465 case 7:
12466 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12467 return [3 /*break*/, 11];
12468 case 8:
12469 _f = [{}];
12470 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12471 case 9:
12472 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12473 return [3 /*break*/, 11];
12474 case 10:
12475 parsedBody = parsedOutput.body;
12476 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12477 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12478 _h.label = 11;
12479 case 11:
12480 message = response.message || response.Message || errorCode;
12481 response.message = message;
12482 delete response.Message;
12483 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12484 }
12485 });
12486}); };
12487var deserializeAws_json1_1EnableEnhancedMonitoringCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12488 var data, contents, response;
12489 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12490 switch (_a.label) {
12491 case 0:
12492 if (output.statusCode >= 300) {
12493 return [2 /*return*/, deserializeAws_json1_1EnableEnhancedMonitoringCommandError(output, context)];
12494 }
12495 return [4 /*yield*/, parseBody(output.body, context)];
12496 case 1:
12497 data = _a.sent();
12498 contents = {};
12499 contents = deserializeAws_json1_1EnhancedMonitoringOutput(data, context);
12500 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12501 return [2 /*return*/, Promise.resolve(response)];
12502 }
12503 });
12504}); };
12505var deserializeAws_json1_1EnableEnhancedMonitoringCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12506 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
12507 var _g;
12508 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
12509 switch (_h.label) {
12510 case 0:
12511 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12512 _g = {};
12513 return [4 /*yield*/, parseBody(output.body, context)];
12514 case 1:
12515 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
12516 errorCode = "UnknownError";
12517 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12518 _b = errorCode;
12519 switch (_b) {
12520 case "InvalidArgumentException": return [3 /*break*/, 2];
12521 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12522 case "LimitExceededException": return [3 /*break*/, 4];
12523 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12524 case "ResourceInUseException": return [3 /*break*/, 6];
12525 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
12526 case "ResourceNotFoundException": return [3 /*break*/, 8];
12527 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
12528 }
12529 return [3 /*break*/, 10];
12530 case 2:
12531 _c = [{}];
12532 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12533 case 3:
12534 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12535 return [3 /*break*/, 11];
12536 case 4:
12537 _d = [{}];
12538 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12539 case 5:
12540 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12541 return [3 /*break*/, 11];
12542 case 6:
12543 _e = [{}];
12544 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12545 case 7:
12546 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12547 return [3 /*break*/, 11];
12548 case 8:
12549 _f = [{}];
12550 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12551 case 9:
12552 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12553 return [3 /*break*/, 11];
12554 case 10:
12555 parsedBody = parsedOutput.body;
12556 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12557 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12558 _h.label = 11;
12559 case 11:
12560 message = response.message || response.Message || errorCode;
12561 response.message = message;
12562 delete response.Message;
12563 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12564 }
12565 });
12566}); };
12567var deserializeAws_json1_1GetRecordsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12568 var data, contents, response;
12569 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12570 switch (_a.label) {
12571 case 0:
12572 if (output.statusCode >= 300) {
12573 return [2 /*return*/, deserializeAws_json1_1GetRecordsCommandError(output, context)];
12574 }
12575 return [4 /*yield*/, parseBody(output.body, context)];
12576 case 1:
12577 data = _a.sent();
12578 contents = {};
12579 contents = deserializeAws_json1_1GetRecordsOutput(data, context);
12580 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12581 return [2 /*return*/, Promise.resolve(response)];
12582 }
12583 });
12584}); };
12585var deserializeAws_json1_1GetRecordsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12586 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message;
12587 var _o;
12588 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_p) {
12589 switch (_p.label) {
12590 case 0:
12591 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12592 _o = {};
12593 return [4 /*yield*/, parseBody(output.body, context)];
12594 case 1:
12595 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
12596 errorCode = "UnknownError";
12597 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12598 _b = errorCode;
12599 switch (_b) {
12600 case "ExpiredIteratorException": return [3 /*break*/, 2];
12601 case "com.amazonaws.kinesis#ExpiredIteratorException": return [3 /*break*/, 2];
12602 case "InvalidArgumentException": return [3 /*break*/, 4];
12603 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 4];
12604 case "KMSAccessDeniedException": return [3 /*break*/, 6];
12605 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 6];
12606 case "KMSDisabledException": return [3 /*break*/, 8];
12607 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 8];
12608 case "KMSInvalidStateException": return [3 /*break*/, 10];
12609 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 10];
12610 case "KMSNotFoundException": return [3 /*break*/, 12];
12611 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 12];
12612 case "KMSOptInRequired": return [3 /*break*/, 14];
12613 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 14];
12614 case "KMSThrottlingException": return [3 /*break*/, 16];
12615 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 16];
12616 case "ProvisionedThroughputExceededException": return [3 /*break*/, 18];
12617 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 18];
12618 case "ResourceNotFoundException": return [3 /*break*/, 20];
12619 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 20];
12620 }
12621 return [3 /*break*/, 22];
12622 case 2:
12623 _c = [{}];
12624 return [4 /*yield*/, deserializeAws_json1_1ExpiredIteratorExceptionResponse(parsedOutput, context)];
12625 case 3:
12626 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12627 return [3 /*break*/, 23];
12628 case 4:
12629 _d = [{}];
12630 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12631 case 5:
12632 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12633 return [3 /*break*/, 23];
12634 case 6:
12635 _e = [{}];
12636 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
12637 case 7:
12638 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12639 return [3 /*break*/, 23];
12640 case 8:
12641 _f = [{}];
12642 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
12643 case 9:
12644 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12645 return [3 /*break*/, 23];
12646 case 10:
12647 _g = [{}];
12648 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
12649 case 11:
12650 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12651 return [3 /*break*/, 23];
12652 case 12:
12653 _h = [{}];
12654 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
12655 case 13:
12656 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12657 return [3 /*break*/, 23];
12658 case 14:
12659 _j = [{}];
12660 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
12661 case 15:
12662 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12663 return [3 /*break*/, 23];
12664 case 16:
12665 _k = [{}];
12666 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
12667 case 17:
12668 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12669 return [3 /*break*/, 23];
12670 case 18:
12671 _l = [{}];
12672 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
12673 case 19:
12674 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12675 return [3 /*break*/, 23];
12676 case 20:
12677 _m = [{}];
12678 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12679 case 21:
12680 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12681 return [3 /*break*/, 23];
12682 case 22:
12683 parsedBody = parsedOutput.body;
12684 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12685 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12686 _p.label = 23;
12687 case 23:
12688 message = response.message || response.Message || errorCode;
12689 response.message = message;
12690 delete response.Message;
12691 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12692 }
12693 });
12694}); };
12695var deserializeAws_json1_1GetShardIteratorCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12696 var data, contents, response;
12697 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12698 switch (_a.label) {
12699 case 0:
12700 if (output.statusCode >= 300) {
12701 return [2 /*return*/, deserializeAws_json1_1GetShardIteratorCommandError(output, context)];
12702 }
12703 return [4 /*yield*/, parseBody(output.body, context)];
12704 case 1:
12705 data = _a.sent();
12706 contents = {};
12707 contents = deserializeAws_json1_1GetShardIteratorOutput(data, context);
12708 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12709 return [2 /*return*/, Promise.resolve(response)];
12710 }
12711 });
12712}); };
12713var deserializeAws_json1_1GetShardIteratorCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12714 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
12715 var _f;
12716 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
12717 switch (_g.label) {
12718 case 0:
12719 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12720 _f = {};
12721 return [4 /*yield*/, parseBody(output.body, context)];
12722 case 1:
12723 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
12724 errorCode = "UnknownError";
12725 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12726 _b = errorCode;
12727 switch (_b) {
12728 case "InvalidArgumentException": return [3 /*break*/, 2];
12729 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12730 case "ProvisionedThroughputExceededException": return [3 /*break*/, 4];
12731 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 4];
12732 case "ResourceNotFoundException": return [3 /*break*/, 6];
12733 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
12734 }
12735 return [3 /*break*/, 8];
12736 case 2:
12737 _c = [{}];
12738 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12739 case 3:
12740 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12741 return [3 /*break*/, 9];
12742 case 4:
12743 _d = [{}];
12744 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
12745 case 5:
12746 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12747 return [3 /*break*/, 9];
12748 case 6:
12749 _e = [{}];
12750 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12751 case 7:
12752 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12753 return [3 /*break*/, 9];
12754 case 8:
12755 parsedBody = parsedOutput.body;
12756 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12757 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12758 _g.label = 9;
12759 case 9:
12760 message = response.message || response.Message || errorCode;
12761 response.message = message;
12762 delete response.Message;
12763 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12764 }
12765 });
12766}); };
12767var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12768 var response;
12769 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12770 switch (_a.label) {
12771 case 0:
12772 if (output.statusCode >= 300) {
12773 return [2 /*return*/, deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError(output, context)];
12774 }
12775 return [4 /*yield*/, collectBody(output.body, context)];
12776 case 1:
12777 _a.sent();
12778 response = {
12779 $metadata: deserializeMetadata(output),
12780 };
12781 return [2 /*return*/, Promise.resolve(response)];
12782 }
12783 });
12784}); };
12785var deserializeAws_json1_1IncreaseStreamRetentionPeriodCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12786 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
12787 var _g;
12788 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
12789 switch (_h.label) {
12790 case 0:
12791 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12792 _g = {};
12793 return [4 /*yield*/, parseBody(output.body, context)];
12794 case 1:
12795 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
12796 errorCode = "UnknownError";
12797 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12798 _b = errorCode;
12799 switch (_b) {
12800 case "InvalidArgumentException": return [3 /*break*/, 2];
12801 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
12802 case "LimitExceededException": return [3 /*break*/, 4];
12803 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
12804 case "ResourceInUseException": return [3 /*break*/, 6];
12805 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
12806 case "ResourceNotFoundException": return [3 /*break*/, 8];
12807 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
12808 }
12809 return [3 /*break*/, 10];
12810 case 2:
12811 _c = [{}];
12812 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12813 case 3:
12814 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12815 return [3 /*break*/, 11];
12816 case 4:
12817 _d = [{}];
12818 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12819 case 5:
12820 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12821 return [3 /*break*/, 11];
12822 case 6:
12823 _e = [{}];
12824 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12825 case 7:
12826 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12827 return [3 /*break*/, 11];
12828 case 8:
12829 _f = [{}];
12830 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12831 case 9:
12832 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12833 return [3 /*break*/, 11];
12834 case 10:
12835 parsedBody = parsedOutput.body;
12836 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12837 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12838 _h.label = 11;
12839 case 11:
12840 message = response.message || response.Message || errorCode;
12841 response.message = message;
12842 delete response.Message;
12843 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12844 }
12845 });
12846}); };
12847var deserializeAws_json1_1ListShardsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12848 var data, contents, response;
12849 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12850 switch (_a.label) {
12851 case 0:
12852 if (output.statusCode >= 300) {
12853 return [2 /*return*/, deserializeAws_json1_1ListShardsCommandError(output, context)];
12854 }
12855 return [4 /*yield*/, parseBody(output.body, context)];
12856 case 1:
12857 data = _a.sent();
12858 contents = {};
12859 contents = deserializeAws_json1_1ListShardsOutput(data, context);
12860 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12861 return [2 /*return*/, Promise.resolve(response)];
12862 }
12863 });
12864}); };
12865var deserializeAws_json1_1ListShardsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12866 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
12867 var _h;
12868 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
12869 switch (_j.label) {
12870 case 0:
12871 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12872 _h = {};
12873 return [4 /*yield*/, parseBody(output.body, context)];
12874 case 1:
12875 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
12876 errorCode = "UnknownError";
12877 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12878 _b = errorCode;
12879 switch (_b) {
12880 case "ExpiredNextTokenException": return [3 /*break*/, 2];
12881 case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3 /*break*/, 2];
12882 case "InvalidArgumentException": return [3 /*break*/, 4];
12883 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 4];
12884 case "LimitExceededException": return [3 /*break*/, 6];
12885 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 6];
12886 case "ResourceInUseException": return [3 /*break*/, 8];
12887 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 8];
12888 case "ResourceNotFoundException": return [3 /*break*/, 10];
12889 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 10];
12890 }
12891 return [3 /*break*/, 12];
12892 case 2:
12893 _c = [{}];
12894 return [4 /*yield*/, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
12895 case 3:
12896 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12897 return [3 /*break*/, 13];
12898 case 4:
12899 _d = [{}];
12900 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12901 case 5:
12902 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12903 return [3 /*break*/, 13];
12904 case 6:
12905 _e = [{}];
12906 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12907 case 7:
12908 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12909 return [3 /*break*/, 13];
12910 case 8:
12911 _f = [{}];
12912 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
12913 case 9:
12914 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12915 return [3 /*break*/, 13];
12916 case 10:
12917 _g = [{}];
12918 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
12919 case 11:
12920 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12921 return [3 /*break*/, 13];
12922 case 12:
12923 parsedBody = parsedOutput.body;
12924 errorCode = parsedBody.code || parsedBody.Code || errorCode;
12925 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
12926 _j.label = 13;
12927 case 13:
12928 message = response.message || response.Message || errorCode;
12929 response.message = message;
12930 delete response.Message;
12931 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
12932 }
12933 });
12934}); };
12935var deserializeAws_json1_1ListStreamConsumersCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12936 var data, contents, response;
12937 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
12938 switch (_a.label) {
12939 case 0:
12940 if (output.statusCode >= 300) {
12941 return [2 /*return*/, deserializeAws_json1_1ListStreamConsumersCommandError(output, context)];
12942 }
12943 return [4 /*yield*/, parseBody(output.body, context)];
12944 case 1:
12945 data = _a.sent();
12946 contents = {};
12947 contents = deserializeAws_json1_1ListStreamConsumersOutput(data, context);
12948 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
12949 return [2 /*return*/, Promise.resolve(response)];
12950 }
12951 });
12952}); };
12953var deserializeAws_json1_1ListStreamConsumersCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
12954 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
12955 var _h;
12956 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
12957 switch (_j.label) {
12958 case 0:
12959 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
12960 _h = {};
12961 return [4 /*yield*/, parseBody(output.body, context)];
12962 case 1:
12963 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
12964 errorCode = "UnknownError";
12965 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12966 _b = errorCode;
12967 switch (_b) {
12968 case "ExpiredNextTokenException": return [3 /*break*/, 2];
12969 case "com.amazonaws.kinesis#ExpiredNextTokenException": return [3 /*break*/, 2];
12970 case "InvalidArgumentException": return [3 /*break*/, 4];
12971 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 4];
12972 case "LimitExceededException": return [3 /*break*/, 6];
12973 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 6];
12974 case "ResourceInUseException": return [3 /*break*/, 8];
12975 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 8];
12976 case "ResourceNotFoundException": return [3 /*break*/, 10];
12977 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 10];
12978 }
12979 return [3 /*break*/, 12];
12980 case 2:
12981 _c = [{}];
12982 return [4 /*yield*/, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
12983 case 3:
12984 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12985 return [3 /*break*/, 13];
12986 case 4:
12987 _d = [{}];
12988 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
12989 case 5:
12990 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12991 return [3 /*break*/, 13];
12992 case 6:
12993 _e = [{}];
12994 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
12995 case 7:
12996 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
12997 return [3 /*break*/, 13];
12998 case 8:
12999 _f = [{}];
13000 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13001 case 9:
13002 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13003 return [3 /*break*/, 13];
13004 case 10:
13005 _g = [{}];
13006 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13007 case 11:
13008 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13009 return [3 /*break*/, 13];
13010 case 12:
13011 parsedBody = parsedOutput.body;
13012 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13013 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13014 _j.label = 13;
13015 case 13:
13016 message = response.message || response.Message || errorCode;
13017 response.message = message;
13018 delete response.Message;
13019 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13020 }
13021 });
13022}); };
13023var deserializeAws_json1_1ListStreamsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13024 var data, contents, response;
13025 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13026 switch (_a.label) {
13027 case 0:
13028 if (output.statusCode >= 300) {
13029 return [2 /*return*/, deserializeAws_json1_1ListStreamsCommandError(output, context)];
13030 }
13031 return [4 /*yield*/, parseBody(output.body, context)];
13032 case 1:
13033 data = _a.sent();
13034 contents = {};
13035 contents = deserializeAws_json1_1ListStreamsOutput(data, context);
13036 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13037 return [2 /*return*/, Promise.resolve(response)];
13038 }
13039 });
13040}); };
13041var deserializeAws_json1_1ListStreamsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13042 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
13043 var _d;
13044 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
13045 switch (_e.label) {
13046 case 0:
13047 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13048 _d = {};
13049 return [4 /*yield*/, parseBody(output.body, context)];
13050 case 1:
13051 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
13052 errorCode = "UnknownError";
13053 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13054 _b = errorCode;
13055 switch (_b) {
13056 case "LimitExceededException": return [3 /*break*/, 2];
13057 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 2];
13058 }
13059 return [3 /*break*/, 4];
13060 case 2:
13061 _c = [{}];
13062 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13063 case 3:
13064 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13065 return [3 /*break*/, 5];
13066 case 4:
13067 parsedBody = parsedOutput.body;
13068 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13069 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13070 _e.label = 5;
13071 case 5:
13072 message = response.message || response.Message || errorCode;
13073 response.message = message;
13074 delete response.Message;
13075 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13076 }
13077 });
13078}); };
13079var deserializeAws_json1_1ListTagsForStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13080 var data, contents, response;
13081 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13082 switch (_a.label) {
13083 case 0:
13084 if (output.statusCode >= 300) {
13085 return [2 /*return*/, deserializeAws_json1_1ListTagsForStreamCommandError(output, context)];
13086 }
13087 return [4 /*yield*/, parseBody(output.body, context)];
13088 case 1:
13089 data = _a.sent();
13090 contents = {};
13091 contents = deserializeAws_json1_1ListTagsForStreamOutput(data, context);
13092 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13093 return [2 /*return*/, Promise.resolve(response)];
13094 }
13095 });
13096}); };
13097var deserializeAws_json1_1ListTagsForStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13098 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
13099 var _f;
13100 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
13101 switch (_g.label) {
13102 case 0:
13103 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13104 _f = {};
13105 return [4 /*yield*/, parseBody(output.body, context)];
13106 case 1:
13107 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
13108 errorCode = "UnknownError";
13109 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13110 _b = errorCode;
13111 switch (_b) {
13112 case "InvalidArgumentException": return [3 /*break*/, 2];
13113 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13114 case "LimitExceededException": return [3 /*break*/, 4];
13115 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13116 case "ResourceNotFoundException": return [3 /*break*/, 6];
13117 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 6];
13118 }
13119 return [3 /*break*/, 8];
13120 case 2:
13121 _c = [{}];
13122 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13123 case 3:
13124 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13125 return [3 /*break*/, 9];
13126 case 4:
13127 _d = [{}];
13128 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13129 case 5:
13130 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13131 return [3 /*break*/, 9];
13132 case 6:
13133 _e = [{}];
13134 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13135 case 7:
13136 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13137 return [3 /*break*/, 9];
13138 case 8:
13139 parsedBody = parsedOutput.body;
13140 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13141 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13142 _g.label = 9;
13143 case 9:
13144 message = response.message || response.Message || errorCode;
13145 response.message = message;
13146 delete response.Message;
13147 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13148 }
13149 });
13150}); };
13151var deserializeAws_json1_1MergeShardsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13152 var response;
13153 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13154 switch (_a.label) {
13155 case 0:
13156 if (output.statusCode >= 300) {
13157 return [2 /*return*/, deserializeAws_json1_1MergeShardsCommandError(output, context)];
13158 }
13159 return [4 /*yield*/, collectBody(output.body, context)];
13160 case 1:
13161 _a.sent();
13162 response = {
13163 $metadata: deserializeMetadata(output),
13164 };
13165 return [2 /*return*/, Promise.resolve(response)];
13166 }
13167 });
13168}); };
13169var deserializeAws_json1_1MergeShardsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13170 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13171 var _g;
13172 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13173 switch (_h.label) {
13174 case 0:
13175 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13176 _g = {};
13177 return [4 /*yield*/, parseBody(output.body, context)];
13178 case 1:
13179 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13180 errorCode = "UnknownError";
13181 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13182 _b = errorCode;
13183 switch (_b) {
13184 case "InvalidArgumentException": return [3 /*break*/, 2];
13185 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13186 case "LimitExceededException": return [3 /*break*/, 4];
13187 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13188 case "ResourceInUseException": return [3 /*break*/, 6];
13189 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13190 case "ResourceNotFoundException": return [3 /*break*/, 8];
13191 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13192 }
13193 return [3 /*break*/, 10];
13194 case 2:
13195 _c = [{}];
13196 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13197 case 3:
13198 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13199 return [3 /*break*/, 11];
13200 case 4:
13201 _d = [{}];
13202 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13203 case 5:
13204 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13205 return [3 /*break*/, 11];
13206 case 6:
13207 _e = [{}];
13208 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13209 case 7:
13210 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13211 return [3 /*break*/, 11];
13212 case 8:
13213 _f = [{}];
13214 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13215 case 9:
13216 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13217 return [3 /*break*/, 11];
13218 case 10:
13219 parsedBody = parsedOutput.body;
13220 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13221 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13222 _h.label = 11;
13223 case 11:
13224 message = response.message || response.Message || errorCode;
13225 response.message = message;
13226 delete response.Message;
13227 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13228 }
13229 });
13230}); };
13231var deserializeAws_json1_1PutRecordCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13232 var data, contents, response;
13233 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13234 switch (_a.label) {
13235 case 0:
13236 if (output.statusCode >= 300) {
13237 return [2 /*return*/, deserializeAws_json1_1PutRecordCommandError(output, context)];
13238 }
13239 return [4 /*yield*/, parseBody(output.body, context)];
13240 case 1:
13241 data = _a.sent();
13242 contents = {};
13243 contents = deserializeAws_json1_1PutRecordOutput(data, context);
13244 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13245 return [2 /*return*/, Promise.resolve(response)];
13246 }
13247 });
13248}); };
13249var deserializeAws_json1_1PutRecordCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13250 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message;
13251 var _m;
13252 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) {
13253 switch (_o.label) {
13254 case 0:
13255 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13256 _m = {};
13257 return [4 /*yield*/, parseBody(output.body, context)];
13258 case 1:
13259 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
13260 errorCode = "UnknownError";
13261 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13262 _b = errorCode;
13263 switch (_b) {
13264 case "InvalidArgumentException": return [3 /*break*/, 2];
13265 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13266 case "KMSAccessDeniedException": return [3 /*break*/, 4];
13267 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 4];
13268 case "KMSDisabledException": return [3 /*break*/, 6];
13269 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 6];
13270 case "KMSInvalidStateException": return [3 /*break*/, 8];
13271 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 8];
13272 case "KMSNotFoundException": return [3 /*break*/, 10];
13273 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 10];
13274 case "KMSOptInRequired": return [3 /*break*/, 12];
13275 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 12];
13276 case "KMSThrottlingException": return [3 /*break*/, 14];
13277 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 14];
13278 case "ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13279 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13280 case "ResourceNotFoundException": return [3 /*break*/, 18];
13281 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 18];
13282 }
13283 return [3 /*break*/, 20];
13284 case 2:
13285 _c = [{}];
13286 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13287 case 3:
13288 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13289 return [3 /*break*/, 21];
13290 case 4:
13291 _d = [{}];
13292 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
13293 case 5:
13294 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13295 return [3 /*break*/, 21];
13296 case 6:
13297 _e = [{}];
13298 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
13299 case 7:
13300 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13301 return [3 /*break*/, 21];
13302 case 8:
13303 _f = [{}];
13304 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
13305 case 9:
13306 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13307 return [3 /*break*/, 21];
13308 case 10:
13309 _g = [{}];
13310 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
13311 case 11:
13312 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13313 return [3 /*break*/, 21];
13314 case 12:
13315 _h = [{}];
13316 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
13317 case 13:
13318 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13319 return [3 /*break*/, 21];
13320 case 14:
13321 _j = [{}];
13322 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
13323 case 15:
13324 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13325 return [3 /*break*/, 21];
13326 case 16:
13327 _k = [{}];
13328 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
13329 case 17:
13330 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13331 return [3 /*break*/, 21];
13332 case 18:
13333 _l = [{}];
13334 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13335 case 19:
13336 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13337 return [3 /*break*/, 21];
13338 case 20:
13339 parsedBody = parsedOutput.body;
13340 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13341 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13342 _o.label = 21;
13343 case 21:
13344 message = response.message || response.Message || errorCode;
13345 response.message = message;
13346 delete response.Message;
13347 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13348 }
13349 });
13350}); };
13351var deserializeAws_json1_1PutRecordsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13352 var data, contents, response;
13353 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13354 switch (_a.label) {
13355 case 0:
13356 if (output.statusCode >= 300) {
13357 return [2 /*return*/, deserializeAws_json1_1PutRecordsCommandError(output, context)];
13358 }
13359 return [4 /*yield*/, parseBody(output.body, context)];
13360 case 1:
13361 data = _a.sent();
13362 contents = {};
13363 contents = deserializeAws_json1_1PutRecordsOutput(data, context);
13364 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13365 return [2 /*return*/, Promise.resolve(response)];
13366 }
13367 });
13368}); };
13369var deserializeAws_json1_1PutRecordsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13370 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message;
13371 var _m;
13372 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_o) {
13373 switch (_o.label) {
13374 case 0:
13375 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13376 _m = {};
13377 return [4 /*yield*/, parseBody(output.body, context)];
13378 case 1:
13379 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
13380 errorCode = "UnknownError";
13381 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13382 _b = errorCode;
13383 switch (_b) {
13384 case "InvalidArgumentException": return [3 /*break*/, 2];
13385 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13386 case "KMSAccessDeniedException": return [3 /*break*/, 4];
13387 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 4];
13388 case "KMSDisabledException": return [3 /*break*/, 6];
13389 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 6];
13390 case "KMSInvalidStateException": return [3 /*break*/, 8];
13391 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 8];
13392 case "KMSNotFoundException": return [3 /*break*/, 10];
13393 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 10];
13394 case "KMSOptInRequired": return [3 /*break*/, 12];
13395 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 12];
13396 case "KMSThrottlingException": return [3 /*break*/, 14];
13397 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 14];
13398 case "ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13399 case "com.amazonaws.kinesis#ProvisionedThroughputExceededException": return [3 /*break*/, 16];
13400 case "ResourceNotFoundException": return [3 /*break*/, 18];
13401 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 18];
13402 }
13403 return [3 /*break*/, 20];
13404 case 2:
13405 _c = [{}];
13406 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13407 case 3:
13408 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13409 return [3 /*break*/, 21];
13410 case 4:
13411 _d = [{}];
13412 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
13413 case 5:
13414 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13415 return [3 /*break*/, 21];
13416 case 6:
13417 _e = [{}];
13418 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
13419 case 7:
13420 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13421 return [3 /*break*/, 21];
13422 case 8:
13423 _f = [{}];
13424 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
13425 case 9:
13426 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13427 return [3 /*break*/, 21];
13428 case 10:
13429 _g = [{}];
13430 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
13431 case 11:
13432 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13433 return [3 /*break*/, 21];
13434 case 12:
13435 _h = [{}];
13436 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
13437 case 13:
13438 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13439 return [3 /*break*/, 21];
13440 case 14:
13441 _j = [{}];
13442 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
13443 case 15:
13444 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13445 return [3 /*break*/, 21];
13446 case 16:
13447 _k = [{}];
13448 return [4 /*yield*/, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
13449 case 17:
13450 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13451 return [3 /*break*/, 21];
13452 case 18:
13453 _l = [{}];
13454 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13455 case 19:
13456 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13457 return [3 /*break*/, 21];
13458 case 20:
13459 parsedBody = parsedOutput.body;
13460 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13461 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13462 _o.label = 21;
13463 case 21:
13464 message = response.message || response.Message || errorCode;
13465 response.message = message;
13466 delete response.Message;
13467 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13468 }
13469 });
13470}); };
13471var deserializeAws_json1_1RegisterStreamConsumerCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13472 var data, contents, response;
13473 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13474 switch (_a.label) {
13475 case 0:
13476 if (output.statusCode >= 300) {
13477 return [2 /*return*/, deserializeAws_json1_1RegisterStreamConsumerCommandError(output, context)];
13478 }
13479 return [4 /*yield*/, parseBody(output.body, context)];
13480 case 1:
13481 data = _a.sent();
13482 contents = {};
13483 contents = deserializeAws_json1_1RegisterStreamConsumerOutput(data, context);
13484 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13485 return [2 /*return*/, Promise.resolve(response)];
13486 }
13487 });
13488}); };
13489var deserializeAws_json1_1RegisterStreamConsumerCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13490 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13491 var _g;
13492 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13493 switch (_h.label) {
13494 case 0:
13495 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13496 _g = {};
13497 return [4 /*yield*/, parseBody(output.body, context)];
13498 case 1:
13499 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13500 errorCode = "UnknownError";
13501 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13502 _b = errorCode;
13503 switch (_b) {
13504 case "InvalidArgumentException": return [3 /*break*/, 2];
13505 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13506 case "LimitExceededException": return [3 /*break*/, 4];
13507 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13508 case "ResourceInUseException": return [3 /*break*/, 6];
13509 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13510 case "ResourceNotFoundException": return [3 /*break*/, 8];
13511 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13512 }
13513 return [3 /*break*/, 10];
13514 case 2:
13515 _c = [{}];
13516 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13517 case 3:
13518 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13519 return [3 /*break*/, 11];
13520 case 4:
13521 _d = [{}];
13522 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13523 case 5:
13524 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13525 return [3 /*break*/, 11];
13526 case 6:
13527 _e = [{}];
13528 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13529 case 7:
13530 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13531 return [3 /*break*/, 11];
13532 case 8:
13533 _f = [{}];
13534 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13535 case 9:
13536 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13537 return [3 /*break*/, 11];
13538 case 10:
13539 parsedBody = parsedOutput.body;
13540 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13541 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13542 _h.label = 11;
13543 case 11:
13544 message = response.message || response.Message || errorCode;
13545 response.message = message;
13546 delete response.Message;
13547 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13548 }
13549 });
13550}); };
13551var deserializeAws_json1_1RemoveTagsFromStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13552 var response;
13553 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13554 switch (_a.label) {
13555 case 0:
13556 if (output.statusCode >= 300) {
13557 return [2 /*return*/, deserializeAws_json1_1RemoveTagsFromStreamCommandError(output, context)];
13558 }
13559 return [4 /*yield*/, collectBody(output.body, context)];
13560 case 1:
13561 _a.sent();
13562 response = {
13563 $metadata: deserializeMetadata(output),
13564 };
13565 return [2 /*return*/, Promise.resolve(response)];
13566 }
13567 });
13568}); };
13569var deserializeAws_json1_1RemoveTagsFromStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13570 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13571 var _g;
13572 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13573 switch (_h.label) {
13574 case 0:
13575 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13576 _g = {};
13577 return [4 /*yield*/, parseBody(output.body, context)];
13578 case 1:
13579 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13580 errorCode = "UnknownError";
13581 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13582 _b = errorCode;
13583 switch (_b) {
13584 case "InvalidArgumentException": return [3 /*break*/, 2];
13585 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13586 case "LimitExceededException": return [3 /*break*/, 4];
13587 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13588 case "ResourceInUseException": return [3 /*break*/, 6];
13589 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13590 case "ResourceNotFoundException": return [3 /*break*/, 8];
13591 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13592 }
13593 return [3 /*break*/, 10];
13594 case 2:
13595 _c = [{}];
13596 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13597 case 3:
13598 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13599 return [3 /*break*/, 11];
13600 case 4:
13601 _d = [{}];
13602 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13603 case 5:
13604 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13605 return [3 /*break*/, 11];
13606 case 6:
13607 _e = [{}];
13608 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13609 case 7:
13610 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13611 return [3 /*break*/, 11];
13612 case 8:
13613 _f = [{}];
13614 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13615 case 9:
13616 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13617 return [3 /*break*/, 11];
13618 case 10:
13619 parsedBody = parsedOutput.body;
13620 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13621 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13622 _h.label = 11;
13623 case 11:
13624 message = response.message || response.Message || errorCode;
13625 response.message = message;
13626 delete response.Message;
13627 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13628 }
13629 });
13630}); };
13631var deserializeAws_json1_1SplitShardCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13632 var response;
13633 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13634 switch (_a.label) {
13635 case 0:
13636 if (output.statusCode >= 300) {
13637 return [2 /*return*/, deserializeAws_json1_1SplitShardCommandError(output, context)];
13638 }
13639 return [4 /*yield*/, collectBody(output.body, context)];
13640 case 1:
13641 _a.sent();
13642 response = {
13643 $metadata: deserializeMetadata(output),
13644 };
13645 return [2 /*return*/, Promise.resolve(response)];
13646 }
13647 });
13648}); };
13649var deserializeAws_json1_1SplitShardCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13650 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13651 var _g;
13652 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13653 switch (_h.label) {
13654 case 0:
13655 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13656 _g = {};
13657 return [4 /*yield*/, parseBody(output.body, context)];
13658 case 1:
13659 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13660 errorCode = "UnknownError";
13661 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13662 _b = errorCode;
13663 switch (_b) {
13664 case "InvalidArgumentException": return [3 /*break*/, 2];
13665 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13666 case "LimitExceededException": return [3 /*break*/, 4];
13667 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13668 case "ResourceInUseException": return [3 /*break*/, 6];
13669 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13670 case "ResourceNotFoundException": return [3 /*break*/, 8];
13671 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13672 }
13673 return [3 /*break*/, 10];
13674 case 2:
13675 _c = [{}];
13676 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13677 case 3:
13678 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13679 return [3 /*break*/, 11];
13680 case 4:
13681 _d = [{}];
13682 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13683 case 5:
13684 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13685 return [3 /*break*/, 11];
13686 case 6:
13687 _e = [{}];
13688 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13689 case 7:
13690 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13691 return [3 /*break*/, 11];
13692 case 8:
13693 _f = [{}];
13694 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13695 case 9:
13696 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13697 return [3 /*break*/, 11];
13698 case 10:
13699 parsedBody = parsedOutput.body;
13700 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13701 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13702 _h.label = 11;
13703 case 11:
13704 message = response.message || response.Message || errorCode;
13705 response.message = message;
13706 delete response.Message;
13707 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13708 }
13709 });
13710}); };
13711var deserializeAws_json1_1StartStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13712 var response;
13713 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13714 switch (_a.label) {
13715 case 0:
13716 if (output.statusCode >= 300) {
13717 return [2 /*return*/, deserializeAws_json1_1StartStreamEncryptionCommandError(output, context)];
13718 }
13719 return [4 /*yield*/, collectBody(output.body, context)];
13720 case 1:
13721 _a.sent();
13722 response = {
13723 $metadata: deserializeMetadata(output),
13724 };
13725 return [2 /*return*/, Promise.resolve(response)];
13726 }
13727 });
13728}); };
13729var deserializeAws_json1_1StartStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13730 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, parsedBody, message;
13731 var _o;
13732 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_p) {
13733 switch (_p.label) {
13734 case 0:
13735 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13736 _o = {};
13737 return [4 /*yield*/, parseBody(output.body, context)];
13738 case 1:
13739 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
13740 errorCode = "UnknownError";
13741 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13742 _b = errorCode;
13743 switch (_b) {
13744 case "InvalidArgumentException": return [3 /*break*/, 2];
13745 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13746 case "KMSAccessDeniedException": return [3 /*break*/, 4];
13747 case "com.amazonaws.kinesis#KMSAccessDeniedException": return [3 /*break*/, 4];
13748 case "KMSDisabledException": return [3 /*break*/, 6];
13749 case "com.amazonaws.kinesis#KMSDisabledException": return [3 /*break*/, 6];
13750 case "KMSInvalidStateException": return [3 /*break*/, 8];
13751 case "com.amazonaws.kinesis#KMSInvalidStateException": return [3 /*break*/, 8];
13752 case "KMSNotFoundException": return [3 /*break*/, 10];
13753 case "com.amazonaws.kinesis#KMSNotFoundException": return [3 /*break*/, 10];
13754 case "KMSOptInRequired": return [3 /*break*/, 12];
13755 case "com.amazonaws.kinesis#KMSOptInRequired": return [3 /*break*/, 12];
13756 case "KMSThrottlingException": return [3 /*break*/, 14];
13757 case "com.amazonaws.kinesis#KMSThrottlingException": return [3 /*break*/, 14];
13758 case "LimitExceededException": return [3 /*break*/, 16];
13759 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 16];
13760 case "ResourceInUseException": return [3 /*break*/, 18];
13761 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 18];
13762 case "ResourceNotFoundException": return [3 /*break*/, 20];
13763 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 20];
13764 }
13765 return [3 /*break*/, 22];
13766 case 2:
13767 _c = [{}];
13768 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13769 case 3:
13770 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13771 return [3 /*break*/, 23];
13772 case 4:
13773 _d = [{}];
13774 return [4 /*yield*/, deserializeAws_json1_1KMSAccessDeniedExceptionResponse(parsedOutput, context)];
13775 case 5:
13776 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13777 return [3 /*break*/, 23];
13778 case 6:
13779 _e = [{}];
13780 return [4 /*yield*/, deserializeAws_json1_1KMSDisabledExceptionResponse(parsedOutput, context)];
13781 case 7:
13782 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13783 return [3 /*break*/, 23];
13784 case 8:
13785 _f = [{}];
13786 return [4 /*yield*/, deserializeAws_json1_1KMSInvalidStateExceptionResponse(parsedOutput, context)];
13787 case 9:
13788 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13789 return [3 /*break*/, 23];
13790 case 10:
13791 _g = [{}];
13792 return [4 /*yield*/, deserializeAws_json1_1KMSNotFoundExceptionResponse(parsedOutput, context)];
13793 case 11:
13794 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13795 return [3 /*break*/, 23];
13796 case 12:
13797 _h = [{}];
13798 return [4 /*yield*/, deserializeAws_json1_1KMSOptInRequiredResponse(parsedOutput, context)];
13799 case 13:
13800 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13801 return [3 /*break*/, 23];
13802 case 14:
13803 _j = [{}];
13804 return [4 /*yield*/, deserializeAws_json1_1KMSThrottlingExceptionResponse(parsedOutput, context)];
13805 case 15:
13806 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13807 return [3 /*break*/, 23];
13808 case 16:
13809 _k = [{}];
13810 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13811 case 17:
13812 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13813 return [3 /*break*/, 23];
13814 case 18:
13815 _l = [{}];
13816 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13817 case 19:
13818 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13819 return [3 /*break*/, 23];
13820 case 20:
13821 _m = [{}];
13822 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13823 case 21:
13824 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13825 return [3 /*break*/, 23];
13826 case 22:
13827 parsedBody = parsedOutput.body;
13828 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13829 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13830 _p.label = 23;
13831 case 23:
13832 message = response.message || response.Message || errorCode;
13833 response.message = message;
13834 delete response.Message;
13835 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13836 }
13837 });
13838}); };
13839var deserializeAws_json1_1StopStreamEncryptionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13840 var response;
13841 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13842 switch (_a.label) {
13843 case 0:
13844 if (output.statusCode >= 300) {
13845 return [2 /*return*/, deserializeAws_json1_1StopStreamEncryptionCommandError(output, context)];
13846 }
13847 return [4 /*yield*/, collectBody(output.body, context)];
13848 case 1:
13849 _a.sent();
13850 response = {
13851 $metadata: deserializeMetadata(output),
13852 };
13853 return [2 /*return*/, Promise.resolve(response)];
13854 }
13855 });
13856}); };
13857var deserializeAws_json1_1StopStreamEncryptionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13858 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13859 var _g;
13860 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13861 switch (_h.label) {
13862 case 0:
13863 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13864 _g = {};
13865 return [4 /*yield*/, parseBody(output.body, context)];
13866 case 1:
13867 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13868 errorCode = "UnknownError";
13869 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13870 _b = errorCode;
13871 switch (_b) {
13872 case "InvalidArgumentException": return [3 /*break*/, 2];
13873 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13874 case "LimitExceededException": return [3 /*break*/, 4];
13875 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13876 case "ResourceInUseException": return [3 /*break*/, 6];
13877 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13878 case "ResourceNotFoundException": return [3 /*break*/, 8];
13879 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13880 }
13881 return [3 /*break*/, 10];
13882 case 2:
13883 _c = [{}];
13884 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13885 case 3:
13886 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13887 return [3 /*break*/, 11];
13888 case 4:
13889 _d = [{}];
13890 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13891 case 5:
13892 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13893 return [3 /*break*/, 11];
13894 case 6:
13895 _e = [{}];
13896 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13897 case 7:
13898 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13899 return [3 /*break*/, 11];
13900 case 8:
13901 _f = [{}];
13902 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13903 case 9:
13904 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13905 return [3 /*break*/, 11];
13906 case 10:
13907 parsedBody = parsedOutput.body;
13908 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13909 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13910 _h.label = 11;
13911 case 11:
13912 message = response.message || response.Message || errorCode;
13913 response.message = message;
13914 delete response.Message;
13915 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13916 }
13917 });
13918}); };
13919var deserializeAws_json1_1SubscribeToShardCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13920 var data, contents, response;
13921 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
13922 switch (_a.label) {
13923 case 0:
13924 if (output.statusCode >= 300) {
13925 return [2 /*return*/, deserializeAws_json1_1SubscribeToShardCommandError(output, context)];
13926 }
13927 return [4 /*yield*/, parseBody(output.body, context)];
13928 case 1:
13929 data = _a.sent();
13930 contents = {};
13931 contents = deserializeAws_json1_1SubscribeToShardOutput(data, context);
13932 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
13933 return [2 /*return*/, Promise.resolve(response)];
13934 }
13935 });
13936}); };
13937var deserializeAws_json1_1SubscribeToShardCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
13938 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
13939 var _g;
13940 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
13941 switch (_h.label) {
13942 case 0:
13943 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
13944 _g = {};
13945 return [4 /*yield*/, parseBody(output.body, context)];
13946 case 1:
13947 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
13948 errorCode = "UnknownError";
13949 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
13950 _b = errorCode;
13951 switch (_b) {
13952 case "InvalidArgumentException": return [3 /*break*/, 2];
13953 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
13954 case "LimitExceededException": return [3 /*break*/, 4];
13955 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
13956 case "ResourceInUseException": return [3 /*break*/, 6];
13957 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
13958 case "ResourceNotFoundException": return [3 /*break*/, 8];
13959 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
13960 }
13961 return [3 /*break*/, 10];
13962 case 2:
13963 _c = [{}];
13964 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
13965 case 3:
13966 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13967 return [3 /*break*/, 11];
13968 case 4:
13969 _d = [{}];
13970 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
13971 case 5:
13972 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13973 return [3 /*break*/, 11];
13974 case 6:
13975 _e = [{}];
13976 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
13977 case 7:
13978 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13979 return [3 /*break*/, 11];
13980 case 8:
13981 _f = [{}];
13982 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
13983 case 9:
13984 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
13985 return [3 /*break*/, 11];
13986 case 10:
13987 parsedBody = parsedOutput.body;
13988 errorCode = parsedBody.code || parsedBody.Code || errorCode;
13989 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
13990 _h.label = 11;
13991 case 11:
13992 message = response.message || response.Message || errorCode;
13993 response.message = message;
13994 delete response.Message;
13995 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
13996 }
13997 });
13998}); };
13999var deserializeAws_json1_1UpdateShardCountCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14000 var data, contents, response;
14001 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14002 switch (_a.label) {
14003 case 0:
14004 if (output.statusCode >= 300) {
14005 return [2 /*return*/, deserializeAws_json1_1UpdateShardCountCommandError(output, context)];
14006 }
14007 return [4 /*yield*/, parseBody(output.body, context)];
14008 case 1:
14009 data = _a.sent();
14010 contents = {};
14011 contents = deserializeAws_json1_1UpdateShardCountOutput(data, context);
14012 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ $metadata: deserializeMetadata(output) }, contents);
14013 return [2 /*return*/, Promise.resolve(response)];
14014 }
14015 });
14016}); };
14017var deserializeAws_json1_1UpdateShardCountCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14018 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
14019 var _g;
14020 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
14021 switch (_h.label) {
14022 case 0:
14023 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
14024 _g = {};
14025 return [4 /*yield*/, parseBody(output.body, context)];
14026 case 1:
14027 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
14028 errorCode = "UnknownError";
14029 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14030 _b = errorCode;
14031 switch (_b) {
14032 case "InvalidArgumentException": return [3 /*break*/, 2];
14033 case "com.amazonaws.kinesis#InvalidArgumentException": return [3 /*break*/, 2];
14034 case "LimitExceededException": return [3 /*break*/, 4];
14035 case "com.amazonaws.kinesis#LimitExceededException": return [3 /*break*/, 4];
14036 case "ResourceInUseException": return [3 /*break*/, 6];
14037 case "com.amazonaws.kinesis#ResourceInUseException": return [3 /*break*/, 6];
14038 case "ResourceNotFoundException": return [3 /*break*/, 8];
14039 case "com.amazonaws.kinesis#ResourceNotFoundException": return [3 /*break*/, 8];
14040 }
14041 return [3 /*break*/, 10];
14042 case 2:
14043 _c = [{}];
14044 return [4 /*yield*/, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
14045 case 3:
14046 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14047 return [3 /*break*/, 11];
14048 case 4:
14049 _d = [{}];
14050 return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
14051 case 5:
14052 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14053 return [3 /*break*/, 11];
14054 case 6:
14055 _e = [{}];
14056 return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
14057 case 7:
14058 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14059 return [3 /*break*/, 11];
14060 case 8:
14061 _f = [{}];
14062 return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
14063 case 9:
14064 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
14065 return [3 /*break*/, 11];
14066 case 10:
14067 parsedBody = parsedOutput.body;
14068 errorCode = parsedBody.code || parsedBody.Code || errorCode;
14069 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
14070 _h.label = 11;
14071 case 11:
14072 message = response.message || response.Message || errorCode;
14073 response.message = message;
14074 delete response.Message;
14075 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
14076 }
14077 });
14078}); };
14079var deserializeAws_json1_1ExpiredIteratorExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14080 var body, deserialized, contents;
14081 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14082 body = parsedOutput.body;
14083 deserialized = deserializeAws_json1_1ExpiredIteratorException(body, context);
14084 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ExpiredIteratorException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14085 return [2 /*return*/, contents];
14086 });
14087}); };
14088var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14089 var body, deserialized, contents;
14090 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14091 body = parsedOutput.body;
14092 deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
14093 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ExpiredNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14094 return [2 /*return*/, contents];
14095 });
14096}); };
14097var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14098 var body, deserialized, contents;
14099 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14100 body = parsedOutput.body;
14101 deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
14102 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14103 return [2 /*return*/, contents];
14104 });
14105}); };
14106var deserializeAws_json1_1KMSAccessDeniedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14107 var body, deserialized, contents;
14108 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14109 body = parsedOutput.body;
14110 deserialized = deserializeAws_json1_1KMSAccessDeniedException(body, context);
14111 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSAccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14112 return [2 /*return*/, contents];
14113 });
14114}); };
14115var deserializeAws_json1_1KMSDisabledExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14116 var body, deserialized, contents;
14117 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14118 body = parsedOutput.body;
14119 deserialized = deserializeAws_json1_1KMSDisabledException(body, context);
14120 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSDisabledException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14121 return [2 /*return*/, contents];
14122 });
14123}); };
14124var deserializeAws_json1_1KMSInvalidStateExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14125 var body, deserialized, contents;
14126 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14127 body = parsedOutput.body;
14128 deserialized = deserializeAws_json1_1KMSInvalidStateException(body, context);
14129 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSInvalidStateException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14130 return [2 /*return*/, contents];
14131 });
14132}); };
14133var deserializeAws_json1_1KMSNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14134 var body, deserialized, contents;
14135 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14136 body = parsedOutput.body;
14137 deserialized = deserializeAws_json1_1KMSNotFoundException(body, context);
14138 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14139 return [2 /*return*/, contents];
14140 });
14141}); };
14142var deserializeAws_json1_1KMSOptInRequiredResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14143 var body, deserialized, contents;
14144 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14145 body = parsedOutput.body;
14146 deserialized = deserializeAws_json1_1KMSOptInRequired(body, context);
14147 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSOptInRequired", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14148 return [2 /*return*/, contents];
14149 });
14150}); };
14151var deserializeAws_json1_1KMSThrottlingExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14152 var body, deserialized, contents;
14153 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14154 body = parsedOutput.body;
14155 deserialized = deserializeAws_json1_1KMSThrottlingException(body, context);
14156 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "KMSThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14157 return [2 /*return*/, contents];
14158 });
14159}); };
14160var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14161 var body, deserialized, contents;
14162 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14163 body = parsedOutput.body;
14164 deserialized = deserializeAws_json1_1LimitExceededException(body, context);
14165 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14166 return [2 /*return*/, contents];
14167 });
14168}); };
14169var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14170 var body, deserialized, contents;
14171 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14172 body = parsedOutput.body;
14173 deserialized = deserializeAws_json1_1ProvisionedThroughputExceededException(body, context);
14174 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ProvisionedThroughputExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14175 return [2 /*return*/, contents];
14176 });
14177}); };
14178var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14179 var body, deserialized, contents;
14180 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14181 body = parsedOutput.body;
14182 deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
14183 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14184 return [2 /*return*/, contents];
14185 });
14186}); };
14187var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14188 var body, deserialized, contents;
14189 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
14190 body = parsedOutput.body;
14191 deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
14192 contents = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
14193 return [2 /*return*/, contents];
14194 });
14195}); };
14196var serializeAws_json1_1AddTagsToStreamInput = function (input, context) {
14197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
14198};
14199var serializeAws_json1_1CreateStreamInput = function (input, context) {
14200 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardCount !== undefined && input.ShardCount !== null && { ShardCount: input.ShardCount })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14201};
14202var serializeAws_json1_1DecreaseStreamRetentionPeriodInput = function (input, context) {
14203 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RetentionPeriodHours !== undefined &&
14204 input.RetentionPeriodHours !== null && { RetentionPeriodHours: input.RetentionPeriodHours })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14205};
14206var serializeAws_json1_1DeleteStreamInput = function (input, context) {
14207 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EnforceConsumerDeletion !== undefined &&
14208 input.EnforceConsumerDeletion !== null && { EnforceConsumerDeletion: input.EnforceConsumerDeletion })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14209};
14210var serializeAws_json1_1DeregisterStreamConsumerInput = function (input, context) {
14211 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ConsumerARN !== undefined && input.ConsumerARN !== null && { ConsumerARN: input.ConsumerARN })), (input.ConsumerName !== undefined && input.ConsumerName !== null && { ConsumerName: input.ConsumerName })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }));
14212};
14213var serializeAws_json1_1DescribeLimitsInput = function (input, context) {
14214 return {};
14215};
14216var serializeAws_json1_1DescribeStreamConsumerInput = function (input, context) {
14217 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ConsumerARN !== undefined && input.ConsumerARN !== null && { ConsumerARN: input.ConsumerARN })), (input.ConsumerName !== undefined && input.ConsumerName !== null && { ConsumerName: input.ConsumerName })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }));
14218};
14219var serializeAws_json1_1DescribeStreamInput = function (input, context) {
14220 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ExclusiveStartShardId !== undefined &&
14221 input.ExclusiveStartShardId !== null && { ExclusiveStartShardId: input.ExclusiveStartShardId })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14222};
14223var serializeAws_json1_1DescribeStreamSummaryInput = function (input, context) {
14224 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14225};
14226var serializeAws_json1_1DisableEnhancedMonitoringInput = function (input, context) {
14227 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardLevelMetrics !== undefined &&
14228 input.ShardLevelMetrics !== null && {
14229 ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
14230 })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14231};
14232var serializeAws_json1_1EnableEnhancedMonitoringInput = function (input, context) {
14233 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardLevelMetrics !== undefined &&
14234 input.ShardLevelMetrics !== null && {
14235 ShardLevelMetrics: serializeAws_json1_1MetricsNameList(input.ShardLevelMetrics, context),
14236 })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14237};
14238var serializeAws_json1_1GetRecordsInput = function (input, context) {
14239 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.ShardIterator !== undefined && input.ShardIterator !== null && { ShardIterator: input.ShardIterator }));
14240};
14241var serializeAws_json1_1GetShardIteratorInput = function (input, context) {
14242 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardId !== undefined && input.ShardId !== null && { ShardId: input.ShardId })), (input.ShardIteratorType !== undefined &&
14243 input.ShardIteratorType !== null && { ShardIteratorType: input.ShardIteratorType })), (input.StartingSequenceNumber !== undefined &&
14244 input.StartingSequenceNumber !== null && { StartingSequenceNumber: input.StartingSequenceNumber })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.Timestamp !== undefined &&
14245 input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }));
14246};
14247var serializeAws_json1_1IncreaseStreamRetentionPeriodInput = function (input, context) {
14248 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RetentionPeriodHours !== undefined &&
14249 input.RetentionPeriodHours !== null && { RetentionPeriodHours: input.RetentionPeriodHours })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14250};
14251var serializeAws_json1_1ListShardsInput = function (input, context) {
14252 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ExclusiveStartShardId !== undefined &&
14253 input.ExclusiveStartShardId !== null && { ExclusiveStartShardId: input.ExclusiveStartShardId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ShardFilter !== undefined &&
14254 input.ShardFilter !== null && { ShardFilter: serializeAws_json1_1ShardFilter(input.ShardFilter, context) })), (input.StreamCreationTimestamp !== undefined &&
14255 input.StreamCreationTimestamp !== null && {
14256 StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
14257 })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14258};
14259var serializeAws_json1_1ListStreamConsumersInput = function (input, context) {
14260 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamCreationTimestamp !== undefined &&
14261 input.StreamCreationTimestamp !== null && {
14262 StreamCreationTimestamp: Math.round(input.StreamCreationTimestamp.getTime() / 1000),
14263 }));
14264};
14265var serializeAws_json1_1ListStreamsInput = function (input, context) {
14266 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ExclusiveStartStreamName !== undefined &&
14267 input.ExclusiveStartStreamName !== null && { ExclusiveStartStreamName: input.ExclusiveStartStreamName })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
14268};
14269var serializeAws_json1_1ListTagsForStreamInput = function (input, context) {
14270 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ExclusiveStartTagKey !== undefined &&
14271 input.ExclusiveStartTagKey !== null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14272};
14273var serializeAws_json1_1MergeShardsInput = function (input, context) {
14274 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AdjacentShardToMerge !== undefined &&
14275 input.AdjacentShardToMerge !== null && { AdjacentShardToMerge: input.AdjacentShardToMerge })), (input.ShardToMerge !== undefined && input.ShardToMerge !== null && { ShardToMerge: input.ShardToMerge })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14276};
14277var serializeAws_json1_1MetricsNameList = function (input, context) {
14278 return input
14279 .filter(function (e) { return e != null; })
14280 .map(function (entry) {
14281 if (entry === null) {
14282 return null;
14283 }
14284 return entry;
14285 });
14286};
14287var serializeAws_json1_1PutRecordInput = function (input, context) {
14288 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) })), (input.ExplicitHashKey !== undefined &&
14289 input.ExplicitHashKey !== null && { ExplicitHashKey: input.ExplicitHashKey })), (input.PartitionKey !== undefined && input.PartitionKey !== null && { PartitionKey: input.PartitionKey })), (input.SequenceNumberForOrdering !== undefined &&
14290 input.SequenceNumberForOrdering !== null && { SequenceNumberForOrdering: input.SequenceNumberForOrdering })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14291};
14292var serializeAws_json1_1PutRecordsInput = function (input, context) {
14293 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Records !== undefined &&
14294 input.Records !== null && { Records: serializeAws_json1_1PutRecordsRequestEntryList(input.Records, context) })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14295};
14296var serializeAws_json1_1PutRecordsRequestEntry = function (input, context) {
14297 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) })), (input.ExplicitHashKey !== undefined &&
14298 input.ExplicitHashKey !== null && { ExplicitHashKey: input.ExplicitHashKey })), (input.PartitionKey !== undefined && input.PartitionKey !== null && { PartitionKey: input.PartitionKey }));
14299};
14300var serializeAws_json1_1PutRecordsRequestEntryList = function (input, context) {
14301 return input
14302 .filter(function (e) { return e != null; })
14303 .map(function (entry) {
14304 if (entry === null) {
14305 return null;
14306 }
14307 return serializeAws_json1_1PutRecordsRequestEntry(entry, context);
14308 });
14309};
14310var serializeAws_json1_1RegisterStreamConsumerInput = function (input, context) {
14311 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ConsumerName !== undefined && input.ConsumerName !== null && { ConsumerName: input.ConsumerName })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }));
14312};
14313var serializeAws_json1_1RemoveTagsFromStreamInput = function (input, context) {
14314 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.TagKeys !== undefined &&
14315 input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
14316};
14317var serializeAws_json1_1ShardFilter = function (input, context) {
14318 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ShardId !== undefined && input.ShardId !== null && { ShardId: input.ShardId })), (input.Timestamp !== undefined &&
14319 input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
14320};
14321var serializeAws_json1_1SplitShardInput = function (input, context) {
14322 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NewStartingHashKey !== undefined &&
14323 input.NewStartingHashKey !== null && { NewStartingHashKey: input.NewStartingHashKey })), (input.ShardToSplit !== undefined && input.ShardToSplit !== null && { ShardToSplit: input.ShardToSplit })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14324};
14325var serializeAws_json1_1StartingPosition = function (input, context) {
14326 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.SequenceNumber !== undefined &&
14327 input.SequenceNumber !== null && { SequenceNumber: input.SequenceNumber })), (input.Timestamp !== undefined &&
14328 input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
14329};
14330var serializeAws_json1_1StartStreamEncryptionInput = function (input, context) {
14331 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EncryptionType !== undefined &&
14332 input.EncryptionType !== null && { EncryptionType: input.EncryptionType })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14333};
14334var serializeAws_json1_1StopStreamEncryptionInput = function (input, context) {
14335 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EncryptionType !== undefined &&
14336 input.EncryptionType !== null && { EncryptionType: input.EncryptionType })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }));
14337};
14338var serializeAws_json1_1SubscribeToShardInput = function (input, context) {
14339 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ConsumerARN !== undefined && input.ConsumerARN !== null && { ConsumerARN: input.ConsumerARN })), (input.ShardId !== undefined && input.ShardId !== null && { ShardId: input.ShardId })), (input.StartingPosition !== undefined &&
14340 input.StartingPosition !== null && {
14341 StartingPosition: serializeAws_json1_1StartingPosition(input.StartingPosition, context),
14342 }));
14343};
14344var serializeAws_json1_1TagKeyList = function (input, context) {
14345 return input
14346 .filter(function (e) { return e != null; })
14347 .map(function (entry) {
14348 if (entry === null) {
14349 return null;
14350 }
14351 return entry;
14352 });
14353};
14354var serializeAws_json1_1TagMap = function (input, context) {
14355 return Object.entries(input).reduce(function (acc, _a) {
14356 var _b;
14357 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
14358 if (value === null) {
14359 return acc;
14360 }
14361 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
14362 }, {});
14363};
14364var serializeAws_json1_1UpdateShardCountInput = function (input, context) {
14365 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ScalingType !== undefined && input.ScalingType !== null && { ScalingType: input.ScalingType })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.TargetShardCount !== undefined &&
14366 input.TargetShardCount !== null && { TargetShardCount: input.TargetShardCount }));
14367};
14368var deserializeAws_json1_1ChildShard = function (output, context) {
14369 return {
14370 HashKeyRange: output.HashKeyRange !== undefined && output.HashKeyRange !== null
14371 ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context)
14372 : undefined,
14373 ParentShards: output.ParentShards !== undefined && output.ParentShards !== null
14374 ? deserializeAws_json1_1ShardIdList(output.ParentShards, context)
14375 : undefined,
14376 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14377 };
14378};
14379var deserializeAws_json1_1ChildShardList = function (output, context) {
14380 return (output || [])
14381 .filter(function (e) { return e != null; })
14382 .map(function (entry) {
14383 if (entry === null) {
14384 return null;
14385 }
14386 return deserializeAws_json1_1ChildShard(entry, context);
14387 });
14388};
14389var deserializeAws_json1_1Consumer = function (output, context) {
14390 return {
14391 ConsumerARN: output.ConsumerARN !== undefined && output.ConsumerARN !== null ? output.ConsumerARN : undefined,
14392 ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
14393 ? new Date(Math.round(output.ConsumerCreationTimestamp * 1000))
14394 : undefined,
14395 ConsumerName: output.ConsumerName !== undefined && output.ConsumerName !== null ? output.ConsumerName : undefined,
14396 ConsumerStatus: output.ConsumerStatus !== undefined && output.ConsumerStatus !== null ? output.ConsumerStatus : undefined,
14397 };
14398};
14399var deserializeAws_json1_1ConsumerDescription = function (output, context) {
14400 return {
14401 ConsumerARN: output.ConsumerARN !== undefined && output.ConsumerARN !== null ? output.ConsumerARN : undefined,
14402 ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
14403 ? new Date(Math.round(output.ConsumerCreationTimestamp * 1000))
14404 : undefined,
14405 ConsumerName: output.ConsumerName !== undefined && output.ConsumerName !== null ? output.ConsumerName : undefined,
14406 ConsumerStatus: output.ConsumerStatus !== undefined && output.ConsumerStatus !== null ? output.ConsumerStatus : undefined,
14407 StreamARN: output.StreamARN !== undefined && output.StreamARN !== null ? output.StreamARN : undefined,
14408 };
14409};
14410var deserializeAws_json1_1ConsumerList = function (output, context) {
14411 return (output || [])
14412 .filter(function (e) { return e != null; })
14413 .map(function (entry) {
14414 if (entry === null) {
14415 return null;
14416 }
14417 return deserializeAws_json1_1Consumer(entry, context);
14418 });
14419};
14420var deserializeAws_json1_1DescribeLimitsOutput = function (output, context) {
14421 return {
14422 OpenShardCount: output.OpenShardCount !== undefined && output.OpenShardCount !== null ? output.OpenShardCount : undefined,
14423 ShardLimit: output.ShardLimit !== undefined && output.ShardLimit !== null ? output.ShardLimit : undefined,
14424 };
14425};
14426var deserializeAws_json1_1DescribeStreamConsumerOutput = function (output, context) {
14427 return {
14428 ConsumerDescription: output.ConsumerDescription !== undefined && output.ConsumerDescription !== null
14429 ? deserializeAws_json1_1ConsumerDescription(output.ConsumerDescription, context)
14430 : undefined,
14431 };
14432};
14433var deserializeAws_json1_1DescribeStreamOutput = function (output, context) {
14434 return {
14435 StreamDescription: output.StreamDescription !== undefined && output.StreamDescription !== null
14436 ? deserializeAws_json1_1StreamDescription(output.StreamDescription, context)
14437 : undefined,
14438 };
14439};
14440var deserializeAws_json1_1DescribeStreamSummaryOutput = function (output, context) {
14441 return {
14442 StreamDescriptionSummary: output.StreamDescriptionSummary !== undefined && output.StreamDescriptionSummary !== null
14443 ? deserializeAws_json1_1StreamDescriptionSummary(output.StreamDescriptionSummary, context)
14444 : undefined,
14445 };
14446};
14447var deserializeAws_json1_1EnhancedMetrics = function (output, context) {
14448 return {
14449 ShardLevelMetrics: output.ShardLevelMetrics !== undefined && output.ShardLevelMetrics !== null
14450 ? deserializeAws_json1_1MetricsNameList(output.ShardLevelMetrics, context)
14451 : undefined,
14452 };
14453};
14454var deserializeAws_json1_1EnhancedMonitoringList = function (output, context) {
14455 return (output || [])
14456 .filter(function (e) { return e != null; })
14457 .map(function (entry) {
14458 if (entry === null) {
14459 return null;
14460 }
14461 return deserializeAws_json1_1EnhancedMetrics(entry, context);
14462 });
14463};
14464var deserializeAws_json1_1EnhancedMonitoringOutput = function (output, context) {
14465 return {
14466 CurrentShardLevelMetrics: output.CurrentShardLevelMetrics !== undefined && output.CurrentShardLevelMetrics !== null
14467 ? deserializeAws_json1_1MetricsNameList(output.CurrentShardLevelMetrics, context)
14468 : undefined,
14469 DesiredShardLevelMetrics: output.DesiredShardLevelMetrics !== undefined && output.DesiredShardLevelMetrics !== null
14470 ? deserializeAws_json1_1MetricsNameList(output.DesiredShardLevelMetrics, context)
14471 : undefined,
14472 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14473 };
14474};
14475var deserializeAws_json1_1ExpiredIteratorException = function (output, context) {
14476 return {
14477 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14478 };
14479};
14480var deserializeAws_json1_1ExpiredNextTokenException = function (output, context) {
14481 return {
14482 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14483 };
14484};
14485var deserializeAws_json1_1GetRecordsOutput = function (output, context) {
14486 return {
14487 ChildShards: output.ChildShards !== undefined && output.ChildShards !== null
14488 ? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
14489 : undefined,
14490 MillisBehindLatest: output.MillisBehindLatest !== undefined && output.MillisBehindLatest !== null
14491 ? output.MillisBehindLatest
14492 : undefined,
14493 NextShardIterator: output.NextShardIterator !== undefined && output.NextShardIterator !== null
14494 ? output.NextShardIterator
14495 : undefined,
14496 Records: output.Records !== undefined && output.Records !== null
14497 ? deserializeAws_json1_1RecordList(output.Records, context)
14498 : undefined,
14499 };
14500};
14501var deserializeAws_json1_1GetShardIteratorOutput = function (output, context) {
14502 return {
14503 ShardIterator: output.ShardIterator !== undefined && output.ShardIterator !== null ? output.ShardIterator : undefined,
14504 };
14505};
14506var deserializeAws_json1_1HashKeyRange = function (output, context) {
14507 return {
14508 EndingHashKey: output.EndingHashKey !== undefined && output.EndingHashKey !== null ? output.EndingHashKey : undefined,
14509 StartingHashKey: output.StartingHashKey !== undefined && output.StartingHashKey !== null ? output.StartingHashKey : undefined,
14510 };
14511};
14512var deserializeAws_json1_1InternalFailureException = function (output, context) {
14513 return {
14514 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14515 };
14516};
14517var deserializeAws_json1_1InvalidArgumentException = function (output, context) {
14518 return {
14519 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14520 };
14521};
14522var deserializeAws_json1_1KMSAccessDeniedException = function (output, context) {
14523 return {
14524 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14525 };
14526};
14527var deserializeAws_json1_1KMSDisabledException = function (output, context) {
14528 return {
14529 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14530 };
14531};
14532var deserializeAws_json1_1KMSInvalidStateException = function (output, context) {
14533 return {
14534 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14535 };
14536};
14537var deserializeAws_json1_1KMSNotFoundException = function (output, context) {
14538 return {
14539 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14540 };
14541};
14542var deserializeAws_json1_1KMSOptInRequired = function (output, context) {
14543 return {
14544 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14545 };
14546};
14547var deserializeAws_json1_1KMSThrottlingException = function (output, context) {
14548 return {
14549 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14550 };
14551};
14552var deserializeAws_json1_1LimitExceededException = function (output, context) {
14553 return {
14554 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14555 };
14556};
14557var deserializeAws_json1_1ListShardsOutput = function (output, context) {
14558 return {
14559 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
14560 Shards: output.Shards !== undefined && output.Shards !== null
14561 ? deserializeAws_json1_1ShardList(output.Shards, context)
14562 : undefined,
14563 };
14564};
14565var deserializeAws_json1_1ListStreamConsumersOutput = function (output, context) {
14566 return {
14567 Consumers: output.Consumers !== undefined && output.Consumers !== null
14568 ? deserializeAws_json1_1ConsumerList(output.Consumers, context)
14569 : undefined,
14570 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
14571 };
14572};
14573var deserializeAws_json1_1ListStreamsOutput = function (output, context) {
14574 return {
14575 HasMoreStreams: output.HasMoreStreams !== undefined && output.HasMoreStreams !== null ? output.HasMoreStreams : undefined,
14576 StreamNames: output.StreamNames !== undefined && output.StreamNames !== null
14577 ? deserializeAws_json1_1StreamNameList(output.StreamNames, context)
14578 : undefined,
14579 };
14580};
14581var deserializeAws_json1_1ListTagsForStreamOutput = function (output, context) {
14582 return {
14583 HasMoreTags: output.HasMoreTags !== undefined && output.HasMoreTags !== null ? output.HasMoreTags : undefined,
14584 Tags: output.Tags !== undefined && output.Tags !== null
14585 ? deserializeAws_json1_1TagList(output.Tags, context)
14586 : undefined,
14587 };
14588};
14589var deserializeAws_json1_1MetricsNameList = function (output, context) {
14590 return (output || [])
14591 .filter(function (e) { return e != null; })
14592 .map(function (entry) {
14593 if (entry === null) {
14594 return null;
14595 }
14596 return entry;
14597 });
14598};
14599var deserializeAws_json1_1ProvisionedThroughputExceededException = function (output, context) {
14600 return {
14601 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14602 };
14603};
14604var deserializeAws_json1_1PutRecordOutput = function (output, context) {
14605 return {
14606 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14607 SequenceNumber: output.SequenceNumber !== undefined && output.SequenceNumber !== null ? output.SequenceNumber : undefined,
14608 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14609 };
14610};
14611var deserializeAws_json1_1PutRecordsOutput = function (output, context) {
14612 return {
14613 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14614 FailedRecordCount: output.FailedRecordCount !== undefined && output.FailedRecordCount !== null
14615 ? output.FailedRecordCount
14616 : undefined,
14617 Records: output.Records !== undefined && output.Records !== null
14618 ? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context)
14619 : undefined,
14620 };
14621};
14622var deserializeAws_json1_1PutRecordsResultEntry = function (output, context) {
14623 return {
14624 ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null ? output.ErrorCode : undefined,
14625 ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null ? output.ErrorMessage : undefined,
14626 SequenceNumber: output.SequenceNumber !== undefined && output.SequenceNumber !== null ? output.SequenceNumber : undefined,
14627 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14628 };
14629};
14630var deserializeAws_json1_1PutRecordsResultEntryList = function (output, context) {
14631 return (output || [])
14632 .filter(function (e) { return e != null; })
14633 .map(function (entry) {
14634 if (entry === null) {
14635 return null;
14636 }
14637 return deserializeAws_json1_1PutRecordsResultEntry(entry, context);
14638 });
14639};
14640var deserializeAws_json1_1_Record = function (output, context) {
14641 return {
14642 ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp !== undefined && output.ApproximateArrivalTimestamp !== null
14643 ? new Date(Math.round(output.ApproximateArrivalTimestamp * 1000))
14644 : undefined,
14645 Data: output.Data !== undefined && output.Data !== null ? context.base64Decoder(output.Data) : undefined,
14646 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14647 PartitionKey: output.PartitionKey !== undefined && output.PartitionKey !== null ? output.PartitionKey : undefined,
14648 SequenceNumber: output.SequenceNumber !== undefined && output.SequenceNumber !== null ? output.SequenceNumber : undefined,
14649 };
14650};
14651var deserializeAws_json1_1RecordList = function (output, context) {
14652 return (output || [])
14653 .filter(function (e) { return e != null; })
14654 .map(function (entry) {
14655 if (entry === null) {
14656 return null;
14657 }
14658 return deserializeAws_json1_1_Record(entry, context);
14659 });
14660};
14661var deserializeAws_json1_1RegisterStreamConsumerOutput = function (output, context) {
14662 return {
14663 Consumer: output.Consumer !== undefined && output.Consumer !== null
14664 ? deserializeAws_json1_1Consumer(output.Consumer, context)
14665 : undefined,
14666 };
14667};
14668var deserializeAws_json1_1ResourceInUseException = function (output, context) {
14669 return {
14670 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14671 };
14672};
14673var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
14674 return {
14675 message: output.message !== undefined && output.message !== null ? output.message : undefined,
14676 };
14677};
14678var deserializeAws_json1_1SequenceNumberRange = function (output, context) {
14679 return {
14680 EndingSequenceNumber: output.EndingSequenceNumber !== undefined && output.EndingSequenceNumber !== null
14681 ? output.EndingSequenceNumber
14682 : undefined,
14683 StartingSequenceNumber: output.StartingSequenceNumber !== undefined && output.StartingSequenceNumber !== null
14684 ? output.StartingSequenceNumber
14685 : undefined,
14686 };
14687};
14688var deserializeAws_json1_1Shard = function (output, context) {
14689 return {
14690 AdjacentParentShardId: output.AdjacentParentShardId !== undefined && output.AdjacentParentShardId !== null
14691 ? output.AdjacentParentShardId
14692 : undefined,
14693 HashKeyRange: output.HashKeyRange !== undefined && output.HashKeyRange !== null
14694 ? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context)
14695 : undefined,
14696 ParentShardId: output.ParentShardId !== undefined && output.ParentShardId !== null ? output.ParentShardId : undefined,
14697 SequenceNumberRange: output.SequenceNumberRange !== undefined && output.SequenceNumberRange !== null
14698 ? deserializeAws_json1_1SequenceNumberRange(output.SequenceNumberRange, context)
14699 : undefined,
14700 ShardId: output.ShardId !== undefined && output.ShardId !== null ? output.ShardId : undefined,
14701 };
14702};
14703var deserializeAws_json1_1ShardIdList = function (output, context) {
14704 return (output || [])
14705 .filter(function (e) { return e != null; })
14706 .map(function (entry) {
14707 if (entry === null) {
14708 return null;
14709 }
14710 return entry;
14711 });
14712};
14713var deserializeAws_json1_1ShardList = function (output, context) {
14714 return (output || [])
14715 .filter(function (e) { return e != null; })
14716 .map(function (entry) {
14717 if (entry === null) {
14718 return null;
14719 }
14720 return deserializeAws_json1_1Shard(entry, context);
14721 });
14722};
14723var deserializeAws_json1_1StreamDescription = function (output, context) {
14724 return {
14725 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14726 EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
14727 ? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
14728 : undefined,
14729 HasMoreShards: output.HasMoreShards !== undefined && output.HasMoreShards !== null ? output.HasMoreShards : undefined,
14730 KeyId: output.KeyId !== undefined && output.KeyId !== null ? output.KeyId : undefined,
14731 RetentionPeriodHours: output.RetentionPeriodHours !== undefined && output.RetentionPeriodHours !== null
14732 ? output.RetentionPeriodHours
14733 : undefined,
14734 Shards: output.Shards !== undefined && output.Shards !== null
14735 ? deserializeAws_json1_1ShardList(output.Shards, context)
14736 : undefined,
14737 StreamARN: output.StreamARN !== undefined && output.StreamARN !== null ? output.StreamARN : undefined,
14738 StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
14739 ? new Date(Math.round(output.StreamCreationTimestamp * 1000))
14740 : undefined,
14741 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14742 StreamStatus: output.StreamStatus !== undefined && output.StreamStatus !== null ? output.StreamStatus : undefined,
14743 };
14744};
14745var deserializeAws_json1_1StreamDescriptionSummary = function (output, context) {
14746 return {
14747 ConsumerCount: output.ConsumerCount !== undefined && output.ConsumerCount !== null ? output.ConsumerCount : undefined,
14748 EncryptionType: output.EncryptionType !== undefined && output.EncryptionType !== null ? output.EncryptionType : undefined,
14749 EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
14750 ? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
14751 : undefined,
14752 KeyId: output.KeyId !== undefined && output.KeyId !== null ? output.KeyId : undefined,
14753 OpenShardCount: output.OpenShardCount !== undefined && output.OpenShardCount !== null ? output.OpenShardCount : undefined,
14754 RetentionPeriodHours: output.RetentionPeriodHours !== undefined && output.RetentionPeriodHours !== null
14755 ? output.RetentionPeriodHours
14756 : undefined,
14757 StreamARN: output.StreamARN !== undefined && output.StreamARN !== null ? output.StreamARN : undefined,
14758 StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
14759 ? new Date(Math.round(output.StreamCreationTimestamp * 1000))
14760 : undefined,
14761 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14762 StreamStatus: output.StreamStatus !== undefined && output.StreamStatus !== null ? output.StreamStatus : undefined,
14763 };
14764};
14765var deserializeAws_json1_1StreamNameList = function (output, context) {
14766 return (output || [])
14767 .filter(function (e) { return e != null; })
14768 .map(function (entry) {
14769 if (entry === null) {
14770 return null;
14771 }
14772 return entry;
14773 });
14774};
14775var deserializeAws_json1_1SubscribeToShardEvent = function (output, context) {
14776 return {
14777 ChildShards: output.ChildShards !== undefined && output.ChildShards !== null
14778 ? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
14779 : undefined,
14780 ContinuationSequenceNumber: output.ContinuationSequenceNumber !== undefined && output.ContinuationSequenceNumber !== null
14781 ? output.ContinuationSequenceNumber
14782 : undefined,
14783 MillisBehindLatest: output.MillisBehindLatest !== undefined && output.MillisBehindLatest !== null
14784 ? output.MillisBehindLatest
14785 : undefined,
14786 Records: output.Records !== undefined && output.Records !== null
14787 ? deserializeAws_json1_1RecordList(output.Records, context)
14788 : undefined,
14789 };
14790};
14791var deserializeAws_json1_1SubscribeToShardEventStream = function (output, context) {
14792 if (output.InternalFailureException !== undefined && output.InternalFailureException !== null) {
14793 return {
14794 InternalFailureException: deserializeAws_json1_1InternalFailureException(output.InternalFailureException, context),
14795 };
14796 }
14797 if (output.KMSAccessDeniedException !== undefined && output.KMSAccessDeniedException !== null) {
14798 return {
14799 KMSAccessDeniedException: deserializeAws_json1_1KMSAccessDeniedException(output.KMSAccessDeniedException, context),
14800 };
14801 }
14802 if (output.KMSDisabledException !== undefined && output.KMSDisabledException !== null) {
14803 return {
14804 KMSDisabledException: deserializeAws_json1_1KMSDisabledException(output.KMSDisabledException, context),
14805 };
14806 }
14807 if (output.KMSInvalidStateException !== undefined && output.KMSInvalidStateException !== null) {
14808 return {
14809 KMSInvalidStateException: deserializeAws_json1_1KMSInvalidStateException(output.KMSInvalidStateException, context),
14810 };
14811 }
14812 if (output.KMSNotFoundException !== undefined && output.KMSNotFoundException !== null) {
14813 return {
14814 KMSNotFoundException: deserializeAws_json1_1KMSNotFoundException(output.KMSNotFoundException, context),
14815 };
14816 }
14817 if (output.KMSOptInRequired !== undefined && output.KMSOptInRequired !== null) {
14818 return {
14819 KMSOptInRequired: deserializeAws_json1_1KMSOptInRequired(output.KMSOptInRequired, context),
14820 };
14821 }
14822 if (output.KMSThrottlingException !== undefined && output.KMSThrottlingException !== null) {
14823 return {
14824 KMSThrottlingException: deserializeAws_json1_1KMSThrottlingException(output.KMSThrottlingException, context),
14825 };
14826 }
14827 if (output.ResourceInUseException !== undefined && output.ResourceInUseException !== null) {
14828 return {
14829 ResourceInUseException: deserializeAws_json1_1ResourceInUseException(output.ResourceInUseException, context),
14830 };
14831 }
14832 if (output.ResourceNotFoundException !== undefined && output.ResourceNotFoundException !== null) {
14833 return {
14834 ResourceNotFoundException: deserializeAws_json1_1ResourceNotFoundException(output.ResourceNotFoundException, context),
14835 };
14836 }
14837 if (output.SubscribeToShardEvent !== undefined && output.SubscribeToShardEvent !== null) {
14838 return {
14839 SubscribeToShardEvent: deserializeAws_json1_1SubscribeToShardEvent(output.SubscribeToShardEvent, context),
14840 };
14841 }
14842 return { $unknown: Object.entries(output)[0] };
14843};
14844var deserializeAws_json1_1SubscribeToShardOutput = function (output, context) {
14845 return {
14846 EventStream: output.EventStream !== undefined && output.EventStream !== null
14847 ? deserializeAws_json1_1SubscribeToShardEventStream(output.EventStream, context)
14848 : undefined,
14849 };
14850};
14851var deserializeAws_json1_1Tag = function (output, context) {
14852 return {
14853 Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined,
14854 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
14855 };
14856};
14857var deserializeAws_json1_1TagList = function (output, context) {
14858 return (output || [])
14859 .filter(function (e) { return e != null; })
14860 .map(function (entry) {
14861 if (entry === null) {
14862 return null;
14863 }
14864 return deserializeAws_json1_1Tag(entry, context);
14865 });
14866};
14867var deserializeAws_json1_1UpdateShardCountOutput = function (output, context) {
14868 return {
14869 CurrentShardCount: output.CurrentShardCount !== undefined && output.CurrentShardCount !== null
14870 ? output.CurrentShardCount
14871 : undefined,
14872 StreamName: output.StreamName !== undefined && output.StreamName !== null ? output.StreamName : undefined,
14873 TargetShardCount: output.TargetShardCount !== undefined && output.TargetShardCount !== null ? output.TargetShardCount : undefined,
14874 };
14875};
14876var deserializeMetadata = function (output) {
14877 var _a;
14878 return ({
14879 httpStatusCode: output.statusCode,
14880 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
14881 extendedRequestId: output.headers["x-amz-id-2"],
14882 cfId: output.headers["x-amz-cf-id"],
14883 });
14884};
14885// Collect low-level response body stream to Uint8Array.
14886var collectBody = function (streamBody, context) {
14887 if (streamBody === void 0) { streamBody = new Uint8Array(); }
14888 if (streamBody instanceof Uint8Array) {
14889 return Promise.resolve(streamBody);
14890 }
14891 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
14892};
14893// Encode Uint8Array data into string with utf-8.
14894var collectBodyString = function (streamBody, context) {
14895 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
14896};
14897var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
14898 var _a, hostname, _b, protocol, port, contents;
14899 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
14900 switch (_c.label) {
14901 case 0: return [4 /*yield*/, context.endpoint()];
14902 case 1:
14903 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
14904 contents = {
14905 protocol: protocol,
14906 hostname: hostname,
14907 port: port,
14908 method: "POST",
14909 path: path,
14910 headers: headers,
14911 };
14912 if (resolvedHostname !== undefined) {
14913 contents.hostname = resolvedHostname;
14914 }
14915 if (body !== undefined) {
14916 contents.body = body;
14917 }
14918 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"](contents)];
14919 }
14920 });
14921}); };
14922var parseBody = function (streamBody, context) {
14923 return collectBodyString(streamBody, context).then(function (encoded) {
14924 if (encoded.length) {
14925 return JSON.parse(encoded);
14926 }
14927 return {};
14928 });
14929};
14930/**
14931 * Load an error code for the aws.rest-json-1.1 protocol.
14932 */
14933var loadRestJsonErrorCode = function (output, data) {
14934 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
14935 var sanitizeErrorCode = function (rawValue) {
14936 var cleanValue = rawValue;
14937 if (cleanValue.indexOf(":") >= 0) {
14938 cleanValue = cleanValue.split(":")[0];
14939 }
14940 if (cleanValue.indexOf("#") >= 0) {
14941 cleanValue = cleanValue.split("#")[1];
14942 }
14943 return cleanValue;
14944 };
14945 var headerKey = findKey(output.headers, "x-amzn-errortype");
14946 if (headerKey !== undefined) {
14947 return sanitizeErrorCode(output.headers[headerKey]);
14948 }
14949 if (data.code !== undefined) {
14950 return sanitizeErrorCode(data.code);
14951 }
14952 if (data["__type"] !== undefined) {
14953 return sanitizeErrorCode(data["__type"]);
14954 }
14955 return "";
14956};
14957//# sourceMappingURL=Aws_json1_1.js.map
14958
14959/***/ }),
14960
14961/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js":
14962/*!**********************************************************************************************!*\
14963 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.browser.js ***!
14964 \**********************************************************************************************/
14965/*! exports provided: ClientDefaultValues */
14966/***/ (function(module, __webpack_exports__, __webpack_require__) {
14967
14968"use strict";
14969__webpack_require__.r(__webpack_exports__);
14970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
14971/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
14972/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/package.json");
14973var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/package.json", 1);
14974/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "../../node_modules/@aws-crypto/sha256-browser/build/index.js");
14975/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
14976/* harmony import */ var _aws_sdk_eventstream_serde_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/eventstream-serde-browser */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/index.js");
14977/* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js");
14978/* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/index.js");
14979/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
14980/* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js");
14981/* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "../../node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js");
14982/* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "../../node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js");
14983/* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
14984/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js");
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997/**
14998 * @internal
14999 */
15000var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_7__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_8__["calculateBodyLength"], credentialDefaultProvider: function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }, defaultUserAgentProvider: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_9__["defaultUserAgent"])({
15001 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_11__["ClientSharedValues"].serviceId,
15002 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
15003 }), eventStreamSerdeProvider: _aws_sdk_eventstream_serde_browser__WEBPACK_IMPORTED_MODULE_3__["eventStreamSerdeProvider"], maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_5__["invalidProvider"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_4__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_4__["streamCollector"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_10__["toUtf8"] });
15004//# sourceMappingURL=runtimeConfig.browser.js.map
15005
15006/***/ }),
15007
15008/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js":
15009/*!*********************************************************************************************!*\
15010 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/runtimeConfig.shared.js ***!
15011 \*********************************************************************************************/
15012/*! exports provided: ClientSharedValues */
15013/***/ (function(module, __webpack_exports__, __webpack_require__) {
15014
15015"use strict";
15016__webpack_require__.r(__webpack_exports__);
15017/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
15018/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/endpoints.js");
15019/* harmony import */ var _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/url-parser */ "../../node_modules/@aws-sdk/url-parser/dist/es/index.js");
15020
15021
15022/**
15023 * @internal
15024 */
15025var ClientSharedValues = {
15026 apiVersion: "2013-12-02",
15027 disableHostPrefix: false,
15028 logger: {},
15029 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
15030 serviceId: "Kinesis",
15031 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
15032};
15033//# sourceMappingURL=runtimeConfig.shared.js.map
15034
15035/***/ }),
15036
15037/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamExists.js":
15038/*!****************************************************************************************************!*\
15039 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamExists.js ***!
15040 \****************************************************************************************************/
15041/*! exports provided: waitForStreamExists */
15042/***/ (function(module, __webpack_exports__, __webpack_require__) {
15043
15044"use strict";
15045__webpack_require__.r(__webpack_exports__);
15046/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "waitForStreamExists", function() { return waitForStreamExists; });
15047/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
15048/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
15049/* harmony import */ var _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/index.js");
15050
15051
15052
15053var checkState = function (client, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15054 var result_1, returnComparator, exception_1;
15055 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15056 switch (_a.label) {
15057 case 0:
15058 _a.trys.push([0, 2, , 3]);
15059 return [4 /*yield*/, client.send(new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamCommand"](input))];
15060 case 1:
15061 result_1 = _a.sent();
15062 try {
15063 returnComparator = function () {
15064 return result_1.StreamDescription.StreamStatus;
15065 };
15066 if (returnComparator() === "ACTIVE") {
15067 return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].SUCCESS }];
15068 }
15069 }
15070 catch (e) { }
15071 return [3 /*break*/, 3];
15072 case 2:
15073 exception_1 = _a.sent();
15074 return [3 /*break*/, 3];
15075 case 3: return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY }];
15076 }
15077 });
15078}); };
15079/**
15080 *
15081 * @param params : Waiter configuration options.
15082 * @param input : the input to DescribeStreamCommand for polling.
15083 */
15084var waitForStreamExists = function (params, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15085 var serviceDefaults;
15086 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15087 serviceDefaults = { minDelay: 10, maxDelay: 120 };
15088 return [2 /*return*/, Object(_aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["createWaiter"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, serviceDefaults), params), input, checkState)];
15089 });
15090}); };
15091//# sourceMappingURL=waitForStreamExists.js.map
15092
15093/***/ }),
15094
15095/***/ "../../node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamNotExists.js":
15096/*!*******************************************************************************************************!*\
15097 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/dist/es/waiters/waitForStreamNotExists.js ***!
15098 \*******************************************************************************************************/
15099/*! exports provided: waitForStreamNotExists */
15100/***/ (function(module, __webpack_exports__, __webpack_require__) {
15101
15102"use strict";
15103__webpack_require__.r(__webpack_exports__);
15104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "waitForStreamNotExists", function() { return waitForStreamNotExists; });
15105/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js");
15106/* harmony import */ var _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../commands/DescribeStreamCommand */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/commands/DescribeStreamCommand.js");
15107/* harmony import */ var _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/index.js");
15108
15109
15110
15111var checkState = function (client, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15112 var result, exception_1;
15113 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15114 switch (_a.label) {
15115 case 0:
15116 _a.trys.push([0, 2, , 3]);
15117 return [4 /*yield*/, client.send(new _commands_DescribeStreamCommand__WEBPACK_IMPORTED_MODULE_1__["DescribeStreamCommand"](input))];
15118 case 1:
15119 result = _a.sent();
15120 return [3 /*break*/, 3];
15121 case 2:
15122 exception_1 = _a.sent();
15123 if (exception_1.name && exception_1.name == "ResourceNotFoundException") {
15124 return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].SUCCESS }];
15125 }
15126 return [3 /*break*/, 3];
15127 case 3: return [2 /*return*/, { state: _aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY }];
15128 }
15129 });
15130}); };
15131/**
15132 *
15133 * @param params : Waiter configuration options.
15134 * @param input : the input to DescribeStreamCommand for polling.
15135 */
15136var waitForStreamNotExists = function (params, input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
15137 var serviceDefaults;
15138 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
15139 serviceDefaults = { minDelay: 10, maxDelay: 120 };
15140 return [2 /*return*/, Object(_aws_sdk_util_waiter__WEBPACK_IMPORTED_MODULE_2__["createWaiter"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, serviceDefaults), params), input, checkState)];
15141 });
15142}); };
15143//# sourceMappingURL=waitForStreamNotExists.js.map
15144
15145/***/ }),
15146
15147/***/ "../../node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js":
15148/*!*********************************************************************************************!*\
15149 !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js ***!
15150 \*********************************************************************************************/
15151/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
15152/***/ (function(module, __webpack_exports__, __webpack_require__) {
15153
15154"use strict";
15155__webpack_require__.r(__webpack_exports__);
15156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
15157/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
15158/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
15159/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
15160/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
15161/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
15162/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
15163/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
15164/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
15165/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
15166/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
15167/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
15168/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
15169/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
15170/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
15171/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
15172/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
15173/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
15174/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
15175/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
15176/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
15177/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
15178/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
15179/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
15180/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
15181/******************************************************************************
15182Copyright (c) Microsoft Corporation.
15183
15184Permission to use, copy, modify, and/or distribute this software for any
15185purpose with or without fee is hereby granted.
15186
15187THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15188REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15189AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15190INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15191LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15192OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15193PERFORMANCE OF THIS SOFTWARE.
15194***************************************************************************** */
15195/* global Reflect, Promise */
15196
15197var extendStatics = function(d, b) {
15198 extendStatics = Object.setPrototypeOf ||
15199 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15200 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
15201 return extendStatics(d, b);
15202};
15203
15204function __extends(d, b) {
15205 if (typeof b !== "function" && b !== null)
15206 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15207 extendStatics(d, b);
15208 function __() { this.constructor = d; }
15209 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15210}
15211
15212var __assign = function() {
15213 __assign = Object.assign || function __assign(t) {
15214 for (var s, i = 1, n = arguments.length; i < n; i++) {
15215 s = arguments[i];
15216 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
15217 }
15218 return t;
15219 }
15220 return __assign.apply(this, arguments);
15221}
15222
15223function __rest(s, e) {
15224 var t = {};
15225 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15226 t[p] = s[p];
15227 if (s != null && typeof Object.getOwnPropertySymbols === "function")
15228 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
15229 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
15230 t[p[i]] = s[p[i]];
15231 }
15232 return t;
15233}
15234
15235function __decorate(decorators, target, key, desc) {
15236 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15237 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15238 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;
15239 return c > 3 && r && Object.defineProperty(target, key, r), r;
15240}
15241
15242function __param(paramIndex, decorator) {
15243 return function (target, key) { decorator(target, key, paramIndex); }
15244}
15245
15246function __metadata(metadataKey, metadataValue) {
15247 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
15248}
15249
15250function __awaiter(thisArg, _arguments, P, generator) {
15251 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15252 return new (P || (P = Promise))(function (resolve, reject) {
15253 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15254 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15255 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15256 step((generator = generator.apply(thisArg, _arguments || [])).next());
15257 });
15258}
15259
15260function __generator(thisArg, body) {
15261 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
15262 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
15263 function verb(n) { return function (v) { return step([n, v]); }; }
15264 function step(op) {
15265 if (f) throw new TypeError("Generator is already executing.");
15266 while (_) try {
15267 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;
15268 if (y = 0, t) op = [op[0] & 2, t.value];
15269 switch (op[0]) {
15270 case 0: case 1: t = op; break;
15271 case 4: _.label++; return { value: op[1], done: false };
15272 case 5: _.label++; y = op[1]; op = [0]; continue;
15273 case 7: op = _.ops.pop(); _.trys.pop(); continue;
15274 default:
15275 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
15276 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
15277 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
15278 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
15279 if (t[2]) _.ops.pop();
15280 _.trys.pop(); continue;
15281 }
15282 op = body.call(thisArg, _);
15283 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
15284 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
15285 }
15286}
15287
15288var __createBinding = Object.create ? (function(o, m, k, k2) {
15289 if (k2 === undefined) k2 = k;
15290 var desc = Object.getOwnPropertyDescriptor(m, k);
15291 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
15292 desc = { enumerable: true, get: function() { return m[k]; } };
15293 }
15294 Object.defineProperty(o, k2, desc);
15295}) : (function(o, m, k, k2) {
15296 if (k2 === undefined) k2 = k;
15297 o[k2] = m[k];
15298});
15299
15300function __exportStar(m, o) {
15301 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
15302}
15303
15304function __values(o) {
15305 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
15306 if (m) return m.call(o);
15307 if (o && typeof o.length === "number") return {
15308 next: function () {
15309 if (o && i >= o.length) o = void 0;
15310 return { value: o && o[i++], done: !o };
15311 }
15312 };
15313 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
15314}
15315
15316function __read(o, n) {
15317 var m = typeof Symbol === "function" && o[Symbol.iterator];
15318 if (!m) return o;
15319 var i = m.call(o), r, ar = [], e;
15320 try {
15321 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
15322 }
15323 catch (error) { e = { error: error }; }
15324 finally {
15325 try {
15326 if (r && !r.done && (m = i["return"])) m.call(i);
15327 }
15328 finally { if (e) throw e.error; }
15329 }
15330 return ar;
15331}
15332
15333/** @deprecated */
15334function __spread() {
15335 for (var ar = [], i = 0; i < arguments.length; i++)
15336 ar = ar.concat(__read(arguments[i]));
15337 return ar;
15338}
15339
15340/** @deprecated */
15341function __spreadArrays() {
15342 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
15343 for (var r = Array(s), k = 0, i = 0; i < il; i++)
15344 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
15345 r[k] = a[j];
15346 return r;
15347}
15348
15349function __spreadArray(to, from, pack) {
15350 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15351 if (ar || !(i in from)) {
15352 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
15353 ar[i] = from[i];
15354 }
15355 }
15356 return to.concat(ar || Array.prototype.slice.call(from));
15357}
15358
15359function __await(v) {
15360 return this instanceof __await ? (this.v = v, this) : new __await(v);
15361}
15362
15363function __asyncGenerator(thisArg, _arguments, generator) {
15364 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
15365 var g = generator.apply(thisArg, _arguments || []), i, q = [];
15366 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
15367 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); }); }; }
15368 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
15369 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
15370 function fulfill(value) { resume("next", value); }
15371 function reject(value) { resume("throw", value); }
15372 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
15373}
15374
15375function __asyncDelegator(o) {
15376 var i, p;
15377 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
15378 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; }
15379}
15380
15381function __asyncValues(o) {
15382 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
15383 var m = o[Symbol.asyncIterator], i;
15384 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);
15385 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); }); }; }
15386 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
15387}
15388
15389function __makeTemplateObject(cooked, raw) {
15390 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
15391 return cooked;
15392};
15393
15394var __setModuleDefault = Object.create ? (function(o, v) {
15395 Object.defineProperty(o, "default", { enumerable: true, value: v });
15396}) : function(o, v) {
15397 o["default"] = v;
15398};
15399
15400function __importStar(mod) {
15401 if (mod && mod.__esModule) return mod;
15402 var result = {};
15403 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
15404 __setModuleDefault(result, mod);
15405 return result;
15406}
15407
15408function __importDefault(mod) {
15409 return (mod && mod.__esModule) ? mod : { default: mod };
15410}
15411
15412function __classPrivateFieldGet(receiver, state, kind, f) {
15413 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15414 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");
15415 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15416}
15417
15418function __classPrivateFieldSet(receiver, state, value, kind, f) {
15419 if (kind === "m") throw new TypeError("Private method is not writable");
15420 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15421 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");
15422 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15423}
15424
15425function __classPrivateFieldIn(state, receiver) {
15426 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
15427 return typeof state === "function" ? receiver === state : state.has(receiver);
15428}
15429
15430
15431/***/ }),
15432
15433/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEvents.js":
15434/*!*****************************************************************************************************!*\
15435 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEvents.js ***!
15436 \*****************************************************************************************************/
15437/*! exports provided: PersonalizeEvents */
15438/***/ (function(module, __webpack_exports__, __webpack_require__) {
15439
15440"use strict";
15441__webpack_require__.r(__webpack_exports__);
15442/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEvents", function() { return PersonalizeEvents; });
15443/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15444/* harmony import */ var _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PersonalizeEventsClient */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js");
15445/* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js");
15446/* harmony import */ var _commands_PutItemsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/PutItemsCommand */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutItemsCommand.js");
15447/* harmony import */ var _commands_PutUsersCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/PutUsersCommand */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutUsersCommand.js");
15448
15449
15450
15451
15452
15453/**
15454 * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
15455 * it for model training either alone or combined with historical data. For more information see <a>recording-events</a>.</p>
15456 */
15457var PersonalizeEvents = /** @class */ (function (_super) {
15458 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PersonalizeEvents, _super);
15459 function PersonalizeEvents() {
15460 return _super !== null && _super.apply(this, arguments) || this;
15461 }
15462 PersonalizeEvents.prototype.putEvents = function (args, optionsOrCb, cb) {
15463 var command = new _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__["PutEventsCommand"](args);
15464 if (typeof optionsOrCb === "function") {
15465 this.send(command, optionsOrCb);
15466 }
15467 else if (typeof cb === "function") {
15468 if (typeof optionsOrCb !== "object")
15469 throw new Error("Expect http options but get " + typeof optionsOrCb);
15470 this.send(command, optionsOrCb || {}, cb);
15471 }
15472 else {
15473 return this.send(command, optionsOrCb);
15474 }
15475 };
15476 PersonalizeEvents.prototype.putItems = function (args, optionsOrCb, cb) {
15477 var command = new _commands_PutItemsCommand__WEBPACK_IMPORTED_MODULE_3__["PutItemsCommand"](args);
15478 if (typeof optionsOrCb === "function") {
15479 this.send(command, optionsOrCb);
15480 }
15481 else if (typeof cb === "function") {
15482 if (typeof optionsOrCb !== "object")
15483 throw new Error("Expect http options but get " + typeof optionsOrCb);
15484 this.send(command, optionsOrCb || {}, cb);
15485 }
15486 else {
15487 return this.send(command, optionsOrCb);
15488 }
15489 };
15490 PersonalizeEvents.prototype.putUsers = function (args, optionsOrCb, cb) {
15491 var command = new _commands_PutUsersCommand__WEBPACK_IMPORTED_MODULE_4__["PutUsersCommand"](args);
15492 if (typeof optionsOrCb === "function") {
15493 this.send(command, optionsOrCb);
15494 }
15495 else if (typeof cb === "function") {
15496 if (typeof optionsOrCb !== "object")
15497 throw new Error("Expect http options but get " + typeof optionsOrCb);
15498 this.send(command, optionsOrCb || {}, cb);
15499 }
15500 else {
15501 return this.send(command, optionsOrCb);
15502 }
15503 };
15504 return PersonalizeEvents;
15505}(_PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEventsClient"]));
15506
15507//# sourceMappingURL=PersonalizeEvents.js.map
15508
15509/***/ }),
15510
15511/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js":
15512/*!***********************************************************************************************************!*\
15513 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js ***!
15514 \***********************************************************************************************************/
15515/*! exports provided: PersonalizeEventsClient */
15516/***/ (function(module, __webpack_exports__, __webpack_require__) {
15517
15518"use strict";
15519__webpack_require__.r(__webpack_exports__);
15520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEventsClient", function() { return PersonalizeEventsClient; });
15521/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15522/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js");
15523/* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "../../node_modules/@aws-sdk/config-resolver/dist/es/index.js");
15524/* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "../../node_modules/@aws-sdk/middleware-content-length/dist/es/index.js");
15525/* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "../../node_modules/@aws-sdk/middleware-host-header/dist/es/index.js");
15526/* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "../../node_modules/@aws-sdk/middleware-logger/dist/es/index.js");
15527/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
15528/* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/index.js");
15529/* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js");
15530/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541/**
15542 * <p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use
15543 * it for model training either alone or combined with historical data. For more information see <a>recording-events</a>.</p>
15544 */
15545var PersonalizeEventsClient = /** @class */ (function (_super) {
15546 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PersonalizeEventsClient, _super);
15547 function PersonalizeEventsClient(configuration) {
15548 var _this = this;
15549 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
15550 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
15551 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
15552 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2);
15553 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3);
15554 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_4);
15555 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_5);
15556 _this = _super.call(this, _config_6) || this;
15557 _this.config = _config_6;
15558 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config));
15559 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config));
15560 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config));
15561 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config));
15562 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config));
15563 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config));
15564 return _this;
15565 }
15566 PersonalizeEventsClient.prototype.destroy = function () {
15567 _super.prototype.destroy.call(this);
15568 };
15569 return PersonalizeEventsClient;
15570}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"]));
15571
15572//# sourceMappingURL=PersonalizeEventsClient.js.map
15573
15574/***/ }),
15575
15576/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js":
15577/*!*************************************************************************************************************!*\
15578 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js ***!
15579 \*************************************************************************************************************/
15580/*! exports provided: PutEventsCommand */
15581/***/ (function(module, __webpack_exports__, __webpack_require__) {
15582
15583"use strict";
15584__webpack_require__.r(__webpack_exports__);
15585/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return PutEventsCommand; });
15586/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15587/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js");
15588/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js");
15589/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
15590/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
15591
15592
15593
15594
15595
15596/**
15597 * <p>Records user interaction event data. For more information see <a>event-record-api</a>.</p>
15598 */
15599var PutEventsCommand = /** @class */ (function (_super) {
15600 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventsCommand, _super);
15601 // Start section: command_properties
15602 // End section: command_properties
15603 function PutEventsCommand(input) {
15604 var _this =
15605 // Start section: command_constructor
15606 _super.call(this) || this;
15607 _this.input = input;
15608 return _this;
15609 // End section: command_constructor
15610 }
15611 /**
15612 * @internal
15613 */
15614 PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15615 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
15616 var stack = clientStack.concat(this.middlewareStack);
15617 var logger = configuration.logger;
15618 var clientName = "PersonalizeEventsClient";
15619 var commandName = "PutEventsCommand";
15620 var handlerExecutionContext = {
15621 logger: logger,
15622 clientName: clientName,
15623 commandName: commandName,
15624 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"].filterSensitiveLog,
15625 outputFilterSensitiveLog: function (output) { return output; },
15626 };
15627 var requestHandler = configuration.requestHandler;
15628 return stack.resolve(function (request) {
15629 return requestHandler.handle(request.request, options || {});
15630 }, handlerExecutionContext);
15631 };
15632 PutEventsCommand.prototype.serialize = function (input, context) {
15633 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventsCommand"])(input, context);
15634 };
15635 PutEventsCommand.prototype.deserialize = function (output, context) {
15636 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventsCommand"])(output, context);
15637 };
15638 return PutEventsCommand;
15639}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
15640
15641//# sourceMappingURL=PutEventsCommand.js.map
15642
15643/***/ }),
15644
15645/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutItemsCommand.js":
15646/*!************************************************************************************************************!*\
15647 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutItemsCommand.js ***!
15648 \************************************************************************************************************/
15649/*! exports provided: PutItemsCommand */
15650/***/ (function(module, __webpack_exports__, __webpack_require__) {
15651
15652"use strict";
15653__webpack_require__.r(__webpack_exports__);
15654/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutItemsCommand", function() { return PutItemsCommand; });
15655/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15656/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js");
15657/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js");
15658/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
15659/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
15660
15661
15662
15663
15664
15665/**
15666 * <p>Adds one or more items to an Items dataset. For more information see
15667 * <a>importing-items</a>.</p>
15668 */
15669var PutItemsCommand = /** @class */ (function (_super) {
15670 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutItemsCommand, _super);
15671 // Start section: command_properties
15672 // End section: command_properties
15673 function PutItemsCommand(input) {
15674 var _this =
15675 // Start section: command_constructor
15676 _super.call(this) || this;
15677 _this.input = input;
15678 return _this;
15679 // End section: command_constructor
15680 }
15681 /**
15682 * @internal
15683 */
15684 PutItemsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15685 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
15686 var stack = clientStack.concat(this.middlewareStack);
15687 var logger = configuration.logger;
15688 var clientName = "PersonalizeEventsClient";
15689 var commandName = "PutItemsCommand";
15690 var handlerExecutionContext = {
15691 logger: logger,
15692 clientName: clientName,
15693 commandName: commandName,
15694 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutItemsRequest"].filterSensitiveLog,
15695 outputFilterSensitiveLog: function (output) { return output; },
15696 };
15697 var requestHandler = configuration.requestHandler;
15698 return stack.resolve(function (request) {
15699 return requestHandler.handle(request.request, options || {});
15700 }, handlerExecutionContext);
15701 };
15702 PutItemsCommand.prototype.serialize = function (input, context) {
15703 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutItemsCommand"])(input, context);
15704 };
15705 PutItemsCommand.prototype.deserialize = function (output, context) {
15706 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutItemsCommand"])(output, context);
15707 };
15708 return PutItemsCommand;
15709}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
15710
15711//# sourceMappingURL=PutItemsCommand.js.map
15712
15713/***/ }),
15714
15715/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutUsersCommand.js":
15716/*!************************************************************************************************************!*\
15717 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutUsersCommand.js ***!
15718 \************************************************************************************************************/
15719/*! exports provided: PutUsersCommand */
15720/***/ (function(module, __webpack_exports__, __webpack_require__) {
15721
15722"use strict";
15723__webpack_require__.r(__webpack_exports__);
15724/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutUsersCommand", function() { return PutUsersCommand; });
15725/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15726/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js");
15727/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js");
15728/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
15729/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
15730
15731
15732
15733
15734
15735/**
15736 * <p>Adds one or more users to a Users dataset. For more information see
15737 * <a>importing-users</a>.</p>
15738 */
15739var PutUsersCommand = /** @class */ (function (_super) {
15740 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutUsersCommand, _super);
15741 // Start section: command_properties
15742 // End section: command_properties
15743 function PutUsersCommand(input) {
15744 var _this =
15745 // Start section: command_constructor
15746 _super.call(this) || this;
15747 _this.input = input;
15748 return _this;
15749 // End section: command_constructor
15750 }
15751 /**
15752 * @internal
15753 */
15754 PutUsersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15755 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
15756 var stack = clientStack.concat(this.middlewareStack);
15757 var logger = configuration.logger;
15758 var clientName = "PersonalizeEventsClient";
15759 var commandName = "PutUsersCommand";
15760 var handlerExecutionContext = {
15761 logger: logger,
15762 clientName: clientName,
15763 commandName: commandName,
15764 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["PutUsersRequest"].filterSensitiveLog,
15765 outputFilterSensitiveLog: function (output) { return output; },
15766 };
15767 var requestHandler = configuration.requestHandler;
15768 return stack.resolve(function (request) {
15769 return requestHandler.handle(request.request, options || {});
15770 }, handlerExecutionContext);
15771 };
15772 PutUsersCommand.prototype.serialize = function (input, context) {
15773 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutUsersCommand"])(input, context);
15774 };
15775 PutUsersCommand.prototype.deserialize = function (output, context) {
15776 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutUsersCommand"])(output, context);
15777 };
15778 return PutUsersCommand;
15779}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
15780
15781//# sourceMappingURL=PutUsersCommand.js.map
15782
15783/***/ }),
15784
15785/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/endpoints.js":
15786/*!*********************************************************************************************!*\
15787 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/endpoints.js ***!
15788 \*********************************************************************************************/
15789/*! exports provided: defaultRegionInfoProvider */
15790/***/ (function(module, __webpack_exports__, __webpack_require__) {
15791
15792"use strict";
15793__webpack_require__.r(__webpack_exports__);
15794/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
15795/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15796
15797// Partition default templates
15798var AWS_TEMPLATE = "personalize-events.{region}.amazonaws.com";
15799var AWS_CN_TEMPLATE = "personalize-events.{region}.amazonaws.com.cn";
15800var AWS_ISO_TEMPLATE = "personalize-events.{region}.c2s.ic.gov";
15801var AWS_ISO_B_TEMPLATE = "personalize-events.{region}.sc2s.sgov.gov";
15802var AWS_US_GOV_TEMPLATE = "personalize-events.{region}.amazonaws.com";
15803// Partition regions
15804var AWS_REGIONS = new Set([
15805 "af-south-1",
15806 "ap-east-1",
15807 "ap-northeast-1",
15808 "ap-northeast-2",
15809 "ap-south-1",
15810 "ap-southeast-1",
15811 "ap-southeast-2",
15812 "ca-central-1",
15813 "eu-central-1",
15814 "eu-north-1",
15815 "eu-south-1",
15816 "eu-west-1",
15817 "eu-west-2",
15818 "eu-west-3",
15819 "me-south-1",
15820 "sa-east-1",
15821 "us-east-1",
15822 "us-east-2",
15823 "us-west-1",
15824 "us-west-2",
15825]);
15826var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
15827var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
15828var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
15829var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
15830var defaultRegionInfoProvider = function (region, options) {
15831 var regionInfo = undefined;
15832 switch (region) {
15833 // First, try to match exact region names.
15834 // Next, try to match partition endpoints.
15835 default:
15836 if (AWS_REGIONS.has(region)) {
15837 regionInfo = {
15838 hostname: AWS_TEMPLATE.replace("{region}", region),
15839 partition: "aws",
15840 };
15841 }
15842 if (AWS_CN_REGIONS.has(region)) {
15843 regionInfo = {
15844 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
15845 partition: "aws-cn",
15846 };
15847 }
15848 if (AWS_ISO_REGIONS.has(region)) {
15849 regionInfo = {
15850 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
15851 partition: "aws-iso",
15852 };
15853 }
15854 if (AWS_ISO_B_REGIONS.has(region)) {
15855 regionInfo = {
15856 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
15857 partition: "aws-iso-b",
15858 };
15859 }
15860 if (AWS_US_GOV_REGIONS.has(region)) {
15861 regionInfo = {
15862 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
15863 partition: "aws-us-gov",
15864 };
15865 }
15866 // Finally, assume it's an AWS partition endpoint.
15867 if (regionInfo === undefined) {
15868 regionInfo = {
15869 hostname: AWS_TEMPLATE.replace("{region}", region),
15870 partition: "aws",
15871 };
15872 }
15873 }
15874 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "personalize" }, regionInfo));
15875};
15876//# sourceMappingURL=endpoints.js.map
15877
15878/***/ }),
15879
15880/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/index.js":
15881/*!*****************************************************************************************!*\
15882 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/index.js ***!
15883 \*****************************************************************************************/
15884/*! exports provided: PersonalizeEventsClient, PersonalizeEvents, PutEventsCommand, PutItemsCommand, PutUsersCommand, InvalidInputException, Event, PutEventsRequest, Item, PutItemsRequest, ResourceNotFoundException, User, PutUsersRequest */
15885/***/ (function(module, __webpack_exports__, __webpack_require__) {
15886
15887"use strict";
15888__webpack_require__.r(__webpack_exports__);
15889/* harmony import */ var _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PersonalizeEventsClient */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEventsClient.js");
15890/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEventsClient", function() { return _PersonalizeEventsClient__WEBPACK_IMPORTED_MODULE_0__["PersonalizeEventsClient"]; });
15891
15892/* harmony import */ var _PersonalizeEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PersonalizeEvents */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/PersonalizeEvents.js");
15893/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PersonalizeEvents", function() { return _PersonalizeEvents__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEvents"]; });
15894
15895/* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutEventsCommand.js");
15896/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_2__["PutEventsCommand"]; });
15897
15898/* harmony import */ var _commands_PutItemsCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/PutItemsCommand */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutItemsCommand.js");
15899/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutItemsCommand", function() { return _commands_PutItemsCommand__WEBPACK_IMPORTED_MODULE_3__["PutItemsCommand"]; });
15900
15901/* harmony import */ var _commands_PutUsersCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/PutUsersCommand */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/commands/PutUsersCommand.js");
15902/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutUsersCommand", function() { return _commands_PutUsersCommand__WEBPACK_IMPORTED_MODULE_4__["PutUsersCommand"]; });
15903
15904/* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./models/index */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/index.js");
15905/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["InvalidInputException"]; });
15906
15907/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["Event"]; });
15908
15909/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["PutEventsRequest"]; });
15910
15911/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["Item"]; });
15912
15913/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutItemsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["PutItemsRequest"]; });
15914
15915/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["ResourceNotFoundException"]; });
15916
15917/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "User", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["User"]; });
15918
15919/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutUsersRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_5__["PutUsersRequest"]; });
15920
15921
15922
15923
15924
15925
15926
15927//# sourceMappingURL=index.js.map
15928
15929/***/ }),
15930
15931/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/index.js":
15932/*!************************************************************************************************!*\
15933 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/models/index.js ***!
15934 \************************************************************************************************/
15935/*! exports provided: InvalidInputException, Event, PutEventsRequest, Item, PutItemsRequest, ResourceNotFoundException, User, PutUsersRequest */
15936/***/ (function(module, __webpack_exports__, __webpack_require__) {
15937
15938"use strict";
15939__webpack_require__.r(__webpack_exports__);
15940/* harmony import */ var _models_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./models_0 */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js");
15941/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InvalidInputException"]; });
15942
15943/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Event"]; });
15944
15945/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutEventsRequest"]; });
15946
15947/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Item"]; });
15948
15949/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutItemsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutItemsRequest"]; });
15950
15951/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResourceNotFoundException"]; });
15952
15953/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "User", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["User"]; });
15954
15955/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutUsersRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PutUsersRequest"]; });
15956
15957
15958//# sourceMappingURL=index.js.map
15959
15960/***/ }),
15961
15962/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js":
15963/*!***************************************************************************************************!*\
15964 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/models/models_0.js ***!
15965 \***************************************************************************************************/
15966/*! exports provided: InvalidInputException, Event, PutEventsRequest, Item, PutItemsRequest, ResourceNotFoundException, User, PutUsersRequest */
15967/***/ (function(module, __webpack_exports__, __webpack_require__) {
15968
15969"use strict";
15970__webpack_require__.r(__webpack_exports__);
15971/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvalidInputException", function() { return InvalidInputException; });
15972/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return Event; });
15973/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return PutEventsRequest; });
15974/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return Item; });
15975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutItemsRequest", function() { return PutItemsRequest; });
15976/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceNotFoundException", function() { return ResourceNotFoundException; });
15977/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "User", function() { return User; });
15978/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutUsersRequest", function() { return PutUsersRequest; });
15979/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
15980
15981var InvalidInputException;
15982(function (InvalidInputException) {
15983 InvalidInputException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15984})(InvalidInputException || (InvalidInputException = {}));
15985var Event;
15986(function (Event) {
15987 Event.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15988})(Event || (Event = {}));
15989var PutEventsRequest;
15990(function (PutEventsRequest) {
15991 PutEventsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15992})(PutEventsRequest || (PutEventsRequest = {}));
15993var Item;
15994(function (Item) {
15995 Item.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
15996})(Item || (Item = {}));
15997var PutItemsRequest;
15998(function (PutItemsRequest) {
15999 PutItemsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
16000})(PutItemsRequest || (PutItemsRequest = {}));
16001var ResourceNotFoundException;
16002(function (ResourceNotFoundException) {
16003 ResourceNotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
16004})(ResourceNotFoundException || (ResourceNotFoundException = {}));
16005var User;
16006(function (User) {
16007 User.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
16008})(User || (User = {}));
16009var PutUsersRequest;
16010(function (PutUsersRequest) {
16011 PutUsersRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
16012})(PutUsersRequest || (PutUsersRequest = {}));
16013//# sourceMappingURL=models_0.js.map
16014
16015/***/ }),
16016
16017/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/package.json":
16018/*!*********************************************************************************************!*\
16019 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/package.json ***!
16020 \*********************************************************************************************/
16021/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
16022/***/ (function(module) {
16023
16024module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-personalize-events\",\"description\":\"AWS SDK for JavaScript Personalize Events Client for Node.js, Browser and React Native\",\"version\":\"3.6.1\",\"scripts\":{\"clean\":\"yarn remove-definitions && yarn remove-dist && yarn remove-documentation\",\"build-documentation\":\"yarn remove-documentation && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\",\"postbuild\":\"downlevel-dts types types/ts3.4\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0\",\"@aws-crypto/sha256-js\":\"^1.0.0\",\"@aws-sdk/config-resolver\":\"3.6.1\",\"@aws-sdk/credential-provider-node\":\"3.6.1\",\"@aws-sdk/fetch-http-handler\":\"3.6.1\",\"@aws-sdk/hash-node\":\"3.6.1\",\"@aws-sdk/invalid-dependency\":\"3.6.1\",\"@aws-sdk/middleware-content-length\":\"3.6.1\",\"@aws-sdk/middleware-host-header\":\"3.6.1\",\"@aws-sdk/middleware-logger\":\"3.6.1\",\"@aws-sdk/middleware-retry\":\"3.6.1\",\"@aws-sdk/middleware-serde\":\"3.6.1\",\"@aws-sdk/middleware-signing\":\"3.6.1\",\"@aws-sdk/middleware-stack\":\"3.6.1\",\"@aws-sdk/middleware-user-agent\":\"3.6.1\",\"@aws-sdk/node-config-provider\":\"3.6.1\",\"@aws-sdk/node-http-handler\":\"3.6.1\",\"@aws-sdk/protocol-http\":\"3.6.1\",\"@aws-sdk/smithy-client\":\"3.6.1\",\"@aws-sdk/types\":\"3.6.1\",\"@aws-sdk/url-parser\":\"3.6.1\",\"@aws-sdk/url-parser-native\":\"3.6.1\",\"@aws-sdk/util-base64-browser\":\"3.6.1\",\"@aws-sdk/util-base64-node\":\"3.6.1\",\"@aws-sdk/util-body-length-browser\":\"3.6.1\",\"@aws-sdk/util-body-length-node\":\"3.6.1\",\"@aws-sdk/util-user-agent-browser\":\"3.6.1\",\"@aws-sdk/util-user-agent-node\":\"3.6.1\",\"@aws-sdk/util-utf8-browser\":\"3.6.1\",\"@aws-sdk/util-utf8-node\":\"3.6.1\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"3.6.1\",\"@types/node\":\"^12.7.5\",\"downlevel-dts\":\"0.7.0\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.19.2\",\"typescript\":\"~4.1.2\"},\"engines\":{\"node\":\">=10.0.0\"},\"typesVersions\":{\"<4.0\":{\"types/*\":[\"types/ts3.4/*\"]}},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\",\"homepage\":\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-personalize-events\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/aws/aws-sdk-js-v3.git\",\"directory\":\"clients/client-personalize-events\"}}");
16025
16026/***/ }),
16027
16028/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js":
16029/*!***********************************************************************************************************!*\
16030 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/protocols/Aws_restJson1.js ***!
16031 \***********************************************************************************************************/
16032/*! exports provided: serializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutItemsCommand, serializeAws_restJson1PutUsersCommand, deserializeAws_restJson1PutEventsCommand, deserializeAws_restJson1PutItemsCommand, deserializeAws_restJson1PutUsersCommand */
16033/***/ (function(module, __webpack_exports__, __webpack_require__) {
16034
16035"use strict";
16036__webpack_require__.r(__webpack_exports__);
16037/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventsCommand", function() { return serializeAws_restJson1PutEventsCommand; });
16038/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutItemsCommand", function() { return serializeAws_restJson1PutItemsCommand; });
16039/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutUsersCommand", function() { return serializeAws_restJson1PutUsersCommand; });
16040/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventsCommand", function() { return deserializeAws_restJson1PutEventsCommand; });
16041/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutItemsCommand", function() { return deserializeAws_restJson1PutItemsCommand; });
16042/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutUsersCommand", function() { return deserializeAws_restJson1PutUsersCommand; });
16043/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
16044/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
16045/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
16046
16047
16048
16049var serializeAws_restJson1PutEventsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16050 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
16051 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
16052 switch (_c.label) {
16053 case 0:
16054 headers = {
16055 "content-type": "application/json",
16056 };
16057 resolvedPath = "/events";
16058 body = JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.eventList !== undefined &&
16059 input.eventList !== null && { eventList: serializeAws_restJson1EventList(input.eventList, context) })), (input.sessionId !== undefined && input.sessionId !== null && { sessionId: input.sessionId })), (input.trackingId !== undefined && input.trackingId !== null && { trackingId: input.trackingId })), (input.userId !== undefined && input.userId !== null && { userId: input.userId })));
16060 return [4 /*yield*/, context.endpoint()];
16061 case 1:
16062 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
16063 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
16064 protocol: protocol,
16065 hostname: hostname,
16066 port: port,
16067 method: "POST",
16068 headers: headers,
16069 path: resolvedPath,
16070 body: body,
16071 })];
16072 }
16073 });
16074}); };
16075var serializeAws_restJson1PutItemsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16076 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
16077 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
16078 switch (_c.label) {
16079 case 0:
16080 headers = {
16081 "content-type": "application/json",
16082 };
16083 resolvedPath = "/items";
16084 body = JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn })), (input.items !== undefined &&
16085 input.items !== null && { items: serializeAws_restJson1ItemList(input.items, context) })));
16086 return [4 /*yield*/, context.endpoint()];
16087 case 1:
16088 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
16089 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
16090 protocol: protocol,
16091 hostname: hostname,
16092 port: port,
16093 method: "POST",
16094 headers: headers,
16095 path: resolvedPath,
16096 body: body,
16097 })];
16098 }
16099 });
16100}); };
16101var serializeAws_restJson1PutUsersCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16102 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
16103 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
16104 switch (_c.label) {
16105 case 0:
16106 headers = {
16107 "content-type": "application/json",
16108 };
16109 resolvedPath = "/users";
16110 body = JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn })), (input.users !== undefined &&
16111 input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) })));
16112 return [4 /*yield*/, context.endpoint()];
16113 case 1:
16114 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
16115 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
16116 protocol: protocol,
16117 hostname: hostname,
16118 port: port,
16119 method: "POST",
16120 headers: headers,
16121 path: resolvedPath,
16122 body: body,
16123 })];
16124 }
16125 });
16126}); };
16127var deserializeAws_restJson1PutEventsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16128 var contents;
16129 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16130 switch (_a.label) {
16131 case 0:
16132 if (output.statusCode !== 200 && output.statusCode >= 300) {
16133 return [2 /*return*/, deserializeAws_restJson1PutEventsCommandError(output, context)];
16134 }
16135 contents = {
16136 $metadata: deserializeMetadata(output),
16137 };
16138 return [4 /*yield*/, collectBody(output.body, context)];
16139 case 1:
16140 _a.sent();
16141 return [2 /*return*/, Promise.resolve(contents)];
16142 }
16143 });
16144}); };
16145var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16146 var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
16147 var _d;
16148 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
16149 switch (_e.label) {
16150 case 0:
16151 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
16152 _d = {};
16153 return [4 /*yield*/, parseBody(output.body, context)];
16154 case 1:
16155 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
16156 errorCode = "UnknownError";
16157 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16158 _b = errorCode;
16159 switch (_b) {
16160 case "InvalidInputException": return [3 /*break*/, 2];
16161 case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2];
16162 }
16163 return [3 /*break*/, 4];
16164 case 2:
16165 _c = [{}];
16166 return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
16167 case 3:
16168 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16169 return [3 /*break*/, 5];
16170 case 4:
16171 parsedBody = parsedOutput.body;
16172 errorCode = parsedBody.code || parsedBody.Code || errorCode;
16173 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
16174 _e.label = 5;
16175 case 5:
16176 message = response.message || response.Message || errorCode;
16177 response.message = message;
16178 delete response.Message;
16179 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
16180 }
16181 });
16182}); };
16183var deserializeAws_restJson1PutItemsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16184 var contents;
16185 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16186 switch (_a.label) {
16187 case 0:
16188 if (output.statusCode !== 200 && output.statusCode >= 300) {
16189 return [2 /*return*/, deserializeAws_restJson1PutItemsCommandError(output, context)];
16190 }
16191 contents = {
16192 $metadata: deserializeMetadata(output),
16193 };
16194 return [4 /*yield*/, collectBody(output.body, context)];
16195 case 1:
16196 _a.sent();
16197 return [2 /*return*/, Promise.resolve(contents)];
16198 }
16199 });
16200}); };
16201var deserializeAws_restJson1PutItemsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16202 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
16203 var _e;
16204 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
16205 switch (_f.label) {
16206 case 0:
16207 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
16208 _e = {};
16209 return [4 /*yield*/, parseBody(output.body, context)];
16210 case 1:
16211 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
16212 errorCode = "UnknownError";
16213 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16214 _b = errorCode;
16215 switch (_b) {
16216 case "InvalidInputException": return [3 /*break*/, 2];
16217 case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2];
16218 case "ResourceNotFoundException": return [3 /*break*/, 4];
16219 case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3 /*break*/, 4];
16220 }
16221 return [3 /*break*/, 6];
16222 case 2:
16223 _c = [{}];
16224 return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
16225 case 3:
16226 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16227 return [3 /*break*/, 7];
16228 case 4:
16229 _d = [{}];
16230 return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
16231 case 5:
16232 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16233 return [3 /*break*/, 7];
16234 case 6:
16235 parsedBody = parsedOutput.body;
16236 errorCode = parsedBody.code || parsedBody.Code || errorCode;
16237 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
16238 _f.label = 7;
16239 case 7:
16240 message = response.message || response.Message || errorCode;
16241 response.message = message;
16242 delete response.Message;
16243 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
16244 }
16245 });
16246}); };
16247var deserializeAws_restJson1PutUsersCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16248 var contents;
16249 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16250 switch (_a.label) {
16251 case 0:
16252 if (output.statusCode !== 200 && output.statusCode >= 300) {
16253 return [2 /*return*/, deserializeAws_restJson1PutUsersCommandError(output, context)];
16254 }
16255 contents = {
16256 $metadata: deserializeMetadata(output),
16257 };
16258 return [4 /*yield*/, collectBody(output.body, context)];
16259 case 1:
16260 _a.sent();
16261 return [2 /*return*/, Promise.resolve(contents)];
16262 }
16263 });
16264}); };
16265var deserializeAws_restJson1PutUsersCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16266 var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
16267 var _e;
16268 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
16269 switch (_f.label) {
16270 case 0:
16271 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
16272 _e = {};
16273 return [4 /*yield*/, parseBody(output.body, context)];
16274 case 1:
16275 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
16276 errorCode = "UnknownError";
16277 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16278 _b = errorCode;
16279 switch (_b) {
16280 case "InvalidInputException": return [3 /*break*/, 2];
16281 case "com.amazonaws.personalizeevents#InvalidInputException": return [3 /*break*/, 2];
16282 case "ResourceNotFoundException": return [3 /*break*/, 4];
16283 case "com.amazonaws.personalizeevents#ResourceNotFoundException": return [3 /*break*/, 4];
16284 }
16285 return [3 /*break*/, 6];
16286 case 2:
16287 _c = [{}];
16288 return [4 /*yield*/, deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)];
16289 case 3:
16290 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16291 return [3 /*break*/, 7];
16292 case 4:
16293 _d = [{}];
16294 return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
16295 case 5:
16296 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16297 return [3 /*break*/, 7];
16298 case 6:
16299 parsedBody = parsedOutput.body;
16300 errorCode = parsedBody.code || parsedBody.Code || errorCode;
16301 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
16302 _f.label = 7;
16303 case 7:
16304 message = response.message || response.Message || errorCode;
16305 response.message = message;
16306 delete response.Message;
16307 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
16308 }
16309 });
16310}); };
16311var deserializeAws_restJson1InvalidInputExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16312 var contents, data;
16313 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16314 contents = {
16315 name: "InvalidInputException",
16316 $fault: "client",
16317 $metadata: deserializeMetadata(parsedOutput),
16318 message: undefined,
16319 };
16320 data = parsedOutput.body;
16321 if (data.message !== undefined && data.message !== null) {
16322 contents.message = data.message;
16323 }
16324 return [2 /*return*/, contents];
16325 });
16326}); };
16327var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
16328 var contents, data;
16329 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
16330 contents = {
16331 name: "ResourceNotFoundException",
16332 $fault: "client",
16333 $metadata: deserializeMetadata(parsedOutput),
16334 message: undefined,
16335 };
16336 data = parsedOutput.body;
16337 if (data.message !== undefined && data.message !== null) {
16338 contents.message = data.message;
16339 }
16340 return [2 /*return*/, contents];
16341 });
16342}); };
16343var serializeAws_restJson1Event = function (input, context) {
16344 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType })), (input.eventValue !== undefined && input.eventValue !== null && { eventValue: input.eventValue })), (input.impression !== undefined &&
16345 input.impression !== null && { impression: serializeAws_restJson1Impression(input.impression, context) })), (input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId })), (input.properties !== undefined &&
16346 input.properties !== null && { properties: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.properties) })), (input.recommendationId !== undefined &&
16347 input.recommendationId !== null && { recommendationId: input.recommendationId })), (input.sentAt !== undefined && input.sentAt !== null && { sentAt: Math.round(input.sentAt.getTime() / 1000) }));
16348};
16349var serializeAws_restJson1EventList = function (input, context) {
16350 return input
16351 .filter(function (e) { return e != null; })
16352 .map(function (entry) {
16353 if (entry === null) {
16354 return null;
16355 }
16356 return serializeAws_restJson1Event(entry, context);
16357 });
16358};
16359var serializeAws_restJson1Impression = function (input, context) {
16360 return input
16361 .filter(function (e) { return e != null; })
16362 .map(function (entry) {
16363 if (entry === null) {
16364 return null;
16365 }
16366 return entry;
16367 });
16368};
16369var serializeAws_restJson1Item = function (input, context) {
16370 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.itemId !== undefined && input.itemId !== null && { itemId: input.itemId })), (input.properties !== undefined &&
16371 input.properties !== null && { properties: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.properties) }));
16372};
16373var serializeAws_restJson1ItemList = function (input, context) {
16374 return input
16375 .filter(function (e) { return e != null; })
16376 .map(function (entry) {
16377 if (entry === null) {
16378 return null;
16379 }
16380 return serializeAws_restJson1Item(entry, context);
16381 });
16382};
16383var serializeAws_restJson1User = function (input, context) {
16384 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.properties !== undefined &&
16385 input.properties !== null && { properties: _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["LazyJsonString"].fromObject(input.properties) })), (input.userId !== undefined && input.userId !== null && { userId: input.userId }));
16386};
16387var serializeAws_restJson1UserList = function (input, context) {
16388 return input
16389 .filter(function (e) { return e != null; })
16390 .map(function (entry) {
16391 if (entry === null) {
16392 return null;
16393 }
16394 return serializeAws_restJson1User(entry, context);
16395 });
16396};
16397var deserializeMetadata = function (output) {
16398 var _a;
16399 return ({
16400 httpStatusCode: output.statusCode,
16401 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
16402 extendedRequestId: output.headers["x-amz-id-2"],
16403 cfId: output.headers["x-amz-cf-id"],
16404 });
16405};
16406// Collect low-level response body stream to Uint8Array.
16407var collectBody = function (streamBody, context) {
16408 if (streamBody === void 0) { streamBody = new Uint8Array(); }
16409 if (streamBody instanceof Uint8Array) {
16410 return Promise.resolve(streamBody);
16411 }
16412 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
16413};
16414// Encode Uint8Array data into string with utf-8.
16415var collectBodyString = function (streamBody, context) {
16416 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
16417};
16418var isSerializableHeaderValue = function (value) {
16419 return value !== undefined &&
16420 value !== null &&
16421 value !== "" &&
16422 (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
16423 (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
16424};
16425var parseBody = function (streamBody, context) {
16426 return collectBodyString(streamBody, context).then(function (encoded) {
16427 if (encoded.length) {
16428 return JSON.parse(encoded);
16429 }
16430 return {};
16431 });
16432};
16433/**
16434 * Load an error code for the aws.rest-json-1.1 protocol.
16435 */
16436var loadRestJsonErrorCode = function (output, data) {
16437 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
16438 var sanitizeErrorCode = function (rawValue) {
16439 var cleanValue = rawValue;
16440 if (cleanValue.indexOf(":") >= 0) {
16441 cleanValue = cleanValue.split(":")[0];
16442 }
16443 if (cleanValue.indexOf("#") >= 0) {
16444 cleanValue = cleanValue.split("#")[1];
16445 }
16446 return cleanValue;
16447 };
16448 var headerKey = findKey(output.headers, "x-amzn-errortype");
16449 if (headerKey !== undefined) {
16450 return sanitizeErrorCode(output.headers[headerKey]);
16451 }
16452 if (data.code !== undefined) {
16453 return sanitizeErrorCode(data.code);
16454 }
16455 if (data["__type"] !== undefined) {
16456 return sanitizeErrorCode(data["__type"]);
16457 }
16458 return "";
16459};
16460//# sourceMappingURL=Aws_restJson1.js.map
16461
16462/***/ }),
16463
16464/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js":
16465/*!*********************************************************************************************************!*\
16466 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.browser.js ***!
16467 \*********************************************************************************************************/
16468/*! exports provided: ClientDefaultValues */
16469/***/ (function(module, __webpack_exports__, __webpack_require__) {
16470
16471"use strict";
16472__webpack_require__.r(__webpack_exports__);
16473/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
16474/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js");
16475/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/package.json");
16476var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/package.json", 1);
16477/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "../../node_modules/@aws-crypto/sha256-browser/build/index.js");
16478/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
16479/* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js");
16480/* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/index.js");
16481/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
16482/* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js");
16483/* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "../../node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js");
16484/* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "../../node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js");
16485/* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
16486/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.shared.js");
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498/**
16499 * @internal
16500 */
16501var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_7__["calculateBodyLength"], credentialDefaultProvider: function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }, defaultUserAgentProvider: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_8__["defaultUserAgent"])({
16502 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"].serviceId,
16503 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
16504 }), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidProvider"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__["toUtf8"] });
16505//# sourceMappingURL=runtimeConfig.browser.js.map
16506
16507/***/ }),
16508
16509/***/ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.shared.js":
16510/*!********************************************************************************************************!*\
16511 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/dist/es/runtimeConfig.shared.js ***!
16512 \********************************************************************************************************/
16513/*! exports provided: ClientSharedValues */
16514/***/ (function(module, __webpack_exports__, __webpack_require__) {
16515
16516"use strict";
16517__webpack_require__.r(__webpack_exports__);
16518/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
16519/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/endpoints.js");
16520/* harmony import */ var _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/url-parser */ "../../node_modules/@aws-sdk/url-parser/dist/es/index.js");
16521
16522
16523/**
16524 * @internal
16525 */
16526var ClientSharedValues = {
16527 apiVersion: "2018-03-22",
16528 disableHostPrefix: false,
16529 logger: {},
16530 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
16531 serviceId: "Personalize Events",
16532 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
16533};
16534//# sourceMappingURL=runtimeConfig.shared.js.map
16535
16536/***/ }),
16537
16538/***/ "../../node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js":
16539/*!********************************************************************************************************!*\
16540 !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js ***!
16541 \********************************************************************************************************/
16542/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
16543/***/ (function(module, __webpack_exports__, __webpack_require__) {
16544
16545"use strict";
16546__webpack_require__.r(__webpack_exports__);
16547/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
16548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
16549/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
16550/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
16551/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
16552/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
16553/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
16554/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
16555/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
16556/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
16557/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
16558/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
16559/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
16560/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
16561/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
16562/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
16563/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
16564/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
16565/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
16566/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
16567/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
16568/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
16569/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
16570/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
16571/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
16572/******************************************************************************
16573Copyright (c) Microsoft Corporation.
16574
16575Permission to use, copy, modify, and/or distribute this software for any
16576purpose with or without fee is hereby granted.
16577
16578THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16579REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16580AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16581INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16582LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16583OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16584PERFORMANCE OF THIS SOFTWARE.
16585***************************************************************************** */
16586/* global Reflect, Promise */
16587
16588var extendStatics = function(d, b) {
16589 extendStatics = Object.setPrototypeOf ||
16590 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16591 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
16592 return extendStatics(d, b);
16593};
16594
16595function __extends(d, b) {
16596 if (typeof b !== "function" && b !== null)
16597 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16598 extendStatics(d, b);
16599 function __() { this.constructor = d; }
16600 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16601}
16602
16603var __assign = function() {
16604 __assign = Object.assign || function __assign(t) {
16605 for (var s, i = 1, n = arguments.length; i < n; i++) {
16606 s = arguments[i];
16607 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
16608 }
16609 return t;
16610 }
16611 return __assign.apply(this, arguments);
16612}
16613
16614function __rest(s, e) {
16615 var t = {};
16616 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16617 t[p] = s[p];
16618 if (s != null && typeof Object.getOwnPropertySymbols === "function")
16619 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16620 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
16621 t[p[i]] = s[p[i]];
16622 }
16623 return t;
16624}
16625
16626function __decorate(decorators, target, key, desc) {
16627 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16628 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
16629 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;
16630 return c > 3 && r && Object.defineProperty(target, key, r), r;
16631}
16632
16633function __param(paramIndex, decorator) {
16634 return function (target, key) { decorator(target, key, paramIndex); }
16635}
16636
16637function __metadata(metadataKey, metadataValue) {
16638 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
16639}
16640
16641function __awaiter(thisArg, _arguments, P, generator) {
16642 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16643 return new (P || (P = Promise))(function (resolve, reject) {
16644 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16645 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16646 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
16647 step((generator = generator.apply(thisArg, _arguments || [])).next());
16648 });
16649}
16650
16651function __generator(thisArg, body) {
16652 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
16653 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
16654 function verb(n) { return function (v) { return step([n, v]); }; }
16655 function step(op) {
16656 if (f) throw new TypeError("Generator is already executing.");
16657 while (_) try {
16658 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;
16659 if (y = 0, t) op = [op[0] & 2, t.value];
16660 switch (op[0]) {
16661 case 0: case 1: t = op; break;
16662 case 4: _.label++; return { value: op[1], done: false };
16663 case 5: _.label++; y = op[1]; op = [0]; continue;
16664 case 7: op = _.ops.pop(); _.trys.pop(); continue;
16665 default:
16666 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
16667 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
16668 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
16669 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
16670 if (t[2]) _.ops.pop();
16671 _.trys.pop(); continue;
16672 }
16673 op = body.call(thisArg, _);
16674 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
16675 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
16676 }
16677}
16678
16679var __createBinding = Object.create ? (function(o, m, k, k2) {
16680 if (k2 === undefined) k2 = k;
16681 var desc = Object.getOwnPropertyDescriptor(m, k);
16682 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16683 desc = { enumerable: true, get: function() { return m[k]; } };
16684 }
16685 Object.defineProperty(o, k2, desc);
16686}) : (function(o, m, k, k2) {
16687 if (k2 === undefined) k2 = k;
16688 o[k2] = m[k];
16689});
16690
16691function __exportStar(m, o) {
16692 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
16693}
16694
16695function __values(o) {
16696 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
16697 if (m) return m.call(o);
16698 if (o && typeof o.length === "number") return {
16699 next: function () {
16700 if (o && i >= o.length) o = void 0;
16701 return { value: o && o[i++], done: !o };
16702 }
16703 };
16704 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
16705}
16706
16707function __read(o, n) {
16708 var m = typeof Symbol === "function" && o[Symbol.iterator];
16709 if (!m) return o;
16710 var i = m.call(o), r, ar = [], e;
16711 try {
16712 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
16713 }
16714 catch (error) { e = { error: error }; }
16715 finally {
16716 try {
16717 if (r && !r.done && (m = i["return"])) m.call(i);
16718 }
16719 finally { if (e) throw e.error; }
16720 }
16721 return ar;
16722}
16723
16724/** @deprecated */
16725function __spread() {
16726 for (var ar = [], i = 0; i < arguments.length; i++)
16727 ar = ar.concat(__read(arguments[i]));
16728 return ar;
16729}
16730
16731/** @deprecated */
16732function __spreadArrays() {
16733 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
16734 for (var r = Array(s), k = 0, i = 0; i < il; i++)
16735 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
16736 r[k] = a[j];
16737 return r;
16738}
16739
16740function __spreadArray(to, from, pack) {
16741 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
16742 if (ar || !(i in from)) {
16743 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16744 ar[i] = from[i];
16745 }
16746 }
16747 return to.concat(ar || Array.prototype.slice.call(from));
16748}
16749
16750function __await(v) {
16751 return this instanceof __await ? (this.v = v, this) : new __await(v);
16752}
16753
16754function __asyncGenerator(thisArg, _arguments, generator) {
16755 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
16756 var g = generator.apply(thisArg, _arguments || []), i, q = [];
16757 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
16758 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); }); }; }
16759 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
16760 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
16761 function fulfill(value) { resume("next", value); }
16762 function reject(value) { resume("throw", value); }
16763 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
16764}
16765
16766function __asyncDelegator(o) {
16767 var i, p;
16768 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
16769 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; }
16770}
16771
16772function __asyncValues(o) {
16773 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
16774 var m = o[Symbol.asyncIterator], i;
16775 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);
16776 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); }); }; }
16777 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
16778}
16779
16780function __makeTemplateObject(cooked, raw) {
16781 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
16782 return cooked;
16783};
16784
16785var __setModuleDefault = Object.create ? (function(o, v) {
16786 Object.defineProperty(o, "default", { enumerable: true, value: v });
16787}) : function(o, v) {
16788 o["default"] = v;
16789};
16790
16791function __importStar(mod) {
16792 if (mod && mod.__esModule) return mod;
16793 var result = {};
16794 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
16795 __setModuleDefault(result, mod);
16796 return result;
16797}
16798
16799function __importDefault(mod) {
16800 return (mod && mod.__esModule) ? mod : { default: mod };
16801}
16802
16803function __classPrivateFieldGet(receiver, state, kind, f) {
16804 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16805 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");
16806 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16807}
16808
16809function __classPrivateFieldSet(receiver, state, value, kind, f) {
16810 if (kind === "m") throw new TypeError("Private method is not writable");
16811 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16812 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");
16813 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16814}
16815
16816function __classPrivateFieldIn(state, receiver) {
16817 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
16818 return typeof state === "function" ? receiver === state : state.has(receiver);
16819}
16820
16821
16822/***/ }),
16823
16824/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js":
16825/*!**********************************************************************************!*\
16826 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js ***!
16827 \**********************************************************************************/
16828/*! exports provided: Pinpoint */
16829/***/ (function(module, __webpack_exports__, __webpack_require__) {
16830
16831"use strict";
16832__webpack_require__.r(__webpack_exports__);
16833/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pinpoint", function() { return Pinpoint; });
16834/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
16835/* harmony import */ var _PinpointClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PinpointClient */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js");
16836/* harmony import */ var _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js");
16837/* harmony import */ var _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js");
16838/* harmony import */ var _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js");
16839/* harmony import */ var _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js");
16840/* harmony import */ var _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js");
16841/* harmony import */ var _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/CreateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js");
16842/* harmony import */ var _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js");
16843/* harmony import */ var _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js");
16844/* harmony import */ var _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js");
16845/* harmony import */ var _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/CreateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js");
16846/* harmony import */ var _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/CreateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js");
16847/* harmony import */ var _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js");
16848/* harmony import */ var _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js");
16849/* harmony import */ var _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js");
16850/* harmony import */ var _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js");
16851/* harmony import */ var _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js");
16852/* harmony import */ var _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js");
16853/* harmony import */ var _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js");
16854/* harmony import */ var _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js");
16855/* harmony import */ var _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeleteEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js");
16856/* harmony import */ var _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DeleteEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js");
16857/* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js");
16858/* harmony import */ var _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DeleteEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js");
16859/* harmony import */ var _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DeleteGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js");
16860/* harmony import */ var _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DeleteJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js");
16861/* harmony import */ var _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DeletePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js");
16862/* harmony import */ var _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/DeleteRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js");
16863/* harmony import */ var _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/DeleteSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js");
16864/* harmony import */ var _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/DeleteSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js");
16865/* harmony import */ var _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/DeleteSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js");
16866/* harmony import */ var _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/DeleteUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js");
16867/* harmony import */ var _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/DeleteVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js");
16868/* harmony import */ var _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/DeleteVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js");
16869/* harmony import */ var _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js");
16870/* harmony import */ var _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js");
16871/* harmony import */ var _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js");
16872/* harmony import */ var _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js");
16873/* harmony import */ var _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js");
16874/* harmony import */ var _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js");
16875/* harmony import */ var _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetApplicationDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js");
16876/* harmony import */ var _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js");
16877/* harmony import */ var _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetAppsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js");
16878/* harmony import */ var _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js");
16879/* harmony import */ var _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetCampaignActivitiesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js");
16880/* harmony import */ var _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js");
16881/* harmony import */ var _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetCampaignDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js");
16882/* harmony import */ var _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/GetCampaignVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js");
16883/* harmony import */ var _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/GetCampaignVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js");
16884/* harmony import */ var _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/GetCampaignsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js");
16885/* harmony import */ var _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/GetChannelsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js");
16886/* harmony import */ var _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/GetEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js");
16887/* harmony import */ var _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/GetEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js");
16888/* harmony import */ var _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/GetEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js");
16889/* harmony import */ var _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/GetEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js");
16890/* harmony import */ var _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/GetExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js");
16891/* harmony import */ var _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/GetExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js");
16892/* harmony import */ var _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/GetGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js");
16893/* harmony import */ var _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/GetImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js");
16894/* harmony import */ var _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/GetImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js");
16895/* harmony import */ var _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/GetJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js");
16896/* harmony import */ var _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/GetJourneyDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js");
16897/* harmony import */ var _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/GetJourneyExecutionActivityMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js");
16898/* harmony import */ var _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/GetJourneyExecutionMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js");
16899/* harmony import */ var _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/GetPushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js");
16900/* harmony import */ var _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js");
16901/* harmony import */ var _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js");
16902/* harmony import */ var _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/GetSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js");
16903/* harmony import */ var _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/GetSegmentExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js");
16904/* harmony import */ var _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/GetSegmentImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js");
16905/* harmony import */ var _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/GetSegmentVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js");
16906/* harmony import */ var _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/GetSegmentVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js");
16907/* harmony import */ var _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/GetSegmentsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js");
16908/* harmony import */ var _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/GetSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js");
16909/* harmony import */ var _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/GetSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js");
16910/* harmony import */ var _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/GetUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js");
16911/* harmony import */ var _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/GetVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js");
16912/* harmony import */ var _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/GetVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js");
16913/* harmony import */ var _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/ListJourneysCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js");
16914/* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js");
16915/* harmony import */ var _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/ListTemplateVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js");
16916/* harmony import */ var _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/ListTemplatesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js");
16917/* harmony import */ var _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/PhoneNumberValidateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js");
16918/* harmony import */ var _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/PutEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js");
16919/* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js");
16920/* harmony import */ var _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/RemoveAttributesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js");
16921/* harmony import */ var _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./commands/SendMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js");
16922/* harmony import */ var _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./commands/SendUsersMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js");
16923/* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js");
16924/* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js");
16925/* harmony import */ var _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./commands/UpdateAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js");
16926/* harmony import */ var _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./commands/UpdateApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js");
16927/* harmony import */ var _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./commands/UpdateApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js");
16928/* harmony import */ var _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./commands/UpdateApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js");
16929/* harmony import */ var _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./commands/UpdateApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js");
16930/* harmony import */ var _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./commands/UpdateApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js");
16931/* harmony import */ var _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./commands/UpdateBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js");
16932/* harmony import */ var _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./commands/UpdateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js");
16933/* harmony import */ var _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./commands/UpdateEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js");
16934/* harmony import */ var _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./commands/UpdateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js");
16935/* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js");
16936/* harmony import */ var _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./commands/UpdateEndpointsBatchCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js");
16937/* harmony import */ var _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./commands/UpdateGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js");
16938/* harmony import */ var _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./commands/UpdateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js");
16939/* harmony import */ var _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./commands/UpdateJourneyStateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js");
16940/* harmony import */ var _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./commands/UpdatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js");
16941/* harmony import */ var _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./commands/UpdateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js");
16942/* harmony import */ var _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./commands/UpdateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js");
16943/* harmony import */ var _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./commands/UpdateSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js");
16944/* harmony import */ var _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./commands/UpdateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js");
16945/* harmony import */ var _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./commands/UpdateTemplateActiveVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js");
16946/* harmony import */ var _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./commands/UpdateVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js");
16947/* harmony import */ var _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./commands/UpdateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js");
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062/**
17063 * <p>Doc Engage API - Amazon Pinpoint API</p>
17064 */
17065var Pinpoint = /** @class */ (function (_super) {
17066 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Pinpoint, _super);
17067 function Pinpoint() {
17068 return _super !== null && _super.apply(this, arguments) || this;
17069 }
17070 Pinpoint.prototype.createApp = function (args, optionsOrCb, cb) {
17071 var command = new _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__["CreateAppCommand"](args);
17072 if (typeof optionsOrCb === "function") {
17073 this.send(command, optionsOrCb);
17074 }
17075 else if (typeof cb === "function") {
17076 if (typeof optionsOrCb !== "object")
17077 throw new Error("Expect http options but get " + typeof optionsOrCb);
17078 this.send(command, optionsOrCb || {}, cb);
17079 }
17080 else {
17081 return this.send(command, optionsOrCb);
17082 }
17083 };
17084 Pinpoint.prototype.createCampaign = function (args, optionsOrCb, cb) {
17085 var command = new _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCampaignCommand"](args);
17086 if (typeof optionsOrCb === "function") {
17087 this.send(command, optionsOrCb);
17088 }
17089 else if (typeof cb === "function") {
17090 if (typeof optionsOrCb !== "object")
17091 throw new Error("Expect http options but get " + typeof optionsOrCb);
17092 this.send(command, optionsOrCb || {}, cb);
17093 }
17094 else {
17095 return this.send(command, optionsOrCb);
17096 }
17097 };
17098 Pinpoint.prototype.createEmailTemplate = function (args, optionsOrCb, cb) {
17099 var command = new _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__["CreateEmailTemplateCommand"](args);
17100 if (typeof optionsOrCb === "function") {
17101 this.send(command, optionsOrCb);
17102 }
17103 else if (typeof cb === "function") {
17104 if (typeof optionsOrCb !== "object")
17105 throw new Error("Expect http options but get " + typeof optionsOrCb);
17106 this.send(command, optionsOrCb || {}, cb);
17107 }
17108 else {
17109 return this.send(command, optionsOrCb);
17110 }
17111 };
17112 Pinpoint.prototype.createExportJob = function (args, optionsOrCb, cb) {
17113 var command = new _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__["CreateExportJobCommand"](args);
17114 if (typeof optionsOrCb === "function") {
17115 this.send(command, optionsOrCb);
17116 }
17117 else if (typeof cb === "function") {
17118 if (typeof optionsOrCb !== "object")
17119 throw new Error("Expect http options but get " + typeof optionsOrCb);
17120 this.send(command, optionsOrCb || {}, cb);
17121 }
17122 else {
17123 return this.send(command, optionsOrCb);
17124 }
17125 };
17126 Pinpoint.prototype.createImportJob = function (args, optionsOrCb, cb) {
17127 var command = new _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__["CreateImportJobCommand"](args);
17128 if (typeof optionsOrCb === "function") {
17129 this.send(command, optionsOrCb);
17130 }
17131 else if (typeof cb === "function") {
17132 if (typeof optionsOrCb !== "object")
17133 throw new Error("Expect http options but get " + typeof optionsOrCb);
17134 this.send(command, optionsOrCb || {}, cb);
17135 }
17136 else {
17137 return this.send(command, optionsOrCb);
17138 }
17139 };
17140 Pinpoint.prototype.createJourney = function (args, optionsOrCb, cb) {
17141 var command = new _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__["CreateJourneyCommand"](args);
17142 if (typeof optionsOrCb === "function") {
17143 this.send(command, optionsOrCb);
17144 }
17145 else if (typeof cb === "function") {
17146 if (typeof optionsOrCb !== "object")
17147 throw new Error("Expect http options but get " + typeof optionsOrCb);
17148 this.send(command, optionsOrCb || {}, cb);
17149 }
17150 else {
17151 return this.send(command, optionsOrCb);
17152 }
17153 };
17154 Pinpoint.prototype.createPushTemplate = function (args, optionsOrCb, cb) {
17155 var command = new _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__["CreatePushTemplateCommand"](args);
17156 if (typeof optionsOrCb === "function") {
17157 this.send(command, optionsOrCb);
17158 }
17159 else if (typeof cb === "function") {
17160 if (typeof optionsOrCb !== "object")
17161 throw new Error("Expect http options but get " + typeof optionsOrCb);
17162 this.send(command, optionsOrCb || {}, cb);
17163 }
17164 else {
17165 return this.send(command, optionsOrCb);
17166 }
17167 };
17168 Pinpoint.prototype.createRecommenderConfiguration = function (args, optionsOrCb, cb) {
17169 var command = new _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__["CreateRecommenderConfigurationCommand"](args);
17170 if (typeof optionsOrCb === "function") {
17171 this.send(command, optionsOrCb);
17172 }
17173 else if (typeof cb === "function") {
17174 if (typeof optionsOrCb !== "object")
17175 throw new Error("Expect http options but get " + typeof optionsOrCb);
17176 this.send(command, optionsOrCb || {}, cb);
17177 }
17178 else {
17179 return this.send(command, optionsOrCb);
17180 }
17181 };
17182 Pinpoint.prototype.createSegment = function (args, optionsOrCb, cb) {
17183 var command = new _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__["CreateSegmentCommand"](args);
17184 if (typeof optionsOrCb === "function") {
17185 this.send(command, optionsOrCb);
17186 }
17187 else if (typeof cb === "function") {
17188 if (typeof optionsOrCb !== "object")
17189 throw new Error("Expect http options but get " + typeof optionsOrCb);
17190 this.send(command, optionsOrCb || {}, cb);
17191 }
17192 else {
17193 return this.send(command, optionsOrCb);
17194 }
17195 };
17196 Pinpoint.prototype.createSmsTemplate = function (args, optionsOrCb, cb) {
17197 var command = new _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__["CreateSmsTemplateCommand"](args);
17198 if (typeof optionsOrCb === "function") {
17199 this.send(command, optionsOrCb);
17200 }
17201 else if (typeof cb === "function") {
17202 if (typeof optionsOrCb !== "object")
17203 throw new Error("Expect http options but get " + typeof optionsOrCb);
17204 this.send(command, optionsOrCb || {}, cb);
17205 }
17206 else {
17207 return this.send(command, optionsOrCb);
17208 }
17209 };
17210 Pinpoint.prototype.createVoiceTemplate = function (args, optionsOrCb, cb) {
17211 var command = new _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__["CreateVoiceTemplateCommand"](args);
17212 if (typeof optionsOrCb === "function") {
17213 this.send(command, optionsOrCb);
17214 }
17215 else if (typeof cb === "function") {
17216 if (typeof optionsOrCb !== "object")
17217 throw new Error("Expect http options but get " + typeof optionsOrCb);
17218 this.send(command, optionsOrCb || {}, cb);
17219 }
17220 else {
17221 return this.send(command, optionsOrCb);
17222 }
17223 };
17224 Pinpoint.prototype.deleteAdmChannel = function (args, optionsOrCb, cb) {
17225 var command = new _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteAdmChannelCommand"](args);
17226 if (typeof optionsOrCb === "function") {
17227 this.send(command, optionsOrCb);
17228 }
17229 else if (typeof cb === "function") {
17230 if (typeof optionsOrCb !== "object")
17231 throw new Error("Expect http options but get " + typeof optionsOrCb);
17232 this.send(command, optionsOrCb || {}, cb);
17233 }
17234 else {
17235 return this.send(command, optionsOrCb);
17236 }
17237 };
17238 Pinpoint.prototype.deleteApnsChannel = function (args, optionsOrCb, cb) {
17239 var command = new _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteApnsChannelCommand"](args);
17240 if (typeof optionsOrCb === "function") {
17241 this.send(command, optionsOrCb);
17242 }
17243 else if (typeof cb === "function") {
17244 if (typeof optionsOrCb !== "object")
17245 throw new Error("Expect http options but get " + typeof optionsOrCb);
17246 this.send(command, optionsOrCb || {}, cb);
17247 }
17248 else {
17249 return this.send(command, optionsOrCb);
17250 }
17251 };
17252 Pinpoint.prototype.deleteApnsSandboxChannel = function (args, optionsOrCb, cb) {
17253 var command = new _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteApnsSandboxChannelCommand"](args);
17254 if (typeof optionsOrCb === "function") {
17255 this.send(command, optionsOrCb);
17256 }
17257 else if (typeof cb === "function") {
17258 if (typeof optionsOrCb !== "object")
17259 throw new Error("Expect http options but get " + typeof optionsOrCb);
17260 this.send(command, optionsOrCb || {}, cb);
17261 }
17262 else {
17263 return this.send(command, optionsOrCb);
17264 }
17265 };
17266 Pinpoint.prototype.deleteApnsVoipChannel = function (args, optionsOrCb, cb) {
17267 var command = new _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteApnsVoipChannelCommand"](args);
17268 if (typeof optionsOrCb === "function") {
17269 this.send(command, optionsOrCb);
17270 }
17271 else if (typeof cb === "function") {
17272 if (typeof optionsOrCb !== "object")
17273 throw new Error("Expect http options but get " + typeof optionsOrCb);
17274 this.send(command, optionsOrCb || {}, cb);
17275 }
17276 else {
17277 return this.send(command, optionsOrCb);
17278 }
17279 };
17280 Pinpoint.prototype.deleteApnsVoipSandboxChannel = function (args, optionsOrCb, cb) {
17281 var command = new _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteApnsVoipSandboxChannelCommand"](args);
17282 if (typeof optionsOrCb === "function") {
17283 this.send(command, optionsOrCb);
17284 }
17285 else if (typeof cb === "function") {
17286 if (typeof optionsOrCb !== "object")
17287 throw new Error("Expect http options but get " + typeof optionsOrCb);
17288 this.send(command, optionsOrCb || {}, cb);
17289 }
17290 else {
17291 return this.send(command, optionsOrCb);
17292 }
17293 };
17294 Pinpoint.prototype.deleteApp = function (args, optionsOrCb, cb) {
17295 var command = new _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteAppCommand"](args);
17296 if (typeof optionsOrCb === "function") {
17297 this.send(command, optionsOrCb);
17298 }
17299 else if (typeof cb === "function") {
17300 if (typeof optionsOrCb !== "object")
17301 throw new Error("Expect http options but get " + typeof optionsOrCb);
17302 this.send(command, optionsOrCb || {}, cb);
17303 }
17304 else {
17305 return this.send(command, optionsOrCb);
17306 }
17307 };
17308 Pinpoint.prototype.deleteBaiduChannel = function (args, optionsOrCb, cb) {
17309 var command = new _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteBaiduChannelCommand"](args);
17310 if (typeof optionsOrCb === "function") {
17311 this.send(command, optionsOrCb);
17312 }
17313 else if (typeof cb === "function") {
17314 if (typeof optionsOrCb !== "object")
17315 throw new Error("Expect http options but get " + typeof optionsOrCb);
17316 this.send(command, optionsOrCb || {}, cb);
17317 }
17318 else {
17319 return this.send(command, optionsOrCb);
17320 }
17321 };
17322 Pinpoint.prototype.deleteCampaign = function (args, optionsOrCb, cb) {
17323 var command = new _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteCampaignCommand"](args);
17324 if (typeof optionsOrCb === "function") {
17325 this.send(command, optionsOrCb);
17326 }
17327 else if (typeof cb === "function") {
17328 if (typeof optionsOrCb !== "object")
17329 throw new Error("Expect http options but get " + typeof optionsOrCb);
17330 this.send(command, optionsOrCb || {}, cb);
17331 }
17332 else {
17333 return this.send(command, optionsOrCb);
17334 }
17335 };
17336 Pinpoint.prototype.deleteEmailChannel = function (args, optionsOrCb, cb) {
17337 var command = new _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__["DeleteEmailChannelCommand"](args);
17338 if (typeof optionsOrCb === "function") {
17339 this.send(command, optionsOrCb);
17340 }
17341 else if (typeof cb === "function") {
17342 if (typeof optionsOrCb !== "object")
17343 throw new Error("Expect http options but get " + typeof optionsOrCb);
17344 this.send(command, optionsOrCb || {}, cb);
17345 }
17346 else {
17347 return this.send(command, optionsOrCb);
17348 }
17349 };
17350 Pinpoint.prototype.deleteEmailTemplate = function (args, optionsOrCb, cb) {
17351 var command = new _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__["DeleteEmailTemplateCommand"](args);
17352 if (typeof optionsOrCb === "function") {
17353 this.send(command, optionsOrCb);
17354 }
17355 else if (typeof cb === "function") {
17356 if (typeof optionsOrCb !== "object")
17357 throw new Error("Expect http options but get " + typeof optionsOrCb);
17358 this.send(command, optionsOrCb || {}, cb);
17359 }
17360 else {
17361 return this.send(command, optionsOrCb);
17362 }
17363 };
17364 Pinpoint.prototype.deleteEndpoint = function (args, optionsOrCb, cb) {
17365 var command = new _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__["DeleteEndpointCommand"](args);
17366 if (typeof optionsOrCb === "function") {
17367 this.send(command, optionsOrCb);
17368 }
17369 else if (typeof cb === "function") {
17370 if (typeof optionsOrCb !== "object")
17371 throw new Error("Expect http options but get " + typeof optionsOrCb);
17372 this.send(command, optionsOrCb || {}, cb);
17373 }
17374 else {
17375 return this.send(command, optionsOrCb);
17376 }
17377 };
17378 Pinpoint.prototype.deleteEventStream = function (args, optionsOrCb, cb) {
17379 var command = new _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__["DeleteEventStreamCommand"](args);
17380 if (typeof optionsOrCb === "function") {
17381 this.send(command, optionsOrCb);
17382 }
17383 else if (typeof cb === "function") {
17384 if (typeof optionsOrCb !== "object")
17385 throw new Error("Expect http options but get " + typeof optionsOrCb);
17386 this.send(command, optionsOrCb || {}, cb);
17387 }
17388 else {
17389 return this.send(command, optionsOrCb);
17390 }
17391 };
17392 Pinpoint.prototype.deleteGcmChannel = function (args, optionsOrCb, cb) {
17393 var command = new _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__["DeleteGcmChannelCommand"](args);
17394 if (typeof optionsOrCb === "function") {
17395 this.send(command, optionsOrCb);
17396 }
17397 else if (typeof cb === "function") {
17398 if (typeof optionsOrCb !== "object")
17399 throw new Error("Expect http options but get " + typeof optionsOrCb);
17400 this.send(command, optionsOrCb || {}, cb);
17401 }
17402 else {
17403 return this.send(command, optionsOrCb);
17404 }
17405 };
17406 Pinpoint.prototype.deleteJourney = function (args, optionsOrCb, cb) {
17407 var command = new _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__["DeleteJourneyCommand"](args);
17408 if (typeof optionsOrCb === "function") {
17409 this.send(command, optionsOrCb);
17410 }
17411 else if (typeof cb === "function") {
17412 if (typeof optionsOrCb !== "object")
17413 throw new Error("Expect http options but get " + typeof optionsOrCb);
17414 this.send(command, optionsOrCb || {}, cb);
17415 }
17416 else {
17417 return this.send(command, optionsOrCb);
17418 }
17419 };
17420 Pinpoint.prototype.deletePushTemplate = function (args, optionsOrCb, cb) {
17421 var command = new _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__["DeletePushTemplateCommand"](args);
17422 if (typeof optionsOrCb === "function") {
17423 this.send(command, optionsOrCb);
17424 }
17425 else if (typeof cb === "function") {
17426 if (typeof optionsOrCb !== "object")
17427 throw new Error("Expect http options but get " + typeof optionsOrCb);
17428 this.send(command, optionsOrCb || {}, cb);
17429 }
17430 else {
17431 return this.send(command, optionsOrCb);
17432 }
17433 };
17434 Pinpoint.prototype.deleteRecommenderConfiguration = function (args, optionsOrCb, cb) {
17435 var command = new _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["DeleteRecommenderConfigurationCommand"](args);
17436 if (typeof optionsOrCb === "function") {
17437 this.send(command, optionsOrCb);
17438 }
17439 else if (typeof cb === "function") {
17440 if (typeof optionsOrCb !== "object")
17441 throw new Error("Expect http options but get " + typeof optionsOrCb);
17442 this.send(command, optionsOrCb || {}, cb);
17443 }
17444 else {
17445 return this.send(command, optionsOrCb);
17446 }
17447 };
17448 Pinpoint.prototype.deleteSegment = function (args, optionsOrCb, cb) {
17449 var command = new _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__["DeleteSegmentCommand"](args);
17450 if (typeof optionsOrCb === "function") {
17451 this.send(command, optionsOrCb);
17452 }
17453 else if (typeof cb === "function") {
17454 if (typeof optionsOrCb !== "object")
17455 throw new Error("Expect http options but get " + typeof optionsOrCb);
17456 this.send(command, optionsOrCb || {}, cb);
17457 }
17458 else {
17459 return this.send(command, optionsOrCb);
17460 }
17461 };
17462 Pinpoint.prototype.deleteSmsChannel = function (args, optionsOrCb, cb) {
17463 var command = new _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__["DeleteSmsChannelCommand"](args);
17464 if (typeof optionsOrCb === "function") {
17465 this.send(command, optionsOrCb);
17466 }
17467 else if (typeof cb === "function") {
17468 if (typeof optionsOrCb !== "object")
17469 throw new Error("Expect http options but get " + typeof optionsOrCb);
17470 this.send(command, optionsOrCb || {}, cb);
17471 }
17472 else {
17473 return this.send(command, optionsOrCb);
17474 }
17475 };
17476 Pinpoint.prototype.deleteSmsTemplate = function (args, optionsOrCb, cb) {
17477 var command = new _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__["DeleteSmsTemplateCommand"](args);
17478 if (typeof optionsOrCb === "function") {
17479 this.send(command, optionsOrCb);
17480 }
17481 else if (typeof cb === "function") {
17482 if (typeof optionsOrCb !== "object")
17483 throw new Error("Expect http options but get " + typeof optionsOrCb);
17484 this.send(command, optionsOrCb || {}, cb);
17485 }
17486 else {
17487 return this.send(command, optionsOrCb);
17488 }
17489 };
17490 Pinpoint.prototype.deleteUserEndpoints = function (args, optionsOrCb, cb) {
17491 var command = new _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__["DeleteUserEndpointsCommand"](args);
17492 if (typeof optionsOrCb === "function") {
17493 this.send(command, optionsOrCb);
17494 }
17495 else if (typeof cb === "function") {
17496 if (typeof optionsOrCb !== "object")
17497 throw new Error("Expect http options but get " + typeof optionsOrCb);
17498 this.send(command, optionsOrCb || {}, cb);
17499 }
17500 else {
17501 return this.send(command, optionsOrCb);
17502 }
17503 };
17504 Pinpoint.prototype.deleteVoiceChannel = function (args, optionsOrCb, cb) {
17505 var command = new _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__["DeleteVoiceChannelCommand"](args);
17506 if (typeof optionsOrCb === "function") {
17507 this.send(command, optionsOrCb);
17508 }
17509 else if (typeof cb === "function") {
17510 if (typeof optionsOrCb !== "object")
17511 throw new Error("Expect http options but get " + typeof optionsOrCb);
17512 this.send(command, optionsOrCb || {}, cb);
17513 }
17514 else {
17515 return this.send(command, optionsOrCb);
17516 }
17517 };
17518 Pinpoint.prototype.deleteVoiceTemplate = function (args, optionsOrCb, cb) {
17519 var command = new _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__["DeleteVoiceTemplateCommand"](args);
17520 if (typeof optionsOrCb === "function") {
17521 this.send(command, optionsOrCb);
17522 }
17523 else if (typeof cb === "function") {
17524 if (typeof optionsOrCb !== "object")
17525 throw new Error("Expect http options but get " + typeof optionsOrCb);
17526 this.send(command, optionsOrCb || {}, cb);
17527 }
17528 else {
17529 return this.send(command, optionsOrCb);
17530 }
17531 };
17532 Pinpoint.prototype.getAdmChannel = function (args, optionsOrCb, cb) {
17533 var command = new _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__["GetAdmChannelCommand"](args);
17534 if (typeof optionsOrCb === "function") {
17535 this.send(command, optionsOrCb);
17536 }
17537 else if (typeof cb === "function") {
17538 if (typeof optionsOrCb !== "object")
17539 throw new Error("Expect http options but get " + typeof optionsOrCb);
17540 this.send(command, optionsOrCb || {}, cb);
17541 }
17542 else {
17543 return this.send(command, optionsOrCb);
17544 }
17545 };
17546 Pinpoint.prototype.getApnsChannel = function (args, optionsOrCb, cb) {
17547 var command = new _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__["GetApnsChannelCommand"](args);
17548 if (typeof optionsOrCb === "function") {
17549 this.send(command, optionsOrCb);
17550 }
17551 else if (typeof cb === "function") {
17552 if (typeof optionsOrCb !== "object")
17553 throw new Error("Expect http options but get " + typeof optionsOrCb);
17554 this.send(command, optionsOrCb || {}, cb);
17555 }
17556 else {
17557 return this.send(command, optionsOrCb);
17558 }
17559 };
17560 Pinpoint.prototype.getApnsSandboxChannel = function (args, optionsOrCb, cb) {
17561 var command = new _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__["GetApnsSandboxChannelCommand"](args);
17562 if (typeof optionsOrCb === "function") {
17563 this.send(command, optionsOrCb);
17564 }
17565 else if (typeof cb === "function") {
17566 if (typeof optionsOrCb !== "object")
17567 throw new Error("Expect http options but get " + typeof optionsOrCb);
17568 this.send(command, optionsOrCb || {}, cb);
17569 }
17570 else {
17571 return this.send(command, optionsOrCb);
17572 }
17573 };
17574 Pinpoint.prototype.getApnsVoipChannel = function (args, optionsOrCb, cb) {
17575 var command = new _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__["GetApnsVoipChannelCommand"](args);
17576 if (typeof optionsOrCb === "function") {
17577 this.send(command, optionsOrCb);
17578 }
17579 else if (typeof cb === "function") {
17580 if (typeof optionsOrCb !== "object")
17581 throw new Error("Expect http options but get " + typeof optionsOrCb);
17582 this.send(command, optionsOrCb || {}, cb);
17583 }
17584 else {
17585 return this.send(command, optionsOrCb);
17586 }
17587 };
17588 Pinpoint.prototype.getApnsVoipSandboxChannel = function (args, optionsOrCb, cb) {
17589 var command = new _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__["GetApnsVoipSandboxChannelCommand"](args);
17590 if (typeof optionsOrCb === "function") {
17591 this.send(command, optionsOrCb);
17592 }
17593 else if (typeof cb === "function") {
17594 if (typeof optionsOrCb !== "object")
17595 throw new Error("Expect http options but get " + typeof optionsOrCb);
17596 this.send(command, optionsOrCb || {}, cb);
17597 }
17598 else {
17599 return this.send(command, optionsOrCb);
17600 }
17601 };
17602 Pinpoint.prototype.getApp = function (args, optionsOrCb, cb) {
17603 var command = new _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__["GetAppCommand"](args);
17604 if (typeof optionsOrCb === "function") {
17605 this.send(command, optionsOrCb);
17606 }
17607 else if (typeof cb === "function") {
17608 if (typeof optionsOrCb !== "object")
17609 throw new Error("Expect http options but get " + typeof optionsOrCb);
17610 this.send(command, optionsOrCb || {}, cb);
17611 }
17612 else {
17613 return this.send(command, optionsOrCb);
17614 }
17615 };
17616 Pinpoint.prototype.getApplicationDateRangeKpi = function (args, optionsOrCb, cb) {
17617 var command = new _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__["GetApplicationDateRangeKpiCommand"](args);
17618 if (typeof optionsOrCb === "function") {
17619 this.send(command, optionsOrCb);
17620 }
17621 else if (typeof cb === "function") {
17622 if (typeof optionsOrCb !== "object")
17623 throw new Error("Expect http options but get " + typeof optionsOrCb);
17624 this.send(command, optionsOrCb || {}, cb);
17625 }
17626 else {
17627 return this.send(command, optionsOrCb);
17628 }
17629 };
17630 Pinpoint.prototype.getApplicationSettings = function (args, optionsOrCb, cb) {
17631 var command = new _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__["GetApplicationSettingsCommand"](args);
17632 if (typeof optionsOrCb === "function") {
17633 this.send(command, optionsOrCb);
17634 }
17635 else if (typeof cb === "function") {
17636 if (typeof optionsOrCb !== "object")
17637 throw new Error("Expect http options but get " + typeof optionsOrCb);
17638 this.send(command, optionsOrCb || {}, cb);
17639 }
17640 else {
17641 return this.send(command, optionsOrCb);
17642 }
17643 };
17644 Pinpoint.prototype.getApps = function (args, optionsOrCb, cb) {
17645 var command = new _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__["GetAppsCommand"](args);
17646 if (typeof optionsOrCb === "function") {
17647 this.send(command, optionsOrCb);
17648 }
17649 else if (typeof cb === "function") {
17650 if (typeof optionsOrCb !== "object")
17651 throw new Error("Expect http options but get " + typeof optionsOrCb);
17652 this.send(command, optionsOrCb || {}, cb);
17653 }
17654 else {
17655 return this.send(command, optionsOrCb);
17656 }
17657 };
17658 Pinpoint.prototype.getBaiduChannel = function (args, optionsOrCb, cb) {
17659 var command = new _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__["GetBaiduChannelCommand"](args);
17660 if (typeof optionsOrCb === "function") {
17661 this.send(command, optionsOrCb);
17662 }
17663 else if (typeof cb === "function") {
17664 if (typeof optionsOrCb !== "object")
17665 throw new Error("Expect http options but get " + typeof optionsOrCb);
17666 this.send(command, optionsOrCb || {}, cb);
17667 }
17668 else {
17669 return this.send(command, optionsOrCb);
17670 }
17671 };
17672 Pinpoint.prototype.getCampaign = function (args, optionsOrCb, cb) {
17673 var command = new _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_46__["GetCampaignCommand"](args);
17674 if (typeof optionsOrCb === "function") {
17675 this.send(command, optionsOrCb);
17676 }
17677 else if (typeof cb === "function") {
17678 if (typeof optionsOrCb !== "object")
17679 throw new Error("Expect http options but get " + typeof optionsOrCb);
17680 this.send(command, optionsOrCb || {}, cb);
17681 }
17682 else {
17683 return this.send(command, optionsOrCb);
17684 }
17685 };
17686 Pinpoint.prototype.getCampaignActivities = function (args, optionsOrCb, cb) {
17687 var command = new _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_45__["GetCampaignActivitiesCommand"](args);
17688 if (typeof optionsOrCb === "function") {
17689 this.send(command, optionsOrCb);
17690 }
17691 else if (typeof cb === "function") {
17692 if (typeof optionsOrCb !== "object")
17693 throw new Error("Expect http options but get " + typeof optionsOrCb);
17694 this.send(command, optionsOrCb || {}, cb);
17695 }
17696 else {
17697 return this.send(command, optionsOrCb);
17698 }
17699 };
17700 Pinpoint.prototype.getCampaignDateRangeKpi = function (args, optionsOrCb, cb) {
17701 var command = new _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__["GetCampaignDateRangeKpiCommand"](args);
17702 if (typeof optionsOrCb === "function") {
17703 this.send(command, optionsOrCb);
17704 }
17705 else if (typeof cb === "function") {
17706 if (typeof optionsOrCb !== "object")
17707 throw new Error("Expect http options but get " + typeof optionsOrCb);
17708 this.send(command, optionsOrCb || {}, cb);
17709 }
17710 else {
17711 return this.send(command, optionsOrCb);
17712 }
17713 };
17714 Pinpoint.prototype.getCampaigns = function (args, optionsOrCb, cb) {
17715 var command = new _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_50__["GetCampaignsCommand"](args);
17716 if (typeof optionsOrCb === "function") {
17717 this.send(command, optionsOrCb);
17718 }
17719 else if (typeof cb === "function") {
17720 if (typeof optionsOrCb !== "object")
17721 throw new Error("Expect http options but get " + typeof optionsOrCb);
17722 this.send(command, optionsOrCb || {}, cb);
17723 }
17724 else {
17725 return this.send(command, optionsOrCb);
17726 }
17727 };
17728 Pinpoint.prototype.getCampaignVersion = function (args, optionsOrCb, cb) {
17729 var command = new _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_48__["GetCampaignVersionCommand"](args);
17730 if (typeof optionsOrCb === "function") {
17731 this.send(command, optionsOrCb);
17732 }
17733 else if (typeof cb === "function") {
17734 if (typeof optionsOrCb !== "object")
17735 throw new Error("Expect http options but get " + typeof optionsOrCb);
17736 this.send(command, optionsOrCb || {}, cb);
17737 }
17738 else {
17739 return this.send(command, optionsOrCb);
17740 }
17741 };
17742 Pinpoint.prototype.getCampaignVersions = function (args, optionsOrCb, cb) {
17743 var command = new _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_49__["GetCampaignVersionsCommand"](args);
17744 if (typeof optionsOrCb === "function") {
17745 this.send(command, optionsOrCb);
17746 }
17747 else if (typeof cb === "function") {
17748 if (typeof optionsOrCb !== "object")
17749 throw new Error("Expect http options but get " + typeof optionsOrCb);
17750 this.send(command, optionsOrCb || {}, cb);
17751 }
17752 else {
17753 return this.send(command, optionsOrCb);
17754 }
17755 };
17756 Pinpoint.prototype.getChannels = function (args, optionsOrCb, cb) {
17757 var command = new _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__["GetChannelsCommand"](args);
17758 if (typeof optionsOrCb === "function") {
17759 this.send(command, optionsOrCb);
17760 }
17761 else if (typeof cb === "function") {
17762 if (typeof optionsOrCb !== "object")
17763 throw new Error("Expect http options but get " + typeof optionsOrCb);
17764 this.send(command, optionsOrCb || {}, cb);
17765 }
17766 else {
17767 return this.send(command, optionsOrCb);
17768 }
17769 };
17770 Pinpoint.prototype.getEmailChannel = function (args, optionsOrCb, cb) {
17771 var command = new _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__["GetEmailChannelCommand"](args);
17772 if (typeof optionsOrCb === "function") {
17773 this.send(command, optionsOrCb);
17774 }
17775 else if (typeof cb === "function") {
17776 if (typeof optionsOrCb !== "object")
17777 throw new Error("Expect http options but get " + typeof optionsOrCb);
17778 this.send(command, optionsOrCb || {}, cb);
17779 }
17780 else {
17781 return this.send(command, optionsOrCb);
17782 }
17783 };
17784 Pinpoint.prototype.getEmailTemplate = function (args, optionsOrCb, cb) {
17785 var command = new _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__["GetEmailTemplateCommand"](args);
17786 if (typeof optionsOrCb === "function") {
17787 this.send(command, optionsOrCb);
17788 }
17789 else if (typeof cb === "function") {
17790 if (typeof optionsOrCb !== "object")
17791 throw new Error("Expect http options but get " + typeof optionsOrCb);
17792 this.send(command, optionsOrCb || {}, cb);
17793 }
17794 else {
17795 return this.send(command, optionsOrCb);
17796 }
17797 };
17798 Pinpoint.prototype.getEndpoint = function (args, optionsOrCb, cb) {
17799 var command = new _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__["GetEndpointCommand"](args);
17800 if (typeof optionsOrCb === "function") {
17801 this.send(command, optionsOrCb);
17802 }
17803 else if (typeof cb === "function") {
17804 if (typeof optionsOrCb !== "object")
17805 throw new Error("Expect http options but get " + typeof optionsOrCb);
17806 this.send(command, optionsOrCb || {}, cb);
17807 }
17808 else {
17809 return this.send(command, optionsOrCb);
17810 }
17811 };
17812 Pinpoint.prototype.getEventStream = function (args, optionsOrCb, cb) {
17813 var command = new _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__["GetEventStreamCommand"](args);
17814 if (typeof optionsOrCb === "function") {
17815 this.send(command, optionsOrCb);
17816 }
17817 else if (typeof cb === "function") {
17818 if (typeof optionsOrCb !== "object")
17819 throw new Error("Expect http options but get " + typeof optionsOrCb);
17820 this.send(command, optionsOrCb || {}, cb);
17821 }
17822 else {
17823 return this.send(command, optionsOrCb);
17824 }
17825 };
17826 Pinpoint.prototype.getExportJob = function (args, optionsOrCb, cb) {
17827 var command = new _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__["GetExportJobCommand"](args);
17828 if (typeof optionsOrCb === "function") {
17829 this.send(command, optionsOrCb);
17830 }
17831 else if (typeof cb === "function") {
17832 if (typeof optionsOrCb !== "object")
17833 throw new Error("Expect http options but get " + typeof optionsOrCb);
17834 this.send(command, optionsOrCb || {}, cb);
17835 }
17836 else {
17837 return this.send(command, optionsOrCb);
17838 }
17839 };
17840 Pinpoint.prototype.getExportJobs = function (args, optionsOrCb, cb) {
17841 var command = new _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__["GetExportJobsCommand"](args);
17842 if (typeof optionsOrCb === "function") {
17843 this.send(command, optionsOrCb);
17844 }
17845 else if (typeof cb === "function") {
17846 if (typeof optionsOrCb !== "object")
17847 throw new Error("Expect http options but get " + typeof optionsOrCb);
17848 this.send(command, optionsOrCb || {}, cb);
17849 }
17850 else {
17851 return this.send(command, optionsOrCb);
17852 }
17853 };
17854 Pinpoint.prototype.getGcmChannel = function (args, optionsOrCb, cb) {
17855 var command = new _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__["GetGcmChannelCommand"](args);
17856 if (typeof optionsOrCb === "function") {
17857 this.send(command, optionsOrCb);
17858 }
17859 else if (typeof cb === "function") {
17860 if (typeof optionsOrCb !== "object")
17861 throw new Error("Expect http options but get " + typeof optionsOrCb);
17862 this.send(command, optionsOrCb || {}, cb);
17863 }
17864 else {
17865 return this.send(command, optionsOrCb);
17866 }
17867 };
17868 Pinpoint.prototype.getImportJob = function (args, optionsOrCb, cb) {
17869 var command = new _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__["GetImportJobCommand"](args);
17870 if (typeof optionsOrCb === "function") {
17871 this.send(command, optionsOrCb);
17872 }
17873 else if (typeof cb === "function") {
17874 if (typeof optionsOrCb !== "object")
17875 throw new Error("Expect http options but get " + typeof optionsOrCb);
17876 this.send(command, optionsOrCb || {}, cb);
17877 }
17878 else {
17879 return this.send(command, optionsOrCb);
17880 }
17881 };
17882 Pinpoint.prototype.getImportJobs = function (args, optionsOrCb, cb) {
17883 var command = new _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__["GetImportJobsCommand"](args);
17884 if (typeof optionsOrCb === "function") {
17885 this.send(command, optionsOrCb);
17886 }
17887 else if (typeof cb === "function") {
17888 if (typeof optionsOrCb !== "object")
17889 throw new Error("Expect http options but get " + typeof optionsOrCb);
17890 this.send(command, optionsOrCb || {}, cb);
17891 }
17892 else {
17893 return this.send(command, optionsOrCb);
17894 }
17895 };
17896 Pinpoint.prototype.getJourney = function (args, optionsOrCb, cb) {
17897 var command = new _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__["GetJourneyCommand"](args);
17898 if (typeof optionsOrCb === "function") {
17899 this.send(command, optionsOrCb);
17900 }
17901 else if (typeof cb === "function") {
17902 if (typeof optionsOrCb !== "object")
17903 throw new Error("Expect http options but get " + typeof optionsOrCb);
17904 this.send(command, optionsOrCb || {}, cb);
17905 }
17906 else {
17907 return this.send(command, optionsOrCb);
17908 }
17909 };
17910 Pinpoint.prototype.getJourneyDateRangeKpi = function (args, optionsOrCb, cb) {
17911 var command = new _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__["GetJourneyDateRangeKpiCommand"](args);
17912 if (typeof optionsOrCb === "function") {
17913 this.send(command, optionsOrCb);
17914 }
17915 else if (typeof cb === "function") {
17916 if (typeof optionsOrCb !== "object")
17917 throw new Error("Expect http options but get " + typeof optionsOrCb);
17918 this.send(command, optionsOrCb || {}, cb);
17919 }
17920 else {
17921 return this.send(command, optionsOrCb);
17922 }
17923 };
17924 Pinpoint.prototype.getJourneyExecutionActivityMetrics = function (args, optionsOrCb, cb) {
17925 var command = new _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__["GetJourneyExecutionActivityMetricsCommand"](args);
17926 if (typeof optionsOrCb === "function") {
17927 this.send(command, optionsOrCb);
17928 }
17929 else if (typeof cb === "function") {
17930 if (typeof optionsOrCb !== "object")
17931 throw new Error("Expect http options but get " + typeof optionsOrCb);
17932 this.send(command, optionsOrCb || {}, cb);
17933 }
17934 else {
17935 return this.send(command, optionsOrCb);
17936 }
17937 };
17938 Pinpoint.prototype.getJourneyExecutionMetrics = function (args, optionsOrCb, cb) {
17939 var command = new _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__["GetJourneyExecutionMetricsCommand"](args);
17940 if (typeof optionsOrCb === "function") {
17941 this.send(command, optionsOrCb);
17942 }
17943 else if (typeof cb === "function") {
17944 if (typeof optionsOrCb !== "object")
17945 throw new Error("Expect http options but get " + typeof optionsOrCb);
17946 this.send(command, optionsOrCb || {}, cb);
17947 }
17948 else {
17949 return this.send(command, optionsOrCb);
17950 }
17951 };
17952 Pinpoint.prototype.getPushTemplate = function (args, optionsOrCb, cb) {
17953 var command = new _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__["GetPushTemplateCommand"](args);
17954 if (typeof optionsOrCb === "function") {
17955 this.send(command, optionsOrCb);
17956 }
17957 else if (typeof cb === "function") {
17958 if (typeof optionsOrCb !== "object")
17959 throw new Error("Expect http options but get " + typeof optionsOrCb);
17960 this.send(command, optionsOrCb || {}, cb);
17961 }
17962 else {
17963 return this.send(command, optionsOrCb);
17964 }
17965 };
17966 Pinpoint.prototype.getRecommenderConfiguration = function (args, optionsOrCb, cb) {
17967 var command = new _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["GetRecommenderConfigurationCommand"](args);
17968 if (typeof optionsOrCb === "function") {
17969 this.send(command, optionsOrCb);
17970 }
17971 else if (typeof cb === "function") {
17972 if (typeof optionsOrCb !== "object")
17973 throw new Error("Expect http options but get " + typeof optionsOrCb);
17974 this.send(command, optionsOrCb || {}, cb);
17975 }
17976 else {
17977 return this.send(command, optionsOrCb);
17978 }
17979 };
17980 Pinpoint.prototype.getRecommenderConfigurations = function (args, optionsOrCb, cb) {
17981 var command = new _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__["GetRecommenderConfigurationsCommand"](args);
17982 if (typeof optionsOrCb === "function") {
17983 this.send(command, optionsOrCb);
17984 }
17985 else if (typeof cb === "function") {
17986 if (typeof optionsOrCb !== "object")
17987 throw new Error("Expect http options but get " + typeof optionsOrCb);
17988 this.send(command, optionsOrCb || {}, cb);
17989 }
17990 else {
17991 return this.send(command, optionsOrCb);
17992 }
17993 };
17994 Pinpoint.prototype.getSegment = function (args, optionsOrCb, cb) {
17995 var command = new _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__["GetSegmentCommand"](args);
17996 if (typeof optionsOrCb === "function") {
17997 this.send(command, optionsOrCb);
17998 }
17999 else if (typeof cb === "function") {
18000 if (typeof optionsOrCb !== "object")
18001 throw new Error("Expect http options but get " + typeof optionsOrCb);
18002 this.send(command, optionsOrCb || {}, cb);
18003 }
18004 else {
18005 return this.send(command, optionsOrCb);
18006 }
18007 };
18008 Pinpoint.prototype.getSegmentExportJobs = function (args, optionsOrCb, cb) {
18009 var command = new _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__["GetSegmentExportJobsCommand"](args);
18010 if (typeof optionsOrCb === "function") {
18011 this.send(command, optionsOrCb);
18012 }
18013 else if (typeof cb === "function") {
18014 if (typeof optionsOrCb !== "object")
18015 throw new Error("Expect http options but get " + typeof optionsOrCb);
18016 this.send(command, optionsOrCb || {}, cb);
18017 }
18018 else {
18019 return this.send(command, optionsOrCb);
18020 }
18021 };
18022 Pinpoint.prototype.getSegmentImportJobs = function (args, optionsOrCb, cb) {
18023 var command = new _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__["GetSegmentImportJobsCommand"](args);
18024 if (typeof optionsOrCb === "function") {
18025 this.send(command, optionsOrCb);
18026 }
18027 else if (typeof cb === "function") {
18028 if (typeof optionsOrCb !== "object")
18029 throw new Error("Expect http options but get " + typeof optionsOrCb);
18030 this.send(command, optionsOrCb || {}, cb);
18031 }
18032 else {
18033 return this.send(command, optionsOrCb);
18034 }
18035 };
18036 Pinpoint.prototype.getSegments = function (args, optionsOrCb, cb) {
18037 var command = new _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_73__["GetSegmentsCommand"](args);
18038 if (typeof optionsOrCb === "function") {
18039 this.send(command, optionsOrCb);
18040 }
18041 else if (typeof cb === "function") {
18042 if (typeof optionsOrCb !== "object")
18043 throw new Error("Expect http options but get " + typeof optionsOrCb);
18044 this.send(command, optionsOrCb || {}, cb);
18045 }
18046 else {
18047 return this.send(command, optionsOrCb);
18048 }
18049 };
18050 Pinpoint.prototype.getSegmentVersion = function (args, optionsOrCb, cb) {
18051 var command = new _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_71__["GetSegmentVersionCommand"](args);
18052 if (typeof optionsOrCb === "function") {
18053 this.send(command, optionsOrCb);
18054 }
18055 else if (typeof cb === "function") {
18056 if (typeof optionsOrCb !== "object")
18057 throw new Error("Expect http options but get " + typeof optionsOrCb);
18058 this.send(command, optionsOrCb || {}, cb);
18059 }
18060 else {
18061 return this.send(command, optionsOrCb);
18062 }
18063 };
18064 Pinpoint.prototype.getSegmentVersions = function (args, optionsOrCb, cb) {
18065 var command = new _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_72__["GetSegmentVersionsCommand"](args);
18066 if (typeof optionsOrCb === "function") {
18067 this.send(command, optionsOrCb);
18068 }
18069 else if (typeof cb === "function") {
18070 if (typeof optionsOrCb !== "object")
18071 throw new Error("Expect http options but get " + typeof optionsOrCb);
18072 this.send(command, optionsOrCb || {}, cb);
18073 }
18074 else {
18075 return this.send(command, optionsOrCb);
18076 }
18077 };
18078 Pinpoint.prototype.getSmsChannel = function (args, optionsOrCb, cb) {
18079 var command = new _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__["GetSmsChannelCommand"](args);
18080 if (typeof optionsOrCb === "function") {
18081 this.send(command, optionsOrCb);
18082 }
18083 else if (typeof cb === "function") {
18084 if (typeof optionsOrCb !== "object")
18085 throw new Error("Expect http options but get " + typeof optionsOrCb);
18086 this.send(command, optionsOrCb || {}, cb);
18087 }
18088 else {
18089 return this.send(command, optionsOrCb);
18090 }
18091 };
18092 Pinpoint.prototype.getSmsTemplate = function (args, optionsOrCb, cb) {
18093 var command = new _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__["GetSmsTemplateCommand"](args);
18094 if (typeof optionsOrCb === "function") {
18095 this.send(command, optionsOrCb);
18096 }
18097 else if (typeof cb === "function") {
18098 if (typeof optionsOrCb !== "object")
18099 throw new Error("Expect http options but get " + typeof optionsOrCb);
18100 this.send(command, optionsOrCb || {}, cb);
18101 }
18102 else {
18103 return this.send(command, optionsOrCb);
18104 }
18105 };
18106 Pinpoint.prototype.getUserEndpoints = function (args, optionsOrCb, cb) {
18107 var command = new _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__["GetUserEndpointsCommand"](args);
18108 if (typeof optionsOrCb === "function") {
18109 this.send(command, optionsOrCb);
18110 }
18111 else if (typeof cb === "function") {
18112 if (typeof optionsOrCb !== "object")
18113 throw new Error("Expect http options but get " + typeof optionsOrCb);
18114 this.send(command, optionsOrCb || {}, cb);
18115 }
18116 else {
18117 return this.send(command, optionsOrCb);
18118 }
18119 };
18120 Pinpoint.prototype.getVoiceChannel = function (args, optionsOrCb, cb) {
18121 var command = new _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__["GetVoiceChannelCommand"](args);
18122 if (typeof optionsOrCb === "function") {
18123 this.send(command, optionsOrCb);
18124 }
18125 else if (typeof cb === "function") {
18126 if (typeof optionsOrCb !== "object")
18127 throw new Error("Expect http options but get " + typeof optionsOrCb);
18128 this.send(command, optionsOrCb || {}, cb);
18129 }
18130 else {
18131 return this.send(command, optionsOrCb);
18132 }
18133 };
18134 Pinpoint.prototype.getVoiceTemplate = function (args, optionsOrCb, cb) {
18135 var command = new _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__["GetVoiceTemplateCommand"](args);
18136 if (typeof optionsOrCb === "function") {
18137 this.send(command, optionsOrCb);
18138 }
18139 else if (typeof cb === "function") {
18140 if (typeof optionsOrCb !== "object")
18141 throw new Error("Expect http options but get " + typeof optionsOrCb);
18142 this.send(command, optionsOrCb || {}, cb);
18143 }
18144 else {
18145 return this.send(command, optionsOrCb);
18146 }
18147 };
18148 Pinpoint.prototype.listJourneys = function (args, optionsOrCb, cb) {
18149 var command = new _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__["ListJourneysCommand"](args);
18150 if (typeof optionsOrCb === "function") {
18151 this.send(command, optionsOrCb);
18152 }
18153 else if (typeof cb === "function") {
18154 if (typeof optionsOrCb !== "object")
18155 throw new Error("Expect http options but get " + typeof optionsOrCb);
18156 this.send(command, optionsOrCb || {}, cb);
18157 }
18158 else {
18159 return this.send(command, optionsOrCb);
18160 }
18161 };
18162 Pinpoint.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
18163 var command = new _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__["ListTagsForResourceCommand"](args);
18164 if (typeof optionsOrCb === "function") {
18165 this.send(command, optionsOrCb);
18166 }
18167 else if (typeof cb === "function") {
18168 if (typeof optionsOrCb !== "object")
18169 throw new Error("Expect http options but get " + typeof optionsOrCb);
18170 this.send(command, optionsOrCb || {}, cb);
18171 }
18172 else {
18173 return this.send(command, optionsOrCb);
18174 }
18175 };
18176 Pinpoint.prototype.listTemplates = function (args, optionsOrCb, cb) {
18177 var command = new _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_82__["ListTemplatesCommand"](args);
18178 if (typeof optionsOrCb === "function") {
18179 this.send(command, optionsOrCb);
18180 }
18181 else if (typeof cb === "function") {
18182 if (typeof optionsOrCb !== "object")
18183 throw new Error("Expect http options but get " + typeof optionsOrCb);
18184 this.send(command, optionsOrCb || {}, cb);
18185 }
18186 else {
18187 return this.send(command, optionsOrCb);
18188 }
18189 };
18190 Pinpoint.prototype.listTemplateVersions = function (args, optionsOrCb, cb) {
18191 var command = new _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_81__["ListTemplateVersionsCommand"](args);
18192 if (typeof optionsOrCb === "function") {
18193 this.send(command, optionsOrCb);
18194 }
18195 else if (typeof cb === "function") {
18196 if (typeof optionsOrCb !== "object")
18197 throw new Error("Expect http options but get " + typeof optionsOrCb);
18198 this.send(command, optionsOrCb || {}, cb);
18199 }
18200 else {
18201 return this.send(command, optionsOrCb);
18202 }
18203 };
18204 Pinpoint.prototype.phoneNumberValidate = function (args, optionsOrCb, cb) {
18205 var command = new _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__["PhoneNumberValidateCommand"](args);
18206 if (typeof optionsOrCb === "function") {
18207 this.send(command, optionsOrCb);
18208 }
18209 else if (typeof cb === "function") {
18210 if (typeof optionsOrCb !== "object")
18211 throw new Error("Expect http options but get " + typeof optionsOrCb);
18212 this.send(command, optionsOrCb || {}, cb);
18213 }
18214 else {
18215 return this.send(command, optionsOrCb);
18216 }
18217 };
18218 Pinpoint.prototype.putEvents = function (args, optionsOrCb, cb) {
18219 var command = new _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_85__["PutEventsCommand"](args);
18220 if (typeof optionsOrCb === "function") {
18221 this.send(command, optionsOrCb);
18222 }
18223 else if (typeof cb === "function") {
18224 if (typeof optionsOrCb !== "object")
18225 throw new Error("Expect http options but get " + typeof optionsOrCb);
18226 this.send(command, optionsOrCb || {}, cb);
18227 }
18228 else {
18229 return this.send(command, optionsOrCb);
18230 }
18231 };
18232 Pinpoint.prototype.putEventStream = function (args, optionsOrCb, cb) {
18233 var command = new _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_84__["PutEventStreamCommand"](args);
18234 if (typeof optionsOrCb === "function") {
18235 this.send(command, optionsOrCb);
18236 }
18237 else if (typeof cb === "function") {
18238 if (typeof optionsOrCb !== "object")
18239 throw new Error("Expect http options but get " + typeof optionsOrCb);
18240 this.send(command, optionsOrCb || {}, cb);
18241 }
18242 else {
18243 return this.send(command, optionsOrCb);
18244 }
18245 };
18246 Pinpoint.prototype.removeAttributes = function (args, optionsOrCb, cb) {
18247 var command = new _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__["RemoveAttributesCommand"](args);
18248 if (typeof optionsOrCb === "function") {
18249 this.send(command, optionsOrCb);
18250 }
18251 else if (typeof cb === "function") {
18252 if (typeof optionsOrCb !== "object")
18253 throw new Error("Expect http options but get " + typeof optionsOrCb);
18254 this.send(command, optionsOrCb || {}, cb);
18255 }
18256 else {
18257 return this.send(command, optionsOrCb);
18258 }
18259 };
18260 Pinpoint.prototype.sendMessages = function (args, optionsOrCb, cb) {
18261 var command = new _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__["SendMessagesCommand"](args);
18262 if (typeof optionsOrCb === "function") {
18263 this.send(command, optionsOrCb);
18264 }
18265 else if (typeof cb === "function") {
18266 if (typeof optionsOrCb !== "object")
18267 throw new Error("Expect http options but get " + typeof optionsOrCb);
18268 this.send(command, optionsOrCb || {}, cb);
18269 }
18270 else {
18271 return this.send(command, optionsOrCb);
18272 }
18273 };
18274 Pinpoint.prototype.sendUsersMessages = function (args, optionsOrCb, cb) {
18275 var command = new _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__["SendUsersMessagesCommand"](args);
18276 if (typeof optionsOrCb === "function") {
18277 this.send(command, optionsOrCb);
18278 }
18279 else if (typeof cb === "function") {
18280 if (typeof optionsOrCb !== "object")
18281 throw new Error("Expect http options but get " + typeof optionsOrCb);
18282 this.send(command, optionsOrCb || {}, cb);
18283 }
18284 else {
18285 return this.send(command, optionsOrCb);
18286 }
18287 };
18288 Pinpoint.prototype.tagResource = function (args, optionsOrCb, cb) {
18289 var command = new _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__["TagResourceCommand"](args);
18290 if (typeof optionsOrCb === "function") {
18291 this.send(command, optionsOrCb);
18292 }
18293 else if (typeof cb === "function") {
18294 if (typeof optionsOrCb !== "object")
18295 throw new Error("Expect http options but get " + typeof optionsOrCb);
18296 this.send(command, optionsOrCb || {}, cb);
18297 }
18298 else {
18299 return this.send(command, optionsOrCb);
18300 }
18301 };
18302 Pinpoint.prototype.untagResource = function (args, optionsOrCb, cb) {
18303 var command = new _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__["UntagResourceCommand"](args);
18304 if (typeof optionsOrCb === "function") {
18305 this.send(command, optionsOrCb);
18306 }
18307 else if (typeof cb === "function") {
18308 if (typeof optionsOrCb !== "object")
18309 throw new Error("Expect http options but get " + typeof optionsOrCb);
18310 this.send(command, optionsOrCb || {}, cb);
18311 }
18312 else {
18313 return this.send(command, optionsOrCb);
18314 }
18315 };
18316 Pinpoint.prototype.updateAdmChannel = function (args, optionsOrCb, cb) {
18317 var command = new _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__["UpdateAdmChannelCommand"](args);
18318 if (typeof optionsOrCb === "function") {
18319 this.send(command, optionsOrCb);
18320 }
18321 else if (typeof cb === "function") {
18322 if (typeof optionsOrCb !== "object")
18323 throw new Error("Expect http options but get " + typeof optionsOrCb);
18324 this.send(command, optionsOrCb || {}, cb);
18325 }
18326 else {
18327 return this.send(command, optionsOrCb);
18328 }
18329 };
18330 Pinpoint.prototype.updateApnsChannel = function (args, optionsOrCb, cb) {
18331 var command = new _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__["UpdateApnsChannelCommand"](args);
18332 if (typeof optionsOrCb === "function") {
18333 this.send(command, optionsOrCb);
18334 }
18335 else if (typeof cb === "function") {
18336 if (typeof optionsOrCb !== "object")
18337 throw new Error("Expect http options but get " + typeof optionsOrCb);
18338 this.send(command, optionsOrCb || {}, cb);
18339 }
18340 else {
18341 return this.send(command, optionsOrCb);
18342 }
18343 };
18344 Pinpoint.prototype.updateApnsSandboxChannel = function (args, optionsOrCb, cb) {
18345 var command = new _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__["UpdateApnsSandboxChannelCommand"](args);
18346 if (typeof optionsOrCb === "function") {
18347 this.send(command, optionsOrCb);
18348 }
18349 else if (typeof cb === "function") {
18350 if (typeof optionsOrCb !== "object")
18351 throw new Error("Expect http options but get " + typeof optionsOrCb);
18352 this.send(command, optionsOrCb || {}, cb);
18353 }
18354 else {
18355 return this.send(command, optionsOrCb);
18356 }
18357 };
18358 Pinpoint.prototype.updateApnsVoipChannel = function (args, optionsOrCb, cb) {
18359 var command = new _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__["UpdateApnsVoipChannelCommand"](args);
18360 if (typeof optionsOrCb === "function") {
18361 this.send(command, optionsOrCb);
18362 }
18363 else if (typeof cb === "function") {
18364 if (typeof optionsOrCb !== "object")
18365 throw new Error("Expect http options but get " + typeof optionsOrCb);
18366 this.send(command, optionsOrCb || {}, cb);
18367 }
18368 else {
18369 return this.send(command, optionsOrCb);
18370 }
18371 };
18372 Pinpoint.prototype.updateApnsVoipSandboxChannel = function (args, optionsOrCb, cb) {
18373 var command = new _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__["UpdateApnsVoipSandboxChannelCommand"](args);
18374 if (typeof optionsOrCb === "function") {
18375 this.send(command, optionsOrCb);
18376 }
18377 else if (typeof cb === "function") {
18378 if (typeof optionsOrCb !== "object")
18379 throw new Error("Expect http options but get " + typeof optionsOrCb);
18380 this.send(command, optionsOrCb || {}, cb);
18381 }
18382 else {
18383 return this.send(command, optionsOrCb);
18384 }
18385 };
18386 Pinpoint.prototype.updateApplicationSettings = function (args, optionsOrCb, cb) {
18387 var command = new _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__["UpdateApplicationSettingsCommand"](args);
18388 if (typeof optionsOrCb === "function") {
18389 this.send(command, optionsOrCb);
18390 }
18391 else if (typeof cb === "function") {
18392 if (typeof optionsOrCb !== "object")
18393 throw new Error("Expect http options but get " + typeof optionsOrCb);
18394 this.send(command, optionsOrCb || {}, cb);
18395 }
18396 else {
18397 return this.send(command, optionsOrCb);
18398 }
18399 };
18400 Pinpoint.prototype.updateBaiduChannel = function (args, optionsOrCb, cb) {
18401 var command = new _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__["UpdateBaiduChannelCommand"](args);
18402 if (typeof optionsOrCb === "function") {
18403 this.send(command, optionsOrCb);
18404 }
18405 else if (typeof cb === "function") {
18406 if (typeof optionsOrCb !== "object")
18407 throw new Error("Expect http options but get " + typeof optionsOrCb);
18408 this.send(command, optionsOrCb || {}, cb);
18409 }
18410 else {
18411 return this.send(command, optionsOrCb);
18412 }
18413 };
18414 Pinpoint.prototype.updateCampaign = function (args, optionsOrCb, cb) {
18415 var command = new _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__["UpdateCampaignCommand"](args);
18416 if (typeof optionsOrCb === "function") {
18417 this.send(command, optionsOrCb);
18418 }
18419 else if (typeof cb === "function") {
18420 if (typeof optionsOrCb !== "object")
18421 throw new Error("Expect http options but get " + typeof optionsOrCb);
18422 this.send(command, optionsOrCb || {}, cb);
18423 }
18424 else {
18425 return this.send(command, optionsOrCb);
18426 }
18427 };
18428 Pinpoint.prototype.updateEmailChannel = function (args, optionsOrCb, cb) {
18429 var command = new _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__["UpdateEmailChannelCommand"](args);
18430 if (typeof optionsOrCb === "function") {
18431 this.send(command, optionsOrCb);
18432 }
18433 else if (typeof cb === "function") {
18434 if (typeof optionsOrCb !== "object")
18435 throw new Error("Expect http options but get " + typeof optionsOrCb);
18436 this.send(command, optionsOrCb || {}, cb);
18437 }
18438 else {
18439 return this.send(command, optionsOrCb);
18440 }
18441 };
18442 Pinpoint.prototype.updateEmailTemplate = function (args, optionsOrCb, cb) {
18443 var command = new _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__["UpdateEmailTemplateCommand"](args);
18444 if (typeof optionsOrCb === "function") {
18445 this.send(command, optionsOrCb);
18446 }
18447 else if (typeof cb === "function") {
18448 if (typeof optionsOrCb !== "object")
18449 throw new Error("Expect http options but get " + typeof optionsOrCb);
18450 this.send(command, optionsOrCb || {}, cb);
18451 }
18452 else {
18453 return this.send(command, optionsOrCb);
18454 }
18455 };
18456 Pinpoint.prototype.updateEndpoint = function (args, optionsOrCb, cb) {
18457 var command = new _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__["UpdateEndpointCommand"](args);
18458 if (typeof optionsOrCb === "function") {
18459 this.send(command, optionsOrCb);
18460 }
18461 else if (typeof cb === "function") {
18462 if (typeof optionsOrCb !== "object")
18463 throw new Error("Expect http options but get " + typeof optionsOrCb);
18464 this.send(command, optionsOrCb || {}, cb);
18465 }
18466 else {
18467 return this.send(command, optionsOrCb);
18468 }
18469 };
18470 Pinpoint.prototype.updateEndpointsBatch = function (args, optionsOrCb, cb) {
18471 var command = new _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__["UpdateEndpointsBatchCommand"](args);
18472 if (typeof optionsOrCb === "function") {
18473 this.send(command, optionsOrCb);
18474 }
18475 else if (typeof cb === "function") {
18476 if (typeof optionsOrCb !== "object")
18477 throw new Error("Expect http options but get " + typeof optionsOrCb);
18478 this.send(command, optionsOrCb || {}, cb);
18479 }
18480 else {
18481 return this.send(command, optionsOrCb);
18482 }
18483 };
18484 Pinpoint.prototype.updateGcmChannel = function (args, optionsOrCb, cb) {
18485 var command = new _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__["UpdateGcmChannelCommand"](args);
18486 if (typeof optionsOrCb === "function") {
18487 this.send(command, optionsOrCb);
18488 }
18489 else if (typeof cb === "function") {
18490 if (typeof optionsOrCb !== "object")
18491 throw new Error("Expect http options but get " + typeof optionsOrCb);
18492 this.send(command, optionsOrCb || {}, cb);
18493 }
18494 else {
18495 return this.send(command, optionsOrCb);
18496 }
18497 };
18498 Pinpoint.prototype.updateJourney = function (args, optionsOrCb, cb) {
18499 var command = new _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__["UpdateJourneyCommand"](args);
18500 if (typeof optionsOrCb === "function") {
18501 this.send(command, optionsOrCb);
18502 }
18503 else if (typeof cb === "function") {
18504 if (typeof optionsOrCb !== "object")
18505 throw new Error("Expect http options but get " + typeof optionsOrCb);
18506 this.send(command, optionsOrCb || {}, cb);
18507 }
18508 else {
18509 return this.send(command, optionsOrCb);
18510 }
18511 };
18512 Pinpoint.prototype.updateJourneyState = function (args, optionsOrCb, cb) {
18513 var command = new _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__["UpdateJourneyStateCommand"](args);
18514 if (typeof optionsOrCb === "function") {
18515 this.send(command, optionsOrCb);
18516 }
18517 else if (typeof cb === "function") {
18518 if (typeof optionsOrCb !== "object")
18519 throw new Error("Expect http options but get " + typeof optionsOrCb);
18520 this.send(command, optionsOrCb || {}, cb);
18521 }
18522 else {
18523 return this.send(command, optionsOrCb);
18524 }
18525 };
18526 Pinpoint.prototype.updatePushTemplate = function (args, optionsOrCb, cb) {
18527 var command = new _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__["UpdatePushTemplateCommand"](args);
18528 if (typeof optionsOrCb === "function") {
18529 this.send(command, optionsOrCb);
18530 }
18531 else if (typeof cb === "function") {
18532 if (typeof optionsOrCb !== "object")
18533 throw new Error("Expect http options but get " + typeof optionsOrCb);
18534 this.send(command, optionsOrCb || {}, cb);
18535 }
18536 else {
18537 return this.send(command, optionsOrCb);
18538 }
18539 };
18540 Pinpoint.prototype.updateRecommenderConfiguration = function (args, optionsOrCb, cb) {
18541 var command = new _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__["UpdateRecommenderConfigurationCommand"](args);
18542 if (typeof optionsOrCb === "function") {
18543 this.send(command, optionsOrCb);
18544 }
18545 else if (typeof cb === "function") {
18546 if (typeof optionsOrCb !== "object")
18547 throw new Error("Expect http options but get " + typeof optionsOrCb);
18548 this.send(command, optionsOrCb || {}, cb);
18549 }
18550 else {
18551 return this.send(command, optionsOrCb);
18552 }
18553 };
18554 Pinpoint.prototype.updateSegment = function (args, optionsOrCb, cb) {
18555 var command = new _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__["UpdateSegmentCommand"](args);
18556 if (typeof optionsOrCb === "function") {
18557 this.send(command, optionsOrCb);
18558 }
18559 else if (typeof cb === "function") {
18560 if (typeof optionsOrCb !== "object")
18561 throw new Error("Expect http options but get " + typeof optionsOrCb);
18562 this.send(command, optionsOrCb || {}, cb);
18563 }
18564 else {
18565 return this.send(command, optionsOrCb);
18566 }
18567 };
18568 Pinpoint.prototype.updateSmsChannel = function (args, optionsOrCb, cb) {
18569 var command = new _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__["UpdateSmsChannelCommand"](args);
18570 if (typeof optionsOrCb === "function") {
18571 this.send(command, optionsOrCb);
18572 }
18573 else if (typeof cb === "function") {
18574 if (typeof optionsOrCb !== "object")
18575 throw new Error("Expect http options but get " + typeof optionsOrCb);
18576 this.send(command, optionsOrCb || {}, cb);
18577 }
18578 else {
18579 return this.send(command, optionsOrCb);
18580 }
18581 };
18582 Pinpoint.prototype.updateSmsTemplate = function (args, optionsOrCb, cb) {
18583 var command = new _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__["UpdateSmsTemplateCommand"](args);
18584 if (typeof optionsOrCb === "function") {
18585 this.send(command, optionsOrCb);
18586 }
18587 else if (typeof cb === "function") {
18588 if (typeof optionsOrCb !== "object")
18589 throw new Error("Expect http options but get " + typeof optionsOrCb);
18590 this.send(command, optionsOrCb || {}, cb);
18591 }
18592 else {
18593 return this.send(command, optionsOrCb);
18594 }
18595 };
18596 Pinpoint.prototype.updateTemplateActiveVersion = function (args, optionsOrCb, cb) {
18597 var command = new _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__["UpdateTemplateActiveVersionCommand"](args);
18598 if (typeof optionsOrCb === "function") {
18599 this.send(command, optionsOrCb);
18600 }
18601 else if (typeof cb === "function") {
18602 if (typeof optionsOrCb !== "object")
18603 throw new Error("Expect http options but get " + typeof optionsOrCb);
18604 this.send(command, optionsOrCb || {}, cb);
18605 }
18606 else {
18607 return this.send(command, optionsOrCb);
18608 }
18609 };
18610 Pinpoint.prototype.updateVoiceChannel = function (args, optionsOrCb, cb) {
18611 var command = new _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__["UpdateVoiceChannelCommand"](args);
18612 if (typeof optionsOrCb === "function") {
18613 this.send(command, optionsOrCb);
18614 }
18615 else if (typeof cb === "function") {
18616 if (typeof optionsOrCb !== "object")
18617 throw new Error("Expect http options but get " + typeof optionsOrCb);
18618 this.send(command, optionsOrCb || {}, cb);
18619 }
18620 else {
18621 return this.send(command, optionsOrCb);
18622 }
18623 };
18624 Pinpoint.prototype.updateVoiceTemplate = function (args, optionsOrCb, cb) {
18625 var command = new _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__["UpdateVoiceTemplateCommand"](args);
18626 if (typeof optionsOrCb === "function") {
18627 this.send(command, optionsOrCb);
18628 }
18629 else if (typeof cb === "function") {
18630 if (typeof optionsOrCb !== "object")
18631 throw new Error("Expect http options but get " + typeof optionsOrCb);
18632 this.send(command, optionsOrCb || {}, cb);
18633 }
18634 else {
18635 return this.send(command, optionsOrCb);
18636 }
18637 };
18638 return Pinpoint;
18639}(_PinpointClient__WEBPACK_IMPORTED_MODULE_1__["PinpointClient"]));
18640
18641//# sourceMappingURL=Pinpoint.js.map
18642
18643/***/ }),
18644
18645/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js":
18646/*!****************************************************************************************!*\
18647 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js ***!
18648 \****************************************************************************************/
18649/*! exports provided: PinpointClient */
18650/***/ (function(module, __webpack_exports__, __webpack_require__) {
18651
18652"use strict";
18653__webpack_require__.r(__webpack_exports__);
18654/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PinpointClient", function() { return PinpointClient; });
18655/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18656/* harmony import */ var _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./runtimeConfig */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.browser.js");
18657/* harmony import */ var _aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/config-resolver */ "../../node_modules/@aws-sdk/config-resolver/dist/es/index.js");
18658/* harmony import */ var _aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-content-length */ "../../node_modules/@aws-sdk/middleware-content-length/dist/es/index.js");
18659/* harmony import */ var _aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/middleware-host-header */ "../../node_modules/@aws-sdk/middleware-host-header/dist/es/index.js");
18660/* harmony import */ var _aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-logger */ "../../node_modules/@aws-sdk/middleware-logger/dist/es/index.js");
18661/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
18662/* harmony import */ var _aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/middleware-signing */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/index.js");
18663/* harmony import */ var _aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/middleware-user-agent */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js");
18664/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675/**
18676 * <p>Doc Engage API - Amazon Pinpoint API</p>
18677 */
18678var PinpointClient = /** @class */ (function (_super) {
18679 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PinpointClient, _super);
18680 function PinpointClient(configuration) {
18681 var _this = this;
18682 var _config_0 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig__WEBPACK_IMPORTED_MODULE_1__["ClientDefaultValues"]), configuration);
18683 var _config_1 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveRegionConfig"])(_config_0);
18684 var _config_2 = Object(_aws_sdk_config_resolver__WEBPACK_IMPORTED_MODULE_2__["resolveEndpointsConfig"])(_config_1);
18685 var _config_3 = Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["resolveAwsAuthConfig"])(_config_2);
18686 var _config_4 = Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["resolveRetryConfig"])(_config_3);
18687 var _config_5 = Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["resolveHostHeaderConfig"])(_config_4);
18688 var _config_6 = Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["resolveUserAgentConfig"])(_config_5);
18689 _this = _super.call(this, _config_6) || this;
18690 _this.config = _config_6;
18691 _this.middlewareStack.use(Object(_aws_sdk_middleware_signing__WEBPACK_IMPORTED_MODULE_7__["getAwsAuthPlugin"])(_this.config));
18692 _this.middlewareStack.use(Object(_aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_6__["getRetryPlugin"])(_this.config));
18693 _this.middlewareStack.use(Object(_aws_sdk_middleware_content_length__WEBPACK_IMPORTED_MODULE_3__["getContentLengthPlugin"])(_this.config));
18694 _this.middlewareStack.use(Object(_aws_sdk_middleware_host_header__WEBPACK_IMPORTED_MODULE_4__["getHostHeaderPlugin"])(_this.config));
18695 _this.middlewareStack.use(Object(_aws_sdk_middleware_logger__WEBPACK_IMPORTED_MODULE_5__["getLoggerPlugin"])(_this.config));
18696 _this.middlewareStack.use(Object(_aws_sdk_middleware_user_agent__WEBPACK_IMPORTED_MODULE_8__["getUserAgentPlugin"])(_this.config));
18697 return _this;
18698 }
18699 PinpointClient.prototype.destroy = function () {
18700 _super.prototype.destroy.call(this);
18701 };
18702 return PinpointClient;
18703}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_9__["Client"]));
18704
18705//# sourceMappingURL=PinpointClient.js.map
18706
18707/***/ }),
18708
18709/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js":
18710/*!***************************************************************************************************!*\
18711 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js ***!
18712 \***************************************************************************************************/
18713/*! exports provided: CreateAppCommand */
18714/***/ (function(module, __webpack_exports__, __webpack_require__) {
18715
18716"use strict";
18717__webpack_require__.r(__webpack_exports__);
18718/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppCommand", function() { return CreateAppCommand; });
18719/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18720/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
18721/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
18722/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
18723/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
18724
18725
18726
18727
18728
18729/**
18730 * <p>Creates an application.</p>
18731 */
18732var CreateAppCommand = /** @class */ (function (_super) {
18733 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateAppCommand, _super);
18734 // Start section: command_properties
18735 // End section: command_properties
18736 function CreateAppCommand(input) {
18737 var _this =
18738 // Start section: command_constructor
18739 _super.call(this) || this;
18740 _this.input = input;
18741 return _this;
18742 // End section: command_constructor
18743 }
18744 /**
18745 * @internal
18746 */
18747 CreateAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18748 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18749 var stack = clientStack.concat(this.middlewareStack);
18750 var logger = configuration.logger;
18751 var clientName = "PinpointClient";
18752 var commandName = "CreateAppCommand";
18753 var handlerExecutionContext = {
18754 logger: logger,
18755 clientName: clientName,
18756 commandName: commandName,
18757 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateAppRequest"].filterSensitiveLog,
18758 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateAppResponse"].filterSensitiveLog,
18759 };
18760 var requestHandler = configuration.requestHandler;
18761 return stack.resolve(function (request) {
18762 return requestHandler.handle(request.request, options || {});
18763 }, handlerExecutionContext);
18764 };
18765 CreateAppCommand.prototype.serialize = function (input, context) {
18766 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateAppCommand"])(input, context);
18767 };
18768 CreateAppCommand.prototype.deserialize = function (output, context) {
18769 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateAppCommand"])(output, context);
18770 };
18771 return CreateAppCommand;
18772}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18773
18774//# sourceMappingURL=CreateAppCommand.js.map
18775
18776/***/ }),
18777
18778/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js":
18779/*!********************************************************************************************************!*\
18780 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js ***!
18781 \********************************************************************************************************/
18782/*! exports provided: CreateCampaignCommand */
18783/***/ (function(module, __webpack_exports__, __webpack_require__) {
18784
18785"use strict";
18786__webpack_require__.r(__webpack_exports__);
18787/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignCommand", function() { return CreateCampaignCommand; });
18788/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18789/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
18790/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
18791/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
18792/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
18793
18794
18795
18796
18797
18798/**
18799 * <p>Creates a new campaign for an application or updates the settings of an existing campaign for an application.</p>
18800 */
18801var CreateCampaignCommand = /** @class */ (function (_super) {
18802 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateCampaignCommand, _super);
18803 // Start section: command_properties
18804 // End section: command_properties
18805 function CreateCampaignCommand(input) {
18806 var _this =
18807 // Start section: command_constructor
18808 _super.call(this) || this;
18809 _this.input = input;
18810 return _this;
18811 // End section: command_constructor
18812 }
18813 /**
18814 * @internal
18815 */
18816 CreateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18817 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18818 var stack = clientStack.concat(this.middlewareStack);
18819 var logger = configuration.logger;
18820 var clientName = "PinpointClient";
18821 var commandName = "CreateCampaignCommand";
18822 var handlerExecutionContext = {
18823 logger: logger,
18824 clientName: clientName,
18825 commandName: commandName,
18826 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateCampaignRequest"].filterSensitiveLog,
18827 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateCampaignResponse"].filterSensitiveLog,
18828 };
18829 var requestHandler = configuration.requestHandler;
18830 return stack.resolve(function (request) {
18831 return requestHandler.handle(request.request, options || {});
18832 }, handlerExecutionContext);
18833 };
18834 CreateCampaignCommand.prototype.serialize = function (input, context) {
18835 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateCampaignCommand"])(input, context);
18836 };
18837 CreateCampaignCommand.prototype.deserialize = function (output, context) {
18838 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateCampaignCommand"])(output, context);
18839 };
18840 return CreateCampaignCommand;
18841}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18842
18843//# sourceMappingURL=CreateCampaignCommand.js.map
18844
18845/***/ }),
18846
18847/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js":
18848/*!*************************************************************************************************************!*\
18849 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js ***!
18850 \*************************************************************************************************************/
18851/*! exports provided: CreateEmailTemplateCommand */
18852/***/ (function(module, __webpack_exports__, __webpack_require__) {
18853
18854"use strict";
18855__webpack_require__.r(__webpack_exports__);
18856/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateCommand", function() { return CreateEmailTemplateCommand; });
18857/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18858/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
18859/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
18860/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
18861/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
18862
18863
18864
18865
18866
18867/**
18868 * <p>Creates a message template for messages that are sent through the email channel.</p>
18869 */
18870var CreateEmailTemplateCommand = /** @class */ (function (_super) {
18871 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateEmailTemplateCommand, _super);
18872 // Start section: command_properties
18873 // End section: command_properties
18874 function CreateEmailTemplateCommand(input) {
18875 var _this =
18876 // Start section: command_constructor
18877 _super.call(this) || this;
18878 _this.input = input;
18879 return _this;
18880 // End section: command_constructor
18881 }
18882 /**
18883 * @internal
18884 */
18885 CreateEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18886 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18887 var stack = clientStack.concat(this.middlewareStack);
18888 var logger = configuration.logger;
18889 var clientName = "PinpointClient";
18890 var commandName = "CreateEmailTemplateCommand";
18891 var handlerExecutionContext = {
18892 logger: logger,
18893 clientName: clientName,
18894 commandName: commandName,
18895 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateEmailTemplateRequest"].filterSensitiveLog,
18896 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateEmailTemplateResponse"].filterSensitiveLog,
18897 };
18898 var requestHandler = configuration.requestHandler;
18899 return stack.resolve(function (request) {
18900 return requestHandler.handle(request.request, options || {});
18901 }, handlerExecutionContext);
18902 };
18903 CreateEmailTemplateCommand.prototype.serialize = function (input, context) {
18904 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateEmailTemplateCommand"])(input, context);
18905 };
18906 CreateEmailTemplateCommand.prototype.deserialize = function (output, context) {
18907 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateEmailTemplateCommand"])(output, context);
18908 };
18909 return CreateEmailTemplateCommand;
18910}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18911
18912//# sourceMappingURL=CreateEmailTemplateCommand.js.map
18913
18914/***/ }),
18915
18916/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js":
18917/*!*********************************************************************************************************!*\
18918 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js ***!
18919 \*********************************************************************************************************/
18920/*! exports provided: CreateExportJobCommand */
18921/***/ (function(module, __webpack_exports__, __webpack_require__) {
18922
18923"use strict";
18924__webpack_require__.r(__webpack_exports__);
18925/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobCommand", function() { return CreateExportJobCommand; });
18926/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18927/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
18928/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
18929/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
18930/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
18931
18932
18933
18934
18935
18936/**
18937 * <p>Creates an export job for an application.</p>
18938 */
18939var CreateExportJobCommand = /** @class */ (function (_super) {
18940 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateExportJobCommand, _super);
18941 // Start section: command_properties
18942 // End section: command_properties
18943 function CreateExportJobCommand(input) {
18944 var _this =
18945 // Start section: command_constructor
18946 _super.call(this) || this;
18947 _this.input = input;
18948 return _this;
18949 // End section: command_constructor
18950 }
18951 /**
18952 * @internal
18953 */
18954 CreateExportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
18955 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
18956 var stack = clientStack.concat(this.middlewareStack);
18957 var logger = configuration.logger;
18958 var clientName = "PinpointClient";
18959 var commandName = "CreateExportJobCommand";
18960 var handlerExecutionContext = {
18961 logger: logger,
18962 clientName: clientName,
18963 commandName: commandName,
18964 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateExportJobRequest"].filterSensitiveLog,
18965 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateExportJobResponse"].filterSensitiveLog,
18966 };
18967 var requestHandler = configuration.requestHandler;
18968 return stack.resolve(function (request) {
18969 return requestHandler.handle(request.request, options || {});
18970 }, handlerExecutionContext);
18971 };
18972 CreateExportJobCommand.prototype.serialize = function (input, context) {
18973 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateExportJobCommand"])(input, context);
18974 };
18975 CreateExportJobCommand.prototype.deserialize = function (output, context) {
18976 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateExportJobCommand"])(output, context);
18977 };
18978 return CreateExportJobCommand;
18979}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
18980
18981//# sourceMappingURL=CreateExportJobCommand.js.map
18982
18983/***/ }),
18984
18985/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js":
18986/*!*********************************************************************************************************!*\
18987 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js ***!
18988 \*********************************************************************************************************/
18989/*! exports provided: CreateImportJobCommand */
18990/***/ (function(module, __webpack_exports__, __webpack_require__) {
18991
18992"use strict";
18993__webpack_require__.r(__webpack_exports__);
18994/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobCommand", function() { return CreateImportJobCommand; });
18995/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
18996/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
18997/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
18998/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
18999/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19000
19001
19002
19003
19004
19005/**
19006 * <p>Creates an import job for an application.</p>
19007 */
19008var CreateImportJobCommand = /** @class */ (function (_super) {
19009 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateImportJobCommand, _super);
19010 // Start section: command_properties
19011 // End section: command_properties
19012 function CreateImportJobCommand(input) {
19013 var _this =
19014 // Start section: command_constructor
19015 _super.call(this) || this;
19016 _this.input = input;
19017 return _this;
19018 // End section: command_constructor
19019 }
19020 /**
19021 * @internal
19022 */
19023 CreateImportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19024 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19025 var stack = clientStack.concat(this.middlewareStack);
19026 var logger = configuration.logger;
19027 var clientName = "PinpointClient";
19028 var commandName = "CreateImportJobCommand";
19029 var handlerExecutionContext = {
19030 logger: logger,
19031 clientName: clientName,
19032 commandName: commandName,
19033 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateImportJobRequest"].filterSensitiveLog,
19034 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateImportJobResponse"].filterSensitiveLog,
19035 };
19036 var requestHandler = configuration.requestHandler;
19037 return stack.resolve(function (request) {
19038 return requestHandler.handle(request.request, options || {});
19039 }, handlerExecutionContext);
19040 };
19041 CreateImportJobCommand.prototype.serialize = function (input, context) {
19042 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateImportJobCommand"])(input, context);
19043 };
19044 CreateImportJobCommand.prototype.deserialize = function (output, context) {
19045 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateImportJobCommand"])(output, context);
19046 };
19047 return CreateImportJobCommand;
19048}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19049
19050//# sourceMappingURL=CreateImportJobCommand.js.map
19051
19052/***/ }),
19053
19054/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js":
19055/*!*******************************************************************************************************!*\
19056 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js ***!
19057 \*******************************************************************************************************/
19058/*! exports provided: CreateJourneyCommand */
19059/***/ (function(module, __webpack_exports__, __webpack_require__) {
19060
19061"use strict";
19062__webpack_require__.r(__webpack_exports__);
19063/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyCommand", function() { return CreateJourneyCommand; });
19064/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19065/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19066/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19067/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19068/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19069
19070
19071
19072
19073
19074/**
19075 * <p>Creates a journey for an application.</p>
19076 */
19077var CreateJourneyCommand = /** @class */ (function (_super) {
19078 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateJourneyCommand, _super);
19079 // Start section: command_properties
19080 // End section: command_properties
19081 function CreateJourneyCommand(input) {
19082 var _this =
19083 // Start section: command_constructor
19084 _super.call(this) || this;
19085 _this.input = input;
19086 return _this;
19087 // End section: command_constructor
19088 }
19089 /**
19090 * @internal
19091 */
19092 CreateJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19093 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19094 var stack = clientStack.concat(this.middlewareStack);
19095 var logger = configuration.logger;
19096 var clientName = "PinpointClient";
19097 var commandName = "CreateJourneyCommand";
19098 var handlerExecutionContext = {
19099 logger: logger,
19100 clientName: clientName,
19101 commandName: commandName,
19102 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateJourneyRequest"].filterSensitiveLog,
19103 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateJourneyResponse"].filterSensitiveLog,
19104 };
19105 var requestHandler = configuration.requestHandler;
19106 return stack.resolve(function (request) {
19107 return requestHandler.handle(request.request, options || {});
19108 }, handlerExecutionContext);
19109 };
19110 CreateJourneyCommand.prototype.serialize = function (input, context) {
19111 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateJourneyCommand"])(input, context);
19112 };
19113 CreateJourneyCommand.prototype.deserialize = function (output, context) {
19114 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateJourneyCommand"])(output, context);
19115 };
19116 return CreateJourneyCommand;
19117}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19118
19119//# sourceMappingURL=CreateJourneyCommand.js.map
19120
19121/***/ }),
19122
19123/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js":
19124/*!************************************************************************************************************!*\
19125 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js ***!
19126 \************************************************************************************************************/
19127/*! exports provided: CreatePushTemplateCommand */
19128/***/ (function(module, __webpack_exports__, __webpack_require__) {
19129
19130"use strict";
19131__webpack_require__.r(__webpack_exports__);
19132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateCommand", function() { return CreatePushTemplateCommand; });
19133/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19134/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19135/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19136/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19137/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19138
19139
19140
19141
19142
19143/**
19144 * <p>Creates a message template for messages that are sent through a push notification channel.</p>
19145 */
19146var CreatePushTemplateCommand = /** @class */ (function (_super) {
19147 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatePushTemplateCommand, _super);
19148 // Start section: command_properties
19149 // End section: command_properties
19150 function CreatePushTemplateCommand(input) {
19151 var _this =
19152 // Start section: command_constructor
19153 _super.call(this) || this;
19154 _this.input = input;
19155 return _this;
19156 // End section: command_constructor
19157 }
19158 /**
19159 * @internal
19160 */
19161 CreatePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19162 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19163 var stack = clientStack.concat(this.middlewareStack);
19164 var logger = configuration.logger;
19165 var clientName = "PinpointClient";
19166 var commandName = "CreatePushTemplateCommand";
19167 var handlerExecutionContext = {
19168 logger: logger,
19169 clientName: clientName,
19170 commandName: commandName,
19171 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreatePushTemplateRequest"].filterSensitiveLog,
19172 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreatePushTemplateResponse"].filterSensitiveLog,
19173 };
19174 var requestHandler = configuration.requestHandler;
19175 return stack.resolve(function (request) {
19176 return requestHandler.handle(request.request, options || {});
19177 }, handlerExecutionContext);
19178 };
19179 CreatePushTemplateCommand.prototype.serialize = function (input, context) {
19180 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreatePushTemplateCommand"])(input, context);
19181 };
19182 CreatePushTemplateCommand.prototype.deserialize = function (output, context) {
19183 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreatePushTemplateCommand"])(output, context);
19184 };
19185 return CreatePushTemplateCommand;
19186}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19187
19188//# sourceMappingURL=CreatePushTemplateCommand.js.map
19189
19190/***/ }),
19191
19192/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js":
19193/*!************************************************************************************************************************!*\
19194 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js ***!
19195 \************************************************************************************************************************/
19196/*! exports provided: CreateRecommenderConfigurationCommand */
19197/***/ (function(module, __webpack_exports__, __webpack_require__) {
19198
19199"use strict";
19200__webpack_require__.r(__webpack_exports__);
19201/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationCommand", function() { return CreateRecommenderConfigurationCommand; });
19202/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19203/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19204/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19205/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19206/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19207
19208
19209
19210
19211
19212/**
19213 * <p>Creates an Amazon Pinpoint configuration for a recommender model.</p>
19214 */
19215var CreateRecommenderConfigurationCommand = /** @class */ (function (_super) {
19216 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateRecommenderConfigurationCommand, _super);
19217 // Start section: command_properties
19218 // End section: command_properties
19219 function CreateRecommenderConfigurationCommand(input) {
19220 var _this =
19221 // Start section: command_constructor
19222 _super.call(this) || this;
19223 _this.input = input;
19224 return _this;
19225 // End section: command_constructor
19226 }
19227 /**
19228 * @internal
19229 */
19230 CreateRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19231 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19232 var stack = clientStack.concat(this.middlewareStack);
19233 var logger = configuration.logger;
19234 var clientName = "PinpointClient";
19235 var commandName = "CreateRecommenderConfigurationCommand";
19236 var handlerExecutionContext = {
19237 logger: logger,
19238 clientName: clientName,
19239 commandName: commandName,
19240 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateRecommenderConfigurationRequest"].filterSensitiveLog,
19241 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateRecommenderConfigurationResponse"].filterSensitiveLog,
19242 };
19243 var requestHandler = configuration.requestHandler;
19244 return stack.resolve(function (request) {
19245 return requestHandler.handle(request.request, options || {});
19246 }, handlerExecutionContext);
19247 };
19248 CreateRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
19249 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateRecommenderConfigurationCommand"])(input, context);
19250 };
19251 CreateRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
19252 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateRecommenderConfigurationCommand"])(output, context);
19253 };
19254 return CreateRecommenderConfigurationCommand;
19255}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19256
19257//# sourceMappingURL=CreateRecommenderConfigurationCommand.js.map
19258
19259/***/ }),
19260
19261/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js":
19262/*!*******************************************************************************************************!*\
19263 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js ***!
19264 \*******************************************************************************************************/
19265/*! exports provided: CreateSegmentCommand */
19266/***/ (function(module, __webpack_exports__, __webpack_require__) {
19267
19268"use strict";
19269__webpack_require__.r(__webpack_exports__);
19270/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentCommand", function() { return CreateSegmentCommand; });
19271/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19272/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19273/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19274/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19275/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19276
19277
19278
19279
19280
19281/**
19282 * <p>Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.</p>
19283 */
19284var CreateSegmentCommand = /** @class */ (function (_super) {
19285 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateSegmentCommand, _super);
19286 // Start section: command_properties
19287 // End section: command_properties
19288 function CreateSegmentCommand(input) {
19289 var _this =
19290 // Start section: command_constructor
19291 _super.call(this) || this;
19292 _this.input = input;
19293 return _this;
19294 // End section: command_constructor
19295 }
19296 /**
19297 * @internal
19298 */
19299 CreateSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19300 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19301 var stack = clientStack.concat(this.middlewareStack);
19302 var logger = configuration.logger;
19303 var clientName = "PinpointClient";
19304 var commandName = "CreateSegmentCommand";
19305 var handlerExecutionContext = {
19306 logger: logger,
19307 clientName: clientName,
19308 commandName: commandName,
19309 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSegmentRequest"].filterSensitiveLog,
19310 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSegmentResponse"].filterSensitiveLog,
19311 };
19312 var requestHandler = configuration.requestHandler;
19313 return stack.resolve(function (request) {
19314 return requestHandler.handle(request.request, options || {});
19315 }, handlerExecutionContext);
19316 };
19317 CreateSegmentCommand.prototype.serialize = function (input, context) {
19318 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateSegmentCommand"])(input, context);
19319 };
19320 CreateSegmentCommand.prototype.deserialize = function (output, context) {
19321 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateSegmentCommand"])(output, context);
19322 };
19323 return CreateSegmentCommand;
19324}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19325
19326//# sourceMappingURL=CreateSegmentCommand.js.map
19327
19328/***/ }),
19329
19330/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js":
19331/*!***********************************************************************************************************!*\
19332 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js ***!
19333 \***********************************************************************************************************/
19334/*! exports provided: CreateSmsTemplateCommand */
19335/***/ (function(module, __webpack_exports__, __webpack_require__) {
19336
19337"use strict";
19338__webpack_require__.r(__webpack_exports__);
19339/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateCommand", function() { return CreateSmsTemplateCommand; });
19340/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19341/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19342/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19343/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19344/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19345
19346
19347
19348
19349
19350/**
19351 * <p>Creates a message template for messages that are sent through the SMS channel.</p>
19352 */
19353var CreateSmsTemplateCommand = /** @class */ (function (_super) {
19354 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateSmsTemplateCommand, _super);
19355 // Start section: command_properties
19356 // End section: command_properties
19357 function CreateSmsTemplateCommand(input) {
19358 var _this =
19359 // Start section: command_constructor
19360 _super.call(this) || this;
19361 _this.input = input;
19362 return _this;
19363 // End section: command_constructor
19364 }
19365 /**
19366 * @internal
19367 */
19368 CreateSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19369 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19370 var stack = clientStack.concat(this.middlewareStack);
19371 var logger = configuration.logger;
19372 var clientName = "PinpointClient";
19373 var commandName = "CreateSmsTemplateCommand";
19374 var handlerExecutionContext = {
19375 logger: logger,
19376 clientName: clientName,
19377 commandName: commandName,
19378 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSmsTemplateRequest"].filterSensitiveLog,
19379 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateSmsTemplateResponse"].filterSensitiveLog,
19380 };
19381 var requestHandler = configuration.requestHandler;
19382 return stack.resolve(function (request) {
19383 return requestHandler.handle(request.request, options || {});
19384 }, handlerExecutionContext);
19385 };
19386 CreateSmsTemplateCommand.prototype.serialize = function (input, context) {
19387 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateSmsTemplateCommand"])(input, context);
19388 };
19389 CreateSmsTemplateCommand.prototype.deserialize = function (output, context) {
19390 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateSmsTemplateCommand"])(output, context);
19391 };
19392 return CreateSmsTemplateCommand;
19393}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19394
19395//# sourceMappingURL=CreateSmsTemplateCommand.js.map
19396
19397/***/ }),
19398
19399/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js":
19400/*!*************************************************************************************************************!*\
19401 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js ***!
19402 \*************************************************************************************************************/
19403/*! exports provided: CreateVoiceTemplateCommand */
19404/***/ (function(module, __webpack_exports__, __webpack_require__) {
19405
19406"use strict";
19407__webpack_require__.r(__webpack_exports__);
19408/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateCommand", function() { return CreateVoiceTemplateCommand; });
19409/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19410/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19411/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19412/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19413/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19414
19415
19416
19417
19418
19419/**
19420 * <p>Creates a message template for messages that are sent through the voice channel.</p>
19421 */
19422var CreateVoiceTemplateCommand = /** @class */ (function (_super) {
19423 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreateVoiceTemplateCommand, _super);
19424 // Start section: command_properties
19425 // End section: command_properties
19426 function CreateVoiceTemplateCommand(input) {
19427 var _this =
19428 // Start section: command_constructor
19429 _super.call(this) || this;
19430 _this.input = input;
19431 return _this;
19432 // End section: command_constructor
19433 }
19434 /**
19435 * @internal
19436 */
19437 CreateVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19438 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19439 var stack = clientStack.concat(this.middlewareStack);
19440 var logger = configuration.logger;
19441 var clientName = "PinpointClient";
19442 var commandName = "CreateVoiceTemplateCommand";
19443 var handlerExecutionContext = {
19444 logger: logger,
19445 clientName: clientName,
19446 commandName: commandName,
19447 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateVoiceTemplateRequest"].filterSensitiveLog,
19448 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["CreateVoiceTemplateResponse"].filterSensitiveLog,
19449 };
19450 var requestHandler = configuration.requestHandler;
19451 return stack.resolve(function (request) {
19452 return requestHandler.handle(request.request, options || {});
19453 }, handlerExecutionContext);
19454 };
19455 CreateVoiceTemplateCommand.prototype.serialize = function (input, context) {
19456 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1CreateVoiceTemplateCommand"])(input, context);
19457 };
19458 CreateVoiceTemplateCommand.prototype.deserialize = function (output, context) {
19459 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1CreateVoiceTemplateCommand"])(output, context);
19460 };
19461 return CreateVoiceTemplateCommand;
19462}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19463
19464//# sourceMappingURL=CreateVoiceTemplateCommand.js.map
19465
19466/***/ }),
19467
19468/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js":
19469/*!**********************************************************************************************************!*\
19470 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js ***!
19471 \**********************************************************************************************************/
19472/*! exports provided: DeleteAdmChannelCommand */
19473/***/ (function(module, __webpack_exports__, __webpack_require__) {
19474
19475"use strict";
19476__webpack_require__.r(__webpack_exports__);
19477/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelCommand", function() { return DeleteAdmChannelCommand; });
19478/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19479/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19480/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19481/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19482/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19483
19484
19485
19486
19487
19488/**
19489 * <p>Disables the ADM channel for an application and deletes any existing settings for the channel.</p>
19490 */
19491var DeleteAdmChannelCommand = /** @class */ (function (_super) {
19492 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteAdmChannelCommand, _super);
19493 // Start section: command_properties
19494 // End section: command_properties
19495 function DeleteAdmChannelCommand(input) {
19496 var _this =
19497 // Start section: command_constructor
19498 _super.call(this) || this;
19499 _this.input = input;
19500 return _this;
19501 // End section: command_constructor
19502 }
19503 /**
19504 * @internal
19505 */
19506 DeleteAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19507 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19508 var stack = clientStack.concat(this.middlewareStack);
19509 var logger = configuration.logger;
19510 var clientName = "PinpointClient";
19511 var commandName = "DeleteAdmChannelCommand";
19512 var handlerExecutionContext = {
19513 logger: logger,
19514 clientName: clientName,
19515 commandName: commandName,
19516 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAdmChannelRequest"].filterSensitiveLog,
19517 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAdmChannelResponse"].filterSensitiveLog,
19518 };
19519 var requestHandler = configuration.requestHandler;
19520 return stack.resolve(function (request) {
19521 return requestHandler.handle(request.request, options || {});
19522 }, handlerExecutionContext);
19523 };
19524 DeleteAdmChannelCommand.prototype.serialize = function (input, context) {
19525 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteAdmChannelCommand"])(input, context);
19526 };
19527 DeleteAdmChannelCommand.prototype.deserialize = function (output, context) {
19528 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteAdmChannelCommand"])(output, context);
19529 };
19530 return DeleteAdmChannelCommand;
19531}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19532
19533//# sourceMappingURL=DeleteAdmChannelCommand.js.map
19534
19535/***/ }),
19536
19537/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js":
19538/*!***********************************************************************************************************!*\
19539 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js ***!
19540 \***********************************************************************************************************/
19541/*! exports provided: DeleteApnsChannelCommand */
19542/***/ (function(module, __webpack_exports__, __webpack_require__) {
19543
19544"use strict";
19545__webpack_require__.r(__webpack_exports__);
19546/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelCommand", function() { return DeleteApnsChannelCommand; });
19547/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19548/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19549/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19550/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19551/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19552
19553
19554
19555
19556
19557/**
19558 * <p>Disables the APNs channel for an application and deletes any existing settings for the channel.</p>
19559 */
19560var DeleteApnsChannelCommand = /** @class */ (function (_super) {
19561 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsChannelCommand, _super);
19562 // Start section: command_properties
19563 // End section: command_properties
19564 function DeleteApnsChannelCommand(input) {
19565 var _this =
19566 // Start section: command_constructor
19567 _super.call(this) || this;
19568 _this.input = input;
19569 return _this;
19570 // End section: command_constructor
19571 }
19572 /**
19573 * @internal
19574 */
19575 DeleteApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19576 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19577 var stack = clientStack.concat(this.middlewareStack);
19578 var logger = configuration.logger;
19579 var clientName = "PinpointClient";
19580 var commandName = "DeleteApnsChannelCommand";
19581 var handlerExecutionContext = {
19582 logger: logger,
19583 clientName: clientName,
19584 commandName: commandName,
19585 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsChannelRequest"].filterSensitiveLog,
19586 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsChannelResponse"].filterSensitiveLog,
19587 };
19588 var requestHandler = configuration.requestHandler;
19589 return stack.resolve(function (request) {
19590 return requestHandler.handle(request.request, options || {});
19591 }, handlerExecutionContext);
19592 };
19593 DeleteApnsChannelCommand.prototype.serialize = function (input, context) {
19594 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsChannelCommand"])(input, context);
19595 };
19596 DeleteApnsChannelCommand.prototype.deserialize = function (output, context) {
19597 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsChannelCommand"])(output, context);
19598 };
19599 return DeleteApnsChannelCommand;
19600}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19601
19602//# sourceMappingURL=DeleteApnsChannelCommand.js.map
19603
19604/***/ }),
19605
19606/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js":
19607/*!******************************************************************************************************************!*\
19608 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js ***!
19609 \******************************************************************************************************************/
19610/*! exports provided: DeleteApnsSandboxChannelCommand */
19611/***/ (function(module, __webpack_exports__, __webpack_require__) {
19612
19613"use strict";
19614__webpack_require__.r(__webpack_exports__);
19615/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelCommand", function() { return DeleteApnsSandboxChannelCommand; });
19616/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19617/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19618/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19619/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19620/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19621
19622
19623
19624
19625
19626/**
19627 * <p>Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.</p>
19628 */
19629var DeleteApnsSandboxChannelCommand = /** @class */ (function (_super) {
19630 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsSandboxChannelCommand, _super);
19631 // Start section: command_properties
19632 // End section: command_properties
19633 function DeleteApnsSandboxChannelCommand(input) {
19634 var _this =
19635 // Start section: command_constructor
19636 _super.call(this) || this;
19637 _this.input = input;
19638 return _this;
19639 // End section: command_constructor
19640 }
19641 /**
19642 * @internal
19643 */
19644 DeleteApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19645 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19646 var stack = clientStack.concat(this.middlewareStack);
19647 var logger = configuration.logger;
19648 var clientName = "PinpointClient";
19649 var commandName = "DeleteApnsSandboxChannelCommand";
19650 var handlerExecutionContext = {
19651 logger: logger,
19652 clientName: clientName,
19653 commandName: commandName,
19654 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsSandboxChannelRequest"].filterSensitiveLog,
19655 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsSandboxChannelResponse"].filterSensitiveLog,
19656 };
19657 var requestHandler = configuration.requestHandler;
19658 return stack.resolve(function (request) {
19659 return requestHandler.handle(request.request, options || {});
19660 }, handlerExecutionContext);
19661 };
19662 DeleteApnsSandboxChannelCommand.prototype.serialize = function (input, context) {
19663 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsSandboxChannelCommand"])(input, context);
19664 };
19665 DeleteApnsSandboxChannelCommand.prototype.deserialize = function (output, context) {
19666 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsSandboxChannelCommand"])(output, context);
19667 };
19668 return DeleteApnsSandboxChannelCommand;
19669}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19670
19671//# sourceMappingURL=DeleteApnsSandboxChannelCommand.js.map
19672
19673/***/ }),
19674
19675/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js":
19676/*!***************************************************************************************************************!*\
19677 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js ***!
19678 \***************************************************************************************************************/
19679/*! exports provided: DeleteApnsVoipChannelCommand */
19680/***/ (function(module, __webpack_exports__, __webpack_require__) {
19681
19682"use strict";
19683__webpack_require__.r(__webpack_exports__);
19684/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelCommand", function() { return DeleteApnsVoipChannelCommand; });
19685/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19686/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19687/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19688/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19689/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19690
19691
19692
19693
19694
19695/**
19696 * <p>Disables the APNs VoIP channel for an application and deletes any existing settings for the channel.</p>
19697 */
19698var DeleteApnsVoipChannelCommand = /** @class */ (function (_super) {
19699 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsVoipChannelCommand, _super);
19700 // Start section: command_properties
19701 // End section: command_properties
19702 function DeleteApnsVoipChannelCommand(input) {
19703 var _this =
19704 // Start section: command_constructor
19705 _super.call(this) || this;
19706 _this.input = input;
19707 return _this;
19708 // End section: command_constructor
19709 }
19710 /**
19711 * @internal
19712 */
19713 DeleteApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19714 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19715 var stack = clientStack.concat(this.middlewareStack);
19716 var logger = configuration.logger;
19717 var clientName = "PinpointClient";
19718 var commandName = "DeleteApnsVoipChannelCommand";
19719 var handlerExecutionContext = {
19720 logger: logger,
19721 clientName: clientName,
19722 commandName: commandName,
19723 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipChannelRequest"].filterSensitiveLog,
19724 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipChannelResponse"].filterSensitiveLog,
19725 };
19726 var requestHandler = configuration.requestHandler;
19727 return stack.resolve(function (request) {
19728 return requestHandler.handle(request.request, options || {});
19729 }, handlerExecutionContext);
19730 };
19731 DeleteApnsVoipChannelCommand.prototype.serialize = function (input, context) {
19732 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsVoipChannelCommand"])(input, context);
19733 };
19734 DeleteApnsVoipChannelCommand.prototype.deserialize = function (output, context) {
19735 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsVoipChannelCommand"])(output, context);
19736 };
19737 return DeleteApnsVoipChannelCommand;
19738}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19739
19740//# sourceMappingURL=DeleteApnsVoipChannelCommand.js.map
19741
19742/***/ }),
19743
19744/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js":
19745/*!**********************************************************************************************************************!*\
19746 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js ***!
19747 \**********************************************************************************************************************/
19748/*! exports provided: DeleteApnsVoipSandboxChannelCommand */
19749/***/ (function(module, __webpack_exports__, __webpack_require__) {
19750
19751"use strict";
19752__webpack_require__.r(__webpack_exports__);
19753/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelCommand", function() { return DeleteApnsVoipSandboxChannelCommand; });
19754/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19755/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19756/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19757/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19758/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19759
19760
19761
19762
19763
19764/**
19765 * <p>Disables the APNs VoIP sandbox channel for an application and deletes any existing settings for the channel.</p>
19766 */
19767var DeleteApnsVoipSandboxChannelCommand = /** @class */ (function (_super) {
19768 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteApnsVoipSandboxChannelCommand, _super);
19769 // Start section: command_properties
19770 // End section: command_properties
19771 function DeleteApnsVoipSandboxChannelCommand(input) {
19772 var _this =
19773 // Start section: command_constructor
19774 _super.call(this) || this;
19775 _this.input = input;
19776 return _this;
19777 // End section: command_constructor
19778 }
19779 /**
19780 * @internal
19781 */
19782 DeleteApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19783 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19784 var stack = clientStack.concat(this.middlewareStack);
19785 var logger = configuration.logger;
19786 var clientName = "PinpointClient";
19787 var commandName = "DeleteApnsVoipSandboxChannelCommand";
19788 var handlerExecutionContext = {
19789 logger: logger,
19790 clientName: clientName,
19791 commandName: commandName,
19792 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipSandboxChannelRequest"].filterSensitiveLog,
19793 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteApnsVoipSandboxChannelResponse"].filterSensitiveLog,
19794 };
19795 var requestHandler = configuration.requestHandler;
19796 return stack.resolve(function (request) {
19797 return requestHandler.handle(request.request, options || {});
19798 }, handlerExecutionContext);
19799 };
19800 DeleteApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) {
19801 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand"])(input, context);
19802 };
19803 DeleteApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) {
19804 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand"])(output, context);
19805 };
19806 return DeleteApnsVoipSandboxChannelCommand;
19807}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19808
19809//# sourceMappingURL=DeleteApnsVoipSandboxChannelCommand.js.map
19810
19811/***/ }),
19812
19813/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js":
19814/*!***************************************************************************************************!*\
19815 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js ***!
19816 \***************************************************************************************************/
19817/*! exports provided: DeleteAppCommand */
19818/***/ (function(module, __webpack_exports__, __webpack_require__) {
19819
19820"use strict";
19821__webpack_require__.r(__webpack_exports__);
19822/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppCommand", function() { return DeleteAppCommand; });
19823/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19824/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19825/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19826/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19827/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19828
19829
19830
19831
19832
19833/**
19834 * <p>Deletes an application.</p>
19835 */
19836var DeleteAppCommand = /** @class */ (function (_super) {
19837 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteAppCommand, _super);
19838 // Start section: command_properties
19839 // End section: command_properties
19840 function DeleteAppCommand(input) {
19841 var _this =
19842 // Start section: command_constructor
19843 _super.call(this) || this;
19844 _this.input = input;
19845 return _this;
19846 // End section: command_constructor
19847 }
19848 /**
19849 * @internal
19850 */
19851 DeleteAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19852 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19853 var stack = clientStack.concat(this.middlewareStack);
19854 var logger = configuration.logger;
19855 var clientName = "PinpointClient";
19856 var commandName = "DeleteAppCommand";
19857 var handlerExecutionContext = {
19858 logger: logger,
19859 clientName: clientName,
19860 commandName: commandName,
19861 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAppRequest"].filterSensitiveLog,
19862 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteAppResponse"].filterSensitiveLog,
19863 };
19864 var requestHandler = configuration.requestHandler;
19865 return stack.resolve(function (request) {
19866 return requestHandler.handle(request.request, options || {});
19867 }, handlerExecutionContext);
19868 };
19869 DeleteAppCommand.prototype.serialize = function (input, context) {
19870 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteAppCommand"])(input, context);
19871 };
19872 DeleteAppCommand.prototype.deserialize = function (output, context) {
19873 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteAppCommand"])(output, context);
19874 };
19875 return DeleteAppCommand;
19876}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19877
19878//# sourceMappingURL=DeleteAppCommand.js.map
19879
19880/***/ }),
19881
19882/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js":
19883/*!************************************************************************************************************!*\
19884 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js ***!
19885 \************************************************************************************************************/
19886/*! exports provided: DeleteBaiduChannelCommand */
19887/***/ (function(module, __webpack_exports__, __webpack_require__) {
19888
19889"use strict";
19890__webpack_require__.r(__webpack_exports__);
19891/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelCommand", function() { return DeleteBaiduChannelCommand; });
19892/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19893/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19894/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19895/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19896/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19897
19898
19899
19900
19901
19902/**
19903 * <p>Disables the Baidu channel for an application and deletes any existing settings for the channel.</p>
19904 */
19905var DeleteBaiduChannelCommand = /** @class */ (function (_super) {
19906 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteBaiduChannelCommand, _super);
19907 // Start section: command_properties
19908 // End section: command_properties
19909 function DeleteBaiduChannelCommand(input) {
19910 var _this =
19911 // Start section: command_constructor
19912 _super.call(this) || this;
19913 _this.input = input;
19914 return _this;
19915 // End section: command_constructor
19916 }
19917 /**
19918 * @internal
19919 */
19920 DeleteBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19921 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19922 var stack = clientStack.concat(this.middlewareStack);
19923 var logger = configuration.logger;
19924 var clientName = "PinpointClient";
19925 var commandName = "DeleteBaiduChannelCommand";
19926 var handlerExecutionContext = {
19927 logger: logger,
19928 clientName: clientName,
19929 commandName: commandName,
19930 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteBaiduChannelRequest"].filterSensitiveLog,
19931 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteBaiduChannelResponse"].filterSensitiveLog,
19932 };
19933 var requestHandler = configuration.requestHandler;
19934 return stack.resolve(function (request) {
19935 return requestHandler.handle(request.request, options || {});
19936 }, handlerExecutionContext);
19937 };
19938 DeleteBaiduChannelCommand.prototype.serialize = function (input, context) {
19939 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteBaiduChannelCommand"])(input, context);
19940 };
19941 DeleteBaiduChannelCommand.prototype.deserialize = function (output, context) {
19942 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteBaiduChannelCommand"])(output, context);
19943 };
19944 return DeleteBaiduChannelCommand;
19945}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
19946
19947//# sourceMappingURL=DeleteBaiduChannelCommand.js.map
19948
19949/***/ }),
19950
19951/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js":
19952/*!********************************************************************************************************!*\
19953 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js ***!
19954 \********************************************************************************************************/
19955/*! exports provided: DeleteCampaignCommand */
19956/***/ (function(module, __webpack_exports__, __webpack_require__) {
19957
19958"use strict";
19959__webpack_require__.r(__webpack_exports__);
19960/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignCommand", function() { return DeleteCampaignCommand; });
19961/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
19962/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
19963/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
19964/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
19965/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
19966
19967
19968
19969
19970
19971/**
19972 * <p>Deletes a campaign from an application.</p>
19973 */
19974var DeleteCampaignCommand = /** @class */ (function (_super) {
19975 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteCampaignCommand, _super);
19976 // Start section: command_properties
19977 // End section: command_properties
19978 function DeleteCampaignCommand(input) {
19979 var _this =
19980 // Start section: command_constructor
19981 _super.call(this) || this;
19982 _this.input = input;
19983 return _this;
19984 // End section: command_constructor
19985 }
19986 /**
19987 * @internal
19988 */
19989 DeleteCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
19990 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
19991 var stack = clientStack.concat(this.middlewareStack);
19992 var logger = configuration.logger;
19993 var clientName = "PinpointClient";
19994 var commandName = "DeleteCampaignCommand";
19995 var handlerExecutionContext = {
19996 logger: logger,
19997 clientName: clientName,
19998 commandName: commandName,
19999 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteCampaignRequest"].filterSensitiveLog,
20000 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteCampaignResponse"].filterSensitiveLog,
20001 };
20002 var requestHandler = configuration.requestHandler;
20003 return stack.resolve(function (request) {
20004 return requestHandler.handle(request.request, options || {});
20005 }, handlerExecutionContext);
20006 };
20007 DeleteCampaignCommand.prototype.serialize = function (input, context) {
20008 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteCampaignCommand"])(input, context);
20009 };
20010 DeleteCampaignCommand.prototype.deserialize = function (output, context) {
20011 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteCampaignCommand"])(output, context);
20012 };
20013 return DeleteCampaignCommand;
20014}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20015
20016//# sourceMappingURL=DeleteCampaignCommand.js.map
20017
20018/***/ }),
20019
20020/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js":
20021/*!************************************************************************************************************!*\
20022 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js ***!
20023 \************************************************************************************************************/
20024/*! exports provided: DeleteEmailChannelCommand */
20025/***/ (function(module, __webpack_exports__, __webpack_require__) {
20026
20027"use strict";
20028__webpack_require__.r(__webpack_exports__);
20029/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelCommand", function() { return DeleteEmailChannelCommand; });
20030/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20031/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20032/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20033/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20034/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20035
20036
20037
20038
20039
20040/**
20041 * <p>Disables the email channel for an application and deletes any existing settings for the channel.</p>
20042 */
20043var DeleteEmailChannelCommand = /** @class */ (function (_super) {
20044 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEmailChannelCommand, _super);
20045 // Start section: command_properties
20046 // End section: command_properties
20047 function DeleteEmailChannelCommand(input) {
20048 var _this =
20049 // Start section: command_constructor
20050 _super.call(this) || this;
20051 _this.input = input;
20052 return _this;
20053 // End section: command_constructor
20054 }
20055 /**
20056 * @internal
20057 */
20058 DeleteEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20059 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20060 var stack = clientStack.concat(this.middlewareStack);
20061 var logger = configuration.logger;
20062 var clientName = "PinpointClient";
20063 var commandName = "DeleteEmailChannelCommand";
20064 var handlerExecutionContext = {
20065 logger: logger,
20066 clientName: clientName,
20067 commandName: commandName,
20068 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailChannelRequest"].filterSensitiveLog,
20069 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailChannelResponse"].filterSensitiveLog,
20070 };
20071 var requestHandler = configuration.requestHandler;
20072 return stack.resolve(function (request) {
20073 return requestHandler.handle(request.request, options || {});
20074 }, handlerExecutionContext);
20075 };
20076 DeleteEmailChannelCommand.prototype.serialize = function (input, context) {
20077 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEmailChannelCommand"])(input, context);
20078 };
20079 DeleteEmailChannelCommand.prototype.deserialize = function (output, context) {
20080 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEmailChannelCommand"])(output, context);
20081 };
20082 return DeleteEmailChannelCommand;
20083}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20084
20085//# sourceMappingURL=DeleteEmailChannelCommand.js.map
20086
20087/***/ }),
20088
20089/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js":
20090/*!*************************************************************************************************************!*\
20091 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js ***!
20092 \*************************************************************************************************************/
20093/*! exports provided: DeleteEmailTemplateCommand */
20094/***/ (function(module, __webpack_exports__, __webpack_require__) {
20095
20096"use strict";
20097__webpack_require__.r(__webpack_exports__);
20098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateCommand", function() { return DeleteEmailTemplateCommand; });
20099/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20100/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20101/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20102/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20103/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20104
20105
20106
20107
20108
20109/**
20110 * <p>Deletes a message template for messages that were sent through the email channel.</p>
20111 */
20112var DeleteEmailTemplateCommand = /** @class */ (function (_super) {
20113 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEmailTemplateCommand, _super);
20114 // Start section: command_properties
20115 // End section: command_properties
20116 function DeleteEmailTemplateCommand(input) {
20117 var _this =
20118 // Start section: command_constructor
20119 _super.call(this) || this;
20120 _this.input = input;
20121 return _this;
20122 // End section: command_constructor
20123 }
20124 /**
20125 * @internal
20126 */
20127 DeleteEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20128 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20129 var stack = clientStack.concat(this.middlewareStack);
20130 var logger = configuration.logger;
20131 var clientName = "PinpointClient";
20132 var commandName = "DeleteEmailTemplateCommand";
20133 var handlerExecutionContext = {
20134 logger: logger,
20135 clientName: clientName,
20136 commandName: commandName,
20137 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailTemplateRequest"].filterSensitiveLog,
20138 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEmailTemplateResponse"].filterSensitiveLog,
20139 };
20140 var requestHandler = configuration.requestHandler;
20141 return stack.resolve(function (request) {
20142 return requestHandler.handle(request.request, options || {});
20143 }, handlerExecutionContext);
20144 };
20145 DeleteEmailTemplateCommand.prototype.serialize = function (input, context) {
20146 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEmailTemplateCommand"])(input, context);
20147 };
20148 DeleteEmailTemplateCommand.prototype.deserialize = function (output, context) {
20149 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEmailTemplateCommand"])(output, context);
20150 };
20151 return DeleteEmailTemplateCommand;
20152}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20153
20154//# sourceMappingURL=DeleteEmailTemplateCommand.js.map
20155
20156/***/ }),
20157
20158/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js":
20159/*!********************************************************************************************************!*\
20160 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js ***!
20161 \********************************************************************************************************/
20162/*! exports provided: DeleteEndpointCommand */
20163/***/ (function(module, __webpack_exports__, __webpack_require__) {
20164
20165"use strict";
20166__webpack_require__.r(__webpack_exports__);
20167/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return DeleteEndpointCommand; });
20168/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20169/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20170/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20171/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20172/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20173
20174
20175
20176
20177
20178/**
20179 * <p>Deletes an endpoint from an application.</p>
20180 */
20181var DeleteEndpointCommand = /** @class */ (function (_super) {
20182 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEndpointCommand, _super);
20183 // Start section: command_properties
20184 // End section: command_properties
20185 function DeleteEndpointCommand(input) {
20186 var _this =
20187 // Start section: command_constructor
20188 _super.call(this) || this;
20189 _this.input = input;
20190 return _this;
20191 // End section: command_constructor
20192 }
20193 /**
20194 * @internal
20195 */
20196 DeleteEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20197 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20198 var stack = clientStack.concat(this.middlewareStack);
20199 var logger = configuration.logger;
20200 var clientName = "PinpointClient";
20201 var commandName = "DeleteEndpointCommand";
20202 var handlerExecutionContext = {
20203 logger: logger,
20204 clientName: clientName,
20205 commandName: commandName,
20206 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointRequest"].filterSensitiveLog,
20207 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEndpointResponse"].filterSensitiveLog,
20208 };
20209 var requestHandler = configuration.requestHandler;
20210 return stack.resolve(function (request) {
20211 return requestHandler.handle(request.request, options || {});
20212 }, handlerExecutionContext);
20213 };
20214 DeleteEndpointCommand.prototype.serialize = function (input, context) {
20215 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEndpointCommand"])(input, context);
20216 };
20217 DeleteEndpointCommand.prototype.deserialize = function (output, context) {
20218 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEndpointCommand"])(output, context);
20219 };
20220 return DeleteEndpointCommand;
20221}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20222
20223//# sourceMappingURL=DeleteEndpointCommand.js.map
20224
20225/***/ }),
20226
20227/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js":
20228/*!***********************************************************************************************************!*\
20229 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js ***!
20230 \***********************************************************************************************************/
20231/*! exports provided: DeleteEventStreamCommand */
20232/***/ (function(module, __webpack_exports__, __webpack_require__) {
20233
20234"use strict";
20235__webpack_require__.r(__webpack_exports__);
20236/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamCommand", function() { return DeleteEventStreamCommand; });
20237/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20238/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20239/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20240/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20241/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20242
20243
20244
20245
20246
20247/**
20248 * <p>Deletes the event stream for an application.</p>
20249 */
20250var DeleteEventStreamCommand = /** @class */ (function (_super) {
20251 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteEventStreamCommand, _super);
20252 // Start section: command_properties
20253 // End section: command_properties
20254 function DeleteEventStreamCommand(input) {
20255 var _this =
20256 // Start section: command_constructor
20257 _super.call(this) || this;
20258 _this.input = input;
20259 return _this;
20260 // End section: command_constructor
20261 }
20262 /**
20263 * @internal
20264 */
20265 DeleteEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20266 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20267 var stack = clientStack.concat(this.middlewareStack);
20268 var logger = configuration.logger;
20269 var clientName = "PinpointClient";
20270 var commandName = "DeleteEventStreamCommand";
20271 var handlerExecutionContext = {
20272 logger: logger,
20273 clientName: clientName,
20274 commandName: commandName,
20275 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEventStreamRequest"].filterSensitiveLog,
20276 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteEventStreamResponse"].filterSensitiveLog,
20277 };
20278 var requestHandler = configuration.requestHandler;
20279 return stack.resolve(function (request) {
20280 return requestHandler.handle(request.request, options || {});
20281 }, handlerExecutionContext);
20282 };
20283 DeleteEventStreamCommand.prototype.serialize = function (input, context) {
20284 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteEventStreamCommand"])(input, context);
20285 };
20286 DeleteEventStreamCommand.prototype.deserialize = function (output, context) {
20287 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteEventStreamCommand"])(output, context);
20288 };
20289 return DeleteEventStreamCommand;
20290}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20291
20292//# sourceMappingURL=DeleteEventStreamCommand.js.map
20293
20294/***/ }),
20295
20296/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js":
20297/*!**********************************************************************************************************!*\
20298 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js ***!
20299 \**********************************************************************************************************/
20300/*! exports provided: DeleteGcmChannelCommand */
20301/***/ (function(module, __webpack_exports__, __webpack_require__) {
20302
20303"use strict";
20304__webpack_require__.r(__webpack_exports__);
20305/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelCommand", function() { return DeleteGcmChannelCommand; });
20306/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20307/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20308/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20309/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20310/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20311
20312
20313
20314
20315
20316/**
20317 * <p>Disables the GCM channel for an application and deletes any existing settings for the channel.</p>
20318 */
20319var DeleteGcmChannelCommand = /** @class */ (function (_super) {
20320 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteGcmChannelCommand, _super);
20321 // Start section: command_properties
20322 // End section: command_properties
20323 function DeleteGcmChannelCommand(input) {
20324 var _this =
20325 // Start section: command_constructor
20326 _super.call(this) || this;
20327 _this.input = input;
20328 return _this;
20329 // End section: command_constructor
20330 }
20331 /**
20332 * @internal
20333 */
20334 DeleteGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20335 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20336 var stack = clientStack.concat(this.middlewareStack);
20337 var logger = configuration.logger;
20338 var clientName = "PinpointClient";
20339 var commandName = "DeleteGcmChannelCommand";
20340 var handlerExecutionContext = {
20341 logger: logger,
20342 clientName: clientName,
20343 commandName: commandName,
20344 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteGcmChannelRequest"].filterSensitiveLog,
20345 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteGcmChannelResponse"].filterSensitiveLog,
20346 };
20347 var requestHandler = configuration.requestHandler;
20348 return stack.resolve(function (request) {
20349 return requestHandler.handle(request.request, options || {});
20350 }, handlerExecutionContext);
20351 };
20352 DeleteGcmChannelCommand.prototype.serialize = function (input, context) {
20353 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteGcmChannelCommand"])(input, context);
20354 };
20355 DeleteGcmChannelCommand.prototype.deserialize = function (output, context) {
20356 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteGcmChannelCommand"])(output, context);
20357 };
20358 return DeleteGcmChannelCommand;
20359}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20360
20361//# sourceMappingURL=DeleteGcmChannelCommand.js.map
20362
20363/***/ }),
20364
20365/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js":
20366/*!*******************************************************************************************************!*\
20367 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js ***!
20368 \*******************************************************************************************************/
20369/*! exports provided: DeleteJourneyCommand */
20370/***/ (function(module, __webpack_exports__, __webpack_require__) {
20371
20372"use strict";
20373__webpack_require__.r(__webpack_exports__);
20374/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyCommand", function() { return DeleteJourneyCommand; });
20375/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20376/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20377/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20378/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20379/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20380
20381
20382
20383
20384
20385/**
20386 * <p>Deletes a journey from an application.</p>
20387 */
20388var DeleteJourneyCommand = /** @class */ (function (_super) {
20389 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteJourneyCommand, _super);
20390 // Start section: command_properties
20391 // End section: command_properties
20392 function DeleteJourneyCommand(input) {
20393 var _this =
20394 // Start section: command_constructor
20395 _super.call(this) || this;
20396 _this.input = input;
20397 return _this;
20398 // End section: command_constructor
20399 }
20400 /**
20401 * @internal
20402 */
20403 DeleteJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20404 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20405 var stack = clientStack.concat(this.middlewareStack);
20406 var logger = configuration.logger;
20407 var clientName = "PinpointClient";
20408 var commandName = "DeleteJourneyCommand";
20409 var handlerExecutionContext = {
20410 logger: logger,
20411 clientName: clientName,
20412 commandName: commandName,
20413 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteJourneyRequest"].filterSensitiveLog,
20414 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteJourneyResponse"].filterSensitiveLog,
20415 };
20416 var requestHandler = configuration.requestHandler;
20417 return stack.resolve(function (request) {
20418 return requestHandler.handle(request.request, options || {});
20419 }, handlerExecutionContext);
20420 };
20421 DeleteJourneyCommand.prototype.serialize = function (input, context) {
20422 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteJourneyCommand"])(input, context);
20423 };
20424 DeleteJourneyCommand.prototype.deserialize = function (output, context) {
20425 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteJourneyCommand"])(output, context);
20426 };
20427 return DeleteJourneyCommand;
20428}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20429
20430//# sourceMappingURL=DeleteJourneyCommand.js.map
20431
20432/***/ }),
20433
20434/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js":
20435/*!************************************************************************************************************!*\
20436 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js ***!
20437 \************************************************************************************************************/
20438/*! exports provided: DeletePushTemplateCommand */
20439/***/ (function(module, __webpack_exports__, __webpack_require__) {
20440
20441"use strict";
20442__webpack_require__.r(__webpack_exports__);
20443/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateCommand", function() { return DeletePushTemplateCommand; });
20444/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20445/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20446/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20447/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20448/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20449
20450
20451
20452
20453
20454/**
20455 * <p>Deletes a message template for messages that were sent through a push notification channel.</p>
20456 */
20457var DeletePushTemplateCommand = /** @class */ (function (_super) {
20458 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeletePushTemplateCommand, _super);
20459 // Start section: command_properties
20460 // End section: command_properties
20461 function DeletePushTemplateCommand(input) {
20462 var _this =
20463 // Start section: command_constructor
20464 _super.call(this) || this;
20465 _this.input = input;
20466 return _this;
20467 // End section: command_constructor
20468 }
20469 /**
20470 * @internal
20471 */
20472 DeletePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20473 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20474 var stack = clientStack.concat(this.middlewareStack);
20475 var logger = configuration.logger;
20476 var clientName = "PinpointClient";
20477 var commandName = "DeletePushTemplateCommand";
20478 var handlerExecutionContext = {
20479 logger: logger,
20480 clientName: clientName,
20481 commandName: commandName,
20482 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeletePushTemplateRequest"].filterSensitiveLog,
20483 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeletePushTemplateResponse"].filterSensitiveLog,
20484 };
20485 var requestHandler = configuration.requestHandler;
20486 return stack.resolve(function (request) {
20487 return requestHandler.handle(request.request, options || {});
20488 }, handlerExecutionContext);
20489 };
20490 DeletePushTemplateCommand.prototype.serialize = function (input, context) {
20491 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeletePushTemplateCommand"])(input, context);
20492 };
20493 DeletePushTemplateCommand.prototype.deserialize = function (output, context) {
20494 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeletePushTemplateCommand"])(output, context);
20495 };
20496 return DeletePushTemplateCommand;
20497}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20498
20499//# sourceMappingURL=DeletePushTemplateCommand.js.map
20500
20501/***/ }),
20502
20503/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js":
20504/*!************************************************************************************************************************!*\
20505 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js ***!
20506 \************************************************************************************************************************/
20507/*! exports provided: DeleteRecommenderConfigurationCommand */
20508/***/ (function(module, __webpack_exports__, __webpack_require__) {
20509
20510"use strict";
20511__webpack_require__.r(__webpack_exports__);
20512/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationCommand", function() { return DeleteRecommenderConfigurationCommand; });
20513/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20514/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20515/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20516/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20517/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20518
20519
20520
20521
20522
20523/**
20524 * <p>Deletes an Amazon Pinpoint configuration for a recommender model.</p>
20525 */
20526var DeleteRecommenderConfigurationCommand = /** @class */ (function (_super) {
20527 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteRecommenderConfigurationCommand, _super);
20528 // Start section: command_properties
20529 // End section: command_properties
20530 function DeleteRecommenderConfigurationCommand(input) {
20531 var _this =
20532 // Start section: command_constructor
20533 _super.call(this) || this;
20534 _this.input = input;
20535 return _this;
20536 // End section: command_constructor
20537 }
20538 /**
20539 * @internal
20540 */
20541 DeleteRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20542 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20543 var stack = clientStack.concat(this.middlewareStack);
20544 var logger = configuration.logger;
20545 var clientName = "PinpointClient";
20546 var commandName = "DeleteRecommenderConfigurationCommand";
20547 var handlerExecutionContext = {
20548 logger: logger,
20549 clientName: clientName,
20550 commandName: commandName,
20551 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteRecommenderConfigurationRequest"].filterSensitiveLog,
20552 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteRecommenderConfigurationResponse"].filterSensitiveLog,
20553 };
20554 var requestHandler = configuration.requestHandler;
20555 return stack.resolve(function (request) {
20556 return requestHandler.handle(request.request, options || {});
20557 }, handlerExecutionContext);
20558 };
20559 DeleteRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
20560 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteRecommenderConfigurationCommand"])(input, context);
20561 };
20562 DeleteRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
20563 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteRecommenderConfigurationCommand"])(output, context);
20564 };
20565 return DeleteRecommenderConfigurationCommand;
20566}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20567
20568//# sourceMappingURL=DeleteRecommenderConfigurationCommand.js.map
20569
20570/***/ }),
20571
20572/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js":
20573/*!*******************************************************************************************************!*\
20574 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js ***!
20575 \*******************************************************************************************************/
20576/*! exports provided: DeleteSegmentCommand */
20577/***/ (function(module, __webpack_exports__, __webpack_require__) {
20578
20579"use strict";
20580__webpack_require__.r(__webpack_exports__);
20581/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentCommand", function() { return DeleteSegmentCommand; });
20582/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20583/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20584/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20585/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20586/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20587
20588
20589
20590
20591
20592/**
20593 * <p>Deletes a segment from an application.</p>
20594 */
20595var DeleteSegmentCommand = /** @class */ (function (_super) {
20596 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSegmentCommand, _super);
20597 // Start section: command_properties
20598 // End section: command_properties
20599 function DeleteSegmentCommand(input) {
20600 var _this =
20601 // Start section: command_constructor
20602 _super.call(this) || this;
20603 _this.input = input;
20604 return _this;
20605 // End section: command_constructor
20606 }
20607 /**
20608 * @internal
20609 */
20610 DeleteSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20611 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20612 var stack = clientStack.concat(this.middlewareStack);
20613 var logger = configuration.logger;
20614 var clientName = "PinpointClient";
20615 var commandName = "DeleteSegmentCommand";
20616 var handlerExecutionContext = {
20617 logger: logger,
20618 clientName: clientName,
20619 commandName: commandName,
20620 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSegmentRequest"].filterSensitiveLog,
20621 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSegmentResponse"].filterSensitiveLog,
20622 };
20623 var requestHandler = configuration.requestHandler;
20624 return stack.resolve(function (request) {
20625 return requestHandler.handle(request.request, options || {});
20626 }, handlerExecutionContext);
20627 };
20628 DeleteSegmentCommand.prototype.serialize = function (input, context) {
20629 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSegmentCommand"])(input, context);
20630 };
20631 DeleteSegmentCommand.prototype.deserialize = function (output, context) {
20632 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSegmentCommand"])(output, context);
20633 };
20634 return DeleteSegmentCommand;
20635}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20636
20637//# sourceMappingURL=DeleteSegmentCommand.js.map
20638
20639/***/ }),
20640
20641/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js":
20642/*!**********************************************************************************************************!*\
20643 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js ***!
20644 \**********************************************************************************************************/
20645/*! exports provided: DeleteSmsChannelCommand */
20646/***/ (function(module, __webpack_exports__, __webpack_require__) {
20647
20648"use strict";
20649__webpack_require__.r(__webpack_exports__);
20650/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelCommand", function() { return DeleteSmsChannelCommand; });
20651/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20652/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20653/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20654/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20655/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20656
20657
20658
20659
20660
20661/**
20662 * <p>Disables the SMS channel for an application and deletes any existing settings for the channel.</p>
20663 */
20664var DeleteSmsChannelCommand = /** @class */ (function (_super) {
20665 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSmsChannelCommand, _super);
20666 // Start section: command_properties
20667 // End section: command_properties
20668 function DeleteSmsChannelCommand(input) {
20669 var _this =
20670 // Start section: command_constructor
20671 _super.call(this) || this;
20672 _this.input = input;
20673 return _this;
20674 // End section: command_constructor
20675 }
20676 /**
20677 * @internal
20678 */
20679 DeleteSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20680 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20681 var stack = clientStack.concat(this.middlewareStack);
20682 var logger = configuration.logger;
20683 var clientName = "PinpointClient";
20684 var commandName = "DeleteSmsChannelCommand";
20685 var handlerExecutionContext = {
20686 logger: logger,
20687 clientName: clientName,
20688 commandName: commandName,
20689 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsChannelRequest"].filterSensitiveLog,
20690 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsChannelResponse"].filterSensitiveLog,
20691 };
20692 var requestHandler = configuration.requestHandler;
20693 return stack.resolve(function (request) {
20694 return requestHandler.handle(request.request, options || {});
20695 }, handlerExecutionContext);
20696 };
20697 DeleteSmsChannelCommand.prototype.serialize = function (input, context) {
20698 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSmsChannelCommand"])(input, context);
20699 };
20700 DeleteSmsChannelCommand.prototype.deserialize = function (output, context) {
20701 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSmsChannelCommand"])(output, context);
20702 };
20703 return DeleteSmsChannelCommand;
20704}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20705
20706//# sourceMappingURL=DeleteSmsChannelCommand.js.map
20707
20708/***/ }),
20709
20710/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js":
20711/*!***********************************************************************************************************!*\
20712 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js ***!
20713 \***********************************************************************************************************/
20714/*! exports provided: DeleteSmsTemplateCommand */
20715/***/ (function(module, __webpack_exports__, __webpack_require__) {
20716
20717"use strict";
20718__webpack_require__.r(__webpack_exports__);
20719/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateCommand", function() { return DeleteSmsTemplateCommand; });
20720/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20721/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20722/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20723/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20724/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20725
20726
20727
20728
20729
20730/**
20731 * <p>Deletes a message template for messages that were sent through the SMS channel.</p>
20732 */
20733var DeleteSmsTemplateCommand = /** @class */ (function (_super) {
20734 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteSmsTemplateCommand, _super);
20735 // Start section: command_properties
20736 // End section: command_properties
20737 function DeleteSmsTemplateCommand(input) {
20738 var _this =
20739 // Start section: command_constructor
20740 _super.call(this) || this;
20741 _this.input = input;
20742 return _this;
20743 // End section: command_constructor
20744 }
20745 /**
20746 * @internal
20747 */
20748 DeleteSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20749 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20750 var stack = clientStack.concat(this.middlewareStack);
20751 var logger = configuration.logger;
20752 var clientName = "PinpointClient";
20753 var commandName = "DeleteSmsTemplateCommand";
20754 var handlerExecutionContext = {
20755 logger: logger,
20756 clientName: clientName,
20757 commandName: commandName,
20758 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsTemplateRequest"].filterSensitiveLog,
20759 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteSmsTemplateResponse"].filterSensitiveLog,
20760 };
20761 var requestHandler = configuration.requestHandler;
20762 return stack.resolve(function (request) {
20763 return requestHandler.handle(request.request, options || {});
20764 }, handlerExecutionContext);
20765 };
20766 DeleteSmsTemplateCommand.prototype.serialize = function (input, context) {
20767 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteSmsTemplateCommand"])(input, context);
20768 };
20769 DeleteSmsTemplateCommand.prototype.deserialize = function (output, context) {
20770 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteSmsTemplateCommand"])(output, context);
20771 };
20772 return DeleteSmsTemplateCommand;
20773}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20774
20775//# sourceMappingURL=DeleteSmsTemplateCommand.js.map
20776
20777/***/ }),
20778
20779/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js":
20780/*!*************************************************************************************************************!*\
20781 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js ***!
20782 \*************************************************************************************************************/
20783/*! exports provided: DeleteUserEndpointsCommand */
20784/***/ (function(module, __webpack_exports__, __webpack_require__) {
20785
20786"use strict";
20787__webpack_require__.r(__webpack_exports__);
20788/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsCommand", function() { return DeleteUserEndpointsCommand; });
20789/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20790/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20791/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20792/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20793/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20794
20795
20796
20797
20798
20799/**
20800 * <p>Deletes all the endpoints that are associated with a specific user ID.</p>
20801 */
20802var DeleteUserEndpointsCommand = /** @class */ (function (_super) {
20803 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteUserEndpointsCommand, _super);
20804 // Start section: command_properties
20805 // End section: command_properties
20806 function DeleteUserEndpointsCommand(input) {
20807 var _this =
20808 // Start section: command_constructor
20809 _super.call(this) || this;
20810 _this.input = input;
20811 return _this;
20812 // End section: command_constructor
20813 }
20814 /**
20815 * @internal
20816 */
20817 DeleteUserEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20818 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20819 var stack = clientStack.concat(this.middlewareStack);
20820 var logger = configuration.logger;
20821 var clientName = "PinpointClient";
20822 var commandName = "DeleteUserEndpointsCommand";
20823 var handlerExecutionContext = {
20824 logger: logger,
20825 clientName: clientName,
20826 commandName: commandName,
20827 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteUserEndpointsRequest"].filterSensitiveLog,
20828 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteUserEndpointsResponse"].filterSensitiveLog,
20829 };
20830 var requestHandler = configuration.requestHandler;
20831 return stack.resolve(function (request) {
20832 return requestHandler.handle(request.request, options || {});
20833 }, handlerExecutionContext);
20834 };
20835 DeleteUserEndpointsCommand.prototype.serialize = function (input, context) {
20836 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteUserEndpointsCommand"])(input, context);
20837 };
20838 DeleteUserEndpointsCommand.prototype.deserialize = function (output, context) {
20839 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteUserEndpointsCommand"])(output, context);
20840 };
20841 return DeleteUserEndpointsCommand;
20842}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20843
20844//# sourceMappingURL=DeleteUserEndpointsCommand.js.map
20845
20846/***/ }),
20847
20848/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js":
20849/*!************************************************************************************************************!*\
20850 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js ***!
20851 \************************************************************************************************************/
20852/*! exports provided: DeleteVoiceChannelCommand */
20853/***/ (function(module, __webpack_exports__, __webpack_require__) {
20854
20855"use strict";
20856__webpack_require__.r(__webpack_exports__);
20857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelCommand", function() { return DeleteVoiceChannelCommand; });
20858/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20859/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20860/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20861/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20862/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20863
20864
20865
20866
20867
20868/**
20869 * <p>Disables the voice channel for an application and deletes any existing settings for the channel.</p>
20870 */
20871var DeleteVoiceChannelCommand = /** @class */ (function (_super) {
20872 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteVoiceChannelCommand, _super);
20873 // Start section: command_properties
20874 // End section: command_properties
20875 function DeleteVoiceChannelCommand(input) {
20876 var _this =
20877 // Start section: command_constructor
20878 _super.call(this) || this;
20879 _this.input = input;
20880 return _this;
20881 // End section: command_constructor
20882 }
20883 /**
20884 * @internal
20885 */
20886 DeleteVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20887 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20888 var stack = clientStack.concat(this.middlewareStack);
20889 var logger = configuration.logger;
20890 var clientName = "PinpointClient";
20891 var commandName = "DeleteVoiceChannelCommand";
20892 var handlerExecutionContext = {
20893 logger: logger,
20894 clientName: clientName,
20895 commandName: commandName,
20896 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceChannelRequest"].filterSensitiveLog,
20897 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceChannelResponse"].filterSensitiveLog,
20898 };
20899 var requestHandler = configuration.requestHandler;
20900 return stack.resolve(function (request) {
20901 return requestHandler.handle(request.request, options || {});
20902 }, handlerExecutionContext);
20903 };
20904 DeleteVoiceChannelCommand.prototype.serialize = function (input, context) {
20905 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteVoiceChannelCommand"])(input, context);
20906 };
20907 DeleteVoiceChannelCommand.prototype.deserialize = function (output, context) {
20908 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteVoiceChannelCommand"])(output, context);
20909 };
20910 return DeleteVoiceChannelCommand;
20911}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20912
20913//# sourceMappingURL=DeleteVoiceChannelCommand.js.map
20914
20915/***/ }),
20916
20917/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js":
20918/*!*************************************************************************************************************!*\
20919 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js ***!
20920 \*************************************************************************************************************/
20921/*! exports provided: DeleteVoiceTemplateCommand */
20922/***/ (function(module, __webpack_exports__, __webpack_require__) {
20923
20924"use strict";
20925__webpack_require__.r(__webpack_exports__);
20926/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateCommand", function() { return DeleteVoiceTemplateCommand; });
20927/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20928/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20929/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20930/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
20931/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
20932
20933
20934
20935
20936
20937/**
20938 * <p>Deletes a message template for messages that were sent through the voice channel.</p>
20939 */
20940var DeleteVoiceTemplateCommand = /** @class */ (function (_super) {
20941 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DeleteVoiceTemplateCommand, _super);
20942 // Start section: command_properties
20943 // End section: command_properties
20944 function DeleteVoiceTemplateCommand(input) {
20945 var _this =
20946 // Start section: command_constructor
20947 _super.call(this) || this;
20948 _this.input = input;
20949 return _this;
20950 // End section: command_constructor
20951 }
20952 /**
20953 * @internal
20954 */
20955 DeleteVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
20956 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
20957 var stack = clientStack.concat(this.middlewareStack);
20958 var logger = configuration.logger;
20959 var clientName = "PinpointClient";
20960 var commandName = "DeleteVoiceTemplateCommand";
20961 var handlerExecutionContext = {
20962 logger: logger,
20963 clientName: clientName,
20964 commandName: commandName,
20965 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceTemplateRequest"].filterSensitiveLog,
20966 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["DeleteVoiceTemplateResponse"].filterSensitiveLog,
20967 };
20968 var requestHandler = configuration.requestHandler;
20969 return stack.resolve(function (request) {
20970 return requestHandler.handle(request.request, options || {});
20971 }, handlerExecutionContext);
20972 };
20973 DeleteVoiceTemplateCommand.prototype.serialize = function (input, context) {
20974 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1DeleteVoiceTemplateCommand"])(input, context);
20975 };
20976 DeleteVoiceTemplateCommand.prototype.deserialize = function (output, context) {
20977 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1DeleteVoiceTemplateCommand"])(output, context);
20978 };
20979 return DeleteVoiceTemplateCommand;
20980}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
20981
20982//# sourceMappingURL=DeleteVoiceTemplateCommand.js.map
20983
20984/***/ }),
20985
20986/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js":
20987/*!*******************************************************************************************************!*\
20988 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js ***!
20989 \*******************************************************************************************************/
20990/*! exports provided: GetAdmChannelCommand */
20991/***/ (function(module, __webpack_exports__, __webpack_require__) {
20992
20993"use strict";
20994__webpack_require__.r(__webpack_exports__);
20995/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelCommand", function() { return GetAdmChannelCommand; });
20996/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
20997/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
20998/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
20999/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21000/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21001
21002
21003
21004
21005
21006/**
21007 * <p>Retrieves information about the status and settings of the ADM channel for an application.</p>
21008 */
21009var GetAdmChannelCommand = /** @class */ (function (_super) {
21010 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAdmChannelCommand, _super);
21011 // Start section: command_properties
21012 // End section: command_properties
21013 function GetAdmChannelCommand(input) {
21014 var _this =
21015 // Start section: command_constructor
21016 _super.call(this) || this;
21017 _this.input = input;
21018 return _this;
21019 // End section: command_constructor
21020 }
21021 /**
21022 * @internal
21023 */
21024 GetAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21025 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21026 var stack = clientStack.concat(this.middlewareStack);
21027 var logger = configuration.logger;
21028 var clientName = "PinpointClient";
21029 var commandName = "GetAdmChannelCommand";
21030 var handlerExecutionContext = {
21031 logger: logger,
21032 clientName: clientName,
21033 commandName: commandName,
21034 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAdmChannelRequest"].filterSensitiveLog,
21035 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAdmChannelResponse"].filterSensitiveLog,
21036 };
21037 var requestHandler = configuration.requestHandler;
21038 return stack.resolve(function (request) {
21039 return requestHandler.handle(request.request, options || {});
21040 }, handlerExecutionContext);
21041 };
21042 GetAdmChannelCommand.prototype.serialize = function (input, context) {
21043 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAdmChannelCommand"])(input, context);
21044 };
21045 GetAdmChannelCommand.prototype.deserialize = function (output, context) {
21046 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAdmChannelCommand"])(output, context);
21047 };
21048 return GetAdmChannelCommand;
21049}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21050
21051//# sourceMappingURL=GetAdmChannelCommand.js.map
21052
21053/***/ }),
21054
21055/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js":
21056/*!********************************************************************************************************!*\
21057 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js ***!
21058 \********************************************************************************************************/
21059/*! exports provided: GetApnsChannelCommand */
21060/***/ (function(module, __webpack_exports__, __webpack_require__) {
21061
21062"use strict";
21063__webpack_require__.r(__webpack_exports__);
21064/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelCommand", function() { return GetApnsChannelCommand; });
21065/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21066/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21067/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21068/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21069/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21070
21071
21072
21073
21074
21075/**
21076 * <p>Retrieves information about the status and settings of the APNs channel for an application.</p>
21077 */
21078var GetApnsChannelCommand = /** @class */ (function (_super) {
21079 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsChannelCommand, _super);
21080 // Start section: command_properties
21081 // End section: command_properties
21082 function GetApnsChannelCommand(input) {
21083 var _this =
21084 // Start section: command_constructor
21085 _super.call(this) || this;
21086 _this.input = input;
21087 return _this;
21088 // End section: command_constructor
21089 }
21090 /**
21091 * @internal
21092 */
21093 GetApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21094 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21095 var stack = clientStack.concat(this.middlewareStack);
21096 var logger = configuration.logger;
21097 var clientName = "PinpointClient";
21098 var commandName = "GetApnsChannelCommand";
21099 var handlerExecutionContext = {
21100 logger: logger,
21101 clientName: clientName,
21102 commandName: commandName,
21103 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsChannelRequest"].filterSensitiveLog,
21104 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsChannelResponse"].filterSensitiveLog,
21105 };
21106 var requestHandler = configuration.requestHandler;
21107 return stack.resolve(function (request) {
21108 return requestHandler.handle(request.request, options || {});
21109 }, handlerExecutionContext);
21110 };
21111 GetApnsChannelCommand.prototype.serialize = function (input, context) {
21112 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsChannelCommand"])(input, context);
21113 };
21114 GetApnsChannelCommand.prototype.deserialize = function (output, context) {
21115 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsChannelCommand"])(output, context);
21116 };
21117 return GetApnsChannelCommand;
21118}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21119
21120//# sourceMappingURL=GetApnsChannelCommand.js.map
21121
21122/***/ }),
21123
21124/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js":
21125/*!***************************************************************************************************************!*\
21126 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js ***!
21127 \***************************************************************************************************************/
21128/*! exports provided: GetApnsSandboxChannelCommand */
21129/***/ (function(module, __webpack_exports__, __webpack_require__) {
21130
21131"use strict";
21132__webpack_require__.r(__webpack_exports__);
21133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelCommand", function() { return GetApnsSandboxChannelCommand; });
21134/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21135/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21136/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21137/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21138/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21139
21140
21141
21142
21143
21144/**
21145 * <p>Retrieves information about the status and settings of the APNs sandbox channel for an application.</p>
21146 */
21147var GetApnsSandboxChannelCommand = /** @class */ (function (_super) {
21148 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsSandboxChannelCommand, _super);
21149 // Start section: command_properties
21150 // End section: command_properties
21151 function GetApnsSandboxChannelCommand(input) {
21152 var _this =
21153 // Start section: command_constructor
21154 _super.call(this) || this;
21155 _this.input = input;
21156 return _this;
21157 // End section: command_constructor
21158 }
21159 /**
21160 * @internal
21161 */
21162 GetApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21163 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21164 var stack = clientStack.concat(this.middlewareStack);
21165 var logger = configuration.logger;
21166 var clientName = "PinpointClient";
21167 var commandName = "GetApnsSandboxChannelCommand";
21168 var handlerExecutionContext = {
21169 logger: logger,
21170 clientName: clientName,
21171 commandName: commandName,
21172 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsSandboxChannelRequest"].filterSensitiveLog,
21173 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsSandboxChannelResponse"].filterSensitiveLog,
21174 };
21175 var requestHandler = configuration.requestHandler;
21176 return stack.resolve(function (request) {
21177 return requestHandler.handle(request.request, options || {});
21178 }, handlerExecutionContext);
21179 };
21180 GetApnsSandboxChannelCommand.prototype.serialize = function (input, context) {
21181 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsSandboxChannelCommand"])(input, context);
21182 };
21183 GetApnsSandboxChannelCommand.prototype.deserialize = function (output, context) {
21184 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsSandboxChannelCommand"])(output, context);
21185 };
21186 return GetApnsSandboxChannelCommand;
21187}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21188
21189//# sourceMappingURL=GetApnsSandboxChannelCommand.js.map
21190
21191/***/ }),
21192
21193/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js":
21194/*!************************************************************************************************************!*\
21195 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js ***!
21196 \************************************************************************************************************/
21197/*! exports provided: GetApnsVoipChannelCommand */
21198/***/ (function(module, __webpack_exports__, __webpack_require__) {
21199
21200"use strict";
21201__webpack_require__.r(__webpack_exports__);
21202/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelCommand", function() { return GetApnsVoipChannelCommand; });
21203/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21204/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21205/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21206/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21207/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21208
21209
21210
21211
21212
21213/**
21214 * <p>Retrieves information about the status and settings of the APNs VoIP channel for an application.</p>
21215 */
21216var GetApnsVoipChannelCommand = /** @class */ (function (_super) {
21217 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsVoipChannelCommand, _super);
21218 // Start section: command_properties
21219 // End section: command_properties
21220 function GetApnsVoipChannelCommand(input) {
21221 var _this =
21222 // Start section: command_constructor
21223 _super.call(this) || this;
21224 _this.input = input;
21225 return _this;
21226 // End section: command_constructor
21227 }
21228 /**
21229 * @internal
21230 */
21231 GetApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21232 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21233 var stack = clientStack.concat(this.middlewareStack);
21234 var logger = configuration.logger;
21235 var clientName = "PinpointClient";
21236 var commandName = "GetApnsVoipChannelCommand";
21237 var handlerExecutionContext = {
21238 logger: logger,
21239 clientName: clientName,
21240 commandName: commandName,
21241 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipChannelRequest"].filterSensitiveLog,
21242 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipChannelResponse"].filterSensitiveLog,
21243 };
21244 var requestHandler = configuration.requestHandler;
21245 return stack.resolve(function (request) {
21246 return requestHandler.handle(request.request, options || {});
21247 }, handlerExecutionContext);
21248 };
21249 GetApnsVoipChannelCommand.prototype.serialize = function (input, context) {
21250 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsVoipChannelCommand"])(input, context);
21251 };
21252 GetApnsVoipChannelCommand.prototype.deserialize = function (output, context) {
21253 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsVoipChannelCommand"])(output, context);
21254 };
21255 return GetApnsVoipChannelCommand;
21256}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21257
21258//# sourceMappingURL=GetApnsVoipChannelCommand.js.map
21259
21260/***/ }),
21261
21262/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js":
21263/*!*******************************************************************************************************************!*\
21264 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js ***!
21265 \*******************************************************************************************************************/
21266/*! exports provided: GetApnsVoipSandboxChannelCommand */
21267/***/ (function(module, __webpack_exports__, __webpack_require__) {
21268
21269"use strict";
21270__webpack_require__.r(__webpack_exports__);
21271/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelCommand", function() { return GetApnsVoipSandboxChannelCommand; });
21272/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21273/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21274/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21275/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21276/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21277
21278
21279
21280
21281
21282/**
21283 * <p>Retrieves information about the status and settings of the APNs VoIP sandbox channel for an application.</p>
21284 */
21285var GetApnsVoipSandboxChannelCommand = /** @class */ (function (_super) {
21286 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApnsVoipSandboxChannelCommand, _super);
21287 // Start section: command_properties
21288 // End section: command_properties
21289 function GetApnsVoipSandboxChannelCommand(input) {
21290 var _this =
21291 // Start section: command_constructor
21292 _super.call(this) || this;
21293 _this.input = input;
21294 return _this;
21295 // End section: command_constructor
21296 }
21297 /**
21298 * @internal
21299 */
21300 GetApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21301 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21302 var stack = clientStack.concat(this.middlewareStack);
21303 var logger = configuration.logger;
21304 var clientName = "PinpointClient";
21305 var commandName = "GetApnsVoipSandboxChannelCommand";
21306 var handlerExecutionContext = {
21307 logger: logger,
21308 clientName: clientName,
21309 commandName: commandName,
21310 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipSandboxChannelRequest"].filterSensitiveLog,
21311 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApnsVoipSandboxChannelResponse"].filterSensitiveLog,
21312 };
21313 var requestHandler = configuration.requestHandler;
21314 return stack.resolve(function (request) {
21315 return requestHandler.handle(request.request, options || {});
21316 }, handlerExecutionContext);
21317 };
21318 GetApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) {
21319 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApnsVoipSandboxChannelCommand"])(input, context);
21320 };
21321 GetApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) {
21322 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApnsVoipSandboxChannelCommand"])(output, context);
21323 };
21324 return GetApnsVoipSandboxChannelCommand;
21325}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21326
21327//# sourceMappingURL=GetApnsVoipSandboxChannelCommand.js.map
21328
21329/***/ }),
21330
21331/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js":
21332/*!************************************************************************************************!*\
21333 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js ***!
21334 \************************************************************************************************/
21335/*! exports provided: GetAppCommand */
21336/***/ (function(module, __webpack_exports__, __webpack_require__) {
21337
21338"use strict";
21339__webpack_require__.r(__webpack_exports__);
21340/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppCommand", function() { return GetAppCommand; });
21341/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21342/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21343/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21344/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21345/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21346
21347
21348
21349
21350
21351/**
21352 * <p>Retrieves information about an application.</p>
21353 */
21354var GetAppCommand = /** @class */ (function (_super) {
21355 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAppCommand, _super);
21356 // Start section: command_properties
21357 // End section: command_properties
21358 function GetAppCommand(input) {
21359 var _this =
21360 // Start section: command_constructor
21361 _super.call(this) || this;
21362 _this.input = input;
21363 return _this;
21364 // End section: command_constructor
21365 }
21366 /**
21367 * @internal
21368 */
21369 GetAppCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21370 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21371 var stack = clientStack.concat(this.middlewareStack);
21372 var logger = configuration.logger;
21373 var clientName = "PinpointClient";
21374 var commandName = "GetAppCommand";
21375 var handlerExecutionContext = {
21376 logger: logger,
21377 clientName: clientName,
21378 commandName: commandName,
21379 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppRequest"].filterSensitiveLog,
21380 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppResponse"].filterSensitiveLog,
21381 };
21382 var requestHandler = configuration.requestHandler;
21383 return stack.resolve(function (request) {
21384 return requestHandler.handle(request.request, options || {});
21385 }, handlerExecutionContext);
21386 };
21387 GetAppCommand.prototype.serialize = function (input, context) {
21388 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAppCommand"])(input, context);
21389 };
21390 GetAppCommand.prototype.deserialize = function (output, context) {
21391 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAppCommand"])(output, context);
21392 };
21393 return GetAppCommand;
21394}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21395
21396//# sourceMappingURL=GetAppCommand.js.map
21397
21398/***/ }),
21399
21400/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js":
21401/*!********************************************************************************************************************!*\
21402 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js ***!
21403 \********************************************************************************************************************/
21404/*! exports provided: GetApplicationDateRangeKpiCommand */
21405/***/ (function(module, __webpack_exports__, __webpack_require__) {
21406
21407"use strict";
21408__webpack_require__.r(__webpack_exports__);
21409/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiCommand", function() { return GetApplicationDateRangeKpiCommand; });
21410/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21411/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21412/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21413/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21414/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21415
21416
21417
21418
21419
21420/**
21421 * <p>Retrieves (queries) pre-aggregated data for a standard metric that applies to an application.</p>
21422 */
21423var GetApplicationDateRangeKpiCommand = /** @class */ (function (_super) {
21424 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApplicationDateRangeKpiCommand, _super);
21425 // Start section: command_properties
21426 // End section: command_properties
21427 function GetApplicationDateRangeKpiCommand(input) {
21428 var _this =
21429 // Start section: command_constructor
21430 _super.call(this) || this;
21431 _this.input = input;
21432 return _this;
21433 // End section: command_constructor
21434 }
21435 /**
21436 * @internal
21437 */
21438 GetApplicationDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21439 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21440 var stack = clientStack.concat(this.middlewareStack);
21441 var logger = configuration.logger;
21442 var clientName = "PinpointClient";
21443 var commandName = "GetApplicationDateRangeKpiCommand";
21444 var handlerExecutionContext = {
21445 logger: logger,
21446 clientName: clientName,
21447 commandName: commandName,
21448 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationDateRangeKpiRequest"].filterSensitiveLog,
21449 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationDateRangeKpiResponse"].filterSensitiveLog,
21450 };
21451 var requestHandler = configuration.requestHandler;
21452 return stack.resolve(function (request) {
21453 return requestHandler.handle(request.request, options || {});
21454 }, handlerExecutionContext);
21455 };
21456 GetApplicationDateRangeKpiCommand.prototype.serialize = function (input, context) {
21457 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApplicationDateRangeKpiCommand"])(input, context);
21458 };
21459 GetApplicationDateRangeKpiCommand.prototype.deserialize = function (output, context) {
21460 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApplicationDateRangeKpiCommand"])(output, context);
21461 };
21462 return GetApplicationDateRangeKpiCommand;
21463}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21464
21465//# sourceMappingURL=GetApplicationDateRangeKpiCommand.js.map
21466
21467/***/ }),
21468
21469/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js":
21470/*!****************************************************************************************************************!*\
21471 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js ***!
21472 \****************************************************************************************************************/
21473/*! exports provided: GetApplicationSettingsCommand */
21474/***/ (function(module, __webpack_exports__, __webpack_require__) {
21475
21476"use strict";
21477__webpack_require__.r(__webpack_exports__);
21478/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsCommand", function() { return GetApplicationSettingsCommand; });
21479/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21480/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21481/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21482/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21483/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21484
21485
21486
21487
21488
21489/**
21490 * <p>Retrieves information about the settings for an application.</p>
21491 */
21492var GetApplicationSettingsCommand = /** @class */ (function (_super) {
21493 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetApplicationSettingsCommand, _super);
21494 // Start section: command_properties
21495 // End section: command_properties
21496 function GetApplicationSettingsCommand(input) {
21497 var _this =
21498 // Start section: command_constructor
21499 _super.call(this) || this;
21500 _this.input = input;
21501 return _this;
21502 // End section: command_constructor
21503 }
21504 /**
21505 * @internal
21506 */
21507 GetApplicationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21508 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21509 var stack = clientStack.concat(this.middlewareStack);
21510 var logger = configuration.logger;
21511 var clientName = "PinpointClient";
21512 var commandName = "GetApplicationSettingsCommand";
21513 var handlerExecutionContext = {
21514 logger: logger,
21515 clientName: clientName,
21516 commandName: commandName,
21517 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationSettingsRequest"].filterSensitiveLog,
21518 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetApplicationSettingsResponse"].filterSensitiveLog,
21519 };
21520 var requestHandler = configuration.requestHandler;
21521 return stack.resolve(function (request) {
21522 return requestHandler.handle(request.request, options || {});
21523 }, handlerExecutionContext);
21524 };
21525 GetApplicationSettingsCommand.prototype.serialize = function (input, context) {
21526 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetApplicationSettingsCommand"])(input, context);
21527 };
21528 GetApplicationSettingsCommand.prototype.deserialize = function (output, context) {
21529 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetApplicationSettingsCommand"])(output, context);
21530 };
21531 return GetApplicationSettingsCommand;
21532}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21533
21534//# sourceMappingURL=GetApplicationSettingsCommand.js.map
21535
21536/***/ }),
21537
21538/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js":
21539/*!*************************************************************************************************!*\
21540 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js ***!
21541 \*************************************************************************************************/
21542/*! exports provided: GetAppsCommand */
21543/***/ (function(module, __webpack_exports__, __webpack_require__) {
21544
21545"use strict";
21546__webpack_require__.r(__webpack_exports__);
21547/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsCommand", function() { return GetAppsCommand; });
21548/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21549/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21550/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21551/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21552/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21553
21554
21555
21556
21557
21558/**
21559 * <p>Retrieves information about all the applications that are associated with your Amazon Pinpoint account.</p>
21560 */
21561var GetAppsCommand = /** @class */ (function (_super) {
21562 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetAppsCommand, _super);
21563 // Start section: command_properties
21564 // End section: command_properties
21565 function GetAppsCommand(input) {
21566 var _this =
21567 // Start section: command_constructor
21568 _super.call(this) || this;
21569 _this.input = input;
21570 return _this;
21571 // End section: command_constructor
21572 }
21573 /**
21574 * @internal
21575 */
21576 GetAppsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21577 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21578 var stack = clientStack.concat(this.middlewareStack);
21579 var logger = configuration.logger;
21580 var clientName = "PinpointClient";
21581 var commandName = "GetAppsCommand";
21582 var handlerExecutionContext = {
21583 logger: logger,
21584 clientName: clientName,
21585 commandName: commandName,
21586 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppsRequest"].filterSensitiveLog,
21587 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetAppsResponse"].filterSensitiveLog,
21588 };
21589 var requestHandler = configuration.requestHandler;
21590 return stack.resolve(function (request) {
21591 return requestHandler.handle(request.request, options || {});
21592 }, handlerExecutionContext);
21593 };
21594 GetAppsCommand.prototype.serialize = function (input, context) {
21595 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetAppsCommand"])(input, context);
21596 };
21597 GetAppsCommand.prototype.deserialize = function (output, context) {
21598 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetAppsCommand"])(output, context);
21599 };
21600 return GetAppsCommand;
21601}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21602
21603//# sourceMappingURL=GetAppsCommand.js.map
21604
21605/***/ }),
21606
21607/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js":
21608/*!*********************************************************************************************************!*\
21609 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js ***!
21610 \*********************************************************************************************************/
21611/*! exports provided: GetBaiduChannelCommand */
21612/***/ (function(module, __webpack_exports__, __webpack_require__) {
21613
21614"use strict";
21615__webpack_require__.r(__webpack_exports__);
21616/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelCommand", function() { return GetBaiduChannelCommand; });
21617/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21618/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21619/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21620/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21621/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21622
21623
21624
21625
21626
21627/**
21628 * <p>Retrieves information about the status and settings of the Baidu channel for an application.</p>
21629 */
21630var GetBaiduChannelCommand = /** @class */ (function (_super) {
21631 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetBaiduChannelCommand, _super);
21632 // Start section: command_properties
21633 // End section: command_properties
21634 function GetBaiduChannelCommand(input) {
21635 var _this =
21636 // Start section: command_constructor
21637 _super.call(this) || this;
21638 _this.input = input;
21639 return _this;
21640 // End section: command_constructor
21641 }
21642 /**
21643 * @internal
21644 */
21645 GetBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21646 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21647 var stack = clientStack.concat(this.middlewareStack);
21648 var logger = configuration.logger;
21649 var clientName = "PinpointClient";
21650 var commandName = "GetBaiduChannelCommand";
21651 var handlerExecutionContext = {
21652 logger: logger,
21653 clientName: clientName,
21654 commandName: commandName,
21655 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetBaiduChannelRequest"].filterSensitiveLog,
21656 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetBaiduChannelResponse"].filterSensitiveLog,
21657 };
21658 var requestHandler = configuration.requestHandler;
21659 return stack.resolve(function (request) {
21660 return requestHandler.handle(request.request, options || {});
21661 }, handlerExecutionContext);
21662 };
21663 GetBaiduChannelCommand.prototype.serialize = function (input, context) {
21664 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetBaiduChannelCommand"])(input, context);
21665 };
21666 GetBaiduChannelCommand.prototype.deserialize = function (output, context) {
21667 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetBaiduChannelCommand"])(output, context);
21668 };
21669 return GetBaiduChannelCommand;
21670}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21671
21672//# sourceMappingURL=GetBaiduChannelCommand.js.map
21673
21674/***/ }),
21675
21676/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js":
21677/*!***************************************************************************************************************!*\
21678 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js ***!
21679 \***************************************************************************************************************/
21680/*! exports provided: GetCampaignActivitiesCommand */
21681/***/ (function(module, __webpack_exports__, __webpack_require__) {
21682
21683"use strict";
21684__webpack_require__.r(__webpack_exports__);
21685/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesCommand", function() { return GetCampaignActivitiesCommand; });
21686/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21687/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21688/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21689/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21690/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21691
21692
21693
21694
21695
21696/**
21697 * <p>Retrieves information about all the activities for a campaign.</p>
21698 */
21699var GetCampaignActivitiesCommand = /** @class */ (function (_super) {
21700 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignActivitiesCommand, _super);
21701 // Start section: command_properties
21702 // End section: command_properties
21703 function GetCampaignActivitiesCommand(input) {
21704 var _this =
21705 // Start section: command_constructor
21706 _super.call(this) || this;
21707 _this.input = input;
21708 return _this;
21709 // End section: command_constructor
21710 }
21711 /**
21712 * @internal
21713 */
21714 GetCampaignActivitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21715 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21716 var stack = clientStack.concat(this.middlewareStack);
21717 var logger = configuration.logger;
21718 var clientName = "PinpointClient";
21719 var commandName = "GetCampaignActivitiesCommand";
21720 var handlerExecutionContext = {
21721 logger: logger,
21722 clientName: clientName,
21723 commandName: commandName,
21724 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignActivitiesRequest"].filterSensitiveLog,
21725 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignActivitiesResponse"].filterSensitiveLog,
21726 };
21727 var requestHandler = configuration.requestHandler;
21728 return stack.resolve(function (request) {
21729 return requestHandler.handle(request.request, options || {});
21730 }, handlerExecutionContext);
21731 };
21732 GetCampaignActivitiesCommand.prototype.serialize = function (input, context) {
21733 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignActivitiesCommand"])(input, context);
21734 };
21735 GetCampaignActivitiesCommand.prototype.deserialize = function (output, context) {
21736 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignActivitiesCommand"])(output, context);
21737 };
21738 return GetCampaignActivitiesCommand;
21739}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21740
21741//# sourceMappingURL=GetCampaignActivitiesCommand.js.map
21742
21743/***/ }),
21744
21745/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js":
21746/*!*****************************************************************************************************!*\
21747 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js ***!
21748 \*****************************************************************************************************/
21749/*! exports provided: GetCampaignCommand */
21750/***/ (function(module, __webpack_exports__, __webpack_require__) {
21751
21752"use strict";
21753__webpack_require__.r(__webpack_exports__);
21754/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignCommand", function() { return GetCampaignCommand; });
21755/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21756/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21757/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21758/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21759/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21760
21761
21762
21763
21764
21765/**
21766 * <p>Retrieves information about the status, configuration, and other settings for a campaign.</p>
21767 */
21768var GetCampaignCommand = /** @class */ (function (_super) {
21769 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignCommand, _super);
21770 // Start section: command_properties
21771 // End section: command_properties
21772 function GetCampaignCommand(input) {
21773 var _this =
21774 // Start section: command_constructor
21775 _super.call(this) || this;
21776 _this.input = input;
21777 return _this;
21778 // End section: command_constructor
21779 }
21780 /**
21781 * @internal
21782 */
21783 GetCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21784 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21785 var stack = clientStack.concat(this.middlewareStack);
21786 var logger = configuration.logger;
21787 var clientName = "PinpointClient";
21788 var commandName = "GetCampaignCommand";
21789 var handlerExecutionContext = {
21790 logger: logger,
21791 clientName: clientName,
21792 commandName: commandName,
21793 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignRequest"].filterSensitiveLog,
21794 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignResponse"].filterSensitiveLog,
21795 };
21796 var requestHandler = configuration.requestHandler;
21797 return stack.resolve(function (request) {
21798 return requestHandler.handle(request.request, options || {});
21799 }, handlerExecutionContext);
21800 };
21801 GetCampaignCommand.prototype.serialize = function (input, context) {
21802 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignCommand"])(input, context);
21803 };
21804 GetCampaignCommand.prototype.deserialize = function (output, context) {
21805 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignCommand"])(output, context);
21806 };
21807 return GetCampaignCommand;
21808}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21809
21810//# sourceMappingURL=GetCampaignCommand.js.map
21811
21812/***/ }),
21813
21814/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js":
21815/*!*****************************************************************************************************************!*\
21816 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js ***!
21817 \*****************************************************************************************************************/
21818/*! exports provided: GetCampaignDateRangeKpiCommand */
21819/***/ (function(module, __webpack_exports__, __webpack_require__) {
21820
21821"use strict";
21822__webpack_require__.r(__webpack_exports__);
21823/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiCommand", function() { return GetCampaignDateRangeKpiCommand; });
21824/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21825/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21826/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21827/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21828/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21829
21830
21831
21832
21833
21834/**
21835 * <p>Retrieves (queries) pre-aggregated data for a standard metric that applies to a campaign.</p>
21836 */
21837var GetCampaignDateRangeKpiCommand = /** @class */ (function (_super) {
21838 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignDateRangeKpiCommand, _super);
21839 // Start section: command_properties
21840 // End section: command_properties
21841 function GetCampaignDateRangeKpiCommand(input) {
21842 var _this =
21843 // Start section: command_constructor
21844 _super.call(this) || this;
21845 _this.input = input;
21846 return _this;
21847 // End section: command_constructor
21848 }
21849 /**
21850 * @internal
21851 */
21852 GetCampaignDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21853 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21854 var stack = clientStack.concat(this.middlewareStack);
21855 var logger = configuration.logger;
21856 var clientName = "PinpointClient";
21857 var commandName = "GetCampaignDateRangeKpiCommand";
21858 var handlerExecutionContext = {
21859 logger: logger,
21860 clientName: clientName,
21861 commandName: commandName,
21862 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignDateRangeKpiRequest"].filterSensitiveLog,
21863 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignDateRangeKpiResponse"].filterSensitiveLog,
21864 };
21865 var requestHandler = configuration.requestHandler;
21866 return stack.resolve(function (request) {
21867 return requestHandler.handle(request.request, options || {});
21868 }, handlerExecutionContext);
21869 };
21870 GetCampaignDateRangeKpiCommand.prototype.serialize = function (input, context) {
21871 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignDateRangeKpiCommand"])(input, context);
21872 };
21873 GetCampaignDateRangeKpiCommand.prototype.deserialize = function (output, context) {
21874 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignDateRangeKpiCommand"])(output, context);
21875 };
21876 return GetCampaignDateRangeKpiCommand;
21877}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21878
21879//# sourceMappingURL=GetCampaignDateRangeKpiCommand.js.map
21880
21881/***/ }),
21882
21883/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js":
21884/*!************************************************************************************************************!*\
21885 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js ***!
21886 \************************************************************************************************************/
21887/*! exports provided: GetCampaignVersionCommand */
21888/***/ (function(module, __webpack_exports__, __webpack_require__) {
21889
21890"use strict";
21891__webpack_require__.r(__webpack_exports__);
21892/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionCommand", function() { return GetCampaignVersionCommand; });
21893/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21894/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21895/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21896/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21897/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21898
21899
21900
21901
21902
21903/**
21904 * <p>Retrieves information about the status, configuration, and other settings for a specific version of a campaign.</p>
21905 */
21906var GetCampaignVersionCommand = /** @class */ (function (_super) {
21907 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignVersionCommand, _super);
21908 // Start section: command_properties
21909 // End section: command_properties
21910 function GetCampaignVersionCommand(input) {
21911 var _this =
21912 // Start section: command_constructor
21913 _super.call(this) || this;
21914 _this.input = input;
21915 return _this;
21916 // End section: command_constructor
21917 }
21918 /**
21919 * @internal
21920 */
21921 GetCampaignVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21922 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21923 var stack = clientStack.concat(this.middlewareStack);
21924 var logger = configuration.logger;
21925 var clientName = "PinpointClient";
21926 var commandName = "GetCampaignVersionCommand";
21927 var handlerExecutionContext = {
21928 logger: logger,
21929 clientName: clientName,
21930 commandName: commandName,
21931 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionRequest"].filterSensitiveLog,
21932 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionResponse"].filterSensitiveLog,
21933 };
21934 var requestHandler = configuration.requestHandler;
21935 return stack.resolve(function (request) {
21936 return requestHandler.handle(request.request, options || {});
21937 }, handlerExecutionContext);
21938 };
21939 GetCampaignVersionCommand.prototype.serialize = function (input, context) {
21940 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignVersionCommand"])(input, context);
21941 };
21942 GetCampaignVersionCommand.prototype.deserialize = function (output, context) {
21943 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignVersionCommand"])(output, context);
21944 };
21945 return GetCampaignVersionCommand;
21946}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
21947
21948//# sourceMappingURL=GetCampaignVersionCommand.js.map
21949
21950/***/ }),
21951
21952/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js":
21953/*!*************************************************************************************************************!*\
21954 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js ***!
21955 \*************************************************************************************************************/
21956/*! exports provided: GetCampaignVersionsCommand */
21957/***/ (function(module, __webpack_exports__, __webpack_require__) {
21958
21959"use strict";
21960__webpack_require__.r(__webpack_exports__);
21961/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsCommand", function() { return GetCampaignVersionsCommand; });
21962/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
21963/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
21964/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
21965/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
21966/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
21967
21968
21969
21970
21971
21972/**
21973 * <p>Retrieves information about the status, configuration, and other settings for all versions of a campaign.</p>
21974 */
21975var GetCampaignVersionsCommand = /** @class */ (function (_super) {
21976 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignVersionsCommand, _super);
21977 // Start section: command_properties
21978 // End section: command_properties
21979 function GetCampaignVersionsCommand(input) {
21980 var _this =
21981 // Start section: command_constructor
21982 _super.call(this) || this;
21983 _this.input = input;
21984 return _this;
21985 // End section: command_constructor
21986 }
21987 /**
21988 * @internal
21989 */
21990 GetCampaignVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
21991 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
21992 var stack = clientStack.concat(this.middlewareStack);
21993 var logger = configuration.logger;
21994 var clientName = "PinpointClient";
21995 var commandName = "GetCampaignVersionsCommand";
21996 var handlerExecutionContext = {
21997 logger: logger,
21998 clientName: clientName,
21999 commandName: commandName,
22000 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionsRequest"].filterSensitiveLog,
22001 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignVersionsResponse"].filterSensitiveLog,
22002 };
22003 var requestHandler = configuration.requestHandler;
22004 return stack.resolve(function (request) {
22005 return requestHandler.handle(request.request, options || {});
22006 }, handlerExecutionContext);
22007 };
22008 GetCampaignVersionsCommand.prototype.serialize = function (input, context) {
22009 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignVersionsCommand"])(input, context);
22010 };
22011 GetCampaignVersionsCommand.prototype.deserialize = function (output, context) {
22012 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignVersionsCommand"])(output, context);
22013 };
22014 return GetCampaignVersionsCommand;
22015}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22016
22017//# sourceMappingURL=GetCampaignVersionsCommand.js.map
22018
22019/***/ }),
22020
22021/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js":
22022/*!******************************************************************************************************!*\
22023 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js ***!
22024 \******************************************************************************************************/
22025/*! exports provided: GetCampaignsCommand */
22026/***/ (function(module, __webpack_exports__, __webpack_require__) {
22027
22028"use strict";
22029__webpack_require__.r(__webpack_exports__);
22030/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsCommand", function() { return GetCampaignsCommand; });
22031/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22032/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22033/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22034/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22035/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22036
22037
22038
22039
22040
22041/**
22042 * <p>Retrieves information about the status, configuration, and other settings for all the campaigns that are associated with an application.</p>
22043 */
22044var GetCampaignsCommand = /** @class */ (function (_super) {
22045 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetCampaignsCommand, _super);
22046 // Start section: command_properties
22047 // End section: command_properties
22048 function GetCampaignsCommand(input) {
22049 var _this =
22050 // Start section: command_constructor
22051 _super.call(this) || this;
22052 _this.input = input;
22053 return _this;
22054 // End section: command_constructor
22055 }
22056 /**
22057 * @internal
22058 */
22059 GetCampaignsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22060 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22061 var stack = clientStack.concat(this.middlewareStack);
22062 var logger = configuration.logger;
22063 var clientName = "PinpointClient";
22064 var commandName = "GetCampaignsCommand";
22065 var handlerExecutionContext = {
22066 logger: logger,
22067 clientName: clientName,
22068 commandName: commandName,
22069 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignsRequest"].filterSensitiveLog,
22070 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetCampaignsResponse"].filterSensitiveLog,
22071 };
22072 var requestHandler = configuration.requestHandler;
22073 return stack.resolve(function (request) {
22074 return requestHandler.handle(request.request, options || {});
22075 }, handlerExecutionContext);
22076 };
22077 GetCampaignsCommand.prototype.serialize = function (input, context) {
22078 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetCampaignsCommand"])(input, context);
22079 };
22080 GetCampaignsCommand.prototype.deserialize = function (output, context) {
22081 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetCampaignsCommand"])(output, context);
22082 };
22083 return GetCampaignsCommand;
22084}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22085
22086//# sourceMappingURL=GetCampaignsCommand.js.map
22087
22088/***/ }),
22089
22090/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js":
22091/*!*****************************************************************************************************!*\
22092 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js ***!
22093 \*****************************************************************************************************/
22094/*! exports provided: GetChannelsCommand */
22095/***/ (function(module, __webpack_exports__, __webpack_require__) {
22096
22097"use strict";
22098__webpack_require__.r(__webpack_exports__);
22099/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetChannelsCommand", function() { return GetChannelsCommand; });
22100/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22101/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22102/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22103/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22104/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22105
22106
22107
22108
22109
22110/**
22111 * <p>Retrieves information about the history and status of each channel for an application.</p>
22112 */
22113var GetChannelsCommand = /** @class */ (function (_super) {
22114 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetChannelsCommand, _super);
22115 // Start section: command_properties
22116 // End section: command_properties
22117 function GetChannelsCommand(input) {
22118 var _this =
22119 // Start section: command_constructor
22120 _super.call(this) || this;
22121 _this.input = input;
22122 return _this;
22123 // End section: command_constructor
22124 }
22125 /**
22126 * @internal
22127 */
22128 GetChannelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22129 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22130 var stack = clientStack.concat(this.middlewareStack);
22131 var logger = configuration.logger;
22132 var clientName = "PinpointClient";
22133 var commandName = "GetChannelsCommand";
22134 var handlerExecutionContext = {
22135 logger: logger,
22136 clientName: clientName,
22137 commandName: commandName,
22138 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetChannelsRequest"].filterSensitiveLog,
22139 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetChannelsResponse"].filterSensitiveLog,
22140 };
22141 var requestHandler = configuration.requestHandler;
22142 return stack.resolve(function (request) {
22143 return requestHandler.handle(request.request, options || {});
22144 }, handlerExecutionContext);
22145 };
22146 GetChannelsCommand.prototype.serialize = function (input, context) {
22147 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetChannelsCommand"])(input, context);
22148 };
22149 GetChannelsCommand.prototype.deserialize = function (output, context) {
22150 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetChannelsCommand"])(output, context);
22151 };
22152 return GetChannelsCommand;
22153}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22154
22155//# sourceMappingURL=GetChannelsCommand.js.map
22156
22157/***/ }),
22158
22159/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js":
22160/*!*********************************************************************************************************!*\
22161 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js ***!
22162 \*********************************************************************************************************/
22163/*! exports provided: GetEmailChannelCommand */
22164/***/ (function(module, __webpack_exports__, __webpack_require__) {
22165
22166"use strict";
22167__webpack_require__.r(__webpack_exports__);
22168/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelCommand", function() { return GetEmailChannelCommand; });
22169/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22170/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22171/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22172/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22173/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22174
22175
22176
22177
22178
22179/**
22180 * <p>Retrieves information about the status and settings of the email channel for an application.</p>
22181 */
22182var GetEmailChannelCommand = /** @class */ (function (_super) {
22183 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEmailChannelCommand, _super);
22184 // Start section: command_properties
22185 // End section: command_properties
22186 function GetEmailChannelCommand(input) {
22187 var _this =
22188 // Start section: command_constructor
22189 _super.call(this) || this;
22190 _this.input = input;
22191 return _this;
22192 // End section: command_constructor
22193 }
22194 /**
22195 * @internal
22196 */
22197 GetEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22198 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22199 var stack = clientStack.concat(this.middlewareStack);
22200 var logger = configuration.logger;
22201 var clientName = "PinpointClient";
22202 var commandName = "GetEmailChannelCommand";
22203 var handlerExecutionContext = {
22204 logger: logger,
22205 clientName: clientName,
22206 commandName: commandName,
22207 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailChannelRequest"].filterSensitiveLog,
22208 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailChannelResponse"].filterSensitiveLog,
22209 };
22210 var requestHandler = configuration.requestHandler;
22211 return stack.resolve(function (request) {
22212 return requestHandler.handle(request.request, options || {});
22213 }, handlerExecutionContext);
22214 };
22215 GetEmailChannelCommand.prototype.serialize = function (input, context) {
22216 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEmailChannelCommand"])(input, context);
22217 };
22218 GetEmailChannelCommand.prototype.deserialize = function (output, context) {
22219 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEmailChannelCommand"])(output, context);
22220 };
22221 return GetEmailChannelCommand;
22222}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22223
22224//# sourceMappingURL=GetEmailChannelCommand.js.map
22225
22226/***/ }),
22227
22228/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js":
22229/*!**********************************************************************************************************!*\
22230 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js ***!
22231 \**********************************************************************************************************/
22232/*! exports provided: GetEmailTemplateCommand */
22233/***/ (function(module, __webpack_exports__, __webpack_require__) {
22234
22235"use strict";
22236__webpack_require__.r(__webpack_exports__);
22237/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateCommand", function() { return GetEmailTemplateCommand; });
22238/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22239/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22240/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22241/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22242/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22243
22244
22245
22246
22247
22248/**
22249 * <p>Retrieves the content and settings of a message template for messages that are sent through the email channel.</p>
22250 */
22251var GetEmailTemplateCommand = /** @class */ (function (_super) {
22252 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEmailTemplateCommand, _super);
22253 // Start section: command_properties
22254 // End section: command_properties
22255 function GetEmailTemplateCommand(input) {
22256 var _this =
22257 // Start section: command_constructor
22258 _super.call(this) || this;
22259 _this.input = input;
22260 return _this;
22261 // End section: command_constructor
22262 }
22263 /**
22264 * @internal
22265 */
22266 GetEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22267 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22268 var stack = clientStack.concat(this.middlewareStack);
22269 var logger = configuration.logger;
22270 var clientName = "PinpointClient";
22271 var commandName = "GetEmailTemplateCommand";
22272 var handlerExecutionContext = {
22273 logger: logger,
22274 clientName: clientName,
22275 commandName: commandName,
22276 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailTemplateRequest"].filterSensitiveLog,
22277 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEmailTemplateResponse"].filterSensitiveLog,
22278 };
22279 var requestHandler = configuration.requestHandler;
22280 return stack.resolve(function (request) {
22281 return requestHandler.handle(request.request, options || {});
22282 }, handlerExecutionContext);
22283 };
22284 GetEmailTemplateCommand.prototype.serialize = function (input, context) {
22285 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEmailTemplateCommand"])(input, context);
22286 };
22287 GetEmailTemplateCommand.prototype.deserialize = function (output, context) {
22288 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEmailTemplateCommand"])(output, context);
22289 };
22290 return GetEmailTemplateCommand;
22291}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22292
22293//# sourceMappingURL=GetEmailTemplateCommand.js.map
22294
22295/***/ }),
22296
22297/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js":
22298/*!*****************************************************************************************************!*\
22299 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js ***!
22300 \*****************************************************************************************************/
22301/*! exports provided: GetEndpointCommand */
22302/***/ (function(module, __webpack_exports__, __webpack_require__) {
22303
22304"use strict";
22305__webpack_require__.r(__webpack_exports__);
22306/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointCommand", function() { return GetEndpointCommand; });
22307/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22308/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22309/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22310/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22311/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22312
22313
22314
22315
22316
22317/**
22318 * <p>Retrieves information about the settings and attributes of a specific endpoint for an application.</p>
22319 */
22320var GetEndpointCommand = /** @class */ (function (_super) {
22321 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEndpointCommand, _super);
22322 // Start section: command_properties
22323 // End section: command_properties
22324 function GetEndpointCommand(input) {
22325 var _this =
22326 // Start section: command_constructor
22327 _super.call(this) || this;
22328 _this.input = input;
22329 return _this;
22330 // End section: command_constructor
22331 }
22332 /**
22333 * @internal
22334 */
22335 GetEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22336 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22337 var stack = clientStack.concat(this.middlewareStack);
22338 var logger = configuration.logger;
22339 var clientName = "PinpointClient";
22340 var commandName = "GetEndpointCommand";
22341 var handlerExecutionContext = {
22342 logger: logger,
22343 clientName: clientName,
22344 commandName: commandName,
22345 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEndpointRequest"].filterSensitiveLog,
22346 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEndpointResponse"].filterSensitiveLog,
22347 };
22348 var requestHandler = configuration.requestHandler;
22349 return stack.resolve(function (request) {
22350 return requestHandler.handle(request.request, options || {});
22351 }, handlerExecutionContext);
22352 };
22353 GetEndpointCommand.prototype.serialize = function (input, context) {
22354 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEndpointCommand"])(input, context);
22355 };
22356 GetEndpointCommand.prototype.deserialize = function (output, context) {
22357 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEndpointCommand"])(output, context);
22358 };
22359 return GetEndpointCommand;
22360}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22361
22362//# sourceMappingURL=GetEndpointCommand.js.map
22363
22364/***/ }),
22365
22366/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js":
22367/*!********************************************************************************************************!*\
22368 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js ***!
22369 \********************************************************************************************************/
22370/*! exports provided: GetEventStreamCommand */
22371/***/ (function(module, __webpack_exports__, __webpack_require__) {
22372
22373"use strict";
22374__webpack_require__.r(__webpack_exports__);
22375/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamCommand", function() { return GetEventStreamCommand; });
22376/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22377/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22378/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22379/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22380/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22381
22382
22383
22384
22385
22386/**
22387 * <p>Retrieves information about the event stream settings for an application.</p>
22388 */
22389var GetEventStreamCommand = /** @class */ (function (_super) {
22390 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetEventStreamCommand, _super);
22391 // Start section: command_properties
22392 // End section: command_properties
22393 function GetEventStreamCommand(input) {
22394 var _this =
22395 // Start section: command_constructor
22396 _super.call(this) || this;
22397 _this.input = input;
22398 return _this;
22399 // End section: command_constructor
22400 }
22401 /**
22402 * @internal
22403 */
22404 GetEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22405 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22406 var stack = clientStack.concat(this.middlewareStack);
22407 var logger = configuration.logger;
22408 var clientName = "PinpointClient";
22409 var commandName = "GetEventStreamCommand";
22410 var handlerExecutionContext = {
22411 logger: logger,
22412 clientName: clientName,
22413 commandName: commandName,
22414 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEventStreamRequest"].filterSensitiveLog,
22415 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetEventStreamResponse"].filterSensitiveLog,
22416 };
22417 var requestHandler = configuration.requestHandler;
22418 return stack.resolve(function (request) {
22419 return requestHandler.handle(request.request, options || {});
22420 }, handlerExecutionContext);
22421 };
22422 GetEventStreamCommand.prototype.serialize = function (input, context) {
22423 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetEventStreamCommand"])(input, context);
22424 };
22425 GetEventStreamCommand.prototype.deserialize = function (output, context) {
22426 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetEventStreamCommand"])(output, context);
22427 };
22428 return GetEventStreamCommand;
22429}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22430
22431//# sourceMappingURL=GetEventStreamCommand.js.map
22432
22433/***/ }),
22434
22435/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js":
22436/*!******************************************************************************************************!*\
22437 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js ***!
22438 \******************************************************************************************************/
22439/*! exports provided: GetExportJobCommand */
22440/***/ (function(module, __webpack_exports__, __webpack_require__) {
22441
22442"use strict";
22443__webpack_require__.r(__webpack_exports__);
22444/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobCommand", function() { return GetExportJobCommand; });
22445/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22446/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22447/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22448/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22449/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22450
22451
22452
22453
22454
22455/**
22456 * <p>Retrieves information about the status and settings of a specific export job for an application.</p>
22457 */
22458var GetExportJobCommand = /** @class */ (function (_super) {
22459 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetExportJobCommand, _super);
22460 // Start section: command_properties
22461 // End section: command_properties
22462 function GetExportJobCommand(input) {
22463 var _this =
22464 // Start section: command_constructor
22465 _super.call(this) || this;
22466 _this.input = input;
22467 return _this;
22468 // End section: command_constructor
22469 }
22470 /**
22471 * @internal
22472 */
22473 GetExportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22474 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22475 var stack = clientStack.concat(this.middlewareStack);
22476 var logger = configuration.logger;
22477 var clientName = "PinpointClient";
22478 var commandName = "GetExportJobCommand";
22479 var handlerExecutionContext = {
22480 logger: logger,
22481 clientName: clientName,
22482 commandName: commandName,
22483 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobRequest"].filterSensitiveLog,
22484 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobResponse"].filterSensitiveLog,
22485 };
22486 var requestHandler = configuration.requestHandler;
22487 return stack.resolve(function (request) {
22488 return requestHandler.handle(request.request, options || {});
22489 }, handlerExecutionContext);
22490 };
22491 GetExportJobCommand.prototype.serialize = function (input, context) {
22492 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetExportJobCommand"])(input, context);
22493 };
22494 GetExportJobCommand.prototype.deserialize = function (output, context) {
22495 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetExportJobCommand"])(output, context);
22496 };
22497 return GetExportJobCommand;
22498}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22499
22500//# sourceMappingURL=GetExportJobCommand.js.map
22501
22502/***/ }),
22503
22504/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js":
22505/*!*******************************************************************************************************!*\
22506 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js ***!
22507 \*******************************************************************************************************/
22508/*! exports provided: GetExportJobsCommand */
22509/***/ (function(module, __webpack_exports__, __webpack_require__) {
22510
22511"use strict";
22512__webpack_require__.r(__webpack_exports__);
22513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsCommand", function() { return GetExportJobsCommand; });
22514/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22515/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22516/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22517/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22518/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22519
22520
22521
22522
22523
22524/**
22525 * <p>Retrieves information about the status and settings of all the export jobs for an application.</p>
22526 */
22527var GetExportJobsCommand = /** @class */ (function (_super) {
22528 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetExportJobsCommand, _super);
22529 // Start section: command_properties
22530 // End section: command_properties
22531 function GetExportJobsCommand(input) {
22532 var _this =
22533 // Start section: command_constructor
22534 _super.call(this) || this;
22535 _this.input = input;
22536 return _this;
22537 // End section: command_constructor
22538 }
22539 /**
22540 * @internal
22541 */
22542 GetExportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22543 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22544 var stack = clientStack.concat(this.middlewareStack);
22545 var logger = configuration.logger;
22546 var clientName = "PinpointClient";
22547 var commandName = "GetExportJobsCommand";
22548 var handlerExecutionContext = {
22549 logger: logger,
22550 clientName: clientName,
22551 commandName: commandName,
22552 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobsRequest"].filterSensitiveLog,
22553 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetExportJobsResponse"].filterSensitiveLog,
22554 };
22555 var requestHandler = configuration.requestHandler;
22556 return stack.resolve(function (request) {
22557 return requestHandler.handle(request.request, options || {});
22558 }, handlerExecutionContext);
22559 };
22560 GetExportJobsCommand.prototype.serialize = function (input, context) {
22561 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetExportJobsCommand"])(input, context);
22562 };
22563 GetExportJobsCommand.prototype.deserialize = function (output, context) {
22564 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetExportJobsCommand"])(output, context);
22565 };
22566 return GetExportJobsCommand;
22567}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22568
22569//# sourceMappingURL=GetExportJobsCommand.js.map
22570
22571/***/ }),
22572
22573/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js":
22574/*!*******************************************************************************************************!*\
22575 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js ***!
22576 \*******************************************************************************************************/
22577/*! exports provided: GetGcmChannelCommand */
22578/***/ (function(module, __webpack_exports__, __webpack_require__) {
22579
22580"use strict";
22581__webpack_require__.r(__webpack_exports__);
22582/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelCommand", function() { return GetGcmChannelCommand; });
22583/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22584/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22585/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22586/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22587/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22588
22589
22590
22591
22592
22593/**
22594 * <p>Retrieves information about the status and settings of the GCM channel for an application.</p>
22595 */
22596var GetGcmChannelCommand = /** @class */ (function (_super) {
22597 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetGcmChannelCommand, _super);
22598 // Start section: command_properties
22599 // End section: command_properties
22600 function GetGcmChannelCommand(input) {
22601 var _this =
22602 // Start section: command_constructor
22603 _super.call(this) || this;
22604 _this.input = input;
22605 return _this;
22606 // End section: command_constructor
22607 }
22608 /**
22609 * @internal
22610 */
22611 GetGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22612 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22613 var stack = clientStack.concat(this.middlewareStack);
22614 var logger = configuration.logger;
22615 var clientName = "PinpointClient";
22616 var commandName = "GetGcmChannelCommand";
22617 var handlerExecutionContext = {
22618 logger: logger,
22619 clientName: clientName,
22620 commandName: commandName,
22621 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetGcmChannelRequest"].filterSensitiveLog,
22622 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetGcmChannelResponse"].filterSensitiveLog,
22623 };
22624 var requestHandler = configuration.requestHandler;
22625 return stack.resolve(function (request) {
22626 return requestHandler.handle(request.request, options || {});
22627 }, handlerExecutionContext);
22628 };
22629 GetGcmChannelCommand.prototype.serialize = function (input, context) {
22630 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetGcmChannelCommand"])(input, context);
22631 };
22632 GetGcmChannelCommand.prototype.deserialize = function (output, context) {
22633 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetGcmChannelCommand"])(output, context);
22634 };
22635 return GetGcmChannelCommand;
22636}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22637
22638//# sourceMappingURL=GetGcmChannelCommand.js.map
22639
22640/***/ }),
22641
22642/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js":
22643/*!******************************************************************************************************!*\
22644 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js ***!
22645 \******************************************************************************************************/
22646/*! exports provided: GetImportJobCommand */
22647/***/ (function(module, __webpack_exports__, __webpack_require__) {
22648
22649"use strict";
22650__webpack_require__.r(__webpack_exports__);
22651/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobCommand", function() { return GetImportJobCommand; });
22652/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22653/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22654/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22655/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22656/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22657
22658
22659
22660
22661
22662/**
22663 * <p>Retrieves information about the status and settings of a specific import job for an application.</p>
22664 */
22665var GetImportJobCommand = /** @class */ (function (_super) {
22666 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetImportJobCommand, _super);
22667 // Start section: command_properties
22668 // End section: command_properties
22669 function GetImportJobCommand(input) {
22670 var _this =
22671 // Start section: command_constructor
22672 _super.call(this) || this;
22673 _this.input = input;
22674 return _this;
22675 // End section: command_constructor
22676 }
22677 /**
22678 * @internal
22679 */
22680 GetImportJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22681 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22682 var stack = clientStack.concat(this.middlewareStack);
22683 var logger = configuration.logger;
22684 var clientName = "PinpointClient";
22685 var commandName = "GetImportJobCommand";
22686 var handlerExecutionContext = {
22687 logger: logger,
22688 clientName: clientName,
22689 commandName: commandName,
22690 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobRequest"].filterSensitiveLog,
22691 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobResponse"].filterSensitiveLog,
22692 };
22693 var requestHandler = configuration.requestHandler;
22694 return stack.resolve(function (request) {
22695 return requestHandler.handle(request.request, options || {});
22696 }, handlerExecutionContext);
22697 };
22698 GetImportJobCommand.prototype.serialize = function (input, context) {
22699 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetImportJobCommand"])(input, context);
22700 };
22701 GetImportJobCommand.prototype.deserialize = function (output, context) {
22702 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetImportJobCommand"])(output, context);
22703 };
22704 return GetImportJobCommand;
22705}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22706
22707//# sourceMappingURL=GetImportJobCommand.js.map
22708
22709/***/ }),
22710
22711/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js":
22712/*!*******************************************************************************************************!*\
22713 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js ***!
22714 \*******************************************************************************************************/
22715/*! exports provided: GetImportJobsCommand */
22716/***/ (function(module, __webpack_exports__, __webpack_require__) {
22717
22718"use strict";
22719__webpack_require__.r(__webpack_exports__);
22720/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsCommand", function() { return GetImportJobsCommand; });
22721/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22722/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22723/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22724/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22725/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22726
22727
22728
22729
22730
22731/**
22732 * <p>Retrieves information about the status and settings of all the import jobs for an application.</p>
22733 */
22734var GetImportJobsCommand = /** @class */ (function (_super) {
22735 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetImportJobsCommand, _super);
22736 // Start section: command_properties
22737 // End section: command_properties
22738 function GetImportJobsCommand(input) {
22739 var _this =
22740 // Start section: command_constructor
22741 _super.call(this) || this;
22742 _this.input = input;
22743 return _this;
22744 // End section: command_constructor
22745 }
22746 /**
22747 * @internal
22748 */
22749 GetImportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22750 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22751 var stack = clientStack.concat(this.middlewareStack);
22752 var logger = configuration.logger;
22753 var clientName = "PinpointClient";
22754 var commandName = "GetImportJobsCommand";
22755 var handlerExecutionContext = {
22756 logger: logger,
22757 clientName: clientName,
22758 commandName: commandName,
22759 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobsRequest"].filterSensitiveLog,
22760 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetImportJobsResponse"].filterSensitiveLog,
22761 };
22762 var requestHandler = configuration.requestHandler;
22763 return stack.resolve(function (request) {
22764 return requestHandler.handle(request.request, options || {});
22765 }, handlerExecutionContext);
22766 };
22767 GetImportJobsCommand.prototype.serialize = function (input, context) {
22768 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetImportJobsCommand"])(input, context);
22769 };
22770 GetImportJobsCommand.prototype.deserialize = function (output, context) {
22771 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetImportJobsCommand"])(output, context);
22772 };
22773 return GetImportJobsCommand;
22774}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22775
22776//# sourceMappingURL=GetImportJobsCommand.js.map
22777
22778/***/ }),
22779
22780/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js":
22781/*!****************************************************************************************************!*\
22782 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js ***!
22783 \****************************************************************************************************/
22784/*! exports provided: GetJourneyCommand */
22785/***/ (function(module, __webpack_exports__, __webpack_require__) {
22786
22787"use strict";
22788__webpack_require__.r(__webpack_exports__);
22789/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyCommand", function() { return GetJourneyCommand; });
22790/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22791/* harmony import */ var _models_models_0__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
22792/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22793/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22794/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22795
22796
22797
22798
22799
22800/**
22801 * <p>Retrieves information about the status, configuration, and other settings for a journey.</p>
22802 */
22803var GetJourneyCommand = /** @class */ (function (_super) {
22804 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyCommand, _super);
22805 // Start section: command_properties
22806 // End section: command_properties
22807 function GetJourneyCommand(input) {
22808 var _this =
22809 // Start section: command_constructor
22810 _super.call(this) || this;
22811 _this.input = input;
22812 return _this;
22813 // End section: command_constructor
22814 }
22815 /**
22816 * @internal
22817 */
22818 GetJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22819 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22820 var stack = clientStack.concat(this.middlewareStack);
22821 var logger = configuration.logger;
22822 var clientName = "PinpointClient";
22823 var commandName = "GetJourneyCommand";
22824 var handlerExecutionContext = {
22825 logger: logger,
22826 clientName: clientName,
22827 commandName: commandName,
22828 inputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetJourneyRequest"].filterSensitiveLog,
22829 outputFilterSensitiveLog: _models_models_0__WEBPACK_IMPORTED_MODULE_1__["GetJourneyResponse"].filterSensitiveLog,
22830 };
22831 var requestHandler = configuration.requestHandler;
22832 return stack.resolve(function (request) {
22833 return requestHandler.handle(request.request, options || {});
22834 }, handlerExecutionContext);
22835 };
22836 GetJourneyCommand.prototype.serialize = function (input, context) {
22837 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyCommand"])(input, context);
22838 };
22839 GetJourneyCommand.prototype.deserialize = function (output, context) {
22840 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyCommand"])(output, context);
22841 };
22842 return GetJourneyCommand;
22843}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22844
22845//# sourceMappingURL=GetJourneyCommand.js.map
22846
22847/***/ }),
22848
22849/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js":
22850/*!****************************************************************************************************************!*\
22851 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js ***!
22852 \****************************************************************************************************************/
22853/*! exports provided: GetJourneyDateRangeKpiCommand */
22854/***/ (function(module, __webpack_exports__, __webpack_require__) {
22855
22856"use strict";
22857__webpack_require__.r(__webpack_exports__);
22858/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiCommand", function() { return GetJourneyDateRangeKpiCommand; });
22859/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22860/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
22861/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22862/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22863/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22864
22865
22866
22867
22868
22869/**
22870 * <p>Retrieves (queries) pre-aggregated data for a standard engagement metric that applies to a journey.</p>
22871 */
22872var GetJourneyDateRangeKpiCommand = /** @class */ (function (_super) {
22873 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyDateRangeKpiCommand, _super);
22874 // Start section: command_properties
22875 // End section: command_properties
22876 function GetJourneyDateRangeKpiCommand(input) {
22877 var _this =
22878 // Start section: command_constructor
22879 _super.call(this) || this;
22880 _this.input = input;
22881 return _this;
22882 // End section: command_constructor
22883 }
22884 /**
22885 * @internal
22886 */
22887 GetJourneyDateRangeKpiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22888 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22889 var stack = clientStack.concat(this.middlewareStack);
22890 var logger = configuration.logger;
22891 var clientName = "PinpointClient";
22892 var commandName = "GetJourneyDateRangeKpiCommand";
22893 var handlerExecutionContext = {
22894 logger: logger,
22895 clientName: clientName,
22896 commandName: commandName,
22897 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiRequest"].filterSensitiveLog,
22898 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiResponse"].filterSensitiveLog,
22899 };
22900 var requestHandler = configuration.requestHandler;
22901 return stack.resolve(function (request) {
22902 return requestHandler.handle(request.request, options || {});
22903 }, handlerExecutionContext);
22904 };
22905 GetJourneyDateRangeKpiCommand.prototype.serialize = function (input, context) {
22906 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyDateRangeKpiCommand"])(input, context);
22907 };
22908 GetJourneyDateRangeKpiCommand.prototype.deserialize = function (output, context) {
22909 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyDateRangeKpiCommand"])(output, context);
22910 };
22911 return GetJourneyDateRangeKpiCommand;
22912}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22913
22914//# sourceMappingURL=GetJourneyDateRangeKpiCommand.js.map
22915
22916/***/ }),
22917
22918/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js":
22919/*!****************************************************************************************************************************!*\
22920 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js ***!
22921 \****************************************************************************************************************************/
22922/*! exports provided: GetJourneyExecutionActivityMetricsCommand */
22923/***/ (function(module, __webpack_exports__, __webpack_require__) {
22924
22925"use strict";
22926__webpack_require__.r(__webpack_exports__);
22927/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsCommand", function() { return GetJourneyExecutionActivityMetricsCommand; });
22928/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22929/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
22930/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
22931/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
22932/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
22933
22934
22935
22936
22937
22938/**
22939 * <p>Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.</p>
22940 */
22941var GetJourneyExecutionActivityMetricsCommand = /** @class */ (function (_super) {
22942 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyExecutionActivityMetricsCommand, _super);
22943 // Start section: command_properties
22944 // End section: command_properties
22945 function GetJourneyExecutionActivityMetricsCommand(input) {
22946 var _this =
22947 // Start section: command_constructor
22948 _super.call(this) || this;
22949 _this.input = input;
22950 return _this;
22951 // End section: command_constructor
22952 }
22953 /**
22954 * @internal
22955 */
22956 GetJourneyExecutionActivityMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
22957 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
22958 var stack = clientStack.concat(this.middlewareStack);
22959 var logger = configuration.logger;
22960 var clientName = "PinpointClient";
22961 var commandName = "GetJourneyExecutionActivityMetricsCommand";
22962 var handlerExecutionContext = {
22963 logger: logger,
22964 clientName: clientName,
22965 commandName: commandName,
22966 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsRequest"].filterSensitiveLog,
22967 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsResponse"].filterSensitiveLog,
22968 };
22969 var requestHandler = configuration.requestHandler;
22970 return stack.resolve(function (request) {
22971 return requestHandler.handle(request.request, options || {});
22972 }, handlerExecutionContext);
22973 };
22974 GetJourneyExecutionActivityMetricsCommand.prototype.serialize = function (input, context) {
22975 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand"])(input, context);
22976 };
22977 GetJourneyExecutionActivityMetricsCommand.prototype.deserialize = function (output, context) {
22978 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand"])(output, context);
22979 };
22980 return GetJourneyExecutionActivityMetricsCommand;
22981}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
22982
22983//# sourceMappingURL=GetJourneyExecutionActivityMetricsCommand.js.map
22984
22985/***/ }),
22986
22987/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js":
22988/*!********************************************************************************************************************!*\
22989 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js ***!
22990 \********************************************************************************************************************/
22991/*! exports provided: GetJourneyExecutionMetricsCommand */
22992/***/ (function(module, __webpack_exports__, __webpack_require__) {
22993
22994"use strict";
22995__webpack_require__.r(__webpack_exports__);
22996/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsCommand", function() { return GetJourneyExecutionMetricsCommand; });
22997/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
22998/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
22999/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23000/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23001/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23002
23003
23004
23005
23006
23007/**
23008 * <p>Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey.</p>
23009 */
23010var GetJourneyExecutionMetricsCommand = /** @class */ (function (_super) {
23011 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetJourneyExecutionMetricsCommand, _super);
23012 // Start section: command_properties
23013 // End section: command_properties
23014 function GetJourneyExecutionMetricsCommand(input) {
23015 var _this =
23016 // Start section: command_constructor
23017 _super.call(this) || this;
23018 _this.input = input;
23019 return _this;
23020 // End section: command_constructor
23021 }
23022 /**
23023 * @internal
23024 */
23025 GetJourneyExecutionMetricsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23026 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23027 var stack = clientStack.concat(this.middlewareStack);
23028 var logger = configuration.logger;
23029 var clientName = "PinpointClient";
23030 var commandName = "GetJourneyExecutionMetricsCommand";
23031 var handlerExecutionContext = {
23032 logger: logger,
23033 clientName: clientName,
23034 commandName: commandName,
23035 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsRequest"].filterSensitiveLog,
23036 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsResponse"].filterSensitiveLog,
23037 };
23038 var requestHandler = configuration.requestHandler;
23039 return stack.resolve(function (request) {
23040 return requestHandler.handle(request.request, options || {});
23041 }, handlerExecutionContext);
23042 };
23043 GetJourneyExecutionMetricsCommand.prototype.serialize = function (input, context) {
23044 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetJourneyExecutionMetricsCommand"])(input, context);
23045 };
23046 GetJourneyExecutionMetricsCommand.prototype.deserialize = function (output, context) {
23047 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetJourneyExecutionMetricsCommand"])(output, context);
23048 };
23049 return GetJourneyExecutionMetricsCommand;
23050}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23051
23052//# sourceMappingURL=GetJourneyExecutionMetricsCommand.js.map
23053
23054/***/ }),
23055
23056/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js":
23057/*!*********************************************************************************************************!*\
23058 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js ***!
23059 \*********************************************************************************************************/
23060/*! exports provided: GetPushTemplateCommand */
23061/***/ (function(module, __webpack_exports__, __webpack_require__) {
23062
23063"use strict";
23064__webpack_require__.r(__webpack_exports__);
23065/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateCommand", function() { return GetPushTemplateCommand; });
23066/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23067/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23068/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23069/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23070/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23071
23072
23073
23074
23075
23076/**
23077 * <p>Retrieves the content and settings of a message template for messages that are sent through a push notification channel.</p>
23078 */
23079var GetPushTemplateCommand = /** @class */ (function (_super) {
23080 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetPushTemplateCommand, _super);
23081 // Start section: command_properties
23082 // End section: command_properties
23083 function GetPushTemplateCommand(input) {
23084 var _this =
23085 // Start section: command_constructor
23086 _super.call(this) || this;
23087 _this.input = input;
23088 return _this;
23089 // End section: command_constructor
23090 }
23091 /**
23092 * @internal
23093 */
23094 GetPushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23095 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23096 var stack = clientStack.concat(this.middlewareStack);
23097 var logger = configuration.logger;
23098 var clientName = "PinpointClient";
23099 var commandName = "GetPushTemplateCommand";
23100 var handlerExecutionContext = {
23101 logger: logger,
23102 clientName: clientName,
23103 commandName: commandName,
23104 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateRequest"].filterSensitiveLog,
23105 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateResponse"].filterSensitiveLog,
23106 };
23107 var requestHandler = configuration.requestHandler;
23108 return stack.resolve(function (request) {
23109 return requestHandler.handle(request.request, options || {});
23110 }, handlerExecutionContext);
23111 };
23112 GetPushTemplateCommand.prototype.serialize = function (input, context) {
23113 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetPushTemplateCommand"])(input, context);
23114 };
23115 GetPushTemplateCommand.prototype.deserialize = function (output, context) {
23116 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetPushTemplateCommand"])(output, context);
23117 };
23118 return GetPushTemplateCommand;
23119}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23120
23121//# sourceMappingURL=GetPushTemplateCommand.js.map
23122
23123/***/ }),
23124
23125/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js":
23126/*!*********************************************************************************************************************!*\
23127 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js ***!
23128 \*********************************************************************************************************************/
23129/*! exports provided: GetRecommenderConfigurationCommand */
23130/***/ (function(module, __webpack_exports__, __webpack_require__) {
23131
23132"use strict";
23133__webpack_require__.r(__webpack_exports__);
23134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationCommand", function() { return GetRecommenderConfigurationCommand; });
23135/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23136/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23137/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23138/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23139/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23140
23141
23142
23143
23144
23145/**
23146 * <p>Retrieves information about an Amazon Pinpoint configuration for a recommender model.</p>
23147 */
23148var GetRecommenderConfigurationCommand = /** @class */ (function (_super) {
23149 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecommenderConfigurationCommand, _super);
23150 // Start section: command_properties
23151 // End section: command_properties
23152 function GetRecommenderConfigurationCommand(input) {
23153 var _this =
23154 // Start section: command_constructor
23155 _super.call(this) || this;
23156 _this.input = input;
23157 return _this;
23158 // End section: command_constructor
23159 }
23160 /**
23161 * @internal
23162 */
23163 GetRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23164 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23165 var stack = clientStack.concat(this.middlewareStack);
23166 var logger = configuration.logger;
23167 var clientName = "PinpointClient";
23168 var commandName = "GetRecommenderConfigurationCommand";
23169 var handlerExecutionContext = {
23170 logger: logger,
23171 clientName: clientName,
23172 commandName: commandName,
23173 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationRequest"].filterSensitiveLog,
23174 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationResponse"].filterSensitiveLog,
23175 };
23176 var requestHandler = configuration.requestHandler;
23177 return stack.resolve(function (request) {
23178 return requestHandler.handle(request.request, options || {});
23179 }, handlerExecutionContext);
23180 };
23181 GetRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
23182 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetRecommenderConfigurationCommand"])(input, context);
23183 };
23184 GetRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
23185 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetRecommenderConfigurationCommand"])(output, context);
23186 };
23187 return GetRecommenderConfigurationCommand;
23188}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23189
23190//# sourceMappingURL=GetRecommenderConfigurationCommand.js.map
23191
23192/***/ }),
23193
23194/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js":
23195/*!**********************************************************************************************************************!*\
23196 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js ***!
23197 \**********************************************************************************************************************/
23198/*! exports provided: GetRecommenderConfigurationsCommand */
23199/***/ (function(module, __webpack_exports__, __webpack_require__) {
23200
23201"use strict";
23202__webpack_require__.r(__webpack_exports__);
23203/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsCommand", function() { return GetRecommenderConfigurationsCommand; });
23204/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23205/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23206/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23207/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23208/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23209
23210
23211
23212
23213
23214/**
23215 * <p>Retrieves information about all the recommender model configurations that are associated with your Amazon Pinpoint account.</p>
23216 */
23217var GetRecommenderConfigurationsCommand = /** @class */ (function (_super) {
23218 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetRecommenderConfigurationsCommand, _super);
23219 // Start section: command_properties
23220 // End section: command_properties
23221 function GetRecommenderConfigurationsCommand(input) {
23222 var _this =
23223 // Start section: command_constructor
23224 _super.call(this) || this;
23225 _this.input = input;
23226 return _this;
23227 // End section: command_constructor
23228 }
23229 /**
23230 * @internal
23231 */
23232 GetRecommenderConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23233 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23234 var stack = clientStack.concat(this.middlewareStack);
23235 var logger = configuration.logger;
23236 var clientName = "PinpointClient";
23237 var commandName = "GetRecommenderConfigurationsCommand";
23238 var handlerExecutionContext = {
23239 logger: logger,
23240 clientName: clientName,
23241 commandName: commandName,
23242 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsRequest"].filterSensitiveLog,
23243 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsResponse"].filterSensitiveLog,
23244 };
23245 var requestHandler = configuration.requestHandler;
23246 return stack.resolve(function (request) {
23247 return requestHandler.handle(request.request, options || {});
23248 }, handlerExecutionContext);
23249 };
23250 GetRecommenderConfigurationsCommand.prototype.serialize = function (input, context) {
23251 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetRecommenderConfigurationsCommand"])(input, context);
23252 };
23253 GetRecommenderConfigurationsCommand.prototype.deserialize = function (output, context) {
23254 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetRecommenderConfigurationsCommand"])(output, context);
23255 };
23256 return GetRecommenderConfigurationsCommand;
23257}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23258
23259//# sourceMappingURL=GetRecommenderConfigurationsCommand.js.map
23260
23261/***/ }),
23262
23263/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js":
23264/*!****************************************************************************************************!*\
23265 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js ***!
23266 \****************************************************************************************************/
23267/*! exports provided: GetSegmentCommand */
23268/***/ (function(module, __webpack_exports__, __webpack_require__) {
23269
23270"use strict";
23271__webpack_require__.r(__webpack_exports__);
23272/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentCommand", function() { return GetSegmentCommand; });
23273/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23274/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23275/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23276/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23277/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23278
23279
23280
23281
23282
23283/**
23284 * <p>Retrieves information about the configuration, dimension, and other settings for a specific segment that's associated with an application.</p>
23285 */
23286var GetSegmentCommand = /** @class */ (function (_super) {
23287 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentCommand, _super);
23288 // Start section: command_properties
23289 // End section: command_properties
23290 function GetSegmentCommand(input) {
23291 var _this =
23292 // Start section: command_constructor
23293 _super.call(this) || this;
23294 _this.input = input;
23295 return _this;
23296 // End section: command_constructor
23297 }
23298 /**
23299 * @internal
23300 */
23301 GetSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23302 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23303 var stack = clientStack.concat(this.middlewareStack);
23304 var logger = configuration.logger;
23305 var clientName = "PinpointClient";
23306 var commandName = "GetSegmentCommand";
23307 var handlerExecutionContext = {
23308 logger: logger,
23309 clientName: clientName,
23310 commandName: commandName,
23311 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentRequest"].filterSensitiveLog,
23312 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentResponse"].filterSensitiveLog,
23313 };
23314 var requestHandler = configuration.requestHandler;
23315 return stack.resolve(function (request) {
23316 return requestHandler.handle(request.request, options || {});
23317 }, handlerExecutionContext);
23318 };
23319 GetSegmentCommand.prototype.serialize = function (input, context) {
23320 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentCommand"])(input, context);
23321 };
23322 GetSegmentCommand.prototype.deserialize = function (output, context) {
23323 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentCommand"])(output, context);
23324 };
23325 return GetSegmentCommand;
23326}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23327
23328//# sourceMappingURL=GetSegmentCommand.js.map
23329
23330/***/ }),
23331
23332/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js":
23333/*!**************************************************************************************************************!*\
23334 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js ***!
23335 \**************************************************************************************************************/
23336/*! exports provided: GetSegmentExportJobsCommand */
23337/***/ (function(module, __webpack_exports__, __webpack_require__) {
23338
23339"use strict";
23340__webpack_require__.r(__webpack_exports__);
23341/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsCommand", function() { return GetSegmentExportJobsCommand; });
23342/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23343/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23344/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23345/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23346/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23347
23348
23349
23350
23351
23352/**
23353 * <p>Retrieves information about the status and settings of the export jobs for a segment.</p>
23354 */
23355var GetSegmentExportJobsCommand = /** @class */ (function (_super) {
23356 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentExportJobsCommand, _super);
23357 // Start section: command_properties
23358 // End section: command_properties
23359 function GetSegmentExportJobsCommand(input) {
23360 var _this =
23361 // Start section: command_constructor
23362 _super.call(this) || this;
23363 _this.input = input;
23364 return _this;
23365 // End section: command_constructor
23366 }
23367 /**
23368 * @internal
23369 */
23370 GetSegmentExportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23371 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23372 var stack = clientStack.concat(this.middlewareStack);
23373 var logger = configuration.logger;
23374 var clientName = "PinpointClient";
23375 var commandName = "GetSegmentExportJobsCommand";
23376 var handlerExecutionContext = {
23377 logger: logger,
23378 clientName: clientName,
23379 commandName: commandName,
23380 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsRequest"].filterSensitiveLog,
23381 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsResponse"].filterSensitiveLog,
23382 };
23383 var requestHandler = configuration.requestHandler;
23384 return stack.resolve(function (request) {
23385 return requestHandler.handle(request.request, options || {});
23386 }, handlerExecutionContext);
23387 };
23388 GetSegmentExportJobsCommand.prototype.serialize = function (input, context) {
23389 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentExportJobsCommand"])(input, context);
23390 };
23391 GetSegmentExportJobsCommand.prototype.deserialize = function (output, context) {
23392 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentExportJobsCommand"])(output, context);
23393 };
23394 return GetSegmentExportJobsCommand;
23395}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23396
23397//# sourceMappingURL=GetSegmentExportJobsCommand.js.map
23398
23399/***/ }),
23400
23401/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js":
23402/*!**************************************************************************************************************!*\
23403 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js ***!
23404 \**************************************************************************************************************/
23405/*! exports provided: GetSegmentImportJobsCommand */
23406/***/ (function(module, __webpack_exports__, __webpack_require__) {
23407
23408"use strict";
23409__webpack_require__.r(__webpack_exports__);
23410/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsCommand", function() { return GetSegmentImportJobsCommand; });
23411/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23412/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23413/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23414/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23415/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23416
23417
23418
23419
23420
23421/**
23422 * <p>Retrieves information about the status and settings of the import jobs for a segment.</p>
23423 */
23424var GetSegmentImportJobsCommand = /** @class */ (function (_super) {
23425 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentImportJobsCommand, _super);
23426 // Start section: command_properties
23427 // End section: command_properties
23428 function GetSegmentImportJobsCommand(input) {
23429 var _this =
23430 // Start section: command_constructor
23431 _super.call(this) || this;
23432 _this.input = input;
23433 return _this;
23434 // End section: command_constructor
23435 }
23436 /**
23437 * @internal
23438 */
23439 GetSegmentImportJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23440 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23441 var stack = clientStack.concat(this.middlewareStack);
23442 var logger = configuration.logger;
23443 var clientName = "PinpointClient";
23444 var commandName = "GetSegmentImportJobsCommand";
23445 var handlerExecutionContext = {
23446 logger: logger,
23447 clientName: clientName,
23448 commandName: commandName,
23449 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsRequest"].filterSensitiveLog,
23450 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsResponse"].filterSensitiveLog,
23451 };
23452 var requestHandler = configuration.requestHandler;
23453 return stack.resolve(function (request) {
23454 return requestHandler.handle(request.request, options || {});
23455 }, handlerExecutionContext);
23456 };
23457 GetSegmentImportJobsCommand.prototype.serialize = function (input, context) {
23458 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentImportJobsCommand"])(input, context);
23459 };
23460 GetSegmentImportJobsCommand.prototype.deserialize = function (output, context) {
23461 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentImportJobsCommand"])(output, context);
23462 };
23463 return GetSegmentImportJobsCommand;
23464}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23465
23466//# sourceMappingURL=GetSegmentImportJobsCommand.js.map
23467
23468/***/ }),
23469
23470/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js":
23471/*!***********************************************************************************************************!*\
23472 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js ***!
23473 \***********************************************************************************************************/
23474/*! exports provided: GetSegmentVersionCommand */
23475/***/ (function(module, __webpack_exports__, __webpack_require__) {
23476
23477"use strict";
23478__webpack_require__.r(__webpack_exports__);
23479/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionCommand", function() { return GetSegmentVersionCommand; });
23480/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23481/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23482/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23483/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23484/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23485
23486
23487
23488
23489
23490/**
23491 * <p>Retrieves information about the configuration, dimension, and other settings for a specific version of a segment that's associated with an application.</p>
23492 */
23493var GetSegmentVersionCommand = /** @class */ (function (_super) {
23494 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentVersionCommand, _super);
23495 // Start section: command_properties
23496 // End section: command_properties
23497 function GetSegmentVersionCommand(input) {
23498 var _this =
23499 // Start section: command_constructor
23500 _super.call(this) || this;
23501 _this.input = input;
23502 return _this;
23503 // End section: command_constructor
23504 }
23505 /**
23506 * @internal
23507 */
23508 GetSegmentVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23509 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23510 var stack = clientStack.concat(this.middlewareStack);
23511 var logger = configuration.logger;
23512 var clientName = "PinpointClient";
23513 var commandName = "GetSegmentVersionCommand";
23514 var handlerExecutionContext = {
23515 logger: logger,
23516 clientName: clientName,
23517 commandName: commandName,
23518 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionRequest"].filterSensitiveLog,
23519 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionResponse"].filterSensitiveLog,
23520 };
23521 var requestHandler = configuration.requestHandler;
23522 return stack.resolve(function (request) {
23523 return requestHandler.handle(request.request, options || {});
23524 }, handlerExecutionContext);
23525 };
23526 GetSegmentVersionCommand.prototype.serialize = function (input, context) {
23527 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentVersionCommand"])(input, context);
23528 };
23529 GetSegmentVersionCommand.prototype.deserialize = function (output, context) {
23530 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentVersionCommand"])(output, context);
23531 };
23532 return GetSegmentVersionCommand;
23533}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23534
23535//# sourceMappingURL=GetSegmentVersionCommand.js.map
23536
23537/***/ }),
23538
23539/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js":
23540/*!************************************************************************************************************!*\
23541 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js ***!
23542 \************************************************************************************************************/
23543/*! exports provided: GetSegmentVersionsCommand */
23544/***/ (function(module, __webpack_exports__, __webpack_require__) {
23545
23546"use strict";
23547__webpack_require__.r(__webpack_exports__);
23548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsCommand", function() { return GetSegmentVersionsCommand; });
23549/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23550/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23551/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23552/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23553/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23554
23555
23556
23557
23558
23559/**
23560 * <p>Retrieves information about the configuration, dimension, and other settings for all the versions of a specific segment that's associated with an application.</p>
23561 */
23562var GetSegmentVersionsCommand = /** @class */ (function (_super) {
23563 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentVersionsCommand, _super);
23564 // Start section: command_properties
23565 // End section: command_properties
23566 function GetSegmentVersionsCommand(input) {
23567 var _this =
23568 // Start section: command_constructor
23569 _super.call(this) || this;
23570 _this.input = input;
23571 return _this;
23572 // End section: command_constructor
23573 }
23574 /**
23575 * @internal
23576 */
23577 GetSegmentVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23578 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23579 var stack = clientStack.concat(this.middlewareStack);
23580 var logger = configuration.logger;
23581 var clientName = "PinpointClient";
23582 var commandName = "GetSegmentVersionsCommand";
23583 var handlerExecutionContext = {
23584 logger: logger,
23585 clientName: clientName,
23586 commandName: commandName,
23587 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsRequest"].filterSensitiveLog,
23588 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsResponse"].filterSensitiveLog,
23589 };
23590 var requestHandler = configuration.requestHandler;
23591 return stack.resolve(function (request) {
23592 return requestHandler.handle(request.request, options || {});
23593 }, handlerExecutionContext);
23594 };
23595 GetSegmentVersionsCommand.prototype.serialize = function (input, context) {
23596 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentVersionsCommand"])(input, context);
23597 };
23598 GetSegmentVersionsCommand.prototype.deserialize = function (output, context) {
23599 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentVersionsCommand"])(output, context);
23600 };
23601 return GetSegmentVersionsCommand;
23602}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23603
23604//# sourceMappingURL=GetSegmentVersionsCommand.js.map
23605
23606/***/ }),
23607
23608/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js":
23609/*!*****************************************************************************************************!*\
23610 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js ***!
23611 \*****************************************************************************************************/
23612/*! exports provided: GetSegmentsCommand */
23613/***/ (function(module, __webpack_exports__, __webpack_require__) {
23614
23615"use strict";
23616__webpack_require__.r(__webpack_exports__);
23617/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsCommand", function() { return GetSegmentsCommand; });
23618/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23619/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23620/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23621/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23622/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23623
23624
23625
23626
23627
23628/**
23629 * <p>Retrieves information about the configuration, dimension, and other settings for all the segments that are associated with an application.</p>
23630 */
23631var GetSegmentsCommand = /** @class */ (function (_super) {
23632 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSegmentsCommand, _super);
23633 // Start section: command_properties
23634 // End section: command_properties
23635 function GetSegmentsCommand(input) {
23636 var _this =
23637 // Start section: command_constructor
23638 _super.call(this) || this;
23639 _this.input = input;
23640 return _this;
23641 // End section: command_constructor
23642 }
23643 /**
23644 * @internal
23645 */
23646 GetSegmentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23647 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23648 var stack = clientStack.concat(this.middlewareStack);
23649 var logger = configuration.logger;
23650 var clientName = "PinpointClient";
23651 var commandName = "GetSegmentsCommand";
23652 var handlerExecutionContext = {
23653 logger: logger,
23654 clientName: clientName,
23655 commandName: commandName,
23656 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsRequest"].filterSensitiveLog,
23657 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsResponse"].filterSensitiveLog,
23658 };
23659 var requestHandler = configuration.requestHandler;
23660 return stack.resolve(function (request) {
23661 return requestHandler.handle(request.request, options || {});
23662 }, handlerExecutionContext);
23663 };
23664 GetSegmentsCommand.prototype.serialize = function (input, context) {
23665 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSegmentsCommand"])(input, context);
23666 };
23667 GetSegmentsCommand.prototype.deserialize = function (output, context) {
23668 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSegmentsCommand"])(output, context);
23669 };
23670 return GetSegmentsCommand;
23671}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23672
23673//# sourceMappingURL=GetSegmentsCommand.js.map
23674
23675/***/ }),
23676
23677/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js":
23678/*!*******************************************************************************************************!*\
23679 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js ***!
23680 \*******************************************************************************************************/
23681/*! exports provided: GetSmsChannelCommand */
23682/***/ (function(module, __webpack_exports__, __webpack_require__) {
23683
23684"use strict";
23685__webpack_require__.r(__webpack_exports__);
23686/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelCommand", function() { return GetSmsChannelCommand; });
23687/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23688/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23689/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23690/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23691/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23692
23693
23694
23695
23696
23697/**
23698 * <p>Retrieves information about the status and settings of the SMS channel for an application.</p>
23699 */
23700var GetSmsChannelCommand = /** @class */ (function (_super) {
23701 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSmsChannelCommand, _super);
23702 // Start section: command_properties
23703 // End section: command_properties
23704 function GetSmsChannelCommand(input) {
23705 var _this =
23706 // Start section: command_constructor
23707 _super.call(this) || this;
23708 _this.input = input;
23709 return _this;
23710 // End section: command_constructor
23711 }
23712 /**
23713 * @internal
23714 */
23715 GetSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23716 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23717 var stack = clientStack.concat(this.middlewareStack);
23718 var logger = configuration.logger;
23719 var clientName = "PinpointClient";
23720 var commandName = "GetSmsChannelCommand";
23721 var handlerExecutionContext = {
23722 logger: logger,
23723 clientName: clientName,
23724 commandName: commandName,
23725 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelRequest"].filterSensitiveLog,
23726 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelResponse"].filterSensitiveLog,
23727 };
23728 var requestHandler = configuration.requestHandler;
23729 return stack.resolve(function (request) {
23730 return requestHandler.handle(request.request, options || {});
23731 }, handlerExecutionContext);
23732 };
23733 GetSmsChannelCommand.prototype.serialize = function (input, context) {
23734 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSmsChannelCommand"])(input, context);
23735 };
23736 GetSmsChannelCommand.prototype.deserialize = function (output, context) {
23737 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSmsChannelCommand"])(output, context);
23738 };
23739 return GetSmsChannelCommand;
23740}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23741
23742//# sourceMappingURL=GetSmsChannelCommand.js.map
23743
23744/***/ }),
23745
23746/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js":
23747/*!********************************************************************************************************!*\
23748 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js ***!
23749 \********************************************************************************************************/
23750/*! exports provided: GetSmsTemplateCommand */
23751/***/ (function(module, __webpack_exports__, __webpack_require__) {
23752
23753"use strict";
23754__webpack_require__.r(__webpack_exports__);
23755/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateCommand", function() { return GetSmsTemplateCommand; });
23756/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23757/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23758/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23759/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23760/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23761
23762
23763
23764
23765
23766/**
23767 * <p>Retrieves the content and settings of a message template for messages that are sent through the SMS channel.</p>
23768 */
23769var GetSmsTemplateCommand = /** @class */ (function (_super) {
23770 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetSmsTemplateCommand, _super);
23771 // Start section: command_properties
23772 // End section: command_properties
23773 function GetSmsTemplateCommand(input) {
23774 var _this =
23775 // Start section: command_constructor
23776 _super.call(this) || this;
23777 _this.input = input;
23778 return _this;
23779 // End section: command_constructor
23780 }
23781 /**
23782 * @internal
23783 */
23784 GetSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23785 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23786 var stack = clientStack.concat(this.middlewareStack);
23787 var logger = configuration.logger;
23788 var clientName = "PinpointClient";
23789 var commandName = "GetSmsTemplateCommand";
23790 var handlerExecutionContext = {
23791 logger: logger,
23792 clientName: clientName,
23793 commandName: commandName,
23794 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateRequest"].filterSensitiveLog,
23795 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateResponse"].filterSensitiveLog,
23796 };
23797 var requestHandler = configuration.requestHandler;
23798 return stack.resolve(function (request) {
23799 return requestHandler.handle(request.request, options || {});
23800 }, handlerExecutionContext);
23801 };
23802 GetSmsTemplateCommand.prototype.serialize = function (input, context) {
23803 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetSmsTemplateCommand"])(input, context);
23804 };
23805 GetSmsTemplateCommand.prototype.deserialize = function (output, context) {
23806 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetSmsTemplateCommand"])(output, context);
23807 };
23808 return GetSmsTemplateCommand;
23809}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23810
23811//# sourceMappingURL=GetSmsTemplateCommand.js.map
23812
23813/***/ }),
23814
23815/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js":
23816/*!**********************************************************************************************************!*\
23817 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js ***!
23818 \**********************************************************************************************************/
23819/*! exports provided: GetUserEndpointsCommand */
23820/***/ (function(module, __webpack_exports__, __webpack_require__) {
23821
23822"use strict";
23823__webpack_require__.r(__webpack_exports__);
23824/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsCommand", function() { return GetUserEndpointsCommand; });
23825/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23826/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23827/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23828/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23829/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23830
23831
23832
23833
23834
23835/**
23836 * <p>Retrieves information about all the endpoints that are associated with a specific user ID.</p>
23837 */
23838var GetUserEndpointsCommand = /** @class */ (function (_super) {
23839 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetUserEndpointsCommand, _super);
23840 // Start section: command_properties
23841 // End section: command_properties
23842 function GetUserEndpointsCommand(input) {
23843 var _this =
23844 // Start section: command_constructor
23845 _super.call(this) || this;
23846 _this.input = input;
23847 return _this;
23848 // End section: command_constructor
23849 }
23850 /**
23851 * @internal
23852 */
23853 GetUserEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23854 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23855 var stack = clientStack.concat(this.middlewareStack);
23856 var logger = configuration.logger;
23857 var clientName = "PinpointClient";
23858 var commandName = "GetUserEndpointsCommand";
23859 var handlerExecutionContext = {
23860 logger: logger,
23861 clientName: clientName,
23862 commandName: commandName,
23863 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsRequest"].filterSensitiveLog,
23864 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsResponse"].filterSensitiveLog,
23865 };
23866 var requestHandler = configuration.requestHandler;
23867 return stack.resolve(function (request) {
23868 return requestHandler.handle(request.request, options || {});
23869 }, handlerExecutionContext);
23870 };
23871 GetUserEndpointsCommand.prototype.serialize = function (input, context) {
23872 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetUserEndpointsCommand"])(input, context);
23873 };
23874 GetUserEndpointsCommand.prototype.deserialize = function (output, context) {
23875 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetUserEndpointsCommand"])(output, context);
23876 };
23877 return GetUserEndpointsCommand;
23878}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23879
23880//# sourceMappingURL=GetUserEndpointsCommand.js.map
23881
23882/***/ }),
23883
23884/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js":
23885/*!*********************************************************************************************************!*\
23886 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js ***!
23887 \*********************************************************************************************************/
23888/*! exports provided: GetVoiceChannelCommand */
23889/***/ (function(module, __webpack_exports__, __webpack_require__) {
23890
23891"use strict";
23892__webpack_require__.r(__webpack_exports__);
23893/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelCommand", function() { return GetVoiceChannelCommand; });
23894/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23895/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23896/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23897/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23898/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23899
23900
23901
23902
23903
23904/**
23905 * <p>Retrieves information about the status and settings of the voice channel for an application.</p>
23906 */
23907var GetVoiceChannelCommand = /** @class */ (function (_super) {
23908 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetVoiceChannelCommand, _super);
23909 // Start section: command_properties
23910 // End section: command_properties
23911 function GetVoiceChannelCommand(input) {
23912 var _this =
23913 // Start section: command_constructor
23914 _super.call(this) || this;
23915 _this.input = input;
23916 return _this;
23917 // End section: command_constructor
23918 }
23919 /**
23920 * @internal
23921 */
23922 GetVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23923 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23924 var stack = clientStack.concat(this.middlewareStack);
23925 var logger = configuration.logger;
23926 var clientName = "PinpointClient";
23927 var commandName = "GetVoiceChannelCommand";
23928 var handlerExecutionContext = {
23929 logger: logger,
23930 clientName: clientName,
23931 commandName: commandName,
23932 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelRequest"].filterSensitiveLog,
23933 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelResponse"].filterSensitiveLog,
23934 };
23935 var requestHandler = configuration.requestHandler;
23936 return stack.resolve(function (request) {
23937 return requestHandler.handle(request.request, options || {});
23938 }, handlerExecutionContext);
23939 };
23940 GetVoiceChannelCommand.prototype.serialize = function (input, context) {
23941 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetVoiceChannelCommand"])(input, context);
23942 };
23943 GetVoiceChannelCommand.prototype.deserialize = function (output, context) {
23944 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetVoiceChannelCommand"])(output, context);
23945 };
23946 return GetVoiceChannelCommand;
23947}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
23948
23949//# sourceMappingURL=GetVoiceChannelCommand.js.map
23950
23951/***/ }),
23952
23953/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js":
23954/*!**********************************************************************************************************!*\
23955 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js ***!
23956 \**********************************************************************************************************/
23957/*! exports provided: GetVoiceTemplateCommand */
23958/***/ (function(module, __webpack_exports__, __webpack_require__) {
23959
23960"use strict";
23961__webpack_require__.r(__webpack_exports__);
23962/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateCommand", function() { return GetVoiceTemplateCommand; });
23963/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
23964/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
23965/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
23966/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
23967/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
23968
23969
23970
23971
23972
23973/**
23974 * <p>Retrieves the content and settings of a message template for messages that are sent through the voice channel.</p>
23975 */
23976var GetVoiceTemplateCommand = /** @class */ (function (_super) {
23977 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GetVoiceTemplateCommand, _super);
23978 // Start section: command_properties
23979 // End section: command_properties
23980 function GetVoiceTemplateCommand(input) {
23981 var _this =
23982 // Start section: command_constructor
23983 _super.call(this) || this;
23984 _this.input = input;
23985 return _this;
23986 // End section: command_constructor
23987 }
23988 /**
23989 * @internal
23990 */
23991 GetVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
23992 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
23993 var stack = clientStack.concat(this.middlewareStack);
23994 var logger = configuration.logger;
23995 var clientName = "PinpointClient";
23996 var commandName = "GetVoiceTemplateCommand";
23997 var handlerExecutionContext = {
23998 logger: logger,
23999 clientName: clientName,
24000 commandName: commandName,
24001 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateRequest"].filterSensitiveLog,
24002 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateResponse"].filterSensitiveLog,
24003 };
24004 var requestHandler = configuration.requestHandler;
24005 return stack.resolve(function (request) {
24006 return requestHandler.handle(request.request, options || {});
24007 }, handlerExecutionContext);
24008 };
24009 GetVoiceTemplateCommand.prototype.serialize = function (input, context) {
24010 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1GetVoiceTemplateCommand"])(input, context);
24011 };
24012 GetVoiceTemplateCommand.prototype.deserialize = function (output, context) {
24013 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1GetVoiceTemplateCommand"])(output, context);
24014 };
24015 return GetVoiceTemplateCommand;
24016}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24017
24018//# sourceMappingURL=GetVoiceTemplateCommand.js.map
24019
24020/***/ }),
24021
24022/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js":
24023/*!******************************************************************************************************!*\
24024 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js ***!
24025 \******************************************************************************************************/
24026/*! exports provided: ListJourneysCommand */
24027/***/ (function(module, __webpack_exports__, __webpack_require__) {
24028
24029"use strict";
24030__webpack_require__.r(__webpack_exports__);
24031/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysCommand", function() { return ListJourneysCommand; });
24032/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24033/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24034/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24035/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24036/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24037
24038
24039
24040
24041
24042/**
24043 * <p>Retrieves information about the status, configuration, and other settings for all the journeys that are associated with an application.</p>
24044 */
24045var ListJourneysCommand = /** @class */ (function (_super) {
24046 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListJourneysCommand, _super);
24047 // Start section: command_properties
24048 // End section: command_properties
24049 function ListJourneysCommand(input) {
24050 var _this =
24051 // Start section: command_constructor
24052 _super.call(this) || this;
24053 _this.input = input;
24054 return _this;
24055 // End section: command_constructor
24056 }
24057 /**
24058 * @internal
24059 */
24060 ListJourneysCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24061 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24062 var stack = clientStack.concat(this.middlewareStack);
24063 var logger = configuration.logger;
24064 var clientName = "PinpointClient";
24065 var commandName = "ListJourneysCommand";
24066 var handlerExecutionContext = {
24067 logger: logger,
24068 clientName: clientName,
24069 commandName: commandName,
24070 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysRequest"].filterSensitiveLog,
24071 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysResponse"].filterSensitiveLog,
24072 };
24073 var requestHandler = configuration.requestHandler;
24074 return stack.resolve(function (request) {
24075 return requestHandler.handle(request.request, options || {});
24076 }, handlerExecutionContext);
24077 };
24078 ListJourneysCommand.prototype.serialize = function (input, context) {
24079 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListJourneysCommand"])(input, context);
24080 };
24081 ListJourneysCommand.prototype.deserialize = function (output, context) {
24082 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListJourneysCommand"])(output, context);
24083 };
24084 return ListJourneysCommand;
24085}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24086
24087//# sourceMappingURL=ListJourneysCommand.js.map
24088
24089/***/ }),
24090
24091/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js":
24092/*!*************************************************************************************************************!*\
24093 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js ***!
24094 \*************************************************************************************************************/
24095/*! exports provided: ListTagsForResourceCommand */
24096/***/ (function(module, __webpack_exports__, __webpack_require__) {
24097
24098"use strict";
24099__webpack_require__.r(__webpack_exports__);
24100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return ListTagsForResourceCommand; });
24101/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24102/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24103/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24104/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24105/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24106
24107
24108
24109
24110
24111/**
24112 * <p>Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment.</p>
24113 */
24114var ListTagsForResourceCommand = /** @class */ (function (_super) {
24115 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTagsForResourceCommand, _super);
24116 // Start section: command_properties
24117 // End section: command_properties
24118 function ListTagsForResourceCommand(input) {
24119 var _this =
24120 // Start section: command_constructor
24121 _super.call(this) || this;
24122 _this.input = input;
24123 return _this;
24124 // End section: command_constructor
24125 }
24126 /**
24127 * @internal
24128 */
24129 ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24130 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24131 var stack = clientStack.concat(this.middlewareStack);
24132 var logger = configuration.logger;
24133 var clientName = "PinpointClient";
24134 var commandName = "ListTagsForResourceCommand";
24135 var handlerExecutionContext = {
24136 logger: logger,
24137 clientName: clientName,
24138 commandName: commandName,
24139 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceRequest"].filterSensitiveLog,
24140 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"].filterSensitiveLog,
24141 };
24142 var requestHandler = configuration.requestHandler;
24143 return stack.resolve(function (request) {
24144 return requestHandler.handle(request.request, options || {});
24145 }, handlerExecutionContext);
24146 };
24147 ListTagsForResourceCommand.prototype.serialize = function (input, context) {
24148 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTagsForResourceCommand"])(input, context);
24149 };
24150 ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
24151 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTagsForResourceCommand"])(output, context);
24152 };
24153 return ListTagsForResourceCommand;
24154}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24155
24156//# sourceMappingURL=ListTagsForResourceCommand.js.map
24157
24158/***/ }),
24159
24160/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js":
24161/*!**************************************************************************************************************!*\
24162 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js ***!
24163 \**************************************************************************************************************/
24164/*! exports provided: ListTemplateVersionsCommand */
24165/***/ (function(module, __webpack_exports__, __webpack_require__) {
24166
24167"use strict";
24168__webpack_require__.r(__webpack_exports__);
24169/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsCommand", function() { return ListTemplateVersionsCommand; });
24170/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24171/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24172/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24173/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24174/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24175
24176
24177
24178
24179
24180/**
24181 * <p>Retrieves information about all the versions of a specific message template.</p>
24182 */
24183var ListTemplateVersionsCommand = /** @class */ (function (_super) {
24184 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTemplateVersionsCommand, _super);
24185 // Start section: command_properties
24186 // End section: command_properties
24187 function ListTemplateVersionsCommand(input) {
24188 var _this =
24189 // Start section: command_constructor
24190 _super.call(this) || this;
24191 _this.input = input;
24192 return _this;
24193 // End section: command_constructor
24194 }
24195 /**
24196 * @internal
24197 */
24198 ListTemplateVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24199 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24200 var stack = clientStack.concat(this.middlewareStack);
24201 var logger = configuration.logger;
24202 var clientName = "PinpointClient";
24203 var commandName = "ListTemplateVersionsCommand";
24204 var handlerExecutionContext = {
24205 logger: logger,
24206 clientName: clientName,
24207 commandName: commandName,
24208 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsRequest"].filterSensitiveLog,
24209 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsResponse"].filterSensitiveLog,
24210 };
24211 var requestHandler = configuration.requestHandler;
24212 return stack.resolve(function (request) {
24213 return requestHandler.handle(request.request, options || {});
24214 }, handlerExecutionContext);
24215 };
24216 ListTemplateVersionsCommand.prototype.serialize = function (input, context) {
24217 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTemplateVersionsCommand"])(input, context);
24218 };
24219 ListTemplateVersionsCommand.prototype.deserialize = function (output, context) {
24220 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTemplateVersionsCommand"])(output, context);
24221 };
24222 return ListTemplateVersionsCommand;
24223}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24224
24225//# sourceMappingURL=ListTemplateVersionsCommand.js.map
24226
24227/***/ }),
24228
24229/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js":
24230/*!*******************************************************************************************************!*\
24231 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js ***!
24232 \*******************************************************************************************************/
24233/*! exports provided: ListTemplatesCommand */
24234/***/ (function(module, __webpack_exports__, __webpack_require__) {
24235
24236"use strict";
24237__webpack_require__.r(__webpack_exports__);
24238/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesCommand", function() { return ListTemplatesCommand; });
24239/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24240/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24241/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24242/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24243/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24244
24245
24246
24247
24248
24249/**
24250 * <p>Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.</p>
24251 */
24252var ListTemplatesCommand = /** @class */ (function (_super) {
24253 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ListTemplatesCommand, _super);
24254 // Start section: command_properties
24255 // End section: command_properties
24256 function ListTemplatesCommand(input) {
24257 var _this =
24258 // Start section: command_constructor
24259 _super.call(this) || this;
24260 _this.input = input;
24261 return _this;
24262 // End section: command_constructor
24263 }
24264 /**
24265 * @internal
24266 */
24267 ListTemplatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24268 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24269 var stack = clientStack.concat(this.middlewareStack);
24270 var logger = configuration.logger;
24271 var clientName = "PinpointClient";
24272 var commandName = "ListTemplatesCommand";
24273 var handlerExecutionContext = {
24274 logger: logger,
24275 clientName: clientName,
24276 commandName: commandName,
24277 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesRequest"].filterSensitiveLog,
24278 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesResponse"].filterSensitiveLog,
24279 };
24280 var requestHandler = configuration.requestHandler;
24281 return stack.resolve(function (request) {
24282 return requestHandler.handle(request.request, options || {});
24283 }, handlerExecutionContext);
24284 };
24285 ListTemplatesCommand.prototype.serialize = function (input, context) {
24286 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1ListTemplatesCommand"])(input, context);
24287 };
24288 ListTemplatesCommand.prototype.deserialize = function (output, context) {
24289 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1ListTemplatesCommand"])(output, context);
24290 };
24291 return ListTemplatesCommand;
24292}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24293
24294//# sourceMappingURL=ListTemplatesCommand.js.map
24295
24296/***/ }),
24297
24298/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js":
24299/*!*************************************************************************************************************!*\
24300 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js ***!
24301 \*************************************************************************************************************/
24302/*! exports provided: PhoneNumberValidateCommand */
24303/***/ (function(module, __webpack_exports__, __webpack_require__) {
24304
24305"use strict";
24306__webpack_require__.r(__webpack_exports__);
24307/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateCommand", function() { return PhoneNumberValidateCommand; });
24308/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24309/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24310/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24311/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24312/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24313
24314
24315
24316
24317
24318/**
24319 * <p>Retrieves information about a phone number.</p>
24320 */
24321var PhoneNumberValidateCommand = /** @class */ (function (_super) {
24322 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PhoneNumberValidateCommand, _super);
24323 // Start section: command_properties
24324 // End section: command_properties
24325 function PhoneNumberValidateCommand(input) {
24326 var _this =
24327 // Start section: command_constructor
24328 _super.call(this) || this;
24329 _this.input = input;
24330 return _this;
24331 // End section: command_constructor
24332 }
24333 /**
24334 * @internal
24335 */
24336 PhoneNumberValidateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24337 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24338 var stack = clientStack.concat(this.middlewareStack);
24339 var logger = configuration.logger;
24340 var clientName = "PinpointClient";
24341 var commandName = "PhoneNumberValidateCommand";
24342 var handlerExecutionContext = {
24343 logger: logger,
24344 clientName: clientName,
24345 commandName: commandName,
24346 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateRequest"].filterSensitiveLog,
24347 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateResponse"].filterSensitiveLog,
24348 };
24349 var requestHandler = configuration.requestHandler;
24350 return stack.resolve(function (request) {
24351 return requestHandler.handle(request.request, options || {});
24352 }, handlerExecutionContext);
24353 };
24354 PhoneNumberValidateCommand.prototype.serialize = function (input, context) {
24355 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PhoneNumberValidateCommand"])(input, context);
24356 };
24357 PhoneNumberValidateCommand.prototype.deserialize = function (output, context) {
24358 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PhoneNumberValidateCommand"])(output, context);
24359 };
24360 return PhoneNumberValidateCommand;
24361}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24362
24363//# sourceMappingURL=PhoneNumberValidateCommand.js.map
24364
24365/***/ }),
24366
24367/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js":
24368/*!********************************************************************************************************!*\
24369 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js ***!
24370 \********************************************************************************************************/
24371/*! exports provided: PutEventStreamCommand */
24372/***/ (function(module, __webpack_exports__, __webpack_require__) {
24373
24374"use strict";
24375__webpack_require__.r(__webpack_exports__);
24376/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamCommand", function() { return PutEventStreamCommand; });
24377/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24378/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24379/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24380/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24381/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24382
24383
24384
24385
24386
24387/**
24388 * <p>Creates a new event stream for an application or updates the settings of an existing event stream for an application.</p>
24389 */
24390var PutEventStreamCommand = /** @class */ (function (_super) {
24391 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventStreamCommand, _super);
24392 // Start section: command_properties
24393 // End section: command_properties
24394 function PutEventStreamCommand(input) {
24395 var _this =
24396 // Start section: command_constructor
24397 _super.call(this) || this;
24398 _this.input = input;
24399 return _this;
24400 // End section: command_constructor
24401 }
24402 /**
24403 * @internal
24404 */
24405 PutEventStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24406 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24407 var stack = clientStack.concat(this.middlewareStack);
24408 var logger = configuration.logger;
24409 var clientName = "PinpointClient";
24410 var commandName = "PutEventStreamCommand";
24411 var handlerExecutionContext = {
24412 logger: logger,
24413 clientName: clientName,
24414 commandName: commandName,
24415 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamRequest"].filterSensitiveLog,
24416 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamResponse"].filterSensitiveLog,
24417 };
24418 var requestHandler = configuration.requestHandler;
24419 return stack.resolve(function (request) {
24420 return requestHandler.handle(request.request, options || {});
24421 }, handlerExecutionContext);
24422 };
24423 PutEventStreamCommand.prototype.serialize = function (input, context) {
24424 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventStreamCommand"])(input, context);
24425 };
24426 PutEventStreamCommand.prototype.deserialize = function (output, context) {
24427 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventStreamCommand"])(output, context);
24428 };
24429 return PutEventStreamCommand;
24430}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24431
24432//# sourceMappingURL=PutEventStreamCommand.js.map
24433
24434/***/ }),
24435
24436/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js":
24437/*!***************************************************************************************************!*\
24438 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js ***!
24439 \***************************************************************************************************/
24440/*! exports provided: PutEventsCommand */
24441/***/ (function(module, __webpack_exports__, __webpack_require__) {
24442
24443"use strict";
24444__webpack_require__.r(__webpack_exports__);
24445/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return PutEventsCommand; });
24446/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24447/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24448/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24449/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24450/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24451
24452
24453
24454
24455
24456/**
24457 * <p>Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with.</p>
24458 */
24459var PutEventsCommand = /** @class */ (function (_super) {
24460 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PutEventsCommand, _super);
24461 // Start section: command_properties
24462 // End section: command_properties
24463 function PutEventsCommand(input) {
24464 var _this =
24465 // Start section: command_constructor
24466 _super.call(this) || this;
24467 _this.input = input;
24468 return _this;
24469 // End section: command_constructor
24470 }
24471 /**
24472 * @internal
24473 */
24474 PutEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24475 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24476 var stack = clientStack.concat(this.middlewareStack);
24477 var logger = configuration.logger;
24478 var clientName = "PinpointClient";
24479 var commandName = "PutEventsCommand";
24480 var handlerExecutionContext = {
24481 logger: logger,
24482 clientName: clientName,
24483 commandName: commandName,
24484 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"].filterSensitiveLog,
24485 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsResponse"].filterSensitiveLog,
24486 };
24487 var requestHandler = configuration.requestHandler;
24488 return stack.resolve(function (request) {
24489 return requestHandler.handle(request.request, options || {});
24490 }, handlerExecutionContext);
24491 };
24492 PutEventsCommand.prototype.serialize = function (input, context) {
24493 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1PutEventsCommand"])(input, context);
24494 };
24495 PutEventsCommand.prototype.deserialize = function (output, context) {
24496 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1PutEventsCommand"])(output, context);
24497 };
24498 return PutEventsCommand;
24499}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24500
24501//# sourceMappingURL=PutEventsCommand.js.map
24502
24503/***/ }),
24504
24505/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js":
24506/*!**********************************************************************************************************!*\
24507 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js ***!
24508 \**********************************************************************************************************/
24509/*! exports provided: RemoveAttributesCommand */
24510/***/ (function(module, __webpack_exports__, __webpack_require__) {
24511
24512"use strict";
24513__webpack_require__.r(__webpack_exports__);
24514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesCommand", function() { return RemoveAttributesCommand; });
24515/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24516/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24517/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24518/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24519/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24520
24521
24522
24523
24524
24525/**
24526 * <p>Removes one or more attributes, of the same attribute type, from all the endpoints that are associated with an application.</p>
24527 */
24528var RemoveAttributesCommand = /** @class */ (function (_super) {
24529 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RemoveAttributesCommand, _super);
24530 // Start section: command_properties
24531 // End section: command_properties
24532 function RemoveAttributesCommand(input) {
24533 var _this =
24534 // Start section: command_constructor
24535 _super.call(this) || this;
24536 _this.input = input;
24537 return _this;
24538 // End section: command_constructor
24539 }
24540 /**
24541 * @internal
24542 */
24543 RemoveAttributesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24544 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24545 var stack = clientStack.concat(this.middlewareStack);
24546 var logger = configuration.logger;
24547 var clientName = "PinpointClient";
24548 var commandName = "RemoveAttributesCommand";
24549 var handlerExecutionContext = {
24550 logger: logger,
24551 clientName: clientName,
24552 commandName: commandName,
24553 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesRequest"].filterSensitiveLog,
24554 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesResponse"].filterSensitiveLog,
24555 };
24556 var requestHandler = configuration.requestHandler;
24557 return stack.resolve(function (request) {
24558 return requestHandler.handle(request.request, options || {});
24559 }, handlerExecutionContext);
24560 };
24561 RemoveAttributesCommand.prototype.serialize = function (input, context) {
24562 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1RemoveAttributesCommand"])(input, context);
24563 };
24564 RemoveAttributesCommand.prototype.deserialize = function (output, context) {
24565 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1RemoveAttributesCommand"])(output, context);
24566 };
24567 return RemoveAttributesCommand;
24568}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24569
24570//# sourceMappingURL=RemoveAttributesCommand.js.map
24571
24572/***/ }),
24573
24574/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js":
24575/*!******************************************************************************************************!*\
24576 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js ***!
24577 \******************************************************************************************************/
24578/*! exports provided: SendMessagesCommand */
24579/***/ (function(module, __webpack_exports__, __webpack_require__) {
24580
24581"use strict";
24582__webpack_require__.r(__webpack_exports__);
24583/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendMessagesCommand", function() { return SendMessagesCommand; });
24584/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24585/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24586/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24587/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24588/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24589
24590
24591
24592
24593
24594/**
24595 * <p>Creates and sends a direct message.</p>
24596 */
24597var SendMessagesCommand = /** @class */ (function (_super) {
24598 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SendMessagesCommand, _super);
24599 // Start section: command_properties
24600 // End section: command_properties
24601 function SendMessagesCommand(input) {
24602 var _this =
24603 // Start section: command_constructor
24604 _super.call(this) || this;
24605 _this.input = input;
24606 return _this;
24607 // End section: command_constructor
24608 }
24609 /**
24610 * @internal
24611 */
24612 SendMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24613 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24614 var stack = clientStack.concat(this.middlewareStack);
24615 var logger = configuration.logger;
24616 var clientName = "PinpointClient";
24617 var commandName = "SendMessagesCommand";
24618 var handlerExecutionContext = {
24619 logger: logger,
24620 clientName: clientName,
24621 commandName: commandName,
24622 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesRequest"].filterSensitiveLog,
24623 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesResponse"].filterSensitiveLog,
24624 };
24625 var requestHandler = configuration.requestHandler;
24626 return stack.resolve(function (request) {
24627 return requestHandler.handle(request.request, options || {});
24628 }, handlerExecutionContext);
24629 };
24630 SendMessagesCommand.prototype.serialize = function (input, context) {
24631 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1SendMessagesCommand"])(input, context);
24632 };
24633 SendMessagesCommand.prototype.deserialize = function (output, context) {
24634 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1SendMessagesCommand"])(output, context);
24635 };
24636 return SendMessagesCommand;
24637}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24638
24639//# sourceMappingURL=SendMessagesCommand.js.map
24640
24641/***/ }),
24642
24643/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js":
24644/*!***********************************************************************************************************!*\
24645 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js ***!
24646 \***********************************************************************************************************/
24647/*! exports provided: SendUsersMessagesCommand */
24648/***/ (function(module, __webpack_exports__, __webpack_require__) {
24649
24650"use strict";
24651__webpack_require__.r(__webpack_exports__);
24652/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesCommand", function() { return SendUsersMessagesCommand; });
24653/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24654/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24655/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24656/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24657/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24658
24659
24660
24661
24662
24663/**
24664 * <p>Creates and sends a message to a list of users.</p>
24665 */
24666var SendUsersMessagesCommand = /** @class */ (function (_super) {
24667 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SendUsersMessagesCommand, _super);
24668 // Start section: command_properties
24669 // End section: command_properties
24670 function SendUsersMessagesCommand(input) {
24671 var _this =
24672 // Start section: command_constructor
24673 _super.call(this) || this;
24674 _this.input = input;
24675 return _this;
24676 // End section: command_constructor
24677 }
24678 /**
24679 * @internal
24680 */
24681 SendUsersMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24682 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24683 var stack = clientStack.concat(this.middlewareStack);
24684 var logger = configuration.logger;
24685 var clientName = "PinpointClient";
24686 var commandName = "SendUsersMessagesCommand";
24687 var handlerExecutionContext = {
24688 logger: logger,
24689 clientName: clientName,
24690 commandName: commandName,
24691 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesRequest"].filterSensitiveLog,
24692 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesResponse"].filterSensitiveLog,
24693 };
24694 var requestHandler = configuration.requestHandler;
24695 return stack.resolve(function (request) {
24696 return requestHandler.handle(request.request, options || {});
24697 }, handlerExecutionContext);
24698 };
24699 SendUsersMessagesCommand.prototype.serialize = function (input, context) {
24700 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1SendUsersMessagesCommand"])(input, context);
24701 };
24702 SendUsersMessagesCommand.prototype.deserialize = function (output, context) {
24703 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1SendUsersMessagesCommand"])(output, context);
24704 };
24705 return SendUsersMessagesCommand;
24706}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24707
24708//# sourceMappingURL=SendUsersMessagesCommand.js.map
24709
24710/***/ }),
24711
24712/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js":
24713/*!*****************************************************************************************************!*\
24714 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js ***!
24715 \*****************************************************************************************************/
24716/*! exports provided: TagResourceCommand */
24717/***/ (function(module, __webpack_exports__, __webpack_require__) {
24718
24719"use strict";
24720__webpack_require__.r(__webpack_exports__);
24721/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return TagResourceCommand; });
24722/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24723/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24724/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24725/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24726/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24727
24728
24729
24730
24731
24732/**
24733 * <p>Adds one or more tags (keys and values) to an application, campaign, message template, or segment.</p>
24734 */
24735var TagResourceCommand = /** @class */ (function (_super) {
24736 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TagResourceCommand, _super);
24737 // Start section: command_properties
24738 // End section: command_properties
24739 function TagResourceCommand(input) {
24740 var _this =
24741 // Start section: command_constructor
24742 _super.call(this) || this;
24743 _this.input = input;
24744 return _this;
24745 // End section: command_constructor
24746 }
24747 /**
24748 * @internal
24749 */
24750 TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24751 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24752 var stack = clientStack.concat(this.middlewareStack);
24753 var logger = configuration.logger;
24754 var clientName = "PinpointClient";
24755 var commandName = "TagResourceCommand";
24756 var handlerExecutionContext = {
24757 logger: logger,
24758 clientName: clientName,
24759 commandName: commandName,
24760 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["TagResourceRequest"].filterSensitiveLog,
24761 outputFilterSensitiveLog: function (output) { return output; },
24762 };
24763 var requestHandler = configuration.requestHandler;
24764 return stack.resolve(function (request) {
24765 return requestHandler.handle(request.request, options || {});
24766 }, handlerExecutionContext);
24767 };
24768 TagResourceCommand.prototype.serialize = function (input, context) {
24769 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1TagResourceCommand"])(input, context);
24770 };
24771 TagResourceCommand.prototype.deserialize = function (output, context) {
24772 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1TagResourceCommand"])(output, context);
24773 };
24774 return TagResourceCommand;
24775}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24776
24777//# sourceMappingURL=TagResourceCommand.js.map
24778
24779/***/ }),
24780
24781/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js":
24782/*!*******************************************************************************************************!*\
24783 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js ***!
24784 \*******************************************************************************************************/
24785/*! exports provided: UntagResourceCommand */
24786/***/ (function(module, __webpack_exports__, __webpack_require__) {
24787
24788"use strict";
24789__webpack_require__.r(__webpack_exports__);
24790/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return UntagResourceCommand; });
24791/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24792/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24793/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24794/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24795/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24796
24797
24798
24799
24800
24801/**
24802 * <p>Removes one or more tags (keys and values) from an application, campaign, message template, or segment.</p>
24803 */
24804var UntagResourceCommand = /** @class */ (function (_super) {
24805 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UntagResourceCommand, _super);
24806 // Start section: command_properties
24807 // End section: command_properties
24808 function UntagResourceCommand(input) {
24809 var _this =
24810 // Start section: command_constructor
24811 _super.call(this) || this;
24812 _this.input = input;
24813 return _this;
24814 // End section: command_constructor
24815 }
24816 /**
24817 * @internal
24818 */
24819 UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24820 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24821 var stack = clientStack.concat(this.middlewareStack);
24822 var logger = configuration.logger;
24823 var clientName = "PinpointClient";
24824 var commandName = "UntagResourceCommand";
24825 var handlerExecutionContext = {
24826 logger: logger,
24827 clientName: clientName,
24828 commandName: commandName,
24829 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UntagResourceRequest"].filterSensitiveLog,
24830 outputFilterSensitiveLog: function (output) { return output; },
24831 };
24832 var requestHandler = configuration.requestHandler;
24833 return stack.resolve(function (request) {
24834 return requestHandler.handle(request.request, options || {});
24835 }, handlerExecutionContext);
24836 };
24837 UntagResourceCommand.prototype.serialize = function (input, context) {
24838 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UntagResourceCommand"])(input, context);
24839 };
24840 UntagResourceCommand.prototype.deserialize = function (output, context) {
24841 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UntagResourceCommand"])(output, context);
24842 };
24843 return UntagResourceCommand;
24844}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24845
24846//# sourceMappingURL=UntagResourceCommand.js.map
24847
24848/***/ }),
24849
24850/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js":
24851/*!**********************************************************************************************************!*\
24852 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js ***!
24853 \**********************************************************************************************************/
24854/*! exports provided: UpdateAdmChannelCommand */
24855/***/ (function(module, __webpack_exports__, __webpack_require__) {
24856
24857"use strict";
24858__webpack_require__.r(__webpack_exports__);
24859/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelCommand", function() { return UpdateAdmChannelCommand; });
24860/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24861/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24862/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24863/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24864/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24865
24866
24867
24868
24869
24870/**
24871 * <p>Enables the ADM channel for an application or updates the status and settings of the ADM channel for an application.</p>
24872 */
24873var UpdateAdmChannelCommand = /** @class */ (function (_super) {
24874 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateAdmChannelCommand, _super);
24875 // Start section: command_properties
24876 // End section: command_properties
24877 function UpdateAdmChannelCommand(input) {
24878 var _this =
24879 // Start section: command_constructor
24880 _super.call(this) || this;
24881 _this.input = input;
24882 return _this;
24883 // End section: command_constructor
24884 }
24885 /**
24886 * @internal
24887 */
24888 UpdateAdmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24889 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24890 var stack = clientStack.concat(this.middlewareStack);
24891 var logger = configuration.logger;
24892 var clientName = "PinpointClient";
24893 var commandName = "UpdateAdmChannelCommand";
24894 var handlerExecutionContext = {
24895 logger: logger,
24896 clientName: clientName,
24897 commandName: commandName,
24898 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelRequest"].filterSensitiveLog,
24899 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelResponse"].filterSensitiveLog,
24900 };
24901 var requestHandler = configuration.requestHandler;
24902 return stack.resolve(function (request) {
24903 return requestHandler.handle(request.request, options || {});
24904 }, handlerExecutionContext);
24905 };
24906 UpdateAdmChannelCommand.prototype.serialize = function (input, context) {
24907 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateAdmChannelCommand"])(input, context);
24908 };
24909 UpdateAdmChannelCommand.prototype.deserialize = function (output, context) {
24910 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateAdmChannelCommand"])(output, context);
24911 };
24912 return UpdateAdmChannelCommand;
24913}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24914
24915//# sourceMappingURL=UpdateAdmChannelCommand.js.map
24916
24917/***/ }),
24918
24919/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js":
24920/*!***********************************************************************************************************!*\
24921 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js ***!
24922 \***********************************************************************************************************/
24923/*! exports provided: UpdateApnsChannelCommand */
24924/***/ (function(module, __webpack_exports__, __webpack_require__) {
24925
24926"use strict";
24927__webpack_require__.r(__webpack_exports__);
24928/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelCommand", function() { return UpdateApnsChannelCommand; });
24929/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24930/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
24931/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
24932/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
24933/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
24934
24935
24936
24937
24938
24939/**
24940 * <p>Enables the APNs channel for an application or updates the status and settings of the APNs channel for an application.</p>
24941 */
24942var UpdateApnsChannelCommand = /** @class */ (function (_super) {
24943 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsChannelCommand, _super);
24944 // Start section: command_properties
24945 // End section: command_properties
24946 function UpdateApnsChannelCommand(input) {
24947 var _this =
24948 // Start section: command_constructor
24949 _super.call(this) || this;
24950 _this.input = input;
24951 return _this;
24952 // End section: command_constructor
24953 }
24954 /**
24955 * @internal
24956 */
24957 UpdateApnsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
24958 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
24959 var stack = clientStack.concat(this.middlewareStack);
24960 var logger = configuration.logger;
24961 var clientName = "PinpointClient";
24962 var commandName = "UpdateApnsChannelCommand";
24963 var handlerExecutionContext = {
24964 logger: logger,
24965 clientName: clientName,
24966 commandName: commandName,
24967 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelRequest"].filterSensitiveLog,
24968 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelResponse"].filterSensitiveLog,
24969 };
24970 var requestHandler = configuration.requestHandler;
24971 return stack.resolve(function (request) {
24972 return requestHandler.handle(request.request, options || {});
24973 }, handlerExecutionContext);
24974 };
24975 UpdateApnsChannelCommand.prototype.serialize = function (input, context) {
24976 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsChannelCommand"])(input, context);
24977 };
24978 UpdateApnsChannelCommand.prototype.deserialize = function (output, context) {
24979 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsChannelCommand"])(output, context);
24980 };
24981 return UpdateApnsChannelCommand;
24982}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
24983
24984//# sourceMappingURL=UpdateApnsChannelCommand.js.map
24985
24986/***/ }),
24987
24988/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js":
24989/*!******************************************************************************************************************!*\
24990 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js ***!
24991 \******************************************************************************************************************/
24992/*! exports provided: UpdateApnsSandboxChannelCommand */
24993/***/ (function(module, __webpack_exports__, __webpack_require__) {
24994
24995"use strict";
24996__webpack_require__.r(__webpack_exports__);
24997/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelCommand", function() { return UpdateApnsSandboxChannelCommand; });
24998/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
24999/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25000/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25001/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25002/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25003
25004
25005
25006
25007
25008/**
25009 * <p>Enables the APNs sandbox channel for an application or updates the status and settings of the APNs sandbox channel for an application.</p>
25010 */
25011var UpdateApnsSandboxChannelCommand = /** @class */ (function (_super) {
25012 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsSandboxChannelCommand, _super);
25013 // Start section: command_properties
25014 // End section: command_properties
25015 function UpdateApnsSandboxChannelCommand(input) {
25016 var _this =
25017 // Start section: command_constructor
25018 _super.call(this) || this;
25019 _this.input = input;
25020 return _this;
25021 // End section: command_constructor
25022 }
25023 /**
25024 * @internal
25025 */
25026 UpdateApnsSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25027 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25028 var stack = clientStack.concat(this.middlewareStack);
25029 var logger = configuration.logger;
25030 var clientName = "PinpointClient";
25031 var commandName = "UpdateApnsSandboxChannelCommand";
25032 var handlerExecutionContext = {
25033 logger: logger,
25034 clientName: clientName,
25035 commandName: commandName,
25036 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelRequest"].filterSensitiveLog,
25037 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelResponse"].filterSensitiveLog,
25038 };
25039 var requestHandler = configuration.requestHandler;
25040 return stack.resolve(function (request) {
25041 return requestHandler.handle(request.request, options || {});
25042 }, handlerExecutionContext);
25043 };
25044 UpdateApnsSandboxChannelCommand.prototype.serialize = function (input, context) {
25045 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsSandboxChannelCommand"])(input, context);
25046 };
25047 UpdateApnsSandboxChannelCommand.prototype.deserialize = function (output, context) {
25048 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsSandboxChannelCommand"])(output, context);
25049 };
25050 return UpdateApnsSandboxChannelCommand;
25051}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25052
25053//# sourceMappingURL=UpdateApnsSandboxChannelCommand.js.map
25054
25055/***/ }),
25056
25057/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js":
25058/*!***************************************************************************************************************!*\
25059 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js ***!
25060 \***************************************************************************************************************/
25061/*! exports provided: UpdateApnsVoipChannelCommand */
25062/***/ (function(module, __webpack_exports__, __webpack_require__) {
25063
25064"use strict";
25065__webpack_require__.r(__webpack_exports__);
25066/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelCommand", function() { return UpdateApnsVoipChannelCommand; });
25067/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25068/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25069/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25070/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25071/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25072
25073
25074
25075
25076
25077/**
25078 * <p>Enables the APNs VoIP channel for an application or updates the status and settings of the APNs VoIP channel for an application.</p>
25079 */
25080var UpdateApnsVoipChannelCommand = /** @class */ (function (_super) {
25081 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsVoipChannelCommand, _super);
25082 // Start section: command_properties
25083 // End section: command_properties
25084 function UpdateApnsVoipChannelCommand(input) {
25085 var _this =
25086 // Start section: command_constructor
25087 _super.call(this) || this;
25088 _this.input = input;
25089 return _this;
25090 // End section: command_constructor
25091 }
25092 /**
25093 * @internal
25094 */
25095 UpdateApnsVoipChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25096 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25097 var stack = clientStack.concat(this.middlewareStack);
25098 var logger = configuration.logger;
25099 var clientName = "PinpointClient";
25100 var commandName = "UpdateApnsVoipChannelCommand";
25101 var handlerExecutionContext = {
25102 logger: logger,
25103 clientName: clientName,
25104 commandName: commandName,
25105 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelRequest"].filterSensitiveLog,
25106 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelResponse"].filterSensitiveLog,
25107 };
25108 var requestHandler = configuration.requestHandler;
25109 return stack.resolve(function (request) {
25110 return requestHandler.handle(request.request, options || {});
25111 }, handlerExecutionContext);
25112 };
25113 UpdateApnsVoipChannelCommand.prototype.serialize = function (input, context) {
25114 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsVoipChannelCommand"])(input, context);
25115 };
25116 UpdateApnsVoipChannelCommand.prototype.deserialize = function (output, context) {
25117 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsVoipChannelCommand"])(output, context);
25118 };
25119 return UpdateApnsVoipChannelCommand;
25120}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25121
25122//# sourceMappingURL=UpdateApnsVoipChannelCommand.js.map
25123
25124/***/ }),
25125
25126/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js":
25127/*!**********************************************************************************************************************!*\
25128 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js ***!
25129 \**********************************************************************************************************************/
25130/*! exports provided: UpdateApnsVoipSandboxChannelCommand */
25131/***/ (function(module, __webpack_exports__, __webpack_require__) {
25132
25133"use strict";
25134__webpack_require__.r(__webpack_exports__);
25135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelCommand", function() { return UpdateApnsVoipSandboxChannelCommand; });
25136/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25137/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25138/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25139/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25140/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25141
25142
25143
25144
25145
25146/**
25147 * <p>Enables the APNs VoIP sandbox channel for an application or updates the status and settings of the APNs VoIP sandbox channel for an application.</p>
25148 */
25149var UpdateApnsVoipSandboxChannelCommand = /** @class */ (function (_super) {
25150 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApnsVoipSandboxChannelCommand, _super);
25151 // Start section: command_properties
25152 // End section: command_properties
25153 function UpdateApnsVoipSandboxChannelCommand(input) {
25154 var _this =
25155 // Start section: command_constructor
25156 _super.call(this) || this;
25157 _this.input = input;
25158 return _this;
25159 // End section: command_constructor
25160 }
25161 /**
25162 * @internal
25163 */
25164 UpdateApnsVoipSandboxChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25165 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25166 var stack = clientStack.concat(this.middlewareStack);
25167 var logger = configuration.logger;
25168 var clientName = "PinpointClient";
25169 var commandName = "UpdateApnsVoipSandboxChannelCommand";
25170 var handlerExecutionContext = {
25171 logger: logger,
25172 clientName: clientName,
25173 commandName: commandName,
25174 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelRequest"].filterSensitiveLog,
25175 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelResponse"].filterSensitiveLog,
25176 };
25177 var requestHandler = configuration.requestHandler;
25178 return stack.resolve(function (request) {
25179 return requestHandler.handle(request.request, options || {});
25180 }, handlerExecutionContext);
25181 };
25182 UpdateApnsVoipSandboxChannelCommand.prototype.serialize = function (input, context) {
25183 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand"])(input, context);
25184 };
25185 UpdateApnsVoipSandboxChannelCommand.prototype.deserialize = function (output, context) {
25186 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand"])(output, context);
25187 };
25188 return UpdateApnsVoipSandboxChannelCommand;
25189}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25190
25191//# sourceMappingURL=UpdateApnsVoipSandboxChannelCommand.js.map
25192
25193/***/ }),
25194
25195/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js":
25196/*!*******************************************************************************************************************!*\
25197 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js ***!
25198 \*******************************************************************************************************************/
25199/*! exports provided: UpdateApplicationSettingsCommand */
25200/***/ (function(module, __webpack_exports__, __webpack_require__) {
25201
25202"use strict";
25203__webpack_require__.r(__webpack_exports__);
25204/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsCommand", function() { return UpdateApplicationSettingsCommand; });
25205/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25206/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25207/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25208/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25209/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25210
25211
25212
25213
25214
25215/**
25216 * <p>Updates the settings for an application.</p>
25217 */
25218var UpdateApplicationSettingsCommand = /** @class */ (function (_super) {
25219 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateApplicationSettingsCommand, _super);
25220 // Start section: command_properties
25221 // End section: command_properties
25222 function UpdateApplicationSettingsCommand(input) {
25223 var _this =
25224 // Start section: command_constructor
25225 _super.call(this) || this;
25226 _this.input = input;
25227 return _this;
25228 // End section: command_constructor
25229 }
25230 /**
25231 * @internal
25232 */
25233 UpdateApplicationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25234 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25235 var stack = clientStack.concat(this.middlewareStack);
25236 var logger = configuration.logger;
25237 var clientName = "PinpointClient";
25238 var commandName = "UpdateApplicationSettingsCommand";
25239 var handlerExecutionContext = {
25240 logger: logger,
25241 clientName: clientName,
25242 commandName: commandName,
25243 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsRequest"].filterSensitiveLog,
25244 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsResponse"].filterSensitiveLog,
25245 };
25246 var requestHandler = configuration.requestHandler;
25247 return stack.resolve(function (request) {
25248 return requestHandler.handle(request.request, options || {});
25249 }, handlerExecutionContext);
25250 };
25251 UpdateApplicationSettingsCommand.prototype.serialize = function (input, context) {
25252 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateApplicationSettingsCommand"])(input, context);
25253 };
25254 UpdateApplicationSettingsCommand.prototype.deserialize = function (output, context) {
25255 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateApplicationSettingsCommand"])(output, context);
25256 };
25257 return UpdateApplicationSettingsCommand;
25258}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25259
25260//# sourceMappingURL=UpdateApplicationSettingsCommand.js.map
25261
25262/***/ }),
25263
25264/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js":
25265/*!************************************************************************************************************!*\
25266 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js ***!
25267 \************************************************************************************************************/
25268/*! exports provided: UpdateBaiduChannelCommand */
25269/***/ (function(module, __webpack_exports__, __webpack_require__) {
25270
25271"use strict";
25272__webpack_require__.r(__webpack_exports__);
25273/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelCommand", function() { return UpdateBaiduChannelCommand; });
25274/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25275/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25276/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25277/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25278/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25279
25280
25281
25282
25283
25284/**
25285 * <p>Enables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.</p>
25286 */
25287var UpdateBaiduChannelCommand = /** @class */ (function (_super) {
25288 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateBaiduChannelCommand, _super);
25289 // Start section: command_properties
25290 // End section: command_properties
25291 function UpdateBaiduChannelCommand(input) {
25292 var _this =
25293 // Start section: command_constructor
25294 _super.call(this) || this;
25295 _this.input = input;
25296 return _this;
25297 // End section: command_constructor
25298 }
25299 /**
25300 * @internal
25301 */
25302 UpdateBaiduChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25303 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25304 var stack = clientStack.concat(this.middlewareStack);
25305 var logger = configuration.logger;
25306 var clientName = "PinpointClient";
25307 var commandName = "UpdateBaiduChannelCommand";
25308 var handlerExecutionContext = {
25309 logger: logger,
25310 clientName: clientName,
25311 commandName: commandName,
25312 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelRequest"].filterSensitiveLog,
25313 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelResponse"].filterSensitiveLog,
25314 };
25315 var requestHandler = configuration.requestHandler;
25316 return stack.resolve(function (request) {
25317 return requestHandler.handle(request.request, options || {});
25318 }, handlerExecutionContext);
25319 };
25320 UpdateBaiduChannelCommand.prototype.serialize = function (input, context) {
25321 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateBaiduChannelCommand"])(input, context);
25322 };
25323 UpdateBaiduChannelCommand.prototype.deserialize = function (output, context) {
25324 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateBaiduChannelCommand"])(output, context);
25325 };
25326 return UpdateBaiduChannelCommand;
25327}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25328
25329//# sourceMappingURL=UpdateBaiduChannelCommand.js.map
25330
25331/***/ }),
25332
25333/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js":
25334/*!********************************************************************************************************!*\
25335 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js ***!
25336 \********************************************************************************************************/
25337/*! exports provided: UpdateCampaignCommand */
25338/***/ (function(module, __webpack_exports__, __webpack_require__) {
25339
25340"use strict";
25341__webpack_require__.r(__webpack_exports__);
25342/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignCommand", function() { return UpdateCampaignCommand; });
25343/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25344/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25345/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25346/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25347/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25348
25349
25350
25351
25352
25353/**
25354 * <p>Updates the configuration and other settings for a campaign.</p>
25355 */
25356var UpdateCampaignCommand = /** @class */ (function (_super) {
25357 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateCampaignCommand, _super);
25358 // Start section: command_properties
25359 // End section: command_properties
25360 function UpdateCampaignCommand(input) {
25361 var _this =
25362 // Start section: command_constructor
25363 _super.call(this) || this;
25364 _this.input = input;
25365 return _this;
25366 // End section: command_constructor
25367 }
25368 /**
25369 * @internal
25370 */
25371 UpdateCampaignCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25372 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25373 var stack = clientStack.concat(this.middlewareStack);
25374 var logger = configuration.logger;
25375 var clientName = "PinpointClient";
25376 var commandName = "UpdateCampaignCommand";
25377 var handlerExecutionContext = {
25378 logger: logger,
25379 clientName: clientName,
25380 commandName: commandName,
25381 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignRequest"].filterSensitiveLog,
25382 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignResponse"].filterSensitiveLog,
25383 };
25384 var requestHandler = configuration.requestHandler;
25385 return stack.resolve(function (request) {
25386 return requestHandler.handle(request.request, options || {});
25387 }, handlerExecutionContext);
25388 };
25389 UpdateCampaignCommand.prototype.serialize = function (input, context) {
25390 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateCampaignCommand"])(input, context);
25391 };
25392 UpdateCampaignCommand.prototype.deserialize = function (output, context) {
25393 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateCampaignCommand"])(output, context);
25394 };
25395 return UpdateCampaignCommand;
25396}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25397
25398//# sourceMappingURL=UpdateCampaignCommand.js.map
25399
25400/***/ }),
25401
25402/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js":
25403/*!************************************************************************************************************!*\
25404 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js ***!
25405 \************************************************************************************************************/
25406/*! exports provided: UpdateEmailChannelCommand */
25407/***/ (function(module, __webpack_exports__, __webpack_require__) {
25408
25409"use strict";
25410__webpack_require__.r(__webpack_exports__);
25411/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelCommand", function() { return UpdateEmailChannelCommand; });
25412/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25413/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25414/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25415/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25416/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25417
25418
25419
25420
25421
25422/**
25423 * <p>Enables the email channel for an application or updates the status and settings of the email channel for an application.</p>
25424 */
25425var UpdateEmailChannelCommand = /** @class */ (function (_super) {
25426 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEmailChannelCommand, _super);
25427 // Start section: command_properties
25428 // End section: command_properties
25429 function UpdateEmailChannelCommand(input) {
25430 var _this =
25431 // Start section: command_constructor
25432 _super.call(this) || this;
25433 _this.input = input;
25434 return _this;
25435 // End section: command_constructor
25436 }
25437 /**
25438 * @internal
25439 */
25440 UpdateEmailChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25441 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25442 var stack = clientStack.concat(this.middlewareStack);
25443 var logger = configuration.logger;
25444 var clientName = "PinpointClient";
25445 var commandName = "UpdateEmailChannelCommand";
25446 var handlerExecutionContext = {
25447 logger: logger,
25448 clientName: clientName,
25449 commandName: commandName,
25450 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelRequest"].filterSensitiveLog,
25451 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelResponse"].filterSensitiveLog,
25452 };
25453 var requestHandler = configuration.requestHandler;
25454 return stack.resolve(function (request) {
25455 return requestHandler.handle(request.request, options || {});
25456 }, handlerExecutionContext);
25457 };
25458 UpdateEmailChannelCommand.prototype.serialize = function (input, context) {
25459 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEmailChannelCommand"])(input, context);
25460 };
25461 UpdateEmailChannelCommand.prototype.deserialize = function (output, context) {
25462 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEmailChannelCommand"])(output, context);
25463 };
25464 return UpdateEmailChannelCommand;
25465}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25466
25467//# sourceMappingURL=UpdateEmailChannelCommand.js.map
25468
25469/***/ }),
25470
25471/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js":
25472/*!*************************************************************************************************************!*\
25473 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js ***!
25474 \*************************************************************************************************************/
25475/*! exports provided: UpdateEmailTemplateCommand */
25476/***/ (function(module, __webpack_exports__, __webpack_require__) {
25477
25478"use strict";
25479__webpack_require__.r(__webpack_exports__);
25480/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateCommand", function() { return UpdateEmailTemplateCommand; });
25481/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25482/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25483/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25484/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25485/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25486
25487
25488
25489
25490
25491/**
25492 * <p>Updates an existing message template for messages that are sent through the email channel.</p>
25493 */
25494var UpdateEmailTemplateCommand = /** @class */ (function (_super) {
25495 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEmailTemplateCommand, _super);
25496 // Start section: command_properties
25497 // End section: command_properties
25498 function UpdateEmailTemplateCommand(input) {
25499 var _this =
25500 // Start section: command_constructor
25501 _super.call(this) || this;
25502 _this.input = input;
25503 return _this;
25504 // End section: command_constructor
25505 }
25506 /**
25507 * @internal
25508 */
25509 UpdateEmailTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25510 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25511 var stack = clientStack.concat(this.middlewareStack);
25512 var logger = configuration.logger;
25513 var clientName = "PinpointClient";
25514 var commandName = "UpdateEmailTemplateCommand";
25515 var handlerExecutionContext = {
25516 logger: logger,
25517 clientName: clientName,
25518 commandName: commandName,
25519 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateRequest"].filterSensitiveLog,
25520 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateResponse"].filterSensitiveLog,
25521 };
25522 var requestHandler = configuration.requestHandler;
25523 return stack.resolve(function (request) {
25524 return requestHandler.handle(request.request, options || {});
25525 }, handlerExecutionContext);
25526 };
25527 UpdateEmailTemplateCommand.prototype.serialize = function (input, context) {
25528 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEmailTemplateCommand"])(input, context);
25529 };
25530 UpdateEmailTemplateCommand.prototype.deserialize = function (output, context) {
25531 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEmailTemplateCommand"])(output, context);
25532 };
25533 return UpdateEmailTemplateCommand;
25534}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25535
25536//# sourceMappingURL=UpdateEmailTemplateCommand.js.map
25537
25538/***/ }),
25539
25540/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js":
25541/*!********************************************************************************************************!*\
25542 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js ***!
25543 \********************************************************************************************************/
25544/*! exports provided: UpdateEndpointCommand */
25545/***/ (function(module, __webpack_exports__, __webpack_require__) {
25546
25547"use strict";
25548__webpack_require__.r(__webpack_exports__);
25549/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointCommand", function() { return UpdateEndpointCommand; });
25550/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25551/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25552/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25553/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25554/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25555
25556
25557
25558
25559
25560/**
25561 * <p>Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application. You can also use this operation to define custom attributes for an endpoint. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values.</p>
25562 */
25563var UpdateEndpointCommand = /** @class */ (function (_super) {
25564 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEndpointCommand, _super);
25565 // Start section: command_properties
25566 // End section: command_properties
25567 function UpdateEndpointCommand(input) {
25568 var _this =
25569 // Start section: command_constructor
25570 _super.call(this) || this;
25571 _this.input = input;
25572 return _this;
25573 // End section: command_constructor
25574 }
25575 /**
25576 * @internal
25577 */
25578 UpdateEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25579 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25580 var stack = clientStack.concat(this.middlewareStack);
25581 var logger = configuration.logger;
25582 var clientName = "PinpointClient";
25583 var commandName = "UpdateEndpointCommand";
25584 var handlerExecutionContext = {
25585 logger: logger,
25586 clientName: clientName,
25587 commandName: commandName,
25588 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointRequest"].filterSensitiveLog,
25589 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointResponse"].filterSensitiveLog,
25590 };
25591 var requestHandler = configuration.requestHandler;
25592 return stack.resolve(function (request) {
25593 return requestHandler.handle(request.request, options || {});
25594 }, handlerExecutionContext);
25595 };
25596 UpdateEndpointCommand.prototype.serialize = function (input, context) {
25597 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEndpointCommand"])(input, context);
25598 };
25599 UpdateEndpointCommand.prototype.deserialize = function (output, context) {
25600 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEndpointCommand"])(output, context);
25601 };
25602 return UpdateEndpointCommand;
25603}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25604
25605//# sourceMappingURL=UpdateEndpointCommand.js.map
25606
25607/***/ }),
25608
25609/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js":
25610/*!**************************************************************************************************************!*\
25611 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js ***!
25612 \**************************************************************************************************************/
25613/*! exports provided: UpdateEndpointsBatchCommand */
25614/***/ (function(module, __webpack_exports__, __webpack_require__) {
25615
25616"use strict";
25617__webpack_require__.r(__webpack_exports__);
25618/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchCommand", function() { return UpdateEndpointsBatchCommand; });
25619/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25620/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25621/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25622/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25623/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25624
25625
25626
25627
25628
25629/**
25630 * <p>Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application. You can also use this operation to define custom attributes for a batch of endpoints. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values.</p>
25631 */
25632var UpdateEndpointsBatchCommand = /** @class */ (function (_super) {
25633 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateEndpointsBatchCommand, _super);
25634 // Start section: command_properties
25635 // End section: command_properties
25636 function UpdateEndpointsBatchCommand(input) {
25637 var _this =
25638 // Start section: command_constructor
25639 _super.call(this) || this;
25640 _this.input = input;
25641 return _this;
25642 // End section: command_constructor
25643 }
25644 /**
25645 * @internal
25646 */
25647 UpdateEndpointsBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25648 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25649 var stack = clientStack.concat(this.middlewareStack);
25650 var logger = configuration.logger;
25651 var clientName = "PinpointClient";
25652 var commandName = "UpdateEndpointsBatchCommand";
25653 var handlerExecutionContext = {
25654 logger: logger,
25655 clientName: clientName,
25656 commandName: commandName,
25657 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchRequest"].filterSensitiveLog,
25658 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchResponse"].filterSensitiveLog,
25659 };
25660 var requestHandler = configuration.requestHandler;
25661 return stack.resolve(function (request) {
25662 return requestHandler.handle(request.request, options || {});
25663 }, handlerExecutionContext);
25664 };
25665 UpdateEndpointsBatchCommand.prototype.serialize = function (input, context) {
25666 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateEndpointsBatchCommand"])(input, context);
25667 };
25668 UpdateEndpointsBatchCommand.prototype.deserialize = function (output, context) {
25669 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateEndpointsBatchCommand"])(output, context);
25670 };
25671 return UpdateEndpointsBatchCommand;
25672}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25673
25674//# sourceMappingURL=UpdateEndpointsBatchCommand.js.map
25675
25676/***/ }),
25677
25678/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js":
25679/*!**********************************************************************************************************!*\
25680 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js ***!
25681 \**********************************************************************************************************/
25682/*! exports provided: UpdateGcmChannelCommand */
25683/***/ (function(module, __webpack_exports__, __webpack_require__) {
25684
25685"use strict";
25686__webpack_require__.r(__webpack_exports__);
25687/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelCommand", function() { return UpdateGcmChannelCommand; });
25688/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25689/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25690/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25691/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25692/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25693
25694
25695
25696
25697
25698/**
25699 * <p>Enables the GCM channel for an application or updates the status and settings of the GCM channel for an application.</p>
25700 */
25701var UpdateGcmChannelCommand = /** @class */ (function (_super) {
25702 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateGcmChannelCommand, _super);
25703 // Start section: command_properties
25704 // End section: command_properties
25705 function UpdateGcmChannelCommand(input) {
25706 var _this =
25707 // Start section: command_constructor
25708 _super.call(this) || this;
25709 _this.input = input;
25710 return _this;
25711 // End section: command_constructor
25712 }
25713 /**
25714 * @internal
25715 */
25716 UpdateGcmChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25717 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25718 var stack = clientStack.concat(this.middlewareStack);
25719 var logger = configuration.logger;
25720 var clientName = "PinpointClient";
25721 var commandName = "UpdateGcmChannelCommand";
25722 var handlerExecutionContext = {
25723 logger: logger,
25724 clientName: clientName,
25725 commandName: commandName,
25726 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelRequest"].filterSensitiveLog,
25727 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelResponse"].filterSensitiveLog,
25728 };
25729 var requestHandler = configuration.requestHandler;
25730 return stack.resolve(function (request) {
25731 return requestHandler.handle(request.request, options || {});
25732 }, handlerExecutionContext);
25733 };
25734 UpdateGcmChannelCommand.prototype.serialize = function (input, context) {
25735 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateGcmChannelCommand"])(input, context);
25736 };
25737 UpdateGcmChannelCommand.prototype.deserialize = function (output, context) {
25738 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateGcmChannelCommand"])(output, context);
25739 };
25740 return UpdateGcmChannelCommand;
25741}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25742
25743//# sourceMappingURL=UpdateGcmChannelCommand.js.map
25744
25745/***/ }),
25746
25747/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js":
25748/*!*******************************************************************************************************!*\
25749 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js ***!
25750 \*******************************************************************************************************/
25751/*! exports provided: UpdateJourneyCommand */
25752/***/ (function(module, __webpack_exports__, __webpack_require__) {
25753
25754"use strict";
25755__webpack_require__.r(__webpack_exports__);
25756/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyCommand", function() { return UpdateJourneyCommand; });
25757/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25758/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25759/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25760/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25761/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25762
25763
25764
25765
25766
25767/**
25768 * <p>Updates the configuration and other settings for a journey.</p>
25769 */
25770var UpdateJourneyCommand = /** @class */ (function (_super) {
25771 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateJourneyCommand, _super);
25772 // Start section: command_properties
25773 // End section: command_properties
25774 function UpdateJourneyCommand(input) {
25775 var _this =
25776 // Start section: command_constructor
25777 _super.call(this) || this;
25778 _this.input = input;
25779 return _this;
25780 // End section: command_constructor
25781 }
25782 /**
25783 * @internal
25784 */
25785 UpdateJourneyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25786 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25787 var stack = clientStack.concat(this.middlewareStack);
25788 var logger = configuration.logger;
25789 var clientName = "PinpointClient";
25790 var commandName = "UpdateJourneyCommand";
25791 var handlerExecutionContext = {
25792 logger: logger,
25793 clientName: clientName,
25794 commandName: commandName,
25795 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyRequest"].filterSensitiveLog,
25796 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyResponse"].filterSensitiveLog,
25797 };
25798 var requestHandler = configuration.requestHandler;
25799 return stack.resolve(function (request) {
25800 return requestHandler.handle(request.request, options || {});
25801 }, handlerExecutionContext);
25802 };
25803 UpdateJourneyCommand.prototype.serialize = function (input, context) {
25804 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateJourneyCommand"])(input, context);
25805 };
25806 UpdateJourneyCommand.prototype.deserialize = function (output, context) {
25807 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateJourneyCommand"])(output, context);
25808 };
25809 return UpdateJourneyCommand;
25810}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25811
25812//# sourceMappingURL=UpdateJourneyCommand.js.map
25813
25814/***/ }),
25815
25816/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js":
25817/*!************************************************************************************************************!*\
25818 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js ***!
25819 \************************************************************************************************************/
25820/*! exports provided: UpdateJourneyStateCommand */
25821/***/ (function(module, __webpack_exports__, __webpack_require__) {
25822
25823"use strict";
25824__webpack_require__.r(__webpack_exports__);
25825/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateCommand", function() { return UpdateJourneyStateCommand; });
25826/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25827/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25828/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25829/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25830/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25831
25832
25833
25834
25835
25836/**
25837 * <p>Cancels (stops) an active journey.</p>
25838 */
25839var UpdateJourneyStateCommand = /** @class */ (function (_super) {
25840 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateJourneyStateCommand, _super);
25841 // Start section: command_properties
25842 // End section: command_properties
25843 function UpdateJourneyStateCommand(input) {
25844 var _this =
25845 // Start section: command_constructor
25846 _super.call(this) || this;
25847 _this.input = input;
25848 return _this;
25849 // End section: command_constructor
25850 }
25851 /**
25852 * @internal
25853 */
25854 UpdateJourneyStateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25855 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25856 var stack = clientStack.concat(this.middlewareStack);
25857 var logger = configuration.logger;
25858 var clientName = "PinpointClient";
25859 var commandName = "UpdateJourneyStateCommand";
25860 var handlerExecutionContext = {
25861 logger: logger,
25862 clientName: clientName,
25863 commandName: commandName,
25864 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateRequest"].filterSensitiveLog,
25865 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateResponse"].filterSensitiveLog,
25866 };
25867 var requestHandler = configuration.requestHandler;
25868 return stack.resolve(function (request) {
25869 return requestHandler.handle(request.request, options || {});
25870 }, handlerExecutionContext);
25871 };
25872 UpdateJourneyStateCommand.prototype.serialize = function (input, context) {
25873 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateJourneyStateCommand"])(input, context);
25874 };
25875 UpdateJourneyStateCommand.prototype.deserialize = function (output, context) {
25876 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateJourneyStateCommand"])(output, context);
25877 };
25878 return UpdateJourneyStateCommand;
25879}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25880
25881//# sourceMappingURL=UpdateJourneyStateCommand.js.map
25882
25883/***/ }),
25884
25885/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js":
25886/*!************************************************************************************************************!*\
25887 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js ***!
25888 \************************************************************************************************************/
25889/*! exports provided: UpdatePushTemplateCommand */
25890/***/ (function(module, __webpack_exports__, __webpack_require__) {
25891
25892"use strict";
25893__webpack_require__.r(__webpack_exports__);
25894/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateCommand", function() { return UpdatePushTemplateCommand; });
25895/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25896/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25897/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25898/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25899/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25900
25901
25902
25903
25904
25905/**
25906 * <p>Updates an existing message template for messages that are sent through a push notification channel.</p>
25907 */
25908var UpdatePushTemplateCommand = /** @class */ (function (_super) {
25909 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdatePushTemplateCommand, _super);
25910 // Start section: command_properties
25911 // End section: command_properties
25912 function UpdatePushTemplateCommand(input) {
25913 var _this =
25914 // Start section: command_constructor
25915 _super.call(this) || this;
25916 _this.input = input;
25917 return _this;
25918 // End section: command_constructor
25919 }
25920 /**
25921 * @internal
25922 */
25923 UpdatePushTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25924 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25925 var stack = clientStack.concat(this.middlewareStack);
25926 var logger = configuration.logger;
25927 var clientName = "PinpointClient";
25928 var commandName = "UpdatePushTemplateCommand";
25929 var handlerExecutionContext = {
25930 logger: logger,
25931 clientName: clientName,
25932 commandName: commandName,
25933 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateRequest"].filterSensitiveLog,
25934 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateResponse"].filterSensitiveLog,
25935 };
25936 var requestHandler = configuration.requestHandler;
25937 return stack.resolve(function (request) {
25938 return requestHandler.handle(request.request, options || {});
25939 }, handlerExecutionContext);
25940 };
25941 UpdatePushTemplateCommand.prototype.serialize = function (input, context) {
25942 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdatePushTemplateCommand"])(input, context);
25943 };
25944 UpdatePushTemplateCommand.prototype.deserialize = function (output, context) {
25945 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdatePushTemplateCommand"])(output, context);
25946 };
25947 return UpdatePushTemplateCommand;
25948}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
25949
25950//# sourceMappingURL=UpdatePushTemplateCommand.js.map
25951
25952/***/ }),
25953
25954/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js":
25955/*!************************************************************************************************************************!*\
25956 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js ***!
25957 \************************************************************************************************************************/
25958/*! exports provided: UpdateRecommenderConfigurationCommand */
25959/***/ (function(module, __webpack_exports__, __webpack_require__) {
25960
25961"use strict";
25962__webpack_require__.r(__webpack_exports__);
25963/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationCommand", function() { return UpdateRecommenderConfigurationCommand; });
25964/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
25965/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
25966/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
25967/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
25968/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
25969
25970
25971
25972
25973
25974/**
25975 * <p>Updates an Amazon Pinpoint configuration for a recommender model.</p>
25976 */
25977var UpdateRecommenderConfigurationCommand = /** @class */ (function (_super) {
25978 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateRecommenderConfigurationCommand, _super);
25979 // Start section: command_properties
25980 // End section: command_properties
25981 function UpdateRecommenderConfigurationCommand(input) {
25982 var _this =
25983 // Start section: command_constructor
25984 _super.call(this) || this;
25985 _this.input = input;
25986 return _this;
25987 // End section: command_constructor
25988 }
25989 /**
25990 * @internal
25991 */
25992 UpdateRecommenderConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
25993 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
25994 var stack = clientStack.concat(this.middlewareStack);
25995 var logger = configuration.logger;
25996 var clientName = "PinpointClient";
25997 var commandName = "UpdateRecommenderConfigurationCommand";
25998 var handlerExecutionContext = {
25999 logger: logger,
26000 clientName: clientName,
26001 commandName: commandName,
26002 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationRequest"].filterSensitiveLog,
26003 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationResponse"].filterSensitiveLog,
26004 };
26005 var requestHandler = configuration.requestHandler;
26006 return stack.resolve(function (request) {
26007 return requestHandler.handle(request.request, options || {});
26008 }, handlerExecutionContext);
26009 };
26010 UpdateRecommenderConfigurationCommand.prototype.serialize = function (input, context) {
26011 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateRecommenderConfigurationCommand"])(input, context);
26012 };
26013 UpdateRecommenderConfigurationCommand.prototype.deserialize = function (output, context) {
26014 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateRecommenderConfigurationCommand"])(output, context);
26015 };
26016 return UpdateRecommenderConfigurationCommand;
26017}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26018
26019//# sourceMappingURL=UpdateRecommenderConfigurationCommand.js.map
26020
26021/***/ }),
26022
26023/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js":
26024/*!*******************************************************************************************************!*\
26025 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js ***!
26026 \*******************************************************************************************************/
26027/*! exports provided: UpdateSegmentCommand */
26028/***/ (function(module, __webpack_exports__, __webpack_require__) {
26029
26030"use strict";
26031__webpack_require__.r(__webpack_exports__);
26032/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentCommand", function() { return UpdateSegmentCommand; });
26033/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26034/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
26035/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
26036/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
26037/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
26038
26039
26040
26041
26042
26043/**
26044 * <p>Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.</p>
26045 */
26046var UpdateSegmentCommand = /** @class */ (function (_super) {
26047 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSegmentCommand, _super);
26048 // Start section: command_properties
26049 // End section: command_properties
26050 function UpdateSegmentCommand(input) {
26051 var _this =
26052 // Start section: command_constructor
26053 _super.call(this) || this;
26054 _this.input = input;
26055 return _this;
26056 // End section: command_constructor
26057 }
26058 /**
26059 * @internal
26060 */
26061 UpdateSegmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26062 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26063 var stack = clientStack.concat(this.middlewareStack);
26064 var logger = configuration.logger;
26065 var clientName = "PinpointClient";
26066 var commandName = "UpdateSegmentCommand";
26067 var handlerExecutionContext = {
26068 logger: logger,
26069 clientName: clientName,
26070 commandName: commandName,
26071 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentRequest"].filterSensitiveLog,
26072 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentResponse"].filterSensitiveLog,
26073 };
26074 var requestHandler = configuration.requestHandler;
26075 return stack.resolve(function (request) {
26076 return requestHandler.handle(request.request, options || {});
26077 }, handlerExecutionContext);
26078 };
26079 UpdateSegmentCommand.prototype.serialize = function (input, context) {
26080 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSegmentCommand"])(input, context);
26081 };
26082 UpdateSegmentCommand.prototype.deserialize = function (output, context) {
26083 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSegmentCommand"])(output, context);
26084 };
26085 return UpdateSegmentCommand;
26086}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26087
26088//# sourceMappingURL=UpdateSegmentCommand.js.map
26089
26090/***/ }),
26091
26092/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js":
26093/*!**********************************************************************************************************!*\
26094 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js ***!
26095 \**********************************************************************************************************/
26096/*! exports provided: UpdateSmsChannelCommand */
26097/***/ (function(module, __webpack_exports__, __webpack_require__) {
26098
26099"use strict";
26100__webpack_require__.r(__webpack_exports__);
26101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelCommand", function() { return UpdateSmsChannelCommand; });
26102/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26103/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
26104/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
26105/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
26106/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
26107
26108
26109
26110
26111
26112/**
26113 * <p>Enables the SMS channel for an application or updates the status and settings of the SMS channel for an application.</p>
26114 */
26115var UpdateSmsChannelCommand = /** @class */ (function (_super) {
26116 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSmsChannelCommand, _super);
26117 // Start section: command_properties
26118 // End section: command_properties
26119 function UpdateSmsChannelCommand(input) {
26120 var _this =
26121 // Start section: command_constructor
26122 _super.call(this) || this;
26123 _this.input = input;
26124 return _this;
26125 // End section: command_constructor
26126 }
26127 /**
26128 * @internal
26129 */
26130 UpdateSmsChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26131 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26132 var stack = clientStack.concat(this.middlewareStack);
26133 var logger = configuration.logger;
26134 var clientName = "PinpointClient";
26135 var commandName = "UpdateSmsChannelCommand";
26136 var handlerExecutionContext = {
26137 logger: logger,
26138 clientName: clientName,
26139 commandName: commandName,
26140 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelRequest"].filterSensitiveLog,
26141 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelResponse"].filterSensitiveLog,
26142 };
26143 var requestHandler = configuration.requestHandler;
26144 return stack.resolve(function (request) {
26145 return requestHandler.handle(request.request, options || {});
26146 }, handlerExecutionContext);
26147 };
26148 UpdateSmsChannelCommand.prototype.serialize = function (input, context) {
26149 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSmsChannelCommand"])(input, context);
26150 };
26151 UpdateSmsChannelCommand.prototype.deserialize = function (output, context) {
26152 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSmsChannelCommand"])(output, context);
26153 };
26154 return UpdateSmsChannelCommand;
26155}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26156
26157//# sourceMappingURL=UpdateSmsChannelCommand.js.map
26158
26159/***/ }),
26160
26161/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js":
26162/*!***********************************************************************************************************!*\
26163 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js ***!
26164 \***********************************************************************************************************/
26165/*! exports provided: UpdateSmsTemplateCommand */
26166/***/ (function(module, __webpack_exports__, __webpack_require__) {
26167
26168"use strict";
26169__webpack_require__.r(__webpack_exports__);
26170/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateCommand", function() { return UpdateSmsTemplateCommand; });
26171/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26172/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
26173/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
26174/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
26175/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
26176
26177
26178
26179
26180
26181/**
26182 * <p>Updates an existing message template for messages that are sent through the SMS channel.</p>
26183 */
26184var UpdateSmsTemplateCommand = /** @class */ (function (_super) {
26185 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateSmsTemplateCommand, _super);
26186 // Start section: command_properties
26187 // End section: command_properties
26188 function UpdateSmsTemplateCommand(input) {
26189 var _this =
26190 // Start section: command_constructor
26191 _super.call(this) || this;
26192 _this.input = input;
26193 return _this;
26194 // End section: command_constructor
26195 }
26196 /**
26197 * @internal
26198 */
26199 UpdateSmsTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26200 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26201 var stack = clientStack.concat(this.middlewareStack);
26202 var logger = configuration.logger;
26203 var clientName = "PinpointClient";
26204 var commandName = "UpdateSmsTemplateCommand";
26205 var handlerExecutionContext = {
26206 logger: logger,
26207 clientName: clientName,
26208 commandName: commandName,
26209 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateRequest"].filterSensitiveLog,
26210 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateResponse"].filterSensitiveLog,
26211 };
26212 var requestHandler = configuration.requestHandler;
26213 return stack.resolve(function (request) {
26214 return requestHandler.handle(request.request, options || {});
26215 }, handlerExecutionContext);
26216 };
26217 UpdateSmsTemplateCommand.prototype.serialize = function (input, context) {
26218 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateSmsTemplateCommand"])(input, context);
26219 };
26220 UpdateSmsTemplateCommand.prototype.deserialize = function (output, context) {
26221 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateSmsTemplateCommand"])(output, context);
26222 };
26223 return UpdateSmsTemplateCommand;
26224}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26225
26226//# sourceMappingURL=UpdateSmsTemplateCommand.js.map
26227
26228/***/ }),
26229
26230/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js":
26231/*!*********************************************************************************************************************!*\
26232 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js ***!
26233 \*********************************************************************************************************************/
26234/*! exports provided: UpdateTemplateActiveVersionCommand */
26235/***/ (function(module, __webpack_exports__, __webpack_require__) {
26236
26237"use strict";
26238__webpack_require__.r(__webpack_exports__);
26239/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionCommand", function() { return UpdateTemplateActiveVersionCommand; });
26240/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26241/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
26242/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
26243/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
26244/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
26245
26246
26247
26248
26249
26250/**
26251 * <p>Changes the status of a specific version of a message template to <i>active</i>.</p>
26252 */
26253var UpdateTemplateActiveVersionCommand = /** @class */ (function (_super) {
26254 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateTemplateActiveVersionCommand, _super);
26255 // Start section: command_properties
26256 // End section: command_properties
26257 function UpdateTemplateActiveVersionCommand(input) {
26258 var _this =
26259 // Start section: command_constructor
26260 _super.call(this) || this;
26261 _this.input = input;
26262 return _this;
26263 // End section: command_constructor
26264 }
26265 /**
26266 * @internal
26267 */
26268 UpdateTemplateActiveVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26269 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26270 var stack = clientStack.concat(this.middlewareStack);
26271 var logger = configuration.logger;
26272 var clientName = "PinpointClient";
26273 var commandName = "UpdateTemplateActiveVersionCommand";
26274 var handlerExecutionContext = {
26275 logger: logger,
26276 clientName: clientName,
26277 commandName: commandName,
26278 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionRequest"].filterSensitiveLog,
26279 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionResponse"].filterSensitiveLog,
26280 };
26281 var requestHandler = configuration.requestHandler;
26282 return stack.resolve(function (request) {
26283 return requestHandler.handle(request.request, options || {});
26284 }, handlerExecutionContext);
26285 };
26286 UpdateTemplateActiveVersionCommand.prototype.serialize = function (input, context) {
26287 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateTemplateActiveVersionCommand"])(input, context);
26288 };
26289 UpdateTemplateActiveVersionCommand.prototype.deserialize = function (output, context) {
26290 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateTemplateActiveVersionCommand"])(output, context);
26291 };
26292 return UpdateTemplateActiveVersionCommand;
26293}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26294
26295//# sourceMappingURL=UpdateTemplateActiveVersionCommand.js.map
26296
26297/***/ }),
26298
26299/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js":
26300/*!************************************************************************************************************!*\
26301 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js ***!
26302 \************************************************************************************************************/
26303/*! exports provided: UpdateVoiceChannelCommand */
26304/***/ (function(module, __webpack_exports__, __webpack_require__) {
26305
26306"use strict";
26307__webpack_require__.r(__webpack_exports__);
26308/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelCommand", function() { return UpdateVoiceChannelCommand; });
26309/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26310/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
26311/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
26312/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
26313/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
26314
26315
26316
26317
26318
26319/**
26320 * <p>Enables the voice channel for an application or updates the status and settings of the voice channel for an application.</p>
26321 */
26322var UpdateVoiceChannelCommand = /** @class */ (function (_super) {
26323 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateVoiceChannelCommand, _super);
26324 // Start section: command_properties
26325 // End section: command_properties
26326 function UpdateVoiceChannelCommand(input) {
26327 var _this =
26328 // Start section: command_constructor
26329 _super.call(this) || this;
26330 _this.input = input;
26331 return _this;
26332 // End section: command_constructor
26333 }
26334 /**
26335 * @internal
26336 */
26337 UpdateVoiceChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26338 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26339 var stack = clientStack.concat(this.middlewareStack);
26340 var logger = configuration.logger;
26341 var clientName = "PinpointClient";
26342 var commandName = "UpdateVoiceChannelCommand";
26343 var handlerExecutionContext = {
26344 logger: logger,
26345 clientName: clientName,
26346 commandName: commandName,
26347 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelRequest"].filterSensitiveLog,
26348 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelResponse"].filterSensitiveLog,
26349 };
26350 var requestHandler = configuration.requestHandler;
26351 return stack.resolve(function (request) {
26352 return requestHandler.handle(request.request, options || {});
26353 }, handlerExecutionContext);
26354 };
26355 UpdateVoiceChannelCommand.prototype.serialize = function (input, context) {
26356 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateVoiceChannelCommand"])(input, context);
26357 };
26358 UpdateVoiceChannelCommand.prototype.deserialize = function (output, context) {
26359 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateVoiceChannelCommand"])(output, context);
26360 };
26361 return UpdateVoiceChannelCommand;
26362}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26363
26364//# sourceMappingURL=UpdateVoiceChannelCommand.js.map
26365
26366/***/ }),
26367
26368/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js":
26369/*!*************************************************************************************************************!*\
26370 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js ***!
26371 \*************************************************************************************************************/
26372/*! exports provided: UpdateVoiceTemplateCommand */
26373/***/ (function(module, __webpack_exports__, __webpack_require__) {
26374
26375"use strict";
26376__webpack_require__.r(__webpack_exports__);
26377/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateCommand", function() { return UpdateVoiceTemplateCommand; });
26378/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26379/* harmony import */ var _models_models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
26380/* harmony import */ var _protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../protocols/Aws_restJson1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js");
26381/* harmony import */ var _aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/middleware-serde */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js");
26382/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
26383
26384
26385
26386
26387
26388/**
26389 * <p>Updates an existing message template for messages that are sent through the voice channel.</p>
26390 */
26391var UpdateVoiceTemplateCommand = /** @class */ (function (_super) {
26392 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(UpdateVoiceTemplateCommand, _super);
26393 // Start section: command_properties
26394 // End section: command_properties
26395 function UpdateVoiceTemplateCommand(input) {
26396 var _this =
26397 // Start section: command_constructor
26398 _super.call(this) || this;
26399 _this.input = input;
26400 return _this;
26401 // End section: command_constructor
26402 }
26403 /**
26404 * @internal
26405 */
26406 UpdateVoiceTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
26407 this.middlewareStack.use(Object(_aws_sdk_middleware_serde__WEBPACK_IMPORTED_MODULE_3__["getSerdePlugin"])(configuration, this.serialize, this.deserialize));
26408 var stack = clientStack.concat(this.middlewareStack);
26409 var logger = configuration.logger;
26410 var clientName = "PinpointClient";
26411 var commandName = "UpdateVoiceTemplateCommand";
26412 var handlerExecutionContext = {
26413 logger: logger,
26414 clientName: clientName,
26415 commandName: commandName,
26416 inputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateRequest"].filterSensitiveLog,
26417 outputFilterSensitiveLog: _models_models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateResponse"].filterSensitiveLog,
26418 };
26419 var requestHandler = configuration.requestHandler;
26420 return stack.resolve(function (request) {
26421 return requestHandler.handle(request.request, options || {});
26422 }, handlerExecutionContext);
26423 };
26424 UpdateVoiceTemplateCommand.prototype.serialize = function (input, context) {
26425 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["serializeAws_restJson1UpdateVoiceTemplateCommand"])(input, context);
26426 };
26427 UpdateVoiceTemplateCommand.prototype.deserialize = function (output, context) {
26428 return Object(_protocols_Aws_restJson1__WEBPACK_IMPORTED_MODULE_2__["deserializeAws_restJson1UpdateVoiceTemplateCommand"])(output, context);
26429 };
26430 return UpdateVoiceTemplateCommand;
26431}(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_4__["Command"]));
26432
26433//# sourceMappingURL=UpdateVoiceTemplateCommand.js.map
26434
26435/***/ }),
26436
26437/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/endpoints.js":
26438/*!***********************************************************************************!*\
26439 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/endpoints.js ***!
26440 \***********************************************************************************/
26441/*! exports provided: defaultRegionInfoProvider */
26442/***/ (function(module, __webpack_exports__, __webpack_require__) {
26443
26444"use strict";
26445__webpack_require__.r(__webpack_exports__);
26446/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRegionInfoProvider", function() { return defaultRegionInfoProvider; });
26447/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
26448
26449// Partition default templates
26450var AWS_TEMPLATE = "pinpoint.{region}.amazonaws.com";
26451var AWS_CN_TEMPLATE = "pinpoint.{region}.amazonaws.com.cn";
26452var AWS_ISO_TEMPLATE = "pinpoint.{region}.c2s.ic.gov";
26453var AWS_ISO_B_TEMPLATE = "pinpoint.{region}.sc2s.sgov.gov";
26454var AWS_US_GOV_TEMPLATE = "pinpoint.{region}.amazonaws.com";
26455// Partition regions
26456var AWS_REGIONS = new Set([
26457 "af-south-1",
26458 "ap-east-1",
26459 "ap-northeast-1",
26460 "ap-northeast-2",
26461 "ap-south-1",
26462 "ap-southeast-1",
26463 "ap-southeast-2",
26464 "ca-central-1",
26465 "eu-central-1",
26466 "eu-north-1",
26467 "eu-south-1",
26468 "eu-west-1",
26469 "eu-west-2",
26470 "eu-west-3",
26471 "me-south-1",
26472 "sa-east-1",
26473 "us-east-1",
26474 "us-east-2",
26475 "us-west-1",
26476 "us-west-2",
26477]);
26478var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
26479var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
26480var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
26481var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
26482var defaultRegionInfoProvider = function (region, options) {
26483 var regionInfo = undefined;
26484 switch (region) {
26485 // First, try to match exact region names.
26486 case "ap-northeast-1":
26487 regionInfo = {
26488 hostname: "pinpoint.ap-northeast-1.amazonaws.com",
26489 partition: "aws",
26490 signingService: "mobiletargeting",
26491 };
26492 break;
26493 case "ap-northeast-2":
26494 regionInfo = {
26495 hostname: "pinpoint.ap-northeast-2.amazonaws.com",
26496 partition: "aws",
26497 signingService: "mobiletargeting",
26498 };
26499 break;
26500 case "ap-south-1":
26501 regionInfo = {
26502 hostname: "pinpoint.ap-south-1.amazonaws.com",
26503 partition: "aws",
26504 signingService: "mobiletargeting",
26505 };
26506 break;
26507 case "ap-southeast-1":
26508 regionInfo = {
26509 hostname: "pinpoint.ap-southeast-1.amazonaws.com",
26510 partition: "aws",
26511 signingService: "mobiletargeting",
26512 };
26513 break;
26514 case "ap-southeast-2":
26515 regionInfo = {
26516 hostname: "pinpoint.ap-southeast-2.amazonaws.com",
26517 partition: "aws",
26518 signingService: "mobiletargeting",
26519 };
26520 break;
26521 case "ca-central-1":
26522 regionInfo = {
26523 hostname: "pinpoint.ca-central-1.amazonaws.com",
26524 partition: "aws",
26525 signingService: "mobiletargeting",
26526 };
26527 break;
26528 case "eu-central-1":
26529 regionInfo = {
26530 hostname: "pinpoint.eu-central-1.amazonaws.com",
26531 partition: "aws",
26532 signingService: "mobiletargeting",
26533 };
26534 break;
26535 case "eu-west-1":
26536 regionInfo = {
26537 hostname: "pinpoint.eu-west-1.amazonaws.com",
26538 partition: "aws",
26539 signingService: "mobiletargeting",
26540 };
26541 break;
26542 case "eu-west-2":
26543 regionInfo = {
26544 hostname: "pinpoint.eu-west-2.amazonaws.com",
26545 partition: "aws",
26546 signingService: "mobiletargeting",
26547 };
26548 break;
26549 case "fips-us-east-1":
26550 regionInfo = {
26551 hostname: "pinpoint-fips.us-east-1.amazonaws.com",
26552 partition: "aws",
26553 signingRegion: "us-east-1",
26554 };
26555 break;
26556 case "fips-us-gov-west-1":
26557 regionInfo = {
26558 hostname: "pinpoint-fips.us-gov-west-1.amazonaws.com",
26559 partition: "aws-us-gov",
26560 signingRegion: "us-gov-west-1",
26561 };
26562 break;
26563 case "fips-us-west-2":
26564 regionInfo = {
26565 hostname: "pinpoint-fips.us-west-2.amazonaws.com",
26566 partition: "aws",
26567 signingRegion: "us-west-2",
26568 };
26569 break;
26570 case "us-east-1":
26571 regionInfo = {
26572 hostname: "pinpoint.us-east-1.amazonaws.com",
26573 partition: "aws",
26574 signingRegion: "us-east-1",
26575 };
26576 break;
26577 case "us-gov-west-1":
26578 regionInfo = {
26579 hostname: "pinpoint.us-gov-west-1.amazonaws.com",
26580 partition: "aws-us-gov",
26581 signingRegion: "us-gov-west-1",
26582 };
26583 break;
26584 case "us-west-2":
26585 regionInfo = {
26586 hostname: "pinpoint.us-west-2.amazonaws.com",
26587 partition: "aws",
26588 signingRegion: "us-west-2",
26589 };
26590 break;
26591 // Next, try to match partition endpoints.
26592 default:
26593 if (AWS_REGIONS.has(region)) {
26594 regionInfo = {
26595 hostname: AWS_TEMPLATE.replace("{region}", region),
26596 partition: "aws",
26597 signingService: "mobiletargeting",
26598 };
26599 }
26600 if (AWS_CN_REGIONS.has(region)) {
26601 regionInfo = {
26602 hostname: AWS_CN_TEMPLATE.replace("{region}", region),
26603 partition: "aws-cn",
26604 };
26605 }
26606 if (AWS_ISO_REGIONS.has(region)) {
26607 regionInfo = {
26608 hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
26609 partition: "aws-iso",
26610 };
26611 }
26612 if (AWS_ISO_B_REGIONS.has(region)) {
26613 regionInfo = {
26614 hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
26615 partition: "aws-iso-b",
26616 };
26617 }
26618 if (AWS_US_GOV_REGIONS.has(region)) {
26619 regionInfo = {
26620 hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
26621 partition: "aws-us-gov",
26622 signingService: "mobiletargeting",
26623 };
26624 }
26625 // Finally, assume it's an AWS partition endpoint.
26626 if (regionInfo === undefined) {
26627 regionInfo = {
26628 hostname: AWS_TEMPLATE.replace("{region}", region),
26629 partition: "aws",
26630 signingService: "mobiletargeting",
26631 };
26632 }
26633 }
26634 return Promise.resolve(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ signingService: "mobiletargeting" }, regionInfo));
26635};
26636//# sourceMappingURL=endpoints.js.map
26637
26638/***/ }),
26639
26640/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/index.js":
26641/*!*******************************************************************************!*\
26642 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/index.js ***!
26643 \*******************************************************************************/
26644/*! exports provided: PinpointClient, Pinpoint, CreateAppCommand, CreateCampaignCommand, CreateEmailTemplateCommand, CreateExportJobCommand, CreateImportJobCommand, CreateJourneyCommand, CreatePushTemplateCommand, CreateRecommenderConfigurationCommand, CreateSegmentCommand, CreateSmsTemplateCommand, CreateVoiceTemplateCommand, DeleteAdmChannelCommand, DeleteApnsChannelCommand, DeleteApnsSandboxChannelCommand, DeleteApnsVoipChannelCommand, DeleteApnsVoipSandboxChannelCommand, DeleteAppCommand, DeleteBaiduChannelCommand, DeleteCampaignCommand, DeleteEmailChannelCommand, DeleteEmailTemplateCommand, DeleteEndpointCommand, DeleteEventStreamCommand, DeleteGcmChannelCommand, DeleteJourneyCommand, DeletePushTemplateCommand, DeleteRecommenderConfigurationCommand, DeleteSegmentCommand, DeleteSmsChannelCommand, DeleteSmsTemplateCommand, DeleteUserEndpointsCommand, DeleteVoiceChannelCommand, DeleteVoiceTemplateCommand, GetAdmChannelCommand, GetApnsChannelCommand, GetApnsSandboxChannelCommand, GetApnsVoipChannelCommand, GetApnsVoipSandboxChannelCommand, GetAppCommand, GetApplicationDateRangeKpiCommand, GetApplicationSettingsCommand, GetAppsCommand, GetBaiduChannelCommand, GetCampaignCommand, GetCampaignActivitiesCommand, GetCampaignDateRangeKpiCommand, GetCampaignsCommand, GetCampaignVersionCommand, GetCampaignVersionsCommand, GetChannelsCommand, GetEmailChannelCommand, GetEmailTemplateCommand, GetEndpointCommand, GetEventStreamCommand, GetExportJobCommand, GetExportJobsCommand, GetGcmChannelCommand, GetImportJobCommand, GetImportJobsCommand, GetJourneyCommand, GetJourneyDateRangeKpiCommand, GetJourneyExecutionActivityMetricsCommand, GetJourneyExecutionMetricsCommand, GetPushTemplateCommand, GetRecommenderConfigurationCommand, GetRecommenderConfigurationsCommand, GetSegmentCommand, GetSegmentExportJobsCommand, GetSegmentImportJobsCommand, GetSegmentsCommand, GetSegmentVersionCommand, GetSegmentVersionsCommand, GetSmsChannelCommand, GetSmsTemplateCommand, GetUserEndpointsCommand, GetVoiceChannelCommand, GetVoiceTemplateCommand, ListJourneysCommand, ListTagsForResourceCommand, ListTemplatesCommand, ListTemplateVersionsCommand, PhoneNumberValidateCommand, PutEventsCommand, PutEventStreamCommand, RemoveAttributesCommand, SendMessagesCommand, SendUsersMessagesCommand, TagResourceCommand, UntagResourceCommand, UpdateAdmChannelCommand, UpdateApnsChannelCommand, UpdateApnsSandboxChannelCommand, UpdateApnsVoipChannelCommand, UpdateApnsVoipSandboxChannelCommand, UpdateApplicationSettingsCommand, UpdateBaiduChannelCommand, UpdateCampaignCommand, UpdateEmailChannelCommand, UpdateEmailTemplateCommand, UpdateEndpointCommand, UpdateEndpointsBatchCommand, UpdateGcmChannelCommand, UpdateJourneyCommand, UpdateJourneyStateCommand, UpdatePushTemplateCommand, UpdateRecommenderConfigurationCommand, UpdateSegmentCommand, UpdateSmsChannelCommand, UpdateSmsTemplateCommand, UpdateTemplateActiveVersionCommand, UpdateVoiceChannelCommand, UpdateVoiceTemplateCommand, __EndpointTypesElement, Action, ActivityResponse, ActivitiesResponse, AttributeType, AttributeDimension, DimensionType, SetDimension, MetricDimension, EventDimensions, EventCondition, SegmentCondition, Duration, RecencyType, RecencyDimension, SegmentBehaviors, SegmentDemographics, GPSCoordinates, GPSPointDimension, SegmentLocation, SegmentDimensions, SimpleCondition, Operator, Condition, WaitTime, ConditionalSplitActivity, JourneyCustomMessage, CustomMessageActivity, JourneyEmailMessage, EmailMessageActivity, HoldoutActivity, MultiConditionalBranch, MultiConditionalSplitActivity, JourneyPushMessage, PushMessageActivity, RandomSplitEntry, RandomSplitActivity, MessageType, JourneySMSMessage, SMSMessageActivity, WaitActivity, Activity, ChannelType, AddressConfiguration, ADMChannelRequest, ADMChannelResponse, ADMMessage, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSMessage, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ResultRowValue, ResultRow, BaseKpiResult, ApplicationDateRangeKpiResponse, ApplicationResponse, Mode, CampaignHook, CampaignLimits, QuietTime, ApplicationSettingsResource, ApplicationsResponse, AttributesResource, BadRequestException, BaiduChannelRequest, BaiduChannelResponse, BaiduMessage, CampaignCustomMessage, CampaignDateRangeKpiResponse, CampaignEmailMessage, FilterType, CampaignEventFilter, CustomDeliveryConfiguration, Message, CampaignSmsMessage, MessageConfiguration, Frequency, Schedule, CampaignStatus, CampaignState, Template, TemplateConfiguration, TreatmentResource, CampaignResponse, CampaignsResponse, ChannelResponse, ChannelsResponse, ConflictException, CreateApplicationRequest, CreateAppRequest, CreateAppResponse, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, PayloadTooLargeException, TooManyRequestsException, WriteTreatmentResource, WriteCampaignRequest, CreateCampaignRequest, CreateCampaignResponse, EmailTemplateRequest, CreateEmailTemplateRequest, CreateTemplateMessageBody, CreateEmailTemplateResponse, ExportJobRequest, CreateExportJobRequest, ExportJobResource, JobStatus, ExportJobResponse, CreateExportJobResponse, Format, ImportJobRequest, CreateImportJobRequest, ImportJobResource, ImportJobResponse, CreateImportJobResponse, JourneyLimits, JourneySchedule, EventFilter, EventStartCondition, StartCondition, State, WriteJourneyRequest, CreateJourneyRequest, JourneyResponse, CreateJourneyResponse, DefaultPushNotificationTemplate, PushNotificationTemplateRequest, CreatePushTemplateRequest, CreatePushTemplateResponse, CreateRecommenderConfigurationShape, CreateRecommenderConfigurationRequest, RecommenderConfigurationResponse, CreateRecommenderConfigurationResponse, SegmentReference, SourceType, Type, SegmentGroup, Include, SegmentGroupList, WriteSegmentRequest, CreateSegmentRequest, SegmentImportResource, SegmentType, SegmentResponse, CreateSegmentResponse, SMSTemplateRequest, CreateSmsTemplateRequest, CreateSmsTemplateResponse, VoiceTemplateRequest, CreateVoiceTemplateRequest, CreateVoiceTemplateResponse, DefaultMessage, DefaultPushNotificationMessage, DeleteAdmChannelRequest, DeleteAdmChannelResponse, DeleteApnsChannelRequest, DeleteApnsChannelResponse, DeleteApnsSandboxChannelRequest, DeleteApnsSandboxChannelResponse, DeleteApnsVoipChannelRequest, DeleteApnsVoipChannelResponse, DeleteApnsVoipSandboxChannelRequest, DeleteApnsVoipSandboxChannelResponse, DeleteAppRequest, DeleteAppResponse, DeleteBaiduChannelRequest, DeleteBaiduChannelResponse, DeleteCampaignRequest, DeleteCampaignResponse, DeleteEmailChannelRequest, EmailChannelResponse, DeleteEmailChannelResponse, DeleteEmailTemplateRequest, MessageBody, DeleteEmailTemplateResponse, DeleteEndpointRequest, EndpointDemographic, EndpointLocation, EndpointUser, EndpointResponse, DeleteEndpointResponse, DeleteEventStreamRequest, EventStream, DeleteEventStreamResponse, DeleteGcmChannelRequest, GCMChannelResponse, DeleteGcmChannelResponse, DeleteJourneyRequest, DeleteJourneyResponse, DeletePushTemplateRequest, DeletePushTemplateResponse, DeleteRecommenderConfigurationRequest, DeleteRecommenderConfigurationResponse, DeleteSegmentRequest, DeleteSegmentResponse, DeleteSmsChannelRequest, SMSChannelResponse, DeleteSmsChannelResponse, DeleteSmsTemplateRequest, DeleteSmsTemplateResponse, DeleteUserEndpointsRequest, EndpointsResponse, DeleteUserEndpointsResponse, DeleteVoiceChannelRequest, VoiceChannelResponse, DeleteVoiceChannelResponse, DeleteVoiceTemplateRequest, DeleteVoiceTemplateResponse, DeliveryStatus, RawEmail, SimpleEmailPart, SimpleEmail, EmailMessage, GCMMessage, SMSMessage, VoiceMessage, DirectMessageConfiguration, EmailChannelRequest, TemplateType, EmailTemplateResponse, EndpointBatchItem, EndpointBatchRequest, EndpointItemResponse, EndpointMessageResult, EndpointRequest, EndpointSendConfiguration, Session, Event, EventItemResponse, PublicEndpoint, EventsBatch, EventsRequest, ItemResponse, EventsResponse, ExportJobsResponse, GCMChannelRequest, GetAdmChannelRequest, GetAdmChannelResponse, GetApnsChannelRequest, GetApnsChannelResponse, GetApnsSandboxChannelRequest, GetApnsSandboxChannelResponse, GetApnsVoipChannelRequest, GetApnsVoipChannelResponse, GetApnsVoipSandboxChannelRequest, GetApnsVoipSandboxChannelResponse, GetAppRequest, GetAppResponse, GetApplicationDateRangeKpiRequest, GetApplicationDateRangeKpiResponse, GetApplicationSettingsRequest, GetApplicationSettingsResponse, GetAppsRequest, GetAppsResponse, GetBaiduChannelRequest, GetBaiduChannelResponse, GetCampaignRequest, GetCampaignResponse, GetCampaignActivitiesRequest, GetCampaignActivitiesResponse, GetCampaignDateRangeKpiRequest, GetCampaignDateRangeKpiResponse, GetCampaignsRequest, GetCampaignsResponse, GetCampaignVersionRequest, GetCampaignVersionResponse, GetCampaignVersionsRequest, GetCampaignVersionsResponse, GetChannelsRequest, GetChannelsResponse, GetEmailChannelRequest, GetEmailChannelResponse, GetEmailTemplateRequest, GetEmailTemplateResponse, GetEndpointRequest, GetEndpointResponse, GetEventStreamRequest, GetEventStreamResponse, GetExportJobRequest, GetExportJobResponse, GetExportJobsRequest, GetExportJobsResponse, GetGcmChannelRequest, GetGcmChannelResponse, GetImportJobRequest, GetImportJobResponse, GetImportJobsRequest, ImportJobsResponse, GetImportJobsResponse, GetJourneyRequest, GetJourneyResponse, GetJourneyDateRangeKpiRequest, JourneyDateRangeKpiResponse, GetJourneyDateRangeKpiResponse, GetJourneyExecutionActivityMetricsRequest, JourneyExecutionActivityMetricsResponse, GetJourneyExecutionActivityMetricsResponse, GetJourneyExecutionMetricsRequest, JourneyExecutionMetricsResponse, GetJourneyExecutionMetricsResponse, GetPushTemplateRequest, PushNotificationTemplateResponse, GetPushTemplateResponse, GetRecommenderConfigurationRequest, GetRecommenderConfigurationResponse, GetRecommenderConfigurationsRequest, ListRecommenderConfigurationsResponse, GetRecommenderConfigurationsResponse, GetSegmentRequest, GetSegmentResponse, GetSegmentExportJobsRequest, GetSegmentExportJobsResponse, GetSegmentImportJobsRequest, GetSegmentImportJobsResponse, GetSegmentsRequest, SegmentsResponse, GetSegmentsResponse, GetSegmentVersionRequest, GetSegmentVersionResponse, GetSegmentVersionsRequest, GetSegmentVersionsResponse, GetSmsChannelRequest, GetSmsChannelResponse, GetSmsTemplateRequest, SMSTemplateResponse, GetSmsTemplateResponse, GetUserEndpointsRequest, GetUserEndpointsResponse, GetVoiceChannelRequest, GetVoiceChannelResponse, GetVoiceTemplateRequest, VoiceTemplateResponse, GetVoiceTemplateResponse, JourneysResponse, JourneyStateRequest, ListJourneysRequest, ListJourneysResponse, TemplateResponse, TemplateVersionResponse, ListTagsForResourceRequest, TagsModel, ListTagsForResourceResponse, ListTemplatesRequest, TemplatesResponse, ListTemplatesResponse, ListTemplateVersionsRequest, TemplateVersionsResponse, ListTemplateVersionsResponse, MessageResult, MessageRequest, MessageResponse, NumberValidateRequest, NumberValidateResponse, PhoneNumberValidateRequest, PhoneNumberValidateResponse, PutEventsRequest, PutEventsResponse, WriteEventStream, PutEventStreamRequest, PutEventStreamResponse, UpdateAttributesRequest, RemoveAttributesRequest, RemoveAttributesResponse, SendMessagesRequest, SendMessagesResponse, SendUsersMessageRequest, SendUsersMessagesRequest, SendUsersMessageResponse, SendUsersMessagesResponse, TagResourceRequest, UntagResourceRequest, UpdateAdmChannelRequest, UpdateAdmChannelResponse, UpdateApnsChannelRequest, UpdateApnsChannelResponse, UpdateApnsSandboxChannelRequest, UpdateApnsSandboxChannelResponse, UpdateApnsVoipChannelRequest, UpdateApnsVoipChannelResponse, UpdateApnsVoipSandboxChannelRequest, UpdateApnsVoipSandboxChannelResponse, WriteApplicationSettingsRequest, UpdateApplicationSettingsRequest, UpdateApplicationSettingsResponse, UpdateBaiduChannelRequest, UpdateBaiduChannelResponse, UpdateCampaignRequest, UpdateCampaignResponse, UpdateEmailChannelRequest, UpdateEmailChannelResponse, UpdateEmailTemplateRequest, UpdateEmailTemplateResponse, UpdateEndpointRequest, UpdateEndpointResponse, UpdateEndpointsBatchRequest, UpdateEndpointsBatchResponse, UpdateGcmChannelRequest, UpdateGcmChannelResponse, UpdateJourneyRequest, UpdateJourneyResponse, UpdateJourneyStateRequest, UpdateJourneyStateResponse, UpdatePushTemplateRequest, UpdatePushTemplateResponse, UpdateRecommenderConfigurationShape, UpdateRecommenderConfigurationRequest, UpdateRecommenderConfigurationResponse, UpdateSegmentRequest, UpdateSegmentResponse, SMSChannelRequest, UpdateSmsChannelRequest, UpdateSmsChannelResponse, UpdateSmsTemplateRequest, UpdateSmsTemplateResponse, TemplateActiveVersionRequest, UpdateTemplateActiveVersionRequest, UpdateTemplateActiveVersionResponse, VoiceChannelRequest, UpdateVoiceChannelRequest, UpdateVoiceChannelResponse, UpdateVoiceTemplateRequest, UpdateVoiceTemplateResponse */
26645/***/ (function(module, __webpack_exports__, __webpack_require__) {
26646
26647"use strict";
26648__webpack_require__.r(__webpack_exports__);
26649/* harmony import */ var _PinpointClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PinpointClient */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/PinpointClient.js");
26650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PinpointClient", function() { return _PinpointClient__WEBPACK_IMPORTED_MODULE_0__["PinpointClient"]; });
26651
26652/* harmony import */ var _Pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Pinpoint */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/Pinpoint.js");
26653/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pinpoint", function() { return _Pinpoint__WEBPACK_IMPORTED_MODULE_1__["Pinpoint"]; });
26654
26655/* harmony import */ var _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/CreateAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateAppCommand.js");
26656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppCommand", function() { return _commands_CreateAppCommand__WEBPACK_IMPORTED_MODULE_2__["CreateAppCommand"]; });
26657
26658/* harmony import */ var _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./commands/CreateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateCampaignCommand.js");
26659/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignCommand", function() { return _commands_CreateCampaignCommand__WEBPACK_IMPORTED_MODULE_3__["CreateCampaignCommand"]; });
26660
26661/* harmony import */ var _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/CreateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateEmailTemplateCommand.js");
26662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateCommand", function() { return _commands_CreateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_4__["CreateEmailTemplateCommand"]; });
26663
26664/* harmony import */ var _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/CreateExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateExportJobCommand.js");
26665/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobCommand", function() { return _commands_CreateExportJobCommand__WEBPACK_IMPORTED_MODULE_5__["CreateExportJobCommand"]; });
26666
26667/* harmony import */ var _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/CreateImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateImportJobCommand.js");
26668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobCommand", function() { return _commands_CreateImportJobCommand__WEBPACK_IMPORTED_MODULE_6__["CreateImportJobCommand"]; });
26669
26670/* harmony import */ var _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/CreateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateJourneyCommand.js");
26671/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyCommand", function() { return _commands_CreateJourneyCommand__WEBPACK_IMPORTED_MODULE_7__["CreateJourneyCommand"]; });
26672
26673/* harmony import */ var _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/CreatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreatePushTemplateCommand.js");
26674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateCommand", function() { return _commands_CreatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_8__["CreatePushTemplateCommand"]; });
26675
26676/* harmony import */ var _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/CreateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateRecommenderConfigurationCommand.js");
26677/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationCommand", function() { return _commands_CreateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_9__["CreateRecommenderConfigurationCommand"]; });
26678
26679/* harmony import */ var _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/CreateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSegmentCommand.js");
26680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentCommand", function() { return _commands_CreateSegmentCommand__WEBPACK_IMPORTED_MODULE_10__["CreateSegmentCommand"]; });
26681
26682/* harmony import */ var _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/CreateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateSmsTemplateCommand.js");
26683/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateCommand", function() { return _commands_CreateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_11__["CreateSmsTemplateCommand"]; });
26684
26685/* harmony import */ var _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./commands/CreateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/CreateVoiceTemplateCommand.js");
26686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateCommand", function() { return _commands_CreateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_12__["CreateVoiceTemplateCommand"]; });
26687
26688/* harmony import */ var _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./commands/DeleteAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAdmChannelCommand.js");
26689/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelCommand", function() { return _commands_DeleteAdmChannelCommand__WEBPACK_IMPORTED_MODULE_13__["DeleteAdmChannelCommand"]; });
26690
26691/* harmony import */ var _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./commands/DeleteApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsChannelCommand.js");
26692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelCommand", function() { return _commands_DeleteApnsChannelCommand__WEBPACK_IMPORTED_MODULE_14__["DeleteApnsChannelCommand"]; });
26693
26694/* harmony import */ var _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./commands/DeleteApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsSandboxChannelCommand.js");
26695/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelCommand", function() { return _commands_DeleteApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_15__["DeleteApnsSandboxChannelCommand"]; });
26696
26697/* harmony import */ var _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./commands/DeleteApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipChannelCommand.js");
26698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelCommand", function() { return _commands_DeleteApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_16__["DeleteApnsVoipChannelCommand"]; });
26699
26700/* harmony import */ var _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./commands/DeleteApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteApnsVoipSandboxChannelCommand.js");
26701/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelCommand", function() { return _commands_DeleteApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_17__["DeleteApnsVoipSandboxChannelCommand"]; });
26702
26703/* harmony import */ var _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./commands/DeleteAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteAppCommand.js");
26704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppCommand", function() { return _commands_DeleteAppCommand__WEBPACK_IMPORTED_MODULE_18__["DeleteAppCommand"]; });
26705
26706/* harmony import */ var _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./commands/DeleteBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteBaiduChannelCommand.js");
26707/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelCommand", function() { return _commands_DeleteBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_19__["DeleteBaiduChannelCommand"]; });
26708
26709/* harmony import */ var _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./commands/DeleteCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteCampaignCommand.js");
26710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignCommand", function() { return _commands_DeleteCampaignCommand__WEBPACK_IMPORTED_MODULE_20__["DeleteCampaignCommand"]; });
26711
26712/* harmony import */ var _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./commands/DeleteEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailChannelCommand.js");
26713/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelCommand", function() { return _commands_DeleteEmailChannelCommand__WEBPACK_IMPORTED_MODULE_21__["DeleteEmailChannelCommand"]; });
26714
26715/* harmony import */ var _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./commands/DeleteEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEmailTemplateCommand.js");
26716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateCommand", function() { return _commands_DeleteEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_22__["DeleteEmailTemplateCommand"]; });
26717
26718/* harmony import */ var _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./commands/DeleteEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEndpointCommand.js");
26719/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointCommand", function() { return _commands_DeleteEndpointCommand__WEBPACK_IMPORTED_MODULE_23__["DeleteEndpointCommand"]; });
26720
26721/* harmony import */ var _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./commands/DeleteEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteEventStreamCommand.js");
26722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamCommand", function() { return _commands_DeleteEventStreamCommand__WEBPACK_IMPORTED_MODULE_24__["DeleteEventStreamCommand"]; });
26723
26724/* harmony import */ var _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./commands/DeleteGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteGcmChannelCommand.js");
26725/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelCommand", function() { return _commands_DeleteGcmChannelCommand__WEBPACK_IMPORTED_MODULE_25__["DeleteGcmChannelCommand"]; });
26726
26727/* harmony import */ var _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./commands/DeleteJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteJourneyCommand.js");
26728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyCommand", function() { return _commands_DeleteJourneyCommand__WEBPACK_IMPORTED_MODULE_26__["DeleteJourneyCommand"]; });
26729
26730/* harmony import */ var _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./commands/DeletePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeletePushTemplateCommand.js");
26731/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateCommand", function() { return _commands_DeletePushTemplateCommand__WEBPACK_IMPORTED_MODULE_27__["DeletePushTemplateCommand"]; });
26732
26733/* harmony import */ var _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./commands/DeleteRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteRecommenderConfigurationCommand.js");
26734/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationCommand", function() { return _commands_DeleteRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_28__["DeleteRecommenderConfigurationCommand"]; });
26735
26736/* harmony import */ var _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./commands/DeleteSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSegmentCommand.js");
26737/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentCommand", function() { return _commands_DeleteSegmentCommand__WEBPACK_IMPORTED_MODULE_29__["DeleteSegmentCommand"]; });
26738
26739/* harmony import */ var _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./commands/DeleteSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsChannelCommand.js");
26740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelCommand", function() { return _commands_DeleteSmsChannelCommand__WEBPACK_IMPORTED_MODULE_30__["DeleteSmsChannelCommand"]; });
26741
26742/* harmony import */ var _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./commands/DeleteSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteSmsTemplateCommand.js");
26743/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateCommand", function() { return _commands_DeleteSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_31__["DeleteSmsTemplateCommand"]; });
26744
26745/* harmony import */ var _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./commands/DeleteUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteUserEndpointsCommand.js");
26746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsCommand", function() { return _commands_DeleteUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_32__["DeleteUserEndpointsCommand"]; });
26747
26748/* harmony import */ var _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./commands/DeleteVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceChannelCommand.js");
26749/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelCommand", function() { return _commands_DeleteVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_33__["DeleteVoiceChannelCommand"]; });
26750
26751/* harmony import */ var _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./commands/DeleteVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/DeleteVoiceTemplateCommand.js");
26752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateCommand", function() { return _commands_DeleteVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_34__["DeleteVoiceTemplateCommand"]; });
26753
26754/* harmony import */ var _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./commands/GetAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAdmChannelCommand.js");
26755/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelCommand", function() { return _commands_GetAdmChannelCommand__WEBPACK_IMPORTED_MODULE_35__["GetAdmChannelCommand"]; });
26756
26757/* harmony import */ var _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./commands/GetApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsChannelCommand.js");
26758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelCommand", function() { return _commands_GetApnsChannelCommand__WEBPACK_IMPORTED_MODULE_36__["GetApnsChannelCommand"]; });
26759
26760/* harmony import */ var _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./commands/GetApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsSandboxChannelCommand.js");
26761/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelCommand", function() { return _commands_GetApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_37__["GetApnsSandboxChannelCommand"]; });
26762
26763/* harmony import */ var _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./commands/GetApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipChannelCommand.js");
26764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelCommand", function() { return _commands_GetApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_38__["GetApnsVoipChannelCommand"]; });
26765
26766/* harmony import */ var _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./commands/GetApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApnsVoipSandboxChannelCommand.js");
26767/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelCommand", function() { return _commands_GetApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_39__["GetApnsVoipSandboxChannelCommand"]; });
26768
26769/* harmony import */ var _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./commands/GetAppCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppCommand.js");
26770/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppCommand", function() { return _commands_GetAppCommand__WEBPACK_IMPORTED_MODULE_40__["GetAppCommand"]; });
26771
26772/* harmony import */ var _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./commands/GetApplicationDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationDateRangeKpiCommand.js");
26773/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiCommand", function() { return _commands_GetApplicationDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_41__["GetApplicationDateRangeKpiCommand"]; });
26774
26775/* harmony import */ var _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./commands/GetApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetApplicationSettingsCommand.js");
26776/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsCommand", function() { return _commands_GetApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_42__["GetApplicationSettingsCommand"]; });
26777
26778/* harmony import */ var _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./commands/GetAppsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetAppsCommand.js");
26779/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsCommand", function() { return _commands_GetAppsCommand__WEBPACK_IMPORTED_MODULE_43__["GetAppsCommand"]; });
26780
26781/* harmony import */ var _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./commands/GetBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetBaiduChannelCommand.js");
26782/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelCommand", function() { return _commands_GetBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_44__["GetBaiduChannelCommand"]; });
26783
26784/* harmony import */ var _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./commands/GetCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignCommand.js");
26785/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignCommand", function() { return _commands_GetCampaignCommand__WEBPACK_IMPORTED_MODULE_45__["GetCampaignCommand"]; });
26786
26787/* harmony import */ var _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./commands/GetCampaignActivitiesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignActivitiesCommand.js");
26788/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesCommand", function() { return _commands_GetCampaignActivitiesCommand__WEBPACK_IMPORTED_MODULE_46__["GetCampaignActivitiesCommand"]; });
26789
26790/* harmony import */ var _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./commands/GetCampaignDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignDateRangeKpiCommand.js");
26791/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiCommand", function() { return _commands_GetCampaignDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_47__["GetCampaignDateRangeKpiCommand"]; });
26792
26793/* harmony import */ var _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./commands/GetCampaignsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignsCommand.js");
26794/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsCommand", function() { return _commands_GetCampaignsCommand__WEBPACK_IMPORTED_MODULE_48__["GetCampaignsCommand"]; });
26795
26796/* harmony import */ var _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./commands/GetCampaignVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionCommand.js");
26797/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionCommand", function() { return _commands_GetCampaignVersionCommand__WEBPACK_IMPORTED_MODULE_49__["GetCampaignVersionCommand"]; });
26798
26799/* harmony import */ var _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./commands/GetCampaignVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetCampaignVersionsCommand.js");
26800/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsCommand", function() { return _commands_GetCampaignVersionsCommand__WEBPACK_IMPORTED_MODULE_50__["GetCampaignVersionsCommand"]; });
26801
26802/* harmony import */ var _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./commands/GetChannelsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetChannelsCommand.js");
26803/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsCommand", function() { return _commands_GetChannelsCommand__WEBPACK_IMPORTED_MODULE_51__["GetChannelsCommand"]; });
26804
26805/* harmony import */ var _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./commands/GetEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailChannelCommand.js");
26806/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelCommand", function() { return _commands_GetEmailChannelCommand__WEBPACK_IMPORTED_MODULE_52__["GetEmailChannelCommand"]; });
26807
26808/* harmony import */ var _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./commands/GetEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEmailTemplateCommand.js");
26809/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateCommand", function() { return _commands_GetEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_53__["GetEmailTemplateCommand"]; });
26810
26811/* harmony import */ var _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./commands/GetEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEndpointCommand.js");
26812/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointCommand", function() { return _commands_GetEndpointCommand__WEBPACK_IMPORTED_MODULE_54__["GetEndpointCommand"]; });
26813
26814/* harmony import */ var _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./commands/GetEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetEventStreamCommand.js");
26815/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamCommand", function() { return _commands_GetEventStreamCommand__WEBPACK_IMPORTED_MODULE_55__["GetEventStreamCommand"]; });
26816
26817/* harmony import */ var _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./commands/GetExportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobCommand.js");
26818/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobCommand", function() { return _commands_GetExportJobCommand__WEBPACK_IMPORTED_MODULE_56__["GetExportJobCommand"]; });
26819
26820/* harmony import */ var _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./commands/GetExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetExportJobsCommand.js");
26821/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsCommand", function() { return _commands_GetExportJobsCommand__WEBPACK_IMPORTED_MODULE_57__["GetExportJobsCommand"]; });
26822
26823/* harmony import */ var _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./commands/GetGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetGcmChannelCommand.js");
26824/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelCommand", function() { return _commands_GetGcmChannelCommand__WEBPACK_IMPORTED_MODULE_58__["GetGcmChannelCommand"]; });
26825
26826/* harmony import */ var _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./commands/GetImportJobCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobCommand.js");
26827/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobCommand", function() { return _commands_GetImportJobCommand__WEBPACK_IMPORTED_MODULE_59__["GetImportJobCommand"]; });
26828
26829/* harmony import */ var _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./commands/GetImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetImportJobsCommand.js");
26830/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsCommand", function() { return _commands_GetImportJobsCommand__WEBPACK_IMPORTED_MODULE_60__["GetImportJobsCommand"]; });
26831
26832/* harmony import */ var _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./commands/GetJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyCommand.js");
26833/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyCommand", function() { return _commands_GetJourneyCommand__WEBPACK_IMPORTED_MODULE_61__["GetJourneyCommand"]; });
26834
26835/* harmony import */ var _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./commands/GetJourneyDateRangeKpiCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyDateRangeKpiCommand.js");
26836/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiCommand", function() { return _commands_GetJourneyDateRangeKpiCommand__WEBPACK_IMPORTED_MODULE_62__["GetJourneyDateRangeKpiCommand"]; });
26837
26838/* harmony import */ var _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./commands/GetJourneyExecutionActivityMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionActivityMetricsCommand.js");
26839/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsCommand", function() { return _commands_GetJourneyExecutionActivityMetricsCommand__WEBPACK_IMPORTED_MODULE_63__["GetJourneyExecutionActivityMetricsCommand"]; });
26840
26841/* harmony import */ var _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./commands/GetJourneyExecutionMetricsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetJourneyExecutionMetricsCommand.js");
26842/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsCommand", function() { return _commands_GetJourneyExecutionMetricsCommand__WEBPACK_IMPORTED_MODULE_64__["GetJourneyExecutionMetricsCommand"]; });
26843
26844/* harmony import */ var _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./commands/GetPushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetPushTemplateCommand.js");
26845/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateCommand", function() { return _commands_GetPushTemplateCommand__WEBPACK_IMPORTED_MODULE_65__["GetPushTemplateCommand"]; });
26846
26847/* harmony import */ var _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationCommand.js");
26848/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationCommand", function() { return _commands_GetRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_66__["GetRecommenderConfigurationCommand"]; });
26849
26850/* harmony import */ var _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./commands/GetRecommenderConfigurationsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetRecommenderConfigurationsCommand.js");
26851/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsCommand", function() { return _commands_GetRecommenderConfigurationsCommand__WEBPACK_IMPORTED_MODULE_67__["GetRecommenderConfigurationsCommand"]; });
26852
26853/* harmony import */ var _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./commands/GetSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentCommand.js");
26854/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentCommand", function() { return _commands_GetSegmentCommand__WEBPACK_IMPORTED_MODULE_68__["GetSegmentCommand"]; });
26855
26856/* harmony import */ var _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./commands/GetSegmentExportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentExportJobsCommand.js");
26857/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsCommand", function() { return _commands_GetSegmentExportJobsCommand__WEBPACK_IMPORTED_MODULE_69__["GetSegmentExportJobsCommand"]; });
26858
26859/* harmony import */ var _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./commands/GetSegmentImportJobsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentImportJobsCommand.js");
26860/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsCommand", function() { return _commands_GetSegmentImportJobsCommand__WEBPACK_IMPORTED_MODULE_70__["GetSegmentImportJobsCommand"]; });
26861
26862/* harmony import */ var _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./commands/GetSegmentsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentsCommand.js");
26863/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsCommand", function() { return _commands_GetSegmentsCommand__WEBPACK_IMPORTED_MODULE_71__["GetSegmentsCommand"]; });
26864
26865/* harmony import */ var _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./commands/GetSegmentVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionCommand.js");
26866/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionCommand", function() { return _commands_GetSegmentVersionCommand__WEBPACK_IMPORTED_MODULE_72__["GetSegmentVersionCommand"]; });
26867
26868/* harmony import */ var _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./commands/GetSegmentVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSegmentVersionsCommand.js");
26869/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsCommand", function() { return _commands_GetSegmentVersionsCommand__WEBPACK_IMPORTED_MODULE_73__["GetSegmentVersionsCommand"]; });
26870
26871/* harmony import */ var _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./commands/GetSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsChannelCommand.js");
26872/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelCommand", function() { return _commands_GetSmsChannelCommand__WEBPACK_IMPORTED_MODULE_74__["GetSmsChannelCommand"]; });
26873
26874/* harmony import */ var _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./commands/GetSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetSmsTemplateCommand.js");
26875/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateCommand", function() { return _commands_GetSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_75__["GetSmsTemplateCommand"]; });
26876
26877/* harmony import */ var _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./commands/GetUserEndpointsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetUserEndpointsCommand.js");
26878/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsCommand", function() { return _commands_GetUserEndpointsCommand__WEBPACK_IMPORTED_MODULE_76__["GetUserEndpointsCommand"]; });
26879
26880/* harmony import */ var _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./commands/GetVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceChannelCommand.js");
26881/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelCommand", function() { return _commands_GetVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_77__["GetVoiceChannelCommand"]; });
26882
26883/* harmony import */ var _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./commands/GetVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/GetVoiceTemplateCommand.js");
26884/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateCommand", function() { return _commands_GetVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_78__["GetVoiceTemplateCommand"]; });
26885
26886/* harmony import */ var _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./commands/ListJourneysCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListJourneysCommand.js");
26887/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysCommand", function() { return _commands_ListJourneysCommand__WEBPACK_IMPORTED_MODULE_79__["ListJourneysCommand"]; });
26888
26889/* harmony import */ var _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./commands/ListTagsForResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTagsForResourceCommand.js");
26890/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceCommand", function() { return _commands_ListTagsForResourceCommand__WEBPACK_IMPORTED_MODULE_80__["ListTagsForResourceCommand"]; });
26891
26892/* harmony import */ var _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./commands/ListTemplatesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplatesCommand.js");
26893/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesCommand", function() { return _commands_ListTemplatesCommand__WEBPACK_IMPORTED_MODULE_81__["ListTemplatesCommand"]; });
26894
26895/* harmony import */ var _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./commands/ListTemplateVersionsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/ListTemplateVersionsCommand.js");
26896/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsCommand", function() { return _commands_ListTemplateVersionsCommand__WEBPACK_IMPORTED_MODULE_82__["ListTemplateVersionsCommand"]; });
26897
26898/* harmony import */ var _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ./commands/PhoneNumberValidateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PhoneNumberValidateCommand.js");
26899/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateCommand", function() { return _commands_PhoneNumberValidateCommand__WEBPACK_IMPORTED_MODULE_83__["PhoneNumberValidateCommand"]; });
26900
26901/* harmony import */ var _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ./commands/PutEventsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventsCommand.js");
26902/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsCommand", function() { return _commands_PutEventsCommand__WEBPACK_IMPORTED_MODULE_84__["PutEventsCommand"]; });
26903
26904/* harmony import */ var _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./commands/PutEventStreamCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/PutEventStreamCommand.js");
26905/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamCommand", function() { return _commands_PutEventStreamCommand__WEBPACK_IMPORTED_MODULE_85__["PutEventStreamCommand"]; });
26906
26907/* harmony import */ var _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./commands/RemoveAttributesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/RemoveAttributesCommand.js");
26908/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesCommand", function() { return _commands_RemoveAttributesCommand__WEBPACK_IMPORTED_MODULE_86__["RemoveAttributesCommand"]; });
26909
26910/* harmony import */ var _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./commands/SendMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendMessagesCommand.js");
26911/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesCommand", function() { return _commands_SendMessagesCommand__WEBPACK_IMPORTED_MODULE_87__["SendMessagesCommand"]; });
26912
26913/* harmony import */ var _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./commands/SendUsersMessagesCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/SendUsersMessagesCommand.js");
26914/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesCommand", function() { return _commands_SendUsersMessagesCommand__WEBPACK_IMPORTED_MODULE_88__["SendUsersMessagesCommand"]; });
26915
26916/* harmony import */ var _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./commands/TagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/TagResourceCommand.js");
26917/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceCommand", function() { return _commands_TagResourceCommand__WEBPACK_IMPORTED_MODULE_89__["TagResourceCommand"]; });
26918
26919/* harmony import */ var _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./commands/UntagResourceCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UntagResourceCommand.js");
26920/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceCommand", function() { return _commands_UntagResourceCommand__WEBPACK_IMPORTED_MODULE_90__["UntagResourceCommand"]; });
26921
26922/* harmony import */ var _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./commands/UpdateAdmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateAdmChannelCommand.js");
26923/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelCommand", function() { return _commands_UpdateAdmChannelCommand__WEBPACK_IMPORTED_MODULE_91__["UpdateAdmChannelCommand"]; });
26924
26925/* harmony import */ var _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./commands/UpdateApnsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsChannelCommand.js");
26926/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelCommand", function() { return _commands_UpdateApnsChannelCommand__WEBPACK_IMPORTED_MODULE_92__["UpdateApnsChannelCommand"]; });
26927
26928/* harmony import */ var _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./commands/UpdateApnsSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsSandboxChannelCommand.js");
26929/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelCommand", function() { return _commands_UpdateApnsSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_93__["UpdateApnsSandboxChannelCommand"]; });
26930
26931/* harmony import */ var _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./commands/UpdateApnsVoipChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipChannelCommand.js");
26932/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelCommand", function() { return _commands_UpdateApnsVoipChannelCommand__WEBPACK_IMPORTED_MODULE_94__["UpdateApnsVoipChannelCommand"]; });
26933
26934/* harmony import */ var _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./commands/UpdateApnsVoipSandboxChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApnsVoipSandboxChannelCommand.js");
26935/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelCommand", function() { return _commands_UpdateApnsVoipSandboxChannelCommand__WEBPACK_IMPORTED_MODULE_95__["UpdateApnsVoipSandboxChannelCommand"]; });
26936
26937/* harmony import */ var _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./commands/UpdateApplicationSettingsCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateApplicationSettingsCommand.js");
26938/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsCommand", function() { return _commands_UpdateApplicationSettingsCommand__WEBPACK_IMPORTED_MODULE_96__["UpdateApplicationSettingsCommand"]; });
26939
26940/* harmony import */ var _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./commands/UpdateBaiduChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateBaiduChannelCommand.js");
26941/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelCommand", function() { return _commands_UpdateBaiduChannelCommand__WEBPACK_IMPORTED_MODULE_97__["UpdateBaiduChannelCommand"]; });
26942
26943/* harmony import */ var _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./commands/UpdateCampaignCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateCampaignCommand.js");
26944/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignCommand", function() { return _commands_UpdateCampaignCommand__WEBPACK_IMPORTED_MODULE_98__["UpdateCampaignCommand"]; });
26945
26946/* harmony import */ var _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./commands/UpdateEmailChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailChannelCommand.js");
26947/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelCommand", function() { return _commands_UpdateEmailChannelCommand__WEBPACK_IMPORTED_MODULE_99__["UpdateEmailChannelCommand"]; });
26948
26949/* harmony import */ var _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./commands/UpdateEmailTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEmailTemplateCommand.js");
26950/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateCommand", function() { return _commands_UpdateEmailTemplateCommand__WEBPACK_IMPORTED_MODULE_100__["UpdateEmailTemplateCommand"]; });
26951
26952/* harmony import */ var _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./commands/UpdateEndpointCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointCommand.js");
26953/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointCommand", function() { return _commands_UpdateEndpointCommand__WEBPACK_IMPORTED_MODULE_101__["UpdateEndpointCommand"]; });
26954
26955/* harmony import */ var _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./commands/UpdateEndpointsBatchCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateEndpointsBatchCommand.js");
26956/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchCommand", function() { return _commands_UpdateEndpointsBatchCommand__WEBPACK_IMPORTED_MODULE_102__["UpdateEndpointsBatchCommand"]; });
26957
26958/* harmony import */ var _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./commands/UpdateGcmChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateGcmChannelCommand.js");
26959/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelCommand", function() { return _commands_UpdateGcmChannelCommand__WEBPACK_IMPORTED_MODULE_103__["UpdateGcmChannelCommand"]; });
26960
26961/* harmony import */ var _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./commands/UpdateJourneyCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyCommand.js");
26962/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyCommand", function() { return _commands_UpdateJourneyCommand__WEBPACK_IMPORTED_MODULE_104__["UpdateJourneyCommand"]; });
26963
26964/* harmony import */ var _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./commands/UpdateJourneyStateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateJourneyStateCommand.js");
26965/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateCommand", function() { return _commands_UpdateJourneyStateCommand__WEBPACK_IMPORTED_MODULE_105__["UpdateJourneyStateCommand"]; });
26966
26967/* harmony import */ var _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./commands/UpdatePushTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdatePushTemplateCommand.js");
26968/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateCommand", function() { return _commands_UpdatePushTemplateCommand__WEBPACK_IMPORTED_MODULE_106__["UpdatePushTemplateCommand"]; });
26969
26970/* harmony import */ var _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./commands/UpdateRecommenderConfigurationCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateRecommenderConfigurationCommand.js");
26971/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationCommand", function() { return _commands_UpdateRecommenderConfigurationCommand__WEBPACK_IMPORTED_MODULE_107__["UpdateRecommenderConfigurationCommand"]; });
26972
26973/* harmony import */ var _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./commands/UpdateSegmentCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSegmentCommand.js");
26974/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentCommand", function() { return _commands_UpdateSegmentCommand__WEBPACK_IMPORTED_MODULE_108__["UpdateSegmentCommand"]; });
26975
26976/* harmony import */ var _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./commands/UpdateSmsChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsChannelCommand.js");
26977/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelCommand", function() { return _commands_UpdateSmsChannelCommand__WEBPACK_IMPORTED_MODULE_109__["UpdateSmsChannelCommand"]; });
26978
26979/* harmony import */ var _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./commands/UpdateSmsTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateSmsTemplateCommand.js");
26980/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateCommand", function() { return _commands_UpdateSmsTemplateCommand__WEBPACK_IMPORTED_MODULE_110__["UpdateSmsTemplateCommand"]; });
26981
26982/* harmony import */ var _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./commands/UpdateTemplateActiveVersionCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateTemplateActiveVersionCommand.js");
26983/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionCommand", function() { return _commands_UpdateTemplateActiveVersionCommand__WEBPACK_IMPORTED_MODULE_111__["UpdateTemplateActiveVersionCommand"]; });
26984
26985/* harmony import */ var _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./commands/UpdateVoiceChannelCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceChannelCommand.js");
26986/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelCommand", function() { return _commands_UpdateVoiceChannelCommand__WEBPACK_IMPORTED_MODULE_112__["UpdateVoiceChannelCommand"]; });
26987
26988/* harmony import */ var _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./commands/UpdateVoiceTemplateCommand */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/commands/UpdateVoiceTemplateCommand.js");
26989/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateCommand", function() { return _commands_UpdateVoiceTemplateCommand__WEBPACK_IMPORTED_MODULE_113__["UpdateVoiceTemplateCommand"]; });
26990
26991/* harmony import */ var _models_index__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./models/index */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/index.js");
26992/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["__EndpointTypesElement"]; });
26993
26994/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Action"]; });
26995
26996/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ActivityResponse"]; });
26997
26998/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ActivitiesResponse"]; });
26999
27000/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributeType"]; });
27001
27002/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributeDimension"]; });
27003
27004/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DimensionType"]; });
27005
27006/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SetDimension"]; });
27007
27008/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MetricDimension"]; });
27009
27010/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventDimensions"]; });
27011
27012/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventCondition"]; });
27013
27014/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentCondition"]; });
27015
27016/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Duration"]; });
27017
27018/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecencyType"]; });
27019
27020/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecencyDimension"]; });
27021
27022/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentBehaviors"]; });
27023
27024/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentDemographics"]; });
27025
27026/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GPSCoordinates"]; });
27027
27028/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GPSPointDimension"]; });
27029
27030/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentLocation"]; });
27031
27032/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentDimensions"]; });
27033
27034/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleCondition"]; });
27035
27036/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Operator"]; });
27037
27038/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Condition"]; });
27039
27040/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WaitTime"]; });
27041
27042/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ConditionalSplitActivity"]; });
27043
27044/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyCustomMessage"]; });
27045
27046/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CustomMessageActivity"]; });
27047
27048/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyEmailMessage"]; });
27049
27050/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailMessageActivity"]; });
27051
27052/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["HoldoutActivity"]; });
27053
27054/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MultiConditionalBranch"]; });
27055
27056/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MultiConditionalSplitActivity"]; });
27057
27058/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyPushMessage"]; });
27059
27060/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushMessageActivity"]; });
27061
27062/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RandomSplitEntry"]; });
27063
27064/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RandomSplitActivity"]; });
27065
27066/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageType"]; });
27067
27068/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneySMSMessage"]; });
27069
27070/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSMessageActivity"]; });
27071
27072/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WaitActivity"]; });
27073
27074/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Activity"]; });
27075
27076/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelType"]; });
27077
27078/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AddressConfiguration"]; });
27079
27080/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMChannelRequest"]; });
27081
27082/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMChannelResponse"]; });
27083
27084/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ADMMessage"]; });
27085
27086/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AndroidPushNotificationTemplate"]; });
27087
27088/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSChannelRequest"]; });
27089
27090/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSChannelResponse"]; });
27091
27092/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSMessage"]; });
27093
27094/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSPushNotificationTemplate"]; });
27095
27096/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSSandboxChannelRequest"]; });
27097
27098/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSSandboxChannelResponse"]; });
27099
27100/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipChannelRequest"]; });
27101
27102/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipChannelResponse"]; });
27103
27104/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipSandboxChannelRequest"]; });
27105
27106/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["APNSVoipSandboxChannelResponse"]; });
27107
27108/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ResultRowValue"]; });
27109
27110/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ResultRow"]; });
27111
27112/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaseKpiResult"]; });
27113
27114/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationDateRangeKpiResponse"]; });
27115
27116/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationResponse"]; });
27117
27118/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Mode"]; });
27119
27120/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignHook"]; });
27121
27122/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignLimits"]; });
27123
27124/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["QuietTime"]; });
27125
27126/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationSettingsResource"]; });
27127
27128/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ApplicationsResponse"]; });
27129
27130/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["AttributesResource"]; });
27131
27132/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BadRequestException"]; });
27133
27134/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduChannelRequest"]; });
27135
27136/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduChannelResponse"]; });
27137
27138/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["BaiduMessage"]; });
27139
27140/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignCustomMessage"]; });
27141
27142/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignDateRangeKpiResponse"]; });
27143
27144/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignEmailMessage"]; });
27145
27146/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["FilterType"]; });
27147
27148/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignEventFilter"]; });
27149
27150/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CustomDeliveryConfiguration"]; });
27151
27152/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Message"]; });
27153
27154/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignSmsMessage"]; });
27155
27156/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageConfiguration"]; });
27157
27158/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Frequency"]; });
27159
27160/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Schedule"]; });
27161
27162/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignStatus"]; });
27163
27164/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignState"]; });
27165
27166/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Template"]; });
27167
27168/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateConfiguration"]; });
27169
27170/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TreatmentResource"]; });
27171
27172/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignResponse"]; });
27173
27174/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CampaignsResponse"]; });
27175
27176/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelResponse"]; });
27177
27178/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ChannelsResponse"]; });
27179
27180/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ConflictException"]; });
27181
27182/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateApplicationRequest"]; });
27183
27184/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateAppRequest"]; });
27185
27186/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateAppResponse"]; });
27187
27188/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ForbiddenException"]; });
27189
27190/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["InternalServerErrorException"]; });
27191
27192/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MethodNotAllowedException"]; });
27193
27194/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NotFoundException"]; });
27195
27196/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PayloadTooLargeException"]; });
27197
27198/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TooManyRequestsException"]; });
27199
27200/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteTreatmentResource"]; });
27201
27202/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteCampaignRequest"]; });
27203
27204/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateCampaignRequest"]; });
27205
27206/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateCampaignResponse"]; });
27207
27208/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailTemplateRequest"]; });
27209
27210/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateEmailTemplateRequest"]; });
27211
27212/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateTemplateMessageBody"]; });
27213
27214/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateEmailTemplateResponse"]; });
27215
27216/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobRequest"]; });
27217
27218/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateExportJobRequest"]; });
27219
27220/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobResource"]; });
27221
27222/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JobStatus"]; });
27223
27224/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobResponse"]; });
27225
27226/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateExportJobResponse"]; });
27227
27228/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Format"]; });
27229
27230/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobRequest"]; });
27231
27232/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateImportJobRequest"]; });
27233
27234/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobResource"]; });
27235
27236/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobResponse"]; });
27237
27238/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateImportJobResponse"]; });
27239
27240/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyLimits"]; });
27241
27242/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneySchedule"]; });
27243
27244/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventFilter", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventFilter"]; });
27245
27246/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStartCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventStartCondition"]; });
27247
27248/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["StartCondition"]; });
27249
27250/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "State", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["State"]; });
27251
27252/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteJourneyRequest"]; });
27253
27254/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateJourneyRequest"]; });
27255
27256/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyResponse"]; });
27257
27258/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateJourneyResponse"]; });
27259
27260/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultPushNotificationTemplate"]; });
27261
27262/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushNotificationTemplateRequest"]; });
27263
27264/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreatePushTemplateRequest"]; });
27265
27266/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreatePushTemplateResponse"]; });
27267
27268/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationShape"]; });
27269
27270/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationRequest"]; });
27271
27272/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RecommenderConfigurationResponse"]; });
27273
27274/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateRecommenderConfigurationResponse"]; });
27275
27276/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentReference"]; });
27277
27278/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SourceType"]; });
27279
27280/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Type"]; });
27281
27282/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentGroup"]; });
27283
27284/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Include"]; });
27285
27286/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentGroupList"]; });
27287
27288/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteSegmentRequest"]; });
27289
27290/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSegmentRequest"]; });
27291
27292/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentImportResource"]; });
27293
27294/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentType"]; });
27295
27296/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentResponse"]; });
27297
27298/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSegmentResponse"]; });
27299
27300/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSTemplateRequest"]; });
27301
27302/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSmsTemplateRequest"]; });
27303
27304/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateSmsTemplateResponse"]; });
27305
27306/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceTemplateRequest"]; });
27307
27308/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateVoiceTemplateRequest"]; });
27309
27310/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["CreateVoiceTemplateResponse"]; });
27311
27312/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultMessage"]; });
27313
27314/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DefaultPushNotificationMessage"]; });
27315
27316/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAdmChannelRequest"]; });
27317
27318/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAdmChannelResponse"]; });
27319
27320/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsChannelRequest"]; });
27321
27322/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsChannelResponse"]; });
27323
27324/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsSandboxChannelRequest"]; });
27325
27326/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsSandboxChannelResponse"]; });
27327
27328/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipChannelRequest"]; });
27329
27330/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipChannelResponse"]; });
27331
27332/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipSandboxChannelRequest"]; });
27333
27334/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteApnsVoipSandboxChannelResponse"]; });
27335
27336/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAppRequest"]; });
27337
27338/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteAppResponse"]; });
27339
27340/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteBaiduChannelRequest"]; });
27341
27342/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteBaiduChannelResponse"]; });
27343
27344/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteCampaignRequest"]; });
27345
27346/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteCampaignResponse"]; });
27347
27348/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailChannelRequest"]; });
27349
27350/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailChannelResponse"]; });
27351
27352/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailChannelResponse"]; });
27353
27354/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailTemplateRequest"]; });
27355
27356/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageBody"]; });
27357
27358/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEmailTemplateResponse"]; });
27359
27360/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEndpointRequest"]; });
27361
27362/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointDemographic"]; });
27363
27364/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointLocation"]; });
27365
27366/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointUser"]; });
27367
27368/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointResponse"]; });
27369
27370/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEndpointResponse"]; });
27371
27372/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEventStreamRequest"]; });
27373
27374/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventStream"]; });
27375
27376/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteEventStreamResponse"]; });
27377
27378/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteGcmChannelRequest"]; });
27379
27380/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMChannelResponse"]; });
27381
27382/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteGcmChannelResponse"]; });
27383
27384/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteJourneyRequest"]; });
27385
27386/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteJourneyResponse"]; });
27387
27388/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeletePushTemplateRequest"]; });
27389
27390/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeletePushTemplateResponse"]; });
27391
27392/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteRecommenderConfigurationRequest"]; });
27393
27394/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteRecommenderConfigurationResponse"]; });
27395
27396/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSegmentRequest"]; });
27397
27398/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSegmentResponse"]; });
27399
27400/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsChannelRequest"]; });
27401
27402/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSChannelResponse"]; });
27403
27404/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsChannelResponse"]; });
27405
27406/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsTemplateRequest"]; });
27407
27408/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteSmsTemplateResponse"]; });
27409
27410/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteUserEndpointsRequest"]; });
27411
27412/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointsResponse"]; });
27413
27414/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteUserEndpointsResponse"]; });
27415
27416/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceChannelRequest"]; });
27417
27418/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceChannelResponse"]; });
27419
27420/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceChannelResponse"]; });
27421
27422/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceTemplateRequest"]; });
27423
27424/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeleteVoiceTemplateResponse"]; });
27425
27426/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DeliveryStatus"]; });
27427
27428/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RawEmail"]; });
27429
27430/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleEmailPart"]; });
27431
27432/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SimpleEmail"]; });
27433
27434/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailMessage"]; });
27435
27436/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMMessage"]; });
27437
27438/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSMessage"]; });
27439
27440/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceMessage"]; });
27441
27442/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["DirectMessageConfiguration"]; });
27443
27444/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailChannelRequest"]; });
27445
27446/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateType"]; });
27447
27448/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EmailTemplateResponse"]; });
27449
27450/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointBatchItem"]; });
27451
27452/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointBatchRequest"]; });
27453
27454/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointItemResponse"]; });
27455
27456/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointMessageResult"]; });
27457
27458/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointRequest"]; });
27459
27460/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EndpointSendConfiguration"]; });
27461
27462/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Session"]; });
27463
27464/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["Event"]; });
27465
27466/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventItemResponse"]; });
27467
27468/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PublicEndpoint"]; });
27469
27470/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsBatch"]; });
27471
27472/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsRequest"]; });
27473
27474/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ItemResponse"]; });
27475
27476/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["EventsResponse"]; });
27477
27478/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ExportJobsResponse"]; });
27479
27480/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GCMChannelRequest"]; });
27481
27482/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAdmChannelRequest"]; });
27483
27484/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAdmChannelResponse"]; });
27485
27486/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsChannelRequest"]; });
27487
27488/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsChannelResponse"]; });
27489
27490/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsSandboxChannelRequest"]; });
27491
27492/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsSandboxChannelResponse"]; });
27493
27494/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipChannelRequest"]; });
27495
27496/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipChannelResponse"]; });
27497
27498/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipSandboxChannelRequest"]; });
27499
27500/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApnsVoipSandboxChannelResponse"]; });
27501
27502/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppRequest"]; });
27503
27504/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppResponse"]; });
27505
27506/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationDateRangeKpiRequest"]; });
27507
27508/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationDateRangeKpiResponse"]; });
27509
27510/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationSettingsRequest"]; });
27511
27512/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetApplicationSettingsResponse"]; });
27513
27514/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppsRequest"]; });
27515
27516/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetAppsResponse"]; });
27517
27518/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetBaiduChannelRequest"]; });
27519
27520/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetBaiduChannelResponse"]; });
27521
27522/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignRequest"]; });
27523
27524/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignResponse"]; });
27525
27526/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignActivitiesRequest"]; });
27527
27528/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignActivitiesResponse"]; });
27529
27530/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignDateRangeKpiRequest"]; });
27531
27532/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignDateRangeKpiResponse"]; });
27533
27534/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignsRequest"]; });
27535
27536/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignsResponse"]; });
27537
27538/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionRequest"]; });
27539
27540/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionResponse"]; });
27541
27542/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionsRequest"]; });
27543
27544/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetCampaignVersionsResponse"]; });
27545
27546/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetChannelsRequest"]; });
27547
27548/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetChannelsResponse"]; });
27549
27550/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailChannelRequest"]; });
27551
27552/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailChannelResponse"]; });
27553
27554/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailTemplateRequest"]; });
27555
27556/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEmailTemplateResponse"]; });
27557
27558/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEndpointRequest"]; });
27559
27560/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEndpointResponse"]; });
27561
27562/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEventStreamRequest"]; });
27563
27564/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetEventStreamResponse"]; });
27565
27566/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobRequest"]; });
27567
27568/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobResponse"]; });
27569
27570/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobsRequest"]; });
27571
27572/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetExportJobsResponse"]; });
27573
27574/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetGcmChannelRequest"]; });
27575
27576/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetGcmChannelResponse"]; });
27577
27578/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobRequest"]; });
27579
27580/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobResponse"]; });
27581
27582/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobsRequest"]; });
27583
27584/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ImportJobsResponse"]; });
27585
27586/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetImportJobsResponse"]; });
27587
27588/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyRequest"]; });
27589
27590/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyResponse"]; });
27591
27592/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyDateRangeKpiRequest"]; });
27593
27594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyDateRangeKpiResponse"]; });
27595
27596/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyDateRangeKpiResponse"]; });
27597
27598/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionActivityMetricsRequest"]; });
27599
27600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyExecutionActivityMetricsResponse"]; });
27601
27602/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionActivityMetricsResponse"]; });
27603
27604/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionMetricsRequest"]; });
27605
27606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyExecutionMetricsResponse"]; });
27607
27608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetJourneyExecutionMetricsResponse"]; });
27609
27610/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetPushTemplateRequest"]; });
27611
27612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PushNotificationTemplateResponse"]; });
27613
27614/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetPushTemplateResponse"]; });
27615
27616/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationRequest"]; });
27617
27618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationResponse"]; });
27619
27620/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationsRequest"]; });
27621
27622/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListRecommenderConfigurationsResponse"]; });
27623
27624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetRecommenderConfigurationsResponse"]; });
27625
27626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentRequest"]; });
27627
27628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentResponse"]; });
27629
27630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentExportJobsRequest"]; });
27631
27632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentExportJobsResponse"]; });
27633
27634/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentImportJobsRequest"]; });
27635
27636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentImportJobsResponse"]; });
27637
27638/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentsRequest"]; });
27639
27640/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SegmentsResponse"]; });
27641
27642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentsResponse"]; });
27643
27644/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionRequest"]; });
27645
27646/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionResponse"]; });
27647
27648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionsRequest"]; });
27649
27650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSegmentVersionsResponse"]; });
27651
27652/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsChannelRequest"]; });
27653
27654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsChannelResponse"]; });
27655
27656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsTemplateRequest"]; });
27657
27658/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSTemplateResponse"]; });
27659
27660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetSmsTemplateResponse"]; });
27661
27662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetUserEndpointsRequest"]; });
27663
27664/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetUserEndpointsResponse"]; });
27665
27666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceChannelRequest"]; });
27667
27668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceChannelResponse"]; });
27669
27670/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceTemplateRequest"]; });
27671
27672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceTemplateResponse"]; });
27673
27674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["GetVoiceTemplateResponse"]; });
27675
27676/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneysResponse"]; });
27677
27678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["JourneyStateRequest"]; });
27679
27680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListJourneysRequest"]; });
27681
27682/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListJourneysResponse"]; });
27683
27684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateResponse"]; });
27685
27686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateVersionResponse"]; });
27687
27688/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTagsForResourceRequest"]; });
27689
27690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TagsModel"]; });
27691
27692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTagsForResourceResponse"]; });
27693
27694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplatesRequest"]; });
27695
27696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplatesResponse"]; });
27697
27698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplatesResponse"]; });
27699
27700/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplateVersionsRequest"]; });
27701
27702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateVersionsResponse"]; });
27703
27704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["ListTemplateVersionsResponse"]; });
27705
27706/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageResult"]; });
27707
27708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageRequest"]; });
27709
27710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["MessageResponse"]; });
27711
27712/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NumberValidateRequest"]; });
27713
27714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["NumberValidateResponse"]; });
27715
27716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PhoneNumberValidateRequest"]; });
27717
27718/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PhoneNumberValidateResponse"]; });
27719
27720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventsRequest"]; });
27721
27722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventsResponse"]; });
27723
27724/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteEventStream"]; });
27725
27726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventStreamRequest"]; });
27727
27728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["PutEventStreamResponse"]; });
27729
27730/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAttributesRequest"]; });
27731
27732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RemoveAttributesRequest"]; });
27733
27734/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["RemoveAttributesResponse"]; });
27735
27736/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendMessagesRequest"]; });
27737
27738/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendMessagesResponse"]; });
27739
27740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessageRequest"]; });
27741
27742/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessagesRequest"]; });
27743
27744/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessageResponse"]; });
27745
27746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SendUsersMessagesResponse"]; });
27747
27748/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TagResourceRequest"]; });
27749
27750/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UntagResourceRequest"]; });
27751
27752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAdmChannelRequest"]; });
27753
27754/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateAdmChannelResponse"]; });
27755
27756/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsChannelRequest"]; });
27757
27758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsChannelResponse"]; });
27759
27760/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsSandboxChannelRequest"]; });
27761
27762/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsSandboxChannelResponse"]; });
27763
27764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipChannelRequest"]; });
27765
27766/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipChannelResponse"]; });
27767
27768/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipSandboxChannelRequest"]; });
27769
27770/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApnsVoipSandboxChannelResponse"]; });
27771
27772/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["WriteApplicationSettingsRequest"]; });
27773
27774/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApplicationSettingsRequest"]; });
27775
27776/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateApplicationSettingsResponse"]; });
27777
27778/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateBaiduChannelRequest"]; });
27779
27780/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateBaiduChannelResponse"]; });
27781
27782/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateCampaignRequest"]; });
27783
27784/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateCampaignResponse"]; });
27785
27786/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailChannelRequest"]; });
27787
27788/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailChannelResponse"]; });
27789
27790/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailTemplateRequest"]; });
27791
27792/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEmailTemplateResponse"]; });
27793
27794/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointRequest"]; });
27795
27796/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointResponse"]; });
27797
27798/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointsBatchRequest"]; });
27799
27800/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateEndpointsBatchResponse"]; });
27801
27802/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateGcmChannelRequest"]; });
27803
27804/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateGcmChannelResponse"]; });
27805
27806/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyRequest"]; });
27807
27808/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyResponse"]; });
27809
27810/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyStateRequest"]; });
27811
27812/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateJourneyStateResponse"]; });
27813
27814/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdatePushTemplateRequest"]; });
27815
27816/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdatePushTemplateResponse"]; });
27817
27818/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationShape"]; });
27819
27820/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationRequest"]; });
27821
27822/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateRecommenderConfigurationResponse"]; });
27823
27824/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSegmentRequest"]; });
27825
27826/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSegmentResponse"]; });
27827
27828/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["SMSChannelRequest"]; });
27829
27830/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsChannelRequest"]; });
27831
27832/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsChannelResponse"]; });
27833
27834/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsTemplateRequest"]; });
27835
27836/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateSmsTemplateResponse"]; });
27837
27838/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["TemplateActiveVersionRequest"]; });
27839
27840/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateTemplateActiveVersionRequest"]; });
27841
27842/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateTemplateActiveVersionResponse"]; });
27843
27844/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["VoiceChannelRequest"]; });
27845
27846/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceChannelRequest"]; });
27847
27848/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceChannelResponse"]; });
27849
27850/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceTemplateRequest"]; });
27851
27852/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return _models_index__WEBPACK_IMPORTED_MODULE_114__["UpdateVoiceTemplateResponse"]; });
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969//# sourceMappingURL=index.js.map
27970
27971/***/ }),
27972
27973/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/index.js":
27974/*!**************************************************************************************!*\
27975 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/models/index.js ***!
27976 \**************************************************************************************/
27977/*! exports provided: __EndpointTypesElement, Action, ActivityResponse, ActivitiesResponse, AttributeType, AttributeDimension, DimensionType, SetDimension, MetricDimension, EventDimensions, EventCondition, SegmentCondition, Duration, RecencyType, RecencyDimension, SegmentBehaviors, SegmentDemographics, GPSCoordinates, GPSPointDimension, SegmentLocation, SegmentDimensions, SimpleCondition, Operator, Condition, WaitTime, ConditionalSplitActivity, JourneyCustomMessage, CustomMessageActivity, JourneyEmailMessage, EmailMessageActivity, HoldoutActivity, MultiConditionalBranch, MultiConditionalSplitActivity, JourneyPushMessage, PushMessageActivity, RandomSplitEntry, RandomSplitActivity, MessageType, JourneySMSMessage, SMSMessageActivity, WaitActivity, Activity, ChannelType, AddressConfiguration, ADMChannelRequest, ADMChannelResponse, ADMMessage, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSMessage, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ResultRowValue, ResultRow, BaseKpiResult, ApplicationDateRangeKpiResponse, ApplicationResponse, Mode, CampaignHook, CampaignLimits, QuietTime, ApplicationSettingsResource, ApplicationsResponse, AttributesResource, BadRequestException, BaiduChannelRequest, BaiduChannelResponse, BaiduMessage, CampaignCustomMessage, CampaignDateRangeKpiResponse, CampaignEmailMessage, FilterType, CampaignEventFilter, CustomDeliveryConfiguration, Message, CampaignSmsMessage, MessageConfiguration, Frequency, Schedule, CampaignStatus, CampaignState, Template, TemplateConfiguration, TreatmentResource, CampaignResponse, CampaignsResponse, ChannelResponse, ChannelsResponse, ConflictException, CreateApplicationRequest, CreateAppRequest, CreateAppResponse, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, PayloadTooLargeException, TooManyRequestsException, WriteTreatmentResource, WriteCampaignRequest, CreateCampaignRequest, CreateCampaignResponse, EmailTemplateRequest, CreateEmailTemplateRequest, CreateTemplateMessageBody, CreateEmailTemplateResponse, ExportJobRequest, CreateExportJobRequest, ExportJobResource, JobStatus, ExportJobResponse, CreateExportJobResponse, Format, ImportJobRequest, CreateImportJobRequest, ImportJobResource, ImportJobResponse, CreateImportJobResponse, JourneyLimits, JourneySchedule, EventFilter, EventStartCondition, StartCondition, State, WriteJourneyRequest, CreateJourneyRequest, JourneyResponse, CreateJourneyResponse, DefaultPushNotificationTemplate, PushNotificationTemplateRequest, CreatePushTemplateRequest, CreatePushTemplateResponse, CreateRecommenderConfigurationShape, CreateRecommenderConfigurationRequest, RecommenderConfigurationResponse, CreateRecommenderConfigurationResponse, SegmentReference, SourceType, Type, SegmentGroup, Include, SegmentGroupList, WriteSegmentRequest, CreateSegmentRequest, SegmentImportResource, SegmentType, SegmentResponse, CreateSegmentResponse, SMSTemplateRequest, CreateSmsTemplateRequest, CreateSmsTemplateResponse, VoiceTemplateRequest, CreateVoiceTemplateRequest, CreateVoiceTemplateResponse, DefaultMessage, DefaultPushNotificationMessage, DeleteAdmChannelRequest, DeleteAdmChannelResponse, DeleteApnsChannelRequest, DeleteApnsChannelResponse, DeleteApnsSandboxChannelRequest, DeleteApnsSandboxChannelResponse, DeleteApnsVoipChannelRequest, DeleteApnsVoipChannelResponse, DeleteApnsVoipSandboxChannelRequest, DeleteApnsVoipSandboxChannelResponse, DeleteAppRequest, DeleteAppResponse, DeleteBaiduChannelRequest, DeleteBaiduChannelResponse, DeleteCampaignRequest, DeleteCampaignResponse, DeleteEmailChannelRequest, EmailChannelResponse, DeleteEmailChannelResponse, DeleteEmailTemplateRequest, MessageBody, DeleteEmailTemplateResponse, DeleteEndpointRequest, EndpointDemographic, EndpointLocation, EndpointUser, EndpointResponse, DeleteEndpointResponse, DeleteEventStreamRequest, EventStream, DeleteEventStreamResponse, DeleteGcmChannelRequest, GCMChannelResponse, DeleteGcmChannelResponse, DeleteJourneyRequest, DeleteJourneyResponse, DeletePushTemplateRequest, DeletePushTemplateResponse, DeleteRecommenderConfigurationRequest, DeleteRecommenderConfigurationResponse, DeleteSegmentRequest, DeleteSegmentResponse, DeleteSmsChannelRequest, SMSChannelResponse, DeleteSmsChannelResponse, DeleteSmsTemplateRequest, DeleteSmsTemplateResponse, DeleteUserEndpointsRequest, EndpointsResponse, DeleteUserEndpointsResponse, DeleteVoiceChannelRequest, VoiceChannelResponse, DeleteVoiceChannelResponse, DeleteVoiceTemplateRequest, DeleteVoiceTemplateResponse, DeliveryStatus, RawEmail, SimpleEmailPart, SimpleEmail, EmailMessage, GCMMessage, SMSMessage, VoiceMessage, DirectMessageConfiguration, EmailChannelRequest, TemplateType, EmailTemplateResponse, EndpointBatchItem, EndpointBatchRequest, EndpointItemResponse, EndpointMessageResult, EndpointRequest, EndpointSendConfiguration, Session, Event, EventItemResponse, PublicEndpoint, EventsBatch, EventsRequest, ItemResponse, EventsResponse, ExportJobsResponse, GCMChannelRequest, GetAdmChannelRequest, GetAdmChannelResponse, GetApnsChannelRequest, GetApnsChannelResponse, GetApnsSandboxChannelRequest, GetApnsSandboxChannelResponse, GetApnsVoipChannelRequest, GetApnsVoipChannelResponse, GetApnsVoipSandboxChannelRequest, GetApnsVoipSandboxChannelResponse, GetAppRequest, GetAppResponse, GetApplicationDateRangeKpiRequest, GetApplicationDateRangeKpiResponse, GetApplicationSettingsRequest, GetApplicationSettingsResponse, GetAppsRequest, GetAppsResponse, GetBaiduChannelRequest, GetBaiduChannelResponse, GetCampaignRequest, GetCampaignResponse, GetCampaignActivitiesRequest, GetCampaignActivitiesResponse, GetCampaignDateRangeKpiRequest, GetCampaignDateRangeKpiResponse, GetCampaignsRequest, GetCampaignsResponse, GetCampaignVersionRequest, GetCampaignVersionResponse, GetCampaignVersionsRequest, GetCampaignVersionsResponse, GetChannelsRequest, GetChannelsResponse, GetEmailChannelRequest, GetEmailChannelResponse, GetEmailTemplateRequest, GetEmailTemplateResponse, GetEndpointRequest, GetEndpointResponse, GetEventStreamRequest, GetEventStreamResponse, GetExportJobRequest, GetExportJobResponse, GetExportJobsRequest, GetExportJobsResponse, GetGcmChannelRequest, GetGcmChannelResponse, GetImportJobRequest, GetImportJobResponse, GetImportJobsRequest, ImportJobsResponse, GetImportJobsResponse, GetJourneyRequest, GetJourneyResponse, GetJourneyDateRangeKpiRequest, JourneyDateRangeKpiResponse, GetJourneyDateRangeKpiResponse, GetJourneyExecutionActivityMetricsRequest, JourneyExecutionActivityMetricsResponse, GetJourneyExecutionActivityMetricsResponse, GetJourneyExecutionMetricsRequest, JourneyExecutionMetricsResponse, GetJourneyExecutionMetricsResponse, GetPushTemplateRequest, PushNotificationTemplateResponse, GetPushTemplateResponse, GetRecommenderConfigurationRequest, GetRecommenderConfigurationResponse, GetRecommenderConfigurationsRequest, ListRecommenderConfigurationsResponse, GetRecommenderConfigurationsResponse, GetSegmentRequest, GetSegmentResponse, GetSegmentExportJobsRequest, GetSegmentExportJobsResponse, GetSegmentImportJobsRequest, GetSegmentImportJobsResponse, GetSegmentsRequest, SegmentsResponse, GetSegmentsResponse, GetSegmentVersionRequest, GetSegmentVersionResponse, GetSegmentVersionsRequest, GetSegmentVersionsResponse, GetSmsChannelRequest, GetSmsChannelResponse, GetSmsTemplateRequest, SMSTemplateResponse, GetSmsTemplateResponse, GetUserEndpointsRequest, GetUserEndpointsResponse, GetVoiceChannelRequest, GetVoiceChannelResponse, GetVoiceTemplateRequest, VoiceTemplateResponse, GetVoiceTemplateResponse, JourneysResponse, JourneyStateRequest, ListJourneysRequest, ListJourneysResponse, TemplateResponse, TemplateVersionResponse, ListTagsForResourceRequest, TagsModel, ListTagsForResourceResponse, ListTemplatesRequest, TemplatesResponse, ListTemplatesResponse, ListTemplateVersionsRequest, TemplateVersionsResponse, ListTemplateVersionsResponse, MessageResult, MessageRequest, MessageResponse, NumberValidateRequest, NumberValidateResponse, PhoneNumberValidateRequest, PhoneNumberValidateResponse, PutEventsRequest, PutEventsResponse, WriteEventStream, PutEventStreamRequest, PutEventStreamResponse, UpdateAttributesRequest, RemoveAttributesRequest, RemoveAttributesResponse, SendMessagesRequest, SendMessagesResponse, SendUsersMessageRequest, SendUsersMessagesRequest, SendUsersMessageResponse, SendUsersMessagesResponse, TagResourceRequest, UntagResourceRequest, UpdateAdmChannelRequest, UpdateAdmChannelResponse, UpdateApnsChannelRequest, UpdateApnsChannelResponse, UpdateApnsSandboxChannelRequest, UpdateApnsSandboxChannelResponse, UpdateApnsVoipChannelRequest, UpdateApnsVoipChannelResponse, UpdateApnsVoipSandboxChannelRequest, UpdateApnsVoipSandboxChannelResponse, WriteApplicationSettingsRequest, UpdateApplicationSettingsRequest, UpdateApplicationSettingsResponse, UpdateBaiduChannelRequest, UpdateBaiduChannelResponse, UpdateCampaignRequest, UpdateCampaignResponse, UpdateEmailChannelRequest, UpdateEmailChannelResponse, UpdateEmailTemplateRequest, UpdateEmailTemplateResponse, UpdateEndpointRequest, UpdateEndpointResponse, UpdateEndpointsBatchRequest, UpdateEndpointsBatchResponse, UpdateGcmChannelRequest, UpdateGcmChannelResponse, UpdateJourneyRequest, UpdateJourneyResponse, UpdateJourneyStateRequest, UpdateJourneyStateResponse, UpdatePushTemplateRequest, UpdatePushTemplateResponse, UpdateRecommenderConfigurationShape, UpdateRecommenderConfigurationRequest, UpdateRecommenderConfigurationResponse, UpdateSegmentRequest, UpdateSegmentResponse, SMSChannelRequest, UpdateSmsChannelRequest, UpdateSmsChannelResponse, UpdateSmsTemplateRequest, UpdateSmsTemplateResponse, TemplateActiveVersionRequest, UpdateTemplateActiveVersionRequest, UpdateTemplateActiveVersionResponse, VoiceChannelRequest, UpdateVoiceChannelRequest, UpdateVoiceChannelResponse, UpdateVoiceTemplateRequest, UpdateVoiceTemplateResponse */
27978/***/ (function(module, __webpack_exports__, __webpack_require__) {
27979
27980"use strict";
27981__webpack_require__.r(__webpack_exports__);
27982/* harmony import */ var _models_0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./models_0 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js");
27983/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["__EndpointTypesElement"]; });
27984
27985/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Action"]; });
27986
27987/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ActivityResponse"]; });
27988
27989/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ActivitiesResponse"]; });
27990
27991/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AttributeType"]; });
27992
27993/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AttributeDimension"]; });
27994
27995/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DimensionType"]; });
27996
27997/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SetDimension"]; });
27998
27999/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MetricDimension"]; });
28000
28001/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventDimensions"]; });
28002
28003/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventCondition"]; });
28004
28005/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentCondition"]; });
28006
28007/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Duration"]; });
28008
28009/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RecencyType"]; });
28010
28011/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RecencyDimension"]; });
28012
28013/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentBehaviors"]; });
28014
28015/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentDemographics"]; });
28016
28017/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GPSCoordinates"]; });
28018
28019/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GPSPointDimension"]; });
28020
28021/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentLocation"]; });
28022
28023/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentDimensions"]; });
28024
28025/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SimpleCondition"]; });
28026
28027/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Operator"]; });
28028
28029/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Condition"]; });
28030
28031/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WaitTime"]; });
28032
28033/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConditionalSplitActivity"]; });
28034
28035/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyCustomMessage"]; });
28036
28037/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CustomMessageActivity"]; });
28038
28039/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyEmailMessage"]; });
28040
28041/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailMessageActivity"]; });
28042
28043/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["HoldoutActivity"]; });
28044
28045/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MultiConditionalBranch"]; });
28046
28047/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MultiConditionalSplitActivity"]; });
28048
28049/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyPushMessage"]; });
28050
28051/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PushMessageActivity"]; });
28052
28053/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RandomSplitEntry"]; });
28054
28055/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RandomSplitActivity"]; });
28056
28057/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MessageType"]; });
28058
28059/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneySMSMessage"]; });
28060
28061/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSMessageActivity"]; });
28062
28063/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WaitActivity"]; });
28064
28065/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Activity"]; });
28066
28067/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChannelType"]; });
28068
28069/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AddressConfiguration"]; });
28070
28071/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ADMChannelRequest"]; });
28072
28073/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ADMChannelResponse"]; });
28074
28075/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ADMMessage"]; });
28076
28077/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AndroidPushNotificationTemplate"]; });
28078
28079/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSChannelRequest"]; });
28080
28081/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSChannelResponse"]; });
28082
28083/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSMessage"]; });
28084
28085/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSPushNotificationTemplate"]; });
28086
28087/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSSandboxChannelRequest"]; });
28088
28089/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSSandboxChannelResponse"]; });
28090
28091/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipChannelRequest"]; });
28092
28093/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipChannelResponse"]; });
28094
28095/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipSandboxChannelRequest"]; });
28096
28097/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["APNSVoipSandboxChannelResponse"]; });
28098
28099/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResultRowValue"]; });
28100
28101/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ResultRow"]; });
28102
28103/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaseKpiResult"]; });
28104
28105/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationDateRangeKpiResponse"]; });
28106
28107/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationResponse"]; });
28108
28109/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Mode"]; });
28110
28111/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignHook"]; });
28112
28113/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignLimits"]; });
28114
28115/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["QuietTime"]; });
28116
28117/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationSettingsResource"]; });
28118
28119/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ApplicationsResponse"]; });
28120
28121/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["AttributesResource"]; });
28122
28123/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BadRequestException"]; });
28124
28125/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaiduChannelRequest"]; });
28126
28127/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaiduChannelResponse"]; });
28128
28129/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["BaiduMessage"]; });
28130
28131/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignCustomMessage"]; });
28132
28133/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignDateRangeKpiResponse"]; });
28134
28135/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignEmailMessage"]; });
28136
28137/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["FilterType"]; });
28138
28139/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignEventFilter"]; });
28140
28141/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CustomDeliveryConfiguration"]; });
28142
28143/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Message"]; });
28144
28145/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignSmsMessage"]; });
28146
28147/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MessageConfiguration"]; });
28148
28149/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Frequency"]; });
28150
28151/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Schedule"]; });
28152
28153/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignStatus"]; });
28154
28155/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignState"]; });
28156
28157/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Template"]; });
28158
28159/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TemplateConfiguration"]; });
28160
28161/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TreatmentResource"]; });
28162
28163/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignResponse"]; });
28164
28165/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CampaignsResponse"]; });
28166
28167/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChannelResponse"]; });
28168
28169/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ChannelsResponse"]; });
28170
28171/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ConflictException"]; });
28172
28173/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateApplicationRequest"]; });
28174
28175/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateAppRequest"]; });
28176
28177/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateAppResponse"]; });
28178
28179/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ForbiddenException"]; });
28180
28181/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["InternalServerErrorException"]; });
28182
28183/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MethodNotAllowedException"]; });
28184
28185/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["NotFoundException"]; });
28186
28187/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PayloadTooLargeException"]; });
28188
28189/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TooManyRequestsException"]; });
28190
28191/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteTreatmentResource"]; });
28192
28193/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteCampaignRequest"]; });
28194
28195/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateCampaignRequest"]; });
28196
28197/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateCampaignResponse"]; });
28198
28199/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailTemplateRequest"]; });
28200
28201/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateEmailTemplateRequest"]; });
28202
28203/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateTemplateMessageBody"]; });
28204
28205/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateEmailTemplateResponse"]; });
28206
28207/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobRequest"]; });
28208
28209/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateExportJobRequest"]; });
28210
28211/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobResource"]; });
28212
28213/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JobStatus"]; });
28214
28215/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobResponse"]; });
28216
28217/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateExportJobResponse"]; });
28218
28219/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Format"]; });
28220
28221/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobRequest"]; });
28222
28223/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateImportJobRequest"]; });
28224
28225/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobResource"]; });
28226
28227/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobResponse"]; });
28228
28229/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateImportJobResponse"]; });
28230
28231/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyLimits"]; });
28232
28233/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneySchedule"]; });
28234
28235/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventFilter", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventFilter"]; });
28236
28237/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStartCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventStartCondition"]; });
28238
28239/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["StartCondition"]; });
28240
28241/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "State", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["State"]; });
28242
28243/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteJourneyRequest"]; });
28244
28245/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateJourneyRequest"]; });
28246
28247/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["JourneyResponse"]; });
28248
28249/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateJourneyResponse"]; });
28250
28251/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DefaultPushNotificationTemplate"]; });
28252
28253/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PushNotificationTemplateRequest"]; });
28254
28255/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreatePushTemplateRequest"]; });
28256
28257/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreatePushTemplateResponse"]; });
28258
28259/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateRecommenderConfigurationShape"]; });
28260
28261/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateRecommenderConfigurationRequest"]; });
28262
28263/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RecommenderConfigurationResponse"]; });
28264
28265/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateRecommenderConfigurationResponse"]; });
28266
28267/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentReference"]; });
28268
28269/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SourceType"]; });
28270
28271/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Type"]; });
28272
28273/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentGroup"]; });
28274
28275/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Include"]; });
28276
28277/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentGroupList"]; });
28278
28279/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["WriteSegmentRequest"]; });
28280
28281/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSegmentRequest"]; });
28282
28283/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentImportResource"]; });
28284
28285/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentType"]; });
28286
28287/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SegmentResponse"]; });
28288
28289/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSegmentResponse"]; });
28290
28291/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSTemplateRequest"]; });
28292
28293/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSmsTemplateRequest"]; });
28294
28295/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateSmsTemplateResponse"]; });
28296
28297/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VoiceTemplateRequest"]; });
28298
28299/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateVoiceTemplateRequest"]; });
28300
28301/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["CreateVoiceTemplateResponse"]; });
28302
28303/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DefaultMessage"]; });
28304
28305/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DefaultPushNotificationMessage"]; });
28306
28307/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAdmChannelRequest"]; });
28308
28309/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAdmChannelResponse"]; });
28310
28311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsChannelRequest"]; });
28312
28313/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsChannelResponse"]; });
28314
28315/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsSandboxChannelRequest"]; });
28316
28317/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsSandboxChannelResponse"]; });
28318
28319/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipChannelRequest"]; });
28320
28321/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipChannelResponse"]; });
28322
28323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipSandboxChannelRequest"]; });
28324
28325/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteApnsVoipSandboxChannelResponse"]; });
28326
28327/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAppRequest"]; });
28328
28329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteAppResponse"]; });
28330
28331/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteBaiduChannelRequest"]; });
28332
28333/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteBaiduChannelResponse"]; });
28334
28335/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteCampaignRequest"]; });
28336
28337/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteCampaignResponse"]; });
28338
28339/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailChannelRequest"]; });
28340
28341/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailChannelResponse"]; });
28342
28343/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailChannelResponse"]; });
28344
28345/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailTemplateRequest"]; });
28346
28347/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["MessageBody"]; });
28348
28349/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEmailTemplateResponse"]; });
28350
28351/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEndpointRequest"]; });
28352
28353/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointDemographic"]; });
28354
28355/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointLocation"]; });
28356
28357/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointUser"]; });
28358
28359/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointResponse"]; });
28360
28361/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEndpointResponse"]; });
28362
28363/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEventStreamRequest"]; });
28364
28365/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventStream"]; });
28366
28367/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteEventStreamResponse"]; });
28368
28369/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteGcmChannelRequest"]; });
28370
28371/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GCMChannelResponse"]; });
28372
28373/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteGcmChannelResponse"]; });
28374
28375/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteJourneyRequest"]; });
28376
28377/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteJourneyResponse"]; });
28378
28379/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeletePushTemplateRequest"]; });
28380
28381/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeletePushTemplateResponse"]; });
28382
28383/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteRecommenderConfigurationRequest"]; });
28384
28385/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteRecommenderConfigurationResponse"]; });
28386
28387/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSegmentRequest"]; });
28388
28389/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSegmentResponse"]; });
28390
28391/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsChannelRequest"]; });
28392
28393/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSChannelResponse"]; });
28394
28395/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsChannelResponse"]; });
28396
28397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsTemplateRequest"]; });
28398
28399/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteSmsTemplateResponse"]; });
28400
28401/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteUserEndpointsRequest"]; });
28402
28403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointsResponse"]; });
28404
28405/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteUserEndpointsResponse"]; });
28406
28407/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceChannelRequest"]; });
28408
28409/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VoiceChannelResponse"]; });
28410
28411/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceChannelResponse"]; });
28412
28413/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceTemplateRequest"]; });
28414
28415/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeleteVoiceTemplateResponse"]; });
28416
28417/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DeliveryStatus"]; });
28418
28419/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["RawEmail"]; });
28420
28421/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SimpleEmailPart"]; });
28422
28423/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SimpleEmail"]; });
28424
28425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailMessage"]; });
28426
28427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GCMMessage"]; });
28428
28429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["SMSMessage"]; });
28430
28431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["VoiceMessage"]; });
28432
28433/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["DirectMessageConfiguration"]; });
28434
28435/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailChannelRequest"]; });
28436
28437/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["TemplateType"]; });
28438
28439/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EmailTemplateResponse"]; });
28440
28441/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointBatchItem"]; });
28442
28443/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointBatchRequest"]; });
28444
28445/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointItemResponse"]; });
28446
28447/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointMessageResult"]; });
28448
28449/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointRequest"]; });
28450
28451/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EndpointSendConfiguration"]; });
28452
28453/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Session"]; });
28454
28455/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["Event"]; });
28456
28457/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventItemResponse"]; });
28458
28459/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["PublicEndpoint"]; });
28460
28461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventsBatch"]; });
28462
28463/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventsRequest"]; });
28464
28465/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ItemResponse"]; });
28466
28467/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["EventsResponse"]; });
28468
28469/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ExportJobsResponse"]; });
28470
28471/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GCMChannelRequest"]; });
28472
28473/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAdmChannelRequest"]; });
28474
28475/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAdmChannelResponse"]; });
28476
28477/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsChannelRequest"]; });
28478
28479/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsChannelResponse"]; });
28480
28481/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsSandboxChannelRequest"]; });
28482
28483/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsSandboxChannelResponse"]; });
28484
28485/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipChannelRequest"]; });
28486
28487/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipChannelResponse"]; });
28488
28489/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipSandboxChannelRequest"]; });
28490
28491/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApnsVoipSandboxChannelResponse"]; });
28492
28493/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppRequest"]; });
28494
28495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppResponse"]; });
28496
28497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationDateRangeKpiRequest"]; });
28498
28499/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationDateRangeKpiResponse"]; });
28500
28501/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationSettingsRequest"]; });
28502
28503/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetApplicationSettingsResponse"]; });
28504
28505/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppsRequest"]; });
28506
28507/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetAppsResponse"]; });
28508
28509/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetBaiduChannelRequest"]; });
28510
28511/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetBaiduChannelResponse"]; });
28512
28513/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignRequest"]; });
28514
28515/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignResponse"]; });
28516
28517/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignActivitiesRequest"]; });
28518
28519/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignActivitiesResponse"]; });
28520
28521/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignDateRangeKpiRequest"]; });
28522
28523/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignDateRangeKpiResponse"]; });
28524
28525/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignsRequest"]; });
28526
28527/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignsResponse"]; });
28528
28529/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionRequest"]; });
28530
28531/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionResponse"]; });
28532
28533/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionsRequest"]; });
28534
28535/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetCampaignVersionsResponse"]; });
28536
28537/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetChannelsRequest"]; });
28538
28539/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetChannelsResponse"]; });
28540
28541/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailChannelRequest"]; });
28542
28543/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailChannelResponse"]; });
28544
28545/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailTemplateRequest"]; });
28546
28547/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEmailTemplateResponse"]; });
28548
28549/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEndpointRequest"]; });
28550
28551/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEndpointResponse"]; });
28552
28553/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEventStreamRequest"]; });
28554
28555/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetEventStreamResponse"]; });
28556
28557/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobRequest"]; });
28558
28559/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobResponse"]; });
28560
28561/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobsRequest"]; });
28562
28563/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetExportJobsResponse"]; });
28564
28565/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetGcmChannelRequest"]; });
28566
28567/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetGcmChannelResponse"]; });
28568
28569/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobRequest"]; });
28570
28571/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobResponse"]; });
28572
28573/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobsRequest"]; });
28574
28575/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["ImportJobsResponse"]; });
28576
28577/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetImportJobsResponse"]; });
28578
28579/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetJourneyRequest"]; });
28580
28581/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return _models_0__WEBPACK_IMPORTED_MODULE_0__["GetJourneyResponse"]; });
28582
28583/* harmony import */ var _models_1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./models_1 */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js");
28584/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiRequest"]; });
28585
28586/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyDateRangeKpiResponse"]; });
28587
28588/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyDateRangeKpiResponse"]; });
28589
28590/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsRequest"]; });
28591
28592/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyExecutionActivityMetricsResponse"]; });
28593
28594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionActivityMetricsResponse"]; });
28595
28596/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsRequest"]; });
28597
28598/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyExecutionMetricsResponse"]; });
28599
28600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetJourneyExecutionMetricsResponse"]; });
28601
28602/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateRequest"]; });
28603
28604/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PushNotificationTemplateResponse"]; });
28605
28606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetPushTemplateResponse"]; });
28607
28608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationRequest"]; });
28609
28610/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationResponse"]; });
28611
28612/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsRequest"]; });
28613
28614/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListRecommenderConfigurationsResponse"]; });
28615
28616/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetRecommenderConfigurationsResponse"]; });
28617
28618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentRequest"]; });
28619
28620/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentResponse"]; });
28621
28622/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsRequest"]; });
28623
28624/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentExportJobsResponse"]; });
28625
28626/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsRequest"]; });
28627
28628/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentImportJobsResponse"]; });
28629
28630/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsRequest"]; });
28631
28632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SegmentsResponse"]; });
28633
28634/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentsResponse"]; });
28635
28636/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionRequest"]; });
28637
28638/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionResponse"]; });
28639
28640/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsRequest"]; });
28641
28642/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSegmentVersionsResponse"]; });
28643
28644/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelRequest"]; });
28645
28646/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsChannelResponse"]; });
28647
28648/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateRequest"]; });
28649
28650/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SMSTemplateResponse"]; });
28651
28652/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetSmsTemplateResponse"]; });
28653
28654/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsRequest"]; });
28655
28656/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetUserEndpointsResponse"]; });
28657
28658/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelRequest"]; });
28659
28660/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceChannelResponse"]; });
28661
28662/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateRequest"]; });
28663
28664/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["VoiceTemplateResponse"]; });
28665
28666/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["GetVoiceTemplateResponse"]; });
28667
28668/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneysResponse"]; });
28669
28670/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["JourneyStateRequest"]; });
28671
28672/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysRequest"]; });
28673
28674/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListJourneysResponse"]; });
28675
28676/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateResponse"]; });
28677
28678/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateVersionResponse"]; });
28679
28680/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceRequest"]; });
28681
28682/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TagsModel"]; });
28683
28684/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTagsForResourceResponse"]; });
28685
28686/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesRequest"]; });
28687
28688/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplatesResponse"]; });
28689
28690/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplatesResponse"]; });
28691
28692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsRequest"]; });
28693
28694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateVersionsResponse"]; });
28695
28696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["ListTemplateVersionsResponse"]; });
28697
28698/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["MessageResult"]; });
28699
28700/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["MessageRequest"]; });
28701
28702/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["MessageResponse"]; });
28703
28704/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["NumberValidateRequest"]; });
28705
28706/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["NumberValidateResponse"]; });
28707
28708/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateRequest"]; });
28709
28710/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PhoneNumberValidateResponse"]; });
28711
28712/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsRequest"]; });
28713
28714/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventsResponse"]; });
28715
28716/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["WriteEventStream"]; });
28717
28718/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamRequest"]; });
28719
28720/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["PutEventStreamResponse"]; });
28721
28722/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAttributesRequest"]; });
28723
28724/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesRequest"]; });
28725
28726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["RemoveAttributesResponse"]; });
28727
28728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesRequest"]; });
28729
28730/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendMessagesResponse"]; });
28731
28732/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessageRequest"]; });
28733
28734/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesRequest"]; });
28735
28736/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessageResponse"]; });
28737
28738/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SendUsersMessagesResponse"]; });
28739
28740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TagResourceRequest"]; });
28741
28742/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UntagResourceRequest"]; });
28743
28744/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelRequest"]; });
28745
28746/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateAdmChannelResponse"]; });
28747
28748/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelRequest"]; });
28749
28750/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsChannelResponse"]; });
28751
28752/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelRequest"]; });
28753
28754/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsSandboxChannelResponse"]; });
28755
28756/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelRequest"]; });
28757
28758/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipChannelResponse"]; });
28759
28760/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelRequest"]; });
28761
28762/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApnsVoipSandboxChannelResponse"]; });
28763
28764/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["WriteApplicationSettingsRequest"]; });
28765
28766/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsRequest"]; });
28767
28768/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateApplicationSettingsResponse"]; });
28769
28770/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelRequest"]; });
28771
28772/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateBaiduChannelResponse"]; });
28773
28774/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignRequest"]; });
28775
28776/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateCampaignResponse"]; });
28777
28778/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelRequest"]; });
28779
28780/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailChannelResponse"]; });
28781
28782/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateRequest"]; });
28783
28784/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEmailTemplateResponse"]; });
28785
28786/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointRequest"]; });
28787
28788/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointResponse"]; });
28789
28790/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchRequest"]; });
28791
28792/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointsBatchResponse"]; });
28793
28794/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelRequest"]; });
28795
28796/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateGcmChannelResponse"]; });
28797
28798/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyRequest"]; });
28799
28800/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyResponse"]; });
28801
28802/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateRequest"]; });
28803
28804/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateJourneyStateResponse"]; });
28805
28806/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateRequest"]; });
28807
28808/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdatePushTemplateResponse"]; });
28809
28810/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationShape"]; });
28811
28812/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationRequest"]; });
28813
28814/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateRecommenderConfigurationResponse"]; });
28815
28816/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentRequest"]; });
28817
28818/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSegmentResponse"]; });
28819
28820/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["SMSChannelRequest"]; });
28821
28822/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelRequest"]; });
28823
28824/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsChannelResponse"]; });
28825
28826/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateRequest"]; });
28827
28828/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateSmsTemplateResponse"]; });
28829
28830/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["TemplateActiveVersionRequest"]; });
28831
28832/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionRequest"]; });
28833
28834/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateTemplateActiveVersionResponse"]; });
28835
28836/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["VoiceChannelRequest"]; });
28837
28838/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelRequest"]; });
28839
28840/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceChannelResponse"]; });
28841
28842/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateRequest"]; });
28843
28844/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return _models_1__WEBPACK_IMPORTED_MODULE_1__["UpdateVoiceTemplateResponse"]; });
28845
28846
28847
28848//# sourceMappingURL=index.js.map
28849
28850/***/ }),
28851
28852/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js":
28853/*!*****************************************************************************************!*\
28854 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_0.js ***!
28855 \*****************************************************************************************/
28856/*! exports provided: __EndpointTypesElement, Action, ActivityResponse, ActivitiesResponse, AttributeType, AttributeDimension, DimensionType, SetDimension, MetricDimension, EventDimensions, EventCondition, SegmentCondition, Duration, RecencyType, RecencyDimension, SegmentBehaviors, SegmentDemographics, GPSCoordinates, GPSPointDimension, SegmentLocation, SegmentDimensions, SimpleCondition, Operator, Condition, WaitTime, ConditionalSplitActivity, JourneyCustomMessage, CustomMessageActivity, JourneyEmailMessage, EmailMessageActivity, HoldoutActivity, MultiConditionalBranch, MultiConditionalSplitActivity, JourneyPushMessage, PushMessageActivity, RandomSplitEntry, RandomSplitActivity, MessageType, JourneySMSMessage, SMSMessageActivity, WaitActivity, Activity, ChannelType, AddressConfiguration, ADMChannelRequest, ADMChannelResponse, ADMMessage, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSMessage, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ResultRowValue, ResultRow, BaseKpiResult, ApplicationDateRangeKpiResponse, ApplicationResponse, Mode, CampaignHook, CampaignLimits, QuietTime, ApplicationSettingsResource, ApplicationsResponse, AttributesResource, BadRequestException, BaiduChannelRequest, BaiduChannelResponse, BaiduMessage, CampaignCustomMessage, CampaignDateRangeKpiResponse, CampaignEmailMessage, FilterType, CampaignEventFilter, CustomDeliveryConfiguration, Message, CampaignSmsMessage, MessageConfiguration, Frequency, Schedule, CampaignStatus, CampaignState, Template, TemplateConfiguration, TreatmentResource, CampaignResponse, CampaignsResponse, ChannelResponse, ChannelsResponse, ConflictException, CreateApplicationRequest, CreateAppRequest, CreateAppResponse, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, PayloadTooLargeException, TooManyRequestsException, WriteTreatmentResource, WriteCampaignRequest, CreateCampaignRequest, CreateCampaignResponse, EmailTemplateRequest, CreateEmailTemplateRequest, CreateTemplateMessageBody, CreateEmailTemplateResponse, ExportJobRequest, CreateExportJobRequest, ExportJobResource, JobStatus, ExportJobResponse, CreateExportJobResponse, Format, ImportJobRequest, CreateImportJobRequest, ImportJobResource, ImportJobResponse, CreateImportJobResponse, JourneyLimits, JourneySchedule, EventFilter, EventStartCondition, StartCondition, State, WriteJourneyRequest, CreateJourneyRequest, JourneyResponse, CreateJourneyResponse, DefaultPushNotificationTemplate, PushNotificationTemplateRequest, CreatePushTemplateRequest, CreatePushTemplateResponse, CreateRecommenderConfigurationShape, CreateRecommenderConfigurationRequest, RecommenderConfigurationResponse, CreateRecommenderConfigurationResponse, SegmentReference, SourceType, Type, SegmentGroup, Include, SegmentGroupList, WriteSegmentRequest, CreateSegmentRequest, SegmentImportResource, SegmentType, SegmentResponse, CreateSegmentResponse, SMSTemplateRequest, CreateSmsTemplateRequest, CreateSmsTemplateResponse, VoiceTemplateRequest, CreateVoiceTemplateRequest, CreateVoiceTemplateResponse, DefaultMessage, DefaultPushNotificationMessage, DeleteAdmChannelRequest, DeleteAdmChannelResponse, DeleteApnsChannelRequest, DeleteApnsChannelResponse, DeleteApnsSandboxChannelRequest, DeleteApnsSandboxChannelResponse, DeleteApnsVoipChannelRequest, DeleteApnsVoipChannelResponse, DeleteApnsVoipSandboxChannelRequest, DeleteApnsVoipSandboxChannelResponse, DeleteAppRequest, DeleteAppResponse, DeleteBaiduChannelRequest, DeleteBaiduChannelResponse, DeleteCampaignRequest, DeleteCampaignResponse, DeleteEmailChannelRequest, EmailChannelResponse, DeleteEmailChannelResponse, DeleteEmailTemplateRequest, MessageBody, DeleteEmailTemplateResponse, DeleteEndpointRequest, EndpointDemographic, EndpointLocation, EndpointUser, EndpointResponse, DeleteEndpointResponse, DeleteEventStreamRequest, EventStream, DeleteEventStreamResponse, DeleteGcmChannelRequest, GCMChannelResponse, DeleteGcmChannelResponse, DeleteJourneyRequest, DeleteJourneyResponse, DeletePushTemplateRequest, DeletePushTemplateResponse, DeleteRecommenderConfigurationRequest, DeleteRecommenderConfigurationResponse, DeleteSegmentRequest, DeleteSegmentResponse, DeleteSmsChannelRequest, SMSChannelResponse, DeleteSmsChannelResponse, DeleteSmsTemplateRequest, DeleteSmsTemplateResponse, DeleteUserEndpointsRequest, EndpointsResponse, DeleteUserEndpointsResponse, DeleteVoiceChannelRequest, VoiceChannelResponse, DeleteVoiceChannelResponse, DeleteVoiceTemplateRequest, DeleteVoiceTemplateResponse, DeliveryStatus, RawEmail, SimpleEmailPart, SimpleEmail, EmailMessage, GCMMessage, SMSMessage, VoiceMessage, DirectMessageConfiguration, EmailChannelRequest, TemplateType, EmailTemplateResponse, EndpointBatchItem, EndpointBatchRequest, EndpointItemResponse, EndpointMessageResult, EndpointRequest, EndpointSendConfiguration, Session, Event, EventItemResponse, PublicEndpoint, EventsBatch, EventsRequest, ItemResponse, EventsResponse, ExportJobsResponse, GCMChannelRequest, GetAdmChannelRequest, GetAdmChannelResponse, GetApnsChannelRequest, GetApnsChannelResponse, GetApnsSandboxChannelRequest, GetApnsSandboxChannelResponse, GetApnsVoipChannelRequest, GetApnsVoipChannelResponse, GetApnsVoipSandboxChannelRequest, GetApnsVoipSandboxChannelResponse, GetAppRequest, GetAppResponse, GetApplicationDateRangeKpiRequest, GetApplicationDateRangeKpiResponse, GetApplicationSettingsRequest, GetApplicationSettingsResponse, GetAppsRequest, GetAppsResponse, GetBaiduChannelRequest, GetBaiduChannelResponse, GetCampaignRequest, GetCampaignResponse, GetCampaignActivitiesRequest, GetCampaignActivitiesResponse, GetCampaignDateRangeKpiRequest, GetCampaignDateRangeKpiResponse, GetCampaignsRequest, GetCampaignsResponse, GetCampaignVersionRequest, GetCampaignVersionResponse, GetCampaignVersionsRequest, GetCampaignVersionsResponse, GetChannelsRequest, GetChannelsResponse, GetEmailChannelRequest, GetEmailChannelResponse, GetEmailTemplateRequest, GetEmailTemplateResponse, GetEndpointRequest, GetEndpointResponse, GetEventStreamRequest, GetEventStreamResponse, GetExportJobRequest, GetExportJobResponse, GetExportJobsRequest, GetExportJobsResponse, GetGcmChannelRequest, GetGcmChannelResponse, GetImportJobRequest, GetImportJobResponse, GetImportJobsRequest, ImportJobsResponse, GetImportJobsResponse, GetJourneyRequest, GetJourneyResponse */
28857/***/ (function(module, __webpack_exports__, __webpack_require__) {
28858
28859"use strict";
28860__webpack_require__.r(__webpack_exports__);
28861/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__EndpointTypesElement", function() { return __EndpointTypesElement; });
28862/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return Action; });
28863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivityResponse", function() { return ActivityResponse; });
28864/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivitiesResponse", function() { return ActivitiesResponse; });
28865/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeType", function() { return AttributeType; });
28866/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeDimension", function() { return AttributeDimension; });
28867/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DimensionType", function() { return DimensionType; });
28868/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetDimension", function() { return SetDimension; });
28869/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MetricDimension", function() { return MetricDimension; });
28870/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventDimensions", function() { return EventDimensions; });
28871/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventCondition", function() { return EventCondition; });
28872/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentCondition", function() { return SegmentCondition; });
28873/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Duration", function() { return Duration; });
28874/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecencyType", function() { return RecencyType; });
28875/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecencyDimension", function() { return RecencyDimension; });
28876/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentBehaviors", function() { return SegmentBehaviors; });
28877/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentDemographics", function() { return SegmentDemographics; });
28878/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GPSCoordinates", function() { return GPSCoordinates; });
28879/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GPSPointDimension", function() { return GPSPointDimension; });
28880/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentLocation", function() { return SegmentLocation; });
28881/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentDimensions", function() { return SegmentDimensions; });
28882/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleCondition", function() { return SimpleCondition; });
28883/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Operator", function() { return Operator; });
28884/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Condition", function() { return Condition; });
28885/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaitTime", function() { return WaitTime; });
28886/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConditionalSplitActivity", function() { return ConditionalSplitActivity; });
28887/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyCustomMessage", function() { return JourneyCustomMessage; });
28888/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomMessageActivity", function() { return CustomMessageActivity; });
28889/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyEmailMessage", function() { return JourneyEmailMessage; });
28890/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailMessageActivity", function() { return EmailMessageActivity; });
28891/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HoldoutActivity", function() { return HoldoutActivity; });
28892/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalBranch", function() { return MultiConditionalBranch; });
28893/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiConditionalSplitActivity", function() { return MultiConditionalSplitActivity; });
28894/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyPushMessage", function() { return JourneyPushMessage; });
28895/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushMessageActivity", function() { return PushMessageActivity; });
28896/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RandomSplitEntry", function() { return RandomSplitEntry; });
28897/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RandomSplitActivity", function() { return RandomSplitActivity; });
28898/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageType", function() { return MessageType; });
28899/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneySMSMessage", function() { return JourneySMSMessage; });
28900/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSMessageActivity", function() { return SMSMessageActivity; });
28901/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaitActivity", function() { return WaitActivity; });
28902/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Activity", function() { return Activity; });
28903/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelType", function() { return ChannelType; });
28904/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddressConfiguration", function() { return AddressConfiguration; });
28905/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADMChannelRequest", function() { return ADMChannelRequest; });
28906/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADMChannelResponse", function() { return ADMChannelResponse; });
28907/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ADMMessage", function() { return ADMMessage; });
28908/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AndroidPushNotificationTemplate", function() { return AndroidPushNotificationTemplate; });
28909/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSChannelRequest", function() { return APNSChannelRequest; });
28910/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSChannelResponse", function() { return APNSChannelResponse; });
28911/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSMessage", function() { return APNSMessage; });
28912/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSPushNotificationTemplate", function() { return APNSPushNotificationTemplate; });
28913/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelRequest", function() { return APNSSandboxChannelRequest; });
28914/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSSandboxChannelResponse", function() { return APNSSandboxChannelResponse; });
28915/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelRequest", function() { return APNSVoipChannelRequest; });
28916/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipChannelResponse", function() { return APNSVoipChannelResponse; });
28917/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelRequest", function() { return APNSVoipSandboxChannelRequest; });
28918/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APNSVoipSandboxChannelResponse", function() { return APNSVoipSandboxChannelResponse; });
28919/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultRowValue", function() { return ResultRowValue; });
28920/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultRow", function() { return ResultRow; });
28921/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseKpiResult", function() { return BaseKpiResult; });
28922/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationDateRangeKpiResponse", function() { return ApplicationDateRangeKpiResponse; });
28923/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationResponse", function() { return ApplicationResponse; });
28924/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mode", function() { return Mode; });
28925/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignHook", function() { return CampaignHook; });
28926/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignLimits", function() { return CampaignLimits; });
28927/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuietTime", function() { return QuietTime; });
28928/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationSettingsResource", function() { return ApplicationSettingsResource; });
28929/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationsResponse", function() { return ApplicationsResponse; });
28930/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributesResource", function() { return AttributesResource; });
28931/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BadRequestException", function() { return BadRequestException; });
28932/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelRequest", function() { return BaiduChannelRequest; });
28933/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaiduChannelResponse", function() { return BaiduChannelResponse; });
28934/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaiduMessage", function() { return BaiduMessage; });
28935/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignCustomMessage", function() { return CampaignCustomMessage; });
28936/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignDateRangeKpiResponse", function() { return CampaignDateRangeKpiResponse; });
28937/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignEmailMessage", function() { return CampaignEmailMessage; });
28938/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterType", function() { return FilterType; });
28939/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignEventFilter", function() { return CampaignEventFilter; });
28940/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDeliveryConfiguration", function() { return CustomDeliveryConfiguration; });
28941/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return Message; });
28942/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignSmsMessage", function() { return CampaignSmsMessage; });
28943/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageConfiguration", function() { return MessageConfiguration; });
28944/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Frequency", function() { return Frequency; });
28945/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Schedule", function() { return Schedule; });
28946/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignStatus", function() { return CampaignStatus; });
28947/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignState", function() { return CampaignState; });
28948/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Template", function() { return Template; });
28949/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateConfiguration", function() { return TemplateConfiguration; });
28950/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreatmentResource", function() { return TreatmentResource; });
28951/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignResponse", function() { return CampaignResponse; });
28952/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CampaignsResponse", function() { return CampaignsResponse; });
28953/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelResponse", function() { return ChannelResponse; });
28954/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelsResponse", function() { return ChannelsResponse; });
28955/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictException", function() { return ConflictException; });
28956/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateApplicationRequest", function() { return CreateApplicationRequest; });
28957/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppRequest", function() { return CreateAppRequest; });
28958/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateAppResponse", function() { return CreateAppResponse; });
28959/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForbiddenException", function() { return ForbiddenException; });
28960/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InternalServerErrorException", function() { return InternalServerErrorException; });
28961/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MethodNotAllowedException", function() { return MethodNotAllowedException; });
28962/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotFoundException", function() { return NotFoundException; });
28963/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PayloadTooLargeException", function() { return PayloadTooLargeException; });
28964/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyRequestsException", function() { return TooManyRequestsException; });
28965/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteTreatmentResource", function() { return WriteTreatmentResource; });
28966/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteCampaignRequest", function() { return WriteCampaignRequest; });
28967/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignRequest", function() { return CreateCampaignRequest; });
28968/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateCampaignResponse", function() { return CreateCampaignResponse; });
28969/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateRequest", function() { return EmailTemplateRequest; });
28970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateRequest", function() { return CreateEmailTemplateRequest; });
28971/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateTemplateMessageBody", function() { return CreateTemplateMessageBody; });
28972/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEmailTemplateResponse", function() { return CreateEmailTemplateResponse; });
28973/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobRequest", function() { return ExportJobRequest; });
28974/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobRequest", function() { return CreateExportJobRequest; });
28975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobResource", function() { return ExportJobResource; });
28976/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JobStatus", function() { return JobStatus; });
28977/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobResponse", function() { return ExportJobResponse; });
28978/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateExportJobResponse", function() { return CreateExportJobResponse; });
28979/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Format", function() { return Format; });
28980/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobRequest", function() { return ImportJobRequest; });
28981/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobRequest", function() { return CreateImportJobRequest; });
28982/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobResource", function() { return ImportJobResource; });
28983/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobResponse", function() { return ImportJobResponse; });
28984/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateImportJobResponse", function() { return CreateImportJobResponse; });
28985/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyLimits", function() { return JourneyLimits; });
28986/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneySchedule", function() { return JourneySchedule; });
28987/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventFilter", function() { return EventFilter; });
28988/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStartCondition", function() { return EventStartCondition; });
28989/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StartCondition", function() { return StartCondition; });
28990/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "State", function() { return State; });
28991/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteJourneyRequest", function() { return WriteJourneyRequest; });
28992/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyRequest", function() { return CreateJourneyRequest; });
28993/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyResponse", function() { return JourneyResponse; });
28994/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateJourneyResponse", function() { return CreateJourneyResponse; });
28995/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationTemplate", function() { return DefaultPushNotificationTemplate; });
28996/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateRequest", function() { return PushNotificationTemplateRequest; });
28997/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateRequest", function() { return CreatePushTemplateRequest; });
28998/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreatePushTemplateResponse", function() { return CreatePushTemplateResponse; });
28999/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationShape", function() { return CreateRecommenderConfigurationShape; });
29000/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationRequest", function() { return CreateRecommenderConfigurationRequest; });
29001/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RecommenderConfigurationResponse", function() { return RecommenderConfigurationResponse; });
29002/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateRecommenderConfigurationResponse", function() { return CreateRecommenderConfigurationResponse; });
29003/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentReference", function() { return SegmentReference; });
29004/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SourceType", function() { return SourceType; });
29005/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return Type; });
29006/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentGroup", function() { return SegmentGroup; });
29007/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Include", function() { return Include; });
29008/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentGroupList", function() { return SegmentGroupList; });
29009/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteSegmentRequest", function() { return WriteSegmentRequest; });
29010/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentRequest", function() { return CreateSegmentRequest; });
29011/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentImportResource", function() { return SegmentImportResource; });
29012/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentType", function() { return SegmentType; });
29013/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentResponse", function() { return SegmentResponse; });
29014/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSegmentResponse", function() { return CreateSegmentResponse; });
29015/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateRequest", function() { return SMSTemplateRequest; });
29016/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateRequest", function() { return CreateSmsTemplateRequest; });
29017/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSmsTemplateResponse", function() { return CreateSmsTemplateResponse; });
29018/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateRequest", function() { return VoiceTemplateRequest; });
29019/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateRequest", function() { return CreateVoiceTemplateRequest; });
29020/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateVoiceTemplateResponse", function() { return CreateVoiceTemplateResponse; });
29021/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultMessage", function() { return DefaultMessage; });
29022/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultPushNotificationMessage", function() { return DefaultPushNotificationMessage; });
29023/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelRequest", function() { return DeleteAdmChannelRequest; });
29024/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAdmChannelResponse", function() { return DeleteAdmChannelResponse; });
29025/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelRequest", function() { return DeleteApnsChannelRequest; });
29026/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsChannelResponse", function() { return DeleteApnsChannelResponse; });
29027/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelRequest", function() { return DeleteApnsSandboxChannelRequest; });
29028/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsSandboxChannelResponse", function() { return DeleteApnsSandboxChannelResponse; });
29029/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelRequest", function() { return DeleteApnsVoipChannelRequest; });
29030/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipChannelResponse", function() { return DeleteApnsVoipChannelResponse; });
29031/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelRequest", function() { return DeleteApnsVoipSandboxChannelRequest; });
29032/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteApnsVoipSandboxChannelResponse", function() { return DeleteApnsVoipSandboxChannelResponse; });
29033/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppRequest", function() { return DeleteAppRequest; });
29034/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteAppResponse", function() { return DeleteAppResponse; });
29035/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelRequest", function() { return DeleteBaiduChannelRequest; });
29036/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBaiduChannelResponse", function() { return DeleteBaiduChannelResponse; });
29037/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignRequest", function() { return DeleteCampaignRequest; });
29038/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteCampaignResponse", function() { return DeleteCampaignResponse; });
29039/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelRequest", function() { return DeleteEmailChannelRequest; });
29040/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailChannelResponse", function() { return EmailChannelResponse; });
29041/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailChannelResponse", function() { return DeleteEmailChannelResponse; });
29042/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateRequest", function() { return DeleteEmailTemplateRequest; });
29043/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageBody", function() { return MessageBody; });
29044/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEmailTemplateResponse", function() { return DeleteEmailTemplateResponse; });
29045/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointRequest", function() { return DeleteEndpointRequest; });
29046/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointDemographic", function() { return EndpointDemographic; });
29047/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointLocation", function() { return EndpointLocation; });
29048/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointUser", function() { return EndpointUser; });
29049/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointResponse", function() { return EndpointResponse; });
29050/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEndpointResponse", function() { return DeleteEndpointResponse; });
29051/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamRequest", function() { return DeleteEventStreamRequest; });
29052/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStream", function() { return EventStream; });
29053/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteEventStreamResponse", function() { return DeleteEventStreamResponse; });
29054/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelRequest", function() { return DeleteGcmChannelRequest; });
29055/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GCMChannelResponse", function() { return GCMChannelResponse; });
29056/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteGcmChannelResponse", function() { return DeleteGcmChannelResponse; });
29057/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyRequest", function() { return DeleteJourneyRequest; });
29058/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteJourneyResponse", function() { return DeleteJourneyResponse; });
29059/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateRequest", function() { return DeletePushTemplateRequest; });
29060/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeletePushTemplateResponse", function() { return DeletePushTemplateResponse; });
29061/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationRequest", function() { return DeleteRecommenderConfigurationRequest; });
29062/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteRecommenderConfigurationResponse", function() { return DeleteRecommenderConfigurationResponse; });
29063/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentRequest", function() { return DeleteSegmentRequest; });
29064/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSegmentResponse", function() { return DeleteSegmentResponse; });
29065/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelRequest", function() { return DeleteSmsChannelRequest; });
29066/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSChannelResponse", function() { return SMSChannelResponse; });
29067/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsChannelResponse", function() { return DeleteSmsChannelResponse; });
29068/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateRequest", function() { return DeleteSmsTemplateRequest; });
29069/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteSmsTemplateResponse", function() { return DeleteSmsTemplateResponse; });
29070/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsRequest", function() { return DeleteUserEndpointsRequest; });
29071/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointsResponse", function() { return EndpointsResponse; });
29072/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteUserEndpointsResponse", function() { return DeleteUserEndpointsResponse; });
29073/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelRequest", function() { return DeleteVoiceChannelRequest; });
29074/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelResponse", function() { return VoiceChannelResponse; });
29075/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceChannelResponse", function() { return DeleteVoiceChannelResponse; });
29076/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateRequest", function() { return DeleteVoiceTemplateRequest; });
29077/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteVoiceTemplateResponse", function() { return DeleteVoiceTemplateResponse; });
29078/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeliveryStatus", function() { return DeliveryStatus; });
29079/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RawEmail", function() { return RawEmail; });
29080/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleEmailPart", function() { return SimpleEmailPart; });
29081/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleEmail", function() { return SimpleEmail; });
29082/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailMessage", function() { return EmailMessage; });
29083/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GCMMessage", function() { return GCMMessage; });
29084/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSMessage", function() { return SMSMessage; });
29085/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceMessage", function() { return VoiceMessage; });
29086/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectMessageConfiguration", function() { return DirectMessageConfiguration; });
29087/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailChannelRequest", function() { return EmailChannelRequest; });
29088/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateType", function() { return TemplateType; });
29089/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailTemplateResponse", function() { return EmailTemplateResponse; });
29090/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchItem", function() { return EndpointBatchItem; });
29091/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointBatchRequest", function() { return EndpointBatchRequest; });
29092/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointItemResponse", function() { return EndpointItemResponse; });
29093/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointMessageResult", function() { return EndpointMessageResult; });
29094/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointRequest", function() { return EndpointRequest; });
29095/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EndpointSendConfiguration", function() { return EndpointSendConfiguration; });
29096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Session", function() { return Session; });
29097/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Event", function() { return Event; });
29098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventItemResponse", function() { return EventItemResponse; });
29099/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PublicEndpoint", function() { return PublicEndpoint; });
29100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsBatch", function() { return EventsBatch; });
29101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsRequest", function() { return EventsRequest; });
29102/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemResponse", function() { return ItemResponse; });
29103/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsResponse", function() { return EventsResponse; });
29104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportJobsResponse", function() { return ExportJobsResponse; });
29105/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GCMChannelRequest", function() { return GCMChannelRequest; });
29106/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelRequest", function() { return GetAdmChannelRequest; });
29107/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAdmChannelResponse", function() { return GetAdmChannelResponse; });
29108/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelRequest", function() { return GetApnsChannelRequest; });
29109/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsChannelResponse", function() { return GetApnsChannelResponse; });
29110/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelRequest", function() { return GetApnsSandboxChannelRequest; });
29111/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsSandboxChannelResponse", function() { return GetApnsSandboxChannelResponse; });
29112/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelRequest", function() { return GetApnsVoipChannelRequest; });
29113/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipChannelResponse", function() { return GetApnsVoipChannelResponse; });
29114/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelRequest", function() { return GetApnsVoipSandboxChannelRequest; });
29115/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApnsVoipSandboxChannelResponse", function() { return GetApnsVoipSandboxChannelResponse; });
29116/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppRequest", function() { return GetAppRequest; });
29117/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppResponse", function() { return GetAppResponse; });
29118/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiRequest", function() { return GetApplicationDateRangeKpiRequest; });
29119/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationDateRangeKpiResponse", function() { return GetApplicationDateRangeKpiResponse; });
29120/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsRequest", function() { return GetApplicationSettingsRequest; });
29121/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetApplicationSettingsResponse", function() { return GetApplicationSettingsResponse; });
29122/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsRequest", function() { return GetAppsRequest; });
29123/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetAppsResponse", function() { return GetAppsResponse; });
29124/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelRequest", function() { return GetBaiduChannelRequest; });
29125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetBaiduChannelResponse", function() { return GetBaiduChannelResponse; });
29126/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignRequest", function() { return GetCampaignRequest; });
29127/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignResponse", function() { return GetCampaignResponse; });
29128/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesRequest", function() { return GetCampaignActivitiesRequest; });
29129/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignActivitiesResponse", function() { return GetCampaignActivitiesResponse; });
29130/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiRequest", function() { return GetCampaignDateRangeKpiRequest; });
29131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignDateRangeKpiResponse", function() { return GetCampaignDateRangeKpiResponse; });
29132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsRequest", function() { return GetCampaignsRequest; });
29133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignsResponse", function() { return GetCampaignsResponse; });
29134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionRequest", function() { return GetCampaignVersionRequest; });
29135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionResponse", function() { return GetCampaignVersionResponse; });
29136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsRequest", function() { return GetCampaignVersionsRequest; });
29137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetCampaignVersionsResponse", function() { return GetCampaignVersionsResponse; });
29138/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetChannelsRequest", function() { return GetChannelsRequest; });
29139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetChannelsResponse", function() { return GetChannelsResponse; });
29140/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelRequest", function() { return GetEmailChannelRequest; });
29141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailChannelResponse", function() { return GetEmailChannelResponse; });
29142/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateRequest", function() { return GetEmailTemplateRequest; });
29143/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEmailTemplateResponse", function() { return GetEmailTemplateResponse; });
29144/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointRequest", function() { return GetEndpointRequest; });
29145/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEndpointResponse", function() { return GetEndpointResponse; });
29146/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamRequest", function() { return GetEventStreamRequest; });
29147/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetEventStreamResponse", function() { return GetEventStreamResponse; });
29148/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobRequest", function() { return GetExportJobRequest; });
29149/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobResponse", function() { return GetExportJobResponse; });
29150/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsRequest", function() { return GetExportJobsRequest; });
29151/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetExportJobsResponse", function() { return GetExportJobsResponse; });
29152/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelRequest", function() { return GetGcmChannelRequest; });
29153/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetGcmChannelResponse", function() { return GetGcmChannelResponse; });
29154/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobRequest", function() { return GetImportJobRequest; });
29155/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobResponse", function() { return GetImportJobResponse; });
29156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsRequest", function() { return GetImportJobsRequest; });
29157/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportJobsResponse", function() { return ImportJobsResponse; });
29158/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetImportJobsResponse", function() { return GetImportJobsResponse; });
29159/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyRequest", function() { return GetJourneyRequest; });
29160/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyResponse", function() { return GetJourneyResponse; });
29161/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
29162
29163var __EndpointTypesElement;
29164(function (__EndpointTypesElement) {
29165 __EndpointTypesElement["ADM"] = "ADM";
29166 __EndpointTypesElement["APNS"] = "APNS";
29167 __EndpointTypesElement["APNS_SANDBOX"] = "APNS_SANDBOX";
29168 __EndpointTypesElement["APNS_VOIP"] = "APNS_VOIP";
29169 __EndpointTypesElement["APNS_VOIP_SANDBOX"] = "APNS_VOIP_SANDBOX";
29170 __EndpointTypesElement["BAIDU"] = "BAIDU";
29171 __EndpointTypesElement["CUSTOM"] = "CUSTOM";
29172 __EndpointTypesElement["EMAIL"] = "EMAIL";
29173 __EndpointTypesElement["GCM"] = "GCM";
29174 __EndpointTypesElement["PUSH"] = "PUSH";
29175 __EndpointTypesElement["SMS"] = "SMS";
29176 __EndpointTypesElement["VOICE"] = "VOICE";
29177})(__EndpointTypesElement || (__EndpointTypesElement = {}));
29178var Action;
29179(function (Action) {
29180 Action["DEEP_LINK"] = "DEEP_LINK";
29181 Action["OPEN_APP"] = "OPEN_APP";
29182 Action["URL"] = "URL";
29183})(Action || (Action = {}));
29184var ActivityResponse;
29185(function (ActivityResponse) {
29186 ActivityResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29187})(ActivityResponse || (ActivityResponse = {}));
29188var ActivitiesResponse;
29189(function (ActivitiesResponse) {
29190 ActivitiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29191})(ActivitiesResponse || (ActivitiesResponse = {}));
29192var AttributeType;
29193(function (AttributeType) {
29194 AttributeType["EXCLUSIVE"] = "EXCLUSIVE";
29195 AttributeType["INCLUSIVE"] = "INCLUSIVE";
29196})(AttributeType || (AttributeType = {}));
29197var AttributeDimension;
29198(function (AttributeDimension) {
29199 AttributeDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29200})(AttributeDimension || (AttributeDimension = {}));
29201var DimensionType;
29202(function (DimensionType) {
29203 DimensionType["EXCLUSIVE"] = "EXCLUSIVE";
29204 DimensionType["INCLUSIVE"] = "INCLUSIVE";
29205})(DimensionType || (DimensionType = {}));
29206var SetDimension;
29207(function (SetDimension) {
29208 SetDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29209})(SetDimension || (SetDimension = {}));
29210var MetricDimension;
29211(function (MetricDimension) {
29212 MetricDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29213})(MetricDimension || (MetricDimension = {}));
29214var EventDimensions;
29215(function (EventDimensions) {
29216 EventDimensions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29217})(EventDimensions || (EventDimensions = {}));
29218var EventCondition;
29219(function (EventCondition) {
29220 EventCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29221})(EventCondition || (EventCondition = {}));
29222var SegmentCondition;
29223(function (SegmentCondition) {
29224 SegmentCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29225})(SegmentCondition || (SegmentCondition = {}));
29226var Duration;
29227(function (Duration) {
29228 Duration["DAY_14"] = "DAY_14";
29229 Duration["DAY_30"] = "DAY_30";
29230 Duration["DAY_7"] = "DAY_7";
29231 Duration["HR_24"] = "HR_24";
29232})(Duration || (Duration = {}));
29233var RecencyType;
29234(function (RecencyType) {
29235 RecencyType["ACTIVE"] = "ACTIVE";
29236 RecencyType["INACTIVE"] = "INACTIVE";
29237})(RecencyType || (RecencyType = {}));
29238var RecencyDimension;
29239(function (RecencyDimension) {
29240 RecencyDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29241})(RecencyDimension || (RecencyDimension = {}));
29242var SegmentBehaviors;
29243(function (SegmentBehaviors) {
29244 SegmentBehaviors.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29245})(SegmentBehaviors || (SegmentBehaviors = {}));
29246var SegmentDemographics;
29247(function (SegmentDemographics) {
29248 SegmentDemographics.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29249})(SegmentDemographics || (SegmentDemographics = {}));
29250var GPSCoordinates;
29251(function (GPSCoordinates) {
29252 GPSCoordinates.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29253})(GPSCoordinates || (GPSCoordinates = {}));
29254var GPSPointDimension;
29255(function (GPSPointDimension) {
29256 GPSPointDimension.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29257})(GPSPointDimension || (GPSPointDimension = {}));
29258var SegmentLocation;
29259(function (SegmentLocation) {
29260 SegmentLocation.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29261})(SegmentLocation || (SegmentLocation = {}));
29262var SegmentDimensions;
29263(function (SegmentDimensions) {
29264 SegmentDimensions.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29265})(SegmentDimensions || (SegmentDimensions = {}));
29266var SimpleCondition;
29267(function (SimpleCondition) {
29268 SimpleCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29269})(SimpleCondition || (SimpleCondition = {}));
29270var Operator;
29271(function (Operator) {
29272 Operator["ALL"] = "ALL";
29273 Operator["ANY"] = "ANY";
29274})(Operator || (Operator = {}));
29275var Condition;
29276(function (Condition) {
29277 Condition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29278})(Condition || (Condition = {}));
29279var WaitTime;
29280(function (WaitTime) {
29281 WaitTime.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29282})(WaitTime || (WaitTime = {}));
29283var ConditionalSplitActivity;
29284(function (ConditionalSplitActivity) {
29285 ConditionalSplitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29286})(ConditionalSplitActivity || (ConditionalSplitActivity = {}));
29287var JourneyCustomMessage;
29288(function (JourneyCustomMessage) {
29289 JourneyCustomMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29290})(JourneyCustomMessage || (JourneyCustomMessage = {}));
29291var CustomMessageActivity;
29292(function (CustomMessageActivity) {
29293 CustomMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29294})(CustomMessageActivity || (CustomMessageActivity = {}));
29295var JourneyEmailMessage;
29296(function (JourneyEmailMessage) {
29297 JourneyEmailMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29298})(JourneyEmailMessage || (JourneyEmailMessage = {}));
29299var EmailMessageActivity;
29300(function (EmailMessageActivity) {
29301 EmailMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29302})(EmailMessageActivity || (EmailMessageActivity = {}));
29303var HoldoutActivity;
29304(function (HoldoutActivity) {
29305 HoldoutActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29306})(HoldoutActivity || (HoldoutActivity = {}));
29307var MultiConditionalBranch;
29308(function (MultiConditionalBranch) {
29309 MultiConditionalBranch.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29310})(MultiConditionalBranch || (MultiConditionalBranch = {}));
29311var MultiConditionalSplitActivity;
29312(function (MultiConditionalSplitActivity) {
29313 MultiConditionalSplitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29314})(MultiConditionalSplitActivity || (MultiConditionalSplitActivity = {}));
29315var JourneyPushMessage;
29316(function (JourneyPushMessage) {
29317 JourneyPushMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29318})(JourneyPushMessage || (JourneyPushMessage = {}));
29319var PushMessageActivity;
29320(function (PushMessageActivity) {
29321 PushMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29322})(PushMessageActivity || (PushMessageActivity = {}));
29323var RandomSplitEntry;
29324(function (RandomSplitEntry) {
29325 RandomSplitEntry.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29326})(RandomSplitEntry || (RandomSplitEntry = {}));
29327var RandomSplitActivity;
29328(function (RandomSplitActivity) {
29329 RandomSplitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29330})(RandomSplitActivity || (RandomSplitActivity = {}));
29331var MessageType;
29332(function (MessageType) {
29333 MessageType["PROMOTIONAL"] = "PROMOTIONAL";
29334 MessageType["TRANSACTIONAL"] = "TRANSACTIONAL";
29335})(MessageType || (MessageType = {}));
29336var JourneySMSMessage;
29337(function (JourneySMSMessage) {
29338 JourneySMSMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29339})(JourneySMSMessage || (JourneySMSMessage = {}));
29340var SMSMessageActivity;
29341(function (SMSMessageActivity) {
29342 SMSMessageActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29343})(SMSMessageActivity || (SMSMessageActivity = {}));
29344var WaitActivity;
29345(function (WaitActivity) {
29346 WaitActivity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29347})(WaitActivity || (WaitActivity = {}));
29348var Activity;
29349(function (Activity) {
29350 Activity.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29351})(Activity || (Activity = {}));
29352var ChannelType;
29353(function (ChannelType) {
29354 ChannelType["ADM"] = "ADM";
29355 ChannelType["APNS"] = "APNS";
29356 ChannelType["APNS_SANDBOX"] = "APNS_SANDBOX";
29357 ChannelType["APNS_VOIP"] = "APNS_VOIP";
29358 ChannelType["APNS_VOIP_SANDBOX"] = "APNS_VOIP_SANDBOX";
29359 ChannelType["BAIDU"] = "BAIDU";
29360 ChannelType["CUSTOM"] = "CUSTOM";
29361 ChannelType["EMAIL"] = "EMAIL";
29362 ChannelType["GCM"] = "GCM";
29363 ChannelType["PUSH"] = "PUSH";
29364 ChannelType["SMS"] = "SMS";
29365 ChannelType["VOICE"] = "VOICE";
29366})(ChannelType || (ChannelType = {}));
29367var AddressConfiguration;
29368(function (AddressConfiguration) {
29369 AddressConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29370})(AddressConfiguration || (AddressConfiguration = {}));
29371var ADMChannelRequest;
29372(function (ADMChannelRequest) {
29373 ADMChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29374})(ADMChannelRequest || (ADMChannelRequest = {}));
29375var ADMChannelResponse;
29376(function (ADMChannelResponse) {
29377 ADMChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29378})(ADMChannelResponse || (ADMChannelResponse = {}));
29379var ADMMessage;
29380(function (ADMMessage) {
29381 ADMMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29382})(ADMMessage || (ADMMessage = {}));
29383var AndroidPushNotificationTemplate;
29384(function (AndroidPushNotificationTemplate) {
29385 AndroidPushNotificationTemplate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29386})(AndroidPushNotificationTemplate || (AndroidPushNotificationTemplate = {}));
29387var APNSChannelRequest;
29388(function (APNSChannelRequest) {
29389 APNSChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29390})(APNSChannelRequest || (APNSChannelRequest = {}));
29391var APNSChannelResponse;
29392(function (APNSChannelResponse) {
29393 APNSChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29394})(APNSChannelResponse || (APNSChannelResponse = {}));
29395var APNSMessage;
29396(function (APNSMessage) {
29397 APNSMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29398})(APNSMessage || (APNSMessage = {}));
29399var APNSPushNotificationTemplate;
29400(function (APNSPushNotificationTemplate) {
29401 APNSPushNotificationTemplate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29402})(APNSPushNotificationTemplate || (APNSPushNotificationTemplate = {}));
29403var APNSSandboxChannelRequest;
29404(function (APNSSandboxChannelRequest) {
29405 APNSSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29406})(APNSSandboxChannelRequest || (APNSSandboxChannelRequest = {}));
29407var APNSSandboxChannelResponse;
29408(function (APNSSandboxChannelResponse) {
29409 APNSSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29410})(APNSSandboxChannelResponse || (APNSSandboxChannelResponse = {}));
29411var APNSVoipChannelRequest;
29412(function (APNSVoipChannelRequest) {
29413 APNSVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29414})(APNSVoipChannelRequest || (APNSVoipChannelRequest = {}));
29415var APNSVoipChannelResponse;
29416(function (APNSVoipChannelResponse) {
29417 APNSVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29418})(APNSVoipChannelResponse || (APNSVoipChannelResponse = {}));
29419var APNSVoipSandboxChannelRequest;
29420(function (APNSVoipSandboxChannelRequest) {
29421 APNSVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29422})(APNSVoipSandboxChannelRequest || (APNSVoipSandboxChannelRequest = {}));
29423var APNSVoipSandboxChannelResponse;
29424(function (APNSVoipSandboxChannelResponse) {
29425 APNSVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29426})(APNSVoipSandboxChannelResponse || (APNSVoipSandboxChannelResponse = {}));
29427var ResultRowValue;
29428(function (ResultRowValue) {
29429 ResultRowValue.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29430})(ResultRowValue || (ResultRowValue = {}));
29431var ResultRow;
29432(function (ResultRow) {
29433 ResultRow.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29434})(ResultRow || (ResultRow = {}));
29435var BaseKpiResult;
29436(function (BaseKpiResult) {
29437 BaseKpiResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29438})(BaseKpiResult || (BaseKpiResult = {}));
29439var ApplicationDateRangeKpiResponse;
29440(function (ApplicationDateRangeKpiResponse) {
29441 ApplicationDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29442})(ApplicationDateRangeKpiResponse || (ApplicationDateRangeKpiResponse = {}));
29443var ApplicationResponse;
29444(function (ApplicationResponse) {
29445 ApplicationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29446})(ApplicationResponse || (ApplicationResponse = {}));
29447var Mode;
29448(function (Mode) {
29449 Mode["DELIVERY"] = "DELIVERY";
29450 Mode["FILTER"] = "FILTER";
29451})(Mode || (Mode = {}));
29452var CampaignHook;
29453(function (CampaignHook) {
29454 CampaignHook.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29455})(CampaignHook || (CampaignHook = {}));
29456var CampaignLimits;
29457(function (CampaignLimits) {
29458 CampaignLimits.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29459})(CampaignLimits || (CampaignLimits = {}));
29460var QuietTime;
29461(function (QuietTime) {
29462 QuietTime.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29463})(QuietTime || (QuietTime = {}));
29464var ApplicationSettingsResource;
29465(function (ApplicationSettingsResource) {
29466 ApplicationSettingsResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29467})(ApplicationSettingsResource || (ApplicationSettingsResource = {}));
29468var ApplicationsResponse;
29469(function (ApplicationsResponse) {
29470 ApplicationsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29471})(ApplicationsResponse || (ApplicationsResponse = {}));
29472var AttributesResource;
29473(function (AttributesResource) {
29474 AttributesResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29475})(AttributesResource || (AttributesResource = {}));
29476var BadRequestException;
29477(function (BadRequestException) {
29478 BadRequestException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29479})(BadRequestException || (BadRequestException = {}));
29480var BaiduChannelRequest;
29481(function (BaiduChannelRequest) {
29482 BaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29483})(BaiduChannelRequest || (BaiduChannelRequest = {}));
29484var BaiduChannelResponse;
29485(function (BaiduChannelResponse) {
29486 BaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29487})(BaiduChannelResponse || (BaiduChannelResponse = {}));
29488var BaiduMessage;
29489(function (BaiduMessage) {
29490 BaiduMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29491})(BaiduMessage || (BaiduMessage = {}));
29492var CampaignCustomMessage;
29493(function (CampaignCustomMessage) {
29494 CampaignCustomMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29495})(CampaignCustomMessage || (CampaignCustomMessage = {}));
29496var CampaignDateRangeKpiResponse;
29497(function (CampaignDateRangeKpiResponse) {
29498 CampaignDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29499})(CampaignDateRangeKpiResponse || (CampaignDateRangeKpiResponse = {}));
29500var CampaignEmailMessage;
29501(function (CampaignEmailMessage) {
29502 CampaignEmailMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29503})(CampaignEmailMessage || (CampaignEmailMessage = {}));
29504var FilterType;
29505(function (FilterType) {
29506 FilterType["ENDPOINT"] = "ENDPOINT";
29507 FilterType["SYSTEM"] = "SYSTEM";
29508})(FilterType || (FilterType = {}));
29509var CampaignEventFilter;
29510(function (CampaignEventFilter) {
29511 CampaignEventFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29512})(CampaignEventFilter || (CampaignEventFilter = {}));
29513var CustomDeliveryConfiguration;
29514(function (CustomDeliveryConfiguration) {
29515 CustomDeliveryConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29516})(CustomDeliveryConfiguration || (CustomDeliveryConfiguration = {}));
29517var Message;
29518(function (Message) {
29519 Message.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29520})(Message || (Message = {}));
29521var CampaignSmsMessage;
29522(function (CampaignSmsMessage) {
29523 CampaignSmsMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29524})(CampaignSmsMessage || (CampaignSmsMessage = {}));
29525var MessageConfiguration;
29526(function (MessageConfiguration) {
29527 MessageConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29528})(MessageConfiguration || (MessageConfiguration = {}));
29529var Frequency;
29530(function (Frequency) {
29531 Frequency["DAILY"] = "DAILY";
29532 Frequency["EVENT"] = "EVENT";
29533 Frequency["HOURLY"] = "HOURLY";
29534 Frequency["MONTHLY"] = "MONTHLY";
29535 Frequency["ONCE"] = "ONCE";
29536 Frequency["WEEKLY"] = "WEEKLY";
29537})(Frequency || (Frequency = {}));
29538var Schedule;
29539(function (Schedule) {
29540 Schedule.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29541})(Schedule || (Schedule = {}));
29542var CampaignStatus;
29543(function (CampaignStatus) {
29544 CampaignStatus["COMPLETED"] = "COMPLETED";
29545 CampaignStatus["DELETED"] = "DELETED";
29546 CampaignStatus["EXECUTING"] = "EXECUTING";
29547 CampaignStatus["INVALID"] = "INVALID";
29548 CampaignStatus["PAUSED"] = "PAUSED";
29549 CampaignStatus["PENDING_NEXT_RUN"] = "PENDING_NEXT_RUN";
29550 CampaignStatus["SCHEDULED"] = "SCHEDULED";
29551})(CampaignStatus || (CampaignStatus = {}));
29552var CampaignState;
29553(function (CampaignState) {
29554 CampaignState.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29555})(CampaignState || (CampaignState = {}));
29556var Template;
29557(function (Template) {
29558 Template.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29559})(Template || (Template = {}));
29560var TemplateConfiguration;
29561(function (TemplateConfiguration) {
29562 TemplateConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29563})(TemplateConfiguration || (TemplateConfiguration = {}));
29564var TreatmentResource;
29565(function (TreatmentResource) {
29566 TreatmentResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29567})(TreatmentResource || (TreatmentResource = {}));
29568var CampaignResponse;
29569(function (CampaignResponse) {
29570 CampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29571})(CampaignResponse || (CampaignResponse = {}));
29572var CampaignsResponse;
29573(function (CampaignsResponse) {
29574 CampaignsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29575})(CampaignsResponse || (CampaignsResponse = {}));
29576var ChannelResponse;
29577(function (ChannelResponse) {
29578 ChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29579})(ChannelResponse || (ChannelResponse = {}));
29580var ChannelsResponse;
29581(function (ChannelsResponse) {
29582 ChannelsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29583})(ChannelsResponse || (ChannelsResponse = {}));
29584var ConflictException;
29585(function (ConflictException) {
29586 ConflictException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29587})(ConflictException || (ConflictException = {}));
29588var CreateApplicationRequest;
29589(function (CreateApplicationRequest) {
29590 CreateApplicationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29591})(CreateApplicationRequest || (CreateApplicationRequest = {}));
29592var CreateAppRequest;
29593(function (CreateAppRequest) {
29594 CreateAppRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29595})(CreateAppRequest || (CreateAppRequest = {}));
29596var CreateAppResponse;
29597(function (CreateAppResponse) {
29598 CreateAppResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29599})(CreateAppResponse || (CreateAppResponse = {}));
29600var ForbiddenException;
29601(function (ForbiddenException) {
29602 ForbiddenException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29603})(ForbiddenException || (ForbiddenException = {}));
29604var InternalServerErrorException;
29605(function (InternalServerErrorException) {
29606 InternalServerErrorException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29607})(InternalServerErrorException || (InternalServerErrorException = {}));
29608var MethodNotAllowedException;
29609(function (MethodNotAllowedException) {
29610 MethodNotAllowedException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29611})(MethodNotAllowedException || (MethodNotAllowedException = {}));
29612var NotFoundException;
29613(function (NotFoundException) {
29614 NotFoundException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29615})(NotFoundException || (NotFoundException = {}));
29616var PayloadTooLargeException;
29617(function (PayloadTooLargeException) {
29618 PayloadTooLargeException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29619})(PayloadTooLargeException || (PayloadTooLargeException = {}));
29620var TooManyRequestsException;
29621(function (TooManyRequestsException) {
29622 TooManyRequestsException.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29623})(TooManyRequestsException || (TooManyRequestsException = {}));
29624var WriteTreatmentResource;
29625(function (WriteTreatmentResource) {
29626 WriteTreatmentResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29627})(WriteTreatmentResource || (WriteTreatmentResource = {}));
29628var WriteCampaignRequest;
29629(function (WriteCampaignRequest) {
29630 WriteCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29631})(WriteCampaignRequest || (WriteCampaignRequest = {}));
29632var CreateCampaignRequest;
29633(function (CreateCampaignRequest) {
29634 CreateCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29635})(CreateCampaignRequest || (CreateCampaignRequest = {}));
29636var CreateCampaignResponse;
29637(function (CreateCampaignResponse) {
29638 CreateCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29639})(CreateCampaignResponse || (CreateCampaignResponse = {}));
29640var EmailTemplateRequest;
29641(function (EmailTemplateRequest) {
29642 EmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29643})(EmailTemplateRequest || (EmailTemplateRequest = {}));
29644var CreateEmailTemplateRequest;
29645(function (CreateEmailTemplateRequest) {
29646 CreateEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29647})(CreateEmailTemplateRequest || (CreateEmailTemplateRequest = {}));
29648var CreateTemplateMessageBody;
29649(function (CreateTemplateMessageBody) {
29650 CreateTemplateMessageBody.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29651})(CreateTemplateMessageBody || (CreateTemplateMessageBody = {}));
29652var CreateEmailTemplateResponse;
29653(function (CreateEmailTemplateResponse) {
29654 CreateEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29655})(CreateEmailTemplateResponse || (CreateEmailTemplateResponse = {}));
29656var ExportJobRequest;
29657(function (ExportJobRequest) {
29658 ExportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29659})(ExportJobRequest || (ExportJobRequest = {}));
29660var CreateExportJobRequest;
29661(function (CreateExportJobRequest) {
29662 CreateExportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29663})(CreateExportJobRequest || (CreateExportJobRequest = {}));
29664var ExportJobResource;
29665(function (ExportJobResource) {
29666 ExportJobResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29667})(ExportJobResource || (ExportJobResource = {}));
29668var JobStatus;
29669(function (JobStatus) {
29670 JobStatus["COMPLETED"] = "COMPLETED";
29671 JobStatus["COMPLETING"] = "COMPLETING";
29672 JobStatus["CREATED"] = "CREATED";
29673 JobStatus["FAILED"] = "FAILED";
29674 JobStatus["FAILING"] = "FAILING";
29675 JobStatus["INITIALIZING"] = "INITIALIZING";
29676 JobStatus["PENDING_JOB"] = "PENDING_JOB";
29677 JobStatus["PREPARING_FOR_INITIALIZATION"] = "PREPARING_FOR_INITIALIZATION";
29678 JobStatus["PROCESSING"] = "PROCESSING";
29679})(JobStatus || (JobStatus = {}));
29680var ExportJobResponse;
29681(function (ExportJobResponse) {
29682 ExportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29683})(ExportJobResponse || (ExportJobResponse = {}));
29684var CreateExportJobResponse;
29685(function (CreateExportJobResponse) {
29686 CreateExportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29687})(CreateExportJobResponse || (CreateExportJobResponse = {}));
29688var Format;
29689(function (Format) {
29690 Format["CSV"] = "CSV";
29691 Format["JSON"] = "JSON";
29692})(Format || (Format = {}));
29693var ImportJobRequest;
29694(function (ImportJobRequest) {
29695 ImportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29696})(ImportJobRequest || (ImportJobRequest = {}));
29697var CreateImportJobRequest;
29698(function (CreateImportJobRequest) {
29699 CreateImportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29700})(CreateImportJobRequest || (CreateImportJobRequest = {}));
29701var ImportJobResource;
29702(function (ImportJobResource) {
29703 ImportJobResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29704})(ImportJobResource || (ImportJobResource = {}));
29705var ImportJobResponse;
29706(function (ImportJobResponse) {
29707 ImportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29708})(ImportJobResponse || (ImportJobResponse = {}));
29709var CreateImportJobResponse;
29710(function (CreateImportJobResponse) {
29711 CreateImportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29712})(CreateImportJobResponse || (CreateImportJobResponse = {}));
29713var JourneyLimits;
29714(function (JourneyLimits) {
29715 JourneyLimits.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29716})(JourneyLimits || (JourneyLimits = {}));
29717var JourneySchedule;
29718(function (JourneySchedule) {
29719 JourneySchedule.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29720})(JourneySchedule || (JourneySchedule = {}));
29721var EventFilter;
29722(function (EventFilter) {
29723 EventFilter.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29724})(EventFilter || (EventFilter = {}));
29725var EventStartCondition;
29726(function (EventStartCondition) {
29727 EventStartCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29728})(EventStartCondition || (EventStartCondition = {}));
29729var StartCondition;
29730(function (StartCondition) {
29731 StartCondition.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29732})(StartCondition || (StartCondition = {}));
29733var State;
29734(function (State) {
29735 State["ACTIVE"] = "ACTIVE";
29736 State["CANCELLED"] = "CANCELLED";
29737 State["CLOSED"] = "CLOSED";
29738 State["COMPLETED"] = "COMPLETED";
29739 State["DRAFT"] = "DRAFT";
29740})(State || (State = {}));
29741var WriteJourneyRequest;
29742(function (WriteJourneyRequest) {
29743 WriteJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29744})(WriteJourneyRequest || (WriteJourneyRequest = {}));
29745var CreateJourneyRequest;
29746(function (CreateJourneyRequest) {
29747 CreateJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29748})(CreateJourneyRequest || (CreateJourneyRequest = {}));
29749var JourneyResponse;
29750(function (JourneyResponse) {
29751 JourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29752})(JourneyResponse || (JourneyResponse = {}));
29753var CreateJourneyResponse;
29754(function (CreateJourneyResponse) {
29755 CreateJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29756})(CreateJourneyResponse || (CreateJourneyResponse = {}));
29757var DefaultPushNotificationTemplate;
29758(function (DefaultPushNotificationTemplate) {
29759 DefaultPushNotificationTemplate.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29760})(DefaultPushNotificationTemplate || (DefaultPushNotificationTemplate = {}));
29761var PushNotificationTemplateRequest;
29762(function (PushNotificationTemplateRequest) {
29763 PushNotificationTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29764})(PushNotificationTemplateRequest || (PushNotificationTemplateRequest = {}));
29765var CreatePushTemplateRequest;
29766(function (CreatePushTemplateRequest) {
29767 CreatePushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29768})(CreatePushTemplateRequest || (CreatePushTemplateRequest = {}));
29769var CreatePushTemplateResponse;
29770(function (CreatePushTemplateResponse) {
29771 CreatePushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29772})(CreatePushTemplateResponse || (CreatePushTemplateResponse = {}));
29773var CreateRecommenderConfigurationShape;
29774(function (CreateRecommenderConfigurationShape) {
29775 CreateRecommenderConfigurationShape.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29776})(CreateRecommenderConfigurationShape || (CreateRecommenderConfigurationShape = {}));
29777var CreateRecommenderConfigurationRequest;
29778(function (CreateRecommenderConfigurationRequest) {
29779 CreateRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29780})(CreateRecommenderConfigurationRequest || (CreateRecommenderConfigurationRequest = {}));
29781var RecommenderConfigurationResponse;
29782(function (RecommenderConfigurationResponse) {
29783 RecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29784})(RecommenderConfigurationResponse || (RecommenderConfigurationResponse = {}));
29785var CreateRecommenderConfigurationResponse;
29786(function (CreateRecommenderConfigurationResponse) {
29787 CreateRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29788})(CreateRecommenderConfigurationResponse || (CreateRecommenderConfigurationResponse = {}));
29789var SegmentReference;
29790(function (SegmentReference) {
29791 SegmentReference.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29792})(SegmentReference || (SegmentReference = {}));
29793var SourceType;
29794(function (SourceType) {
29795 SourceType["ALL"] = "ALL";
29796 SourceType["ANY"] = "ANY";
29797 SourceType["NONE"] = "NONE";
29798})(SourceType || (SourceType = {}));
29799var Type;
29800(function (Type) {
29801 Type["ALL"] = "ALL";
29802 Type["ANY"] = "ANY";
29803 Type["NONE"] = "NONE";
29804})(Type || (Type = {}));
29805var SegmentGroup;
29806(function (SegmentGroup) {
29807 SegmentGroup.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29808})(SegmentGroup || (SegmentGroup = {}));
29809var Include;
29810(function (Include) {
29811 Include["ALL"] = "ALL";
29812 Include["ANY"] = "ANY";
29813 Include["NONE"] = "NONE";
29814})(Include || (Include = {}));
29815var SegmentGroupList;
29816(function (SegmentGroupList) {
29817 SegmentGroupList.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29818})(SegmentGroupList || (SegmentGroupList = {}));
29819var WriteSegmentRequest;
29820(function (WriteSegmentRequest) {
29821 WriteSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29822})(WriteSegmentRequest || (WriteSegmentRequest = {}));
29823var CreateSegmentRequest;
29824(function (CreateSegmentRequest) {
29825 CreateSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29826})(CreateSegmentRequest || (CreateSegmentRequest = {}));
29827var SegmentImportResource;
29828(function (SegmentImportResource) {
29829 SegmentImportResource.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29830})(SegmentImportResource || (SegmentImportResource = {}));
29831var SegmentType;
29832(function (SegmentType) {
29833 SegmentType["DIMENSIONAL"] = "DIMENSIONAL";
29834 SegmentType["IMPORT"] = "IMPORT";
29835})(SegmentType || (SegmentType = {}));
29836var SegmentResponse;
29837(function (SegmentResponse) {
29838 SegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29839})(SegmentResponse || (SegmentResponse = {}));
29840var CreateSegmentResponse;
29841(function (CreateSegmentResponse) {
29842 CreateSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29843})(CreateSegmentResponse || (CreateSegmentResponse = {}));
29844var SMSTemplateRequest;
29845(function (SMSTemplateRequest) {
29846 SMSTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29847})(SMSTemplateRequest || (SMSTemplateRequest = {}));
29848var CreateSmsTemplateRequest;
29849(function (CreateSmsTemplateRequest) {
29850 CreateSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29851})(CreateSmsTemplateRequest || (CreateSmsTemplateRequest = {}));
29852var CreateSmsTemplateResponse;
29853(function (CreateSmsTemplateResponse) {
29854 CreateSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29855})(CreateSmsTemplateResponse || (CreateSmsTemplateResponse = {}));
29856var VoiceTemplateRequest;
29857(function (VoiceTemplateRequest) {
29858 VoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29859})(VoiceTemplateRequest || (VoiceTemplateRequest = {}));
29860var CreateVoiceTemplateRequest;
29861(function (CreateVoiceTemplateRequest) {
29862 CreateVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29863})(CreateVoiceTemplateRequest || (CreateVoiceTemplateRequest = {}));
29864var CreateVoiceTemplateResponse;
29865(function (CreateVoiceTemplateResponse) {
29866 CreateVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29867})(CreateVoiceTemplateResponse || (CreateVoiceTemplateResponse = {}));
29868var DefaultMessage;
29869(function (DefaultMessage) {
29870 DefaultMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29871})(DefaultMessage || (DefaultMessage = {}));
29872var DefaultPushNotificationMessage;
29873(function (DefaultPushNotificationMessage) {
29874 DefaultPushNotificationMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29875})(DefaultPushNotificationMessage || (DefaultPushNotificationMessage = {}));
29876var DeleteAdmChannelRequest;
29877(function (DeleteAdmChannelRequest) {
29878 DeleteAdmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29879})(DeleteAdmChannelRequest || (DeleteAdmChannelRequest = {}));
29880var DeleteAdmChannelResponse;
29881(function (DeleteAdmChannelResponse) {
29882 DeleteAdmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29883})(DeleteAdmChannelResponse || (DeleteAdmChannelResponse = {}));
29884var DeleteApnsChannelRequest;
29885(function (DeleteApnsChannelRequest) {
29886 DeleteApnsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29887})(DeleteApnsChannelRequest || (DeleteApnsChannelRequest = {}));
29888var DeleteApnsChannelResponse;
29889(function (DeleteApnsChannelResponse) {
29890 DeleteApnsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29891})(DeleteApnsChannelResponse || (DeleteApnsChannelResponse = {}));
29892var DeleteApnsSandboxChannelRequest;
29893(function (DeleteApnsSandboxChannelRequest) {
29894 DeleteApnsSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29895})(DeleteApnsSandboxChannelRequest || (DeleteApnsSandboxChannelRequest = {}));
29896var DeleteApnsSandboxChannelResponse;
29897(function (DeleteApnsSandboxChannelResponse) {
29898 DeleteApnsSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29899})(DeleteApnsSandboxChannelResponse || (DeleteApnsSandboxChannelResponse = {}));
29900var DeleteApnsVoipChannelRequest;
29901(function (DeleteApnsVoipChannelRequest) {
29902 DeleteApnsVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29903})(DeleteApnsVoipChannelRequest || (DeleteApnsVoipChannelRequest = {}));
29904var DeleteApnsVoipChannelResponse;
29905(function (DeleteApnsVoipChannelResponse) {
29906 DeleteApnsVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29907})(DeleteApnsVoipChannelResponse || (DeleteApnsVoipChannelResponse = {}));
29908var DeleteApnsVoipSandboxChannelRequest;
29909(function (DeleteApnsVoipSandboxChannelRequest) {
29910 DeleteApnsVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29911})(DeleteApnsVoipSandboxChannelRequest || (DeleteApnsVoipSandboxChannelRequest = {}));
29912var DeleteApnsVoipSandboxChannelResponse;
29913(function (DeleteApnsVoipSandboxChannelResponse) {
29914 DeleteApnsVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29915})(DeleteApnsVoipSandboxChannelResponse || (DeleteApnsVoipSandboxChannelResponse = {}));
29916var DeleteAppRequest;
29917(function (DeleteAppRequest) {
29918 DeleteAppRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29919})(DeleteAppRequest || (DeleteAppRequest = {}));
29920var DeleteAppResponse;
29921(function (DeleteAppResponse) {
29922 DeleteAppResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29923})(DeleteAppResponse || (DeleteAppResponse = {}));
29924var DeleteBaiduChannelRequest;
29925(function (DeleteBaiduChannelRequest) {
29926 DeleteBaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29927})(DeleteBaiduChannelRequest || (DeleteBaiduChannelRequest = {}));
29928var DeleteBaiduChannelResponse;
29929(function (DeleteBaiduChannelResponse) {
29930 DeleteBaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29931})(DeleteBaiduChannelResponse || (DeleteBaiduChannelResponse = {}));
29932var DeleteCampaignRequest;
29933(function (DeleteCampaignRequest) {
29934 DeleteCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29935})(DeleteCampaignRequest || (DeleteCampaignRequest = {}));
29936var DeleteCampaignResponse;
29937(function (DeleteCampaignResponse) {
29938 DeleteCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29939})(DeleteCampaignResponse || (DeleteCampaignResponse = {}));
29940var DeleteEmailChannelRequest;
29941(function (DeleteEmailChannelRequest) {
29942 DeleteEmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29943})(DeleteEmailChannelRequest || (DeleteEmailChannelRequest = {}));
29944var EmailChannelResponse;
29945(function (EmailChannelResponse) {
29946 EmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29947})(EmailChannelResponse || (EmailChannelResponse = {}));
29948var DeleteEmailChannelResponse;
29949(function (DeleteEmailChannelResponse) {
29950 DeleteEmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29951})(DeleteEmailChannelResponse || (DeleteEmailChannelResponse = {}));
29952var DeleteEmailTemplateRequest;
29953(function (DeleteEmailTemplateRequest) {
29954 DeleteEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29955})(DeleteEmailTemplateRequest || (DeleteEmailTemplateRequest = {}));
29956var MessageBody;
29957(function (MessageBody) {
29958 MessageBody.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29959})(MessageBody || (MessageBody = {}));
29960var DeleteEmailTemplateResponse;
29961(function (DeleteEmailTemplateResponse) {
29962 DeleteEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29963})(DeleteEmailTemplateResponse || (DeleteEmailTemplateResponse = {}));
29964var DeleteEndpointRequest;
29965(function (DeleteEndpointRequest) {
29966 DeleteEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29967})(DeleteEndpointRequest || (DeleteEndpointRequest = {}));
29968var EndpointDemographic;
29969(function (EndpointDemographic) {
29970 EndpointDemographic.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29971})(EndpointDemographic || (EndpointDemographic = {}));
29972var EndpointLocation;
29973(function (EndpointLocation) {
29974 EndpointLocation.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29975})(EndpointLocation || (EndpointLocation = {}));
29976var EndpointUser;
29977(function (EndpointUser) {
29978 EndpointUser.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29979})(EndpointUser || (EndpointUser = {}));
29980var EndpointResponse;
29981(function (EndpointResponse) {
29982 EndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29983})(EndpointResponse || (EndpointResponse = {}));
29984var DeleteEndpointResponse;
29985(function (DeleteEndpointResponse) {
29986 DeleteEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29987})(DeleteEndpointResponse || (DeleteEndpointResponse = {}));
29988var DeleteEventStreamRequest;
29989(function (DeleteEventStreamRequest) {
29990 DeleteEventStreamRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29991})(DeleteEventStreamRequest || (DeleteEventStreamRequest = {}));
29992var EventStream;
29993(function (EventStream) {
29994 EventStream.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29995})(EventStream || (EventStream = {}));
29996var DeleteEventStreamResponse;
29997(function (DeleteEventStreamResponse) {
29998 DeleteEventStreamResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
29999})(DeleteEventStreamResponse || (DeleteEventStreamResponse = {}));
30000var DeleteGcmChannelRequest;
30001(function (DeleteGcmChannelRequest) {
30002 DeleteGcmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30003})(DeleteGcmChannelRequest || (DeleteGcmChannelRequest = {}));
30004var GCMChannelResponse;
30005(function (GCMChannelResponse) {
30006 GCMChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30007})(GCMChannelResponse || (GCMChannelResponse = {}));
30008var DeleteGcmChannelResponse;
30009(function (DeleteGcmChannelResponse) {
30010 DeleteGcmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30011})(DeleteGcmChannelResponse || (DeleteGcmChannelResponse = {}));
30012var DeleteJourneyRequest;
30013(function (DeleteJourneyRequest) {
30014 DeleteJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30015})(DeleteJourneyRequest || (DeleteJourneyRequest = {}));
30016var DeleteJourneyResponse;
30017(function (DeleteJourneyResponse) {
30018 DeleteJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30019})(DeleteJourneyResponse || (DeleteJourneyResponse = {}));
30020var DeletePushTemplateRequest;
30021(function (DeletePushTemplateRequest) {
30022 DeletePushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30023})(DeletePushTemplateRequest || (DeletePushTemplateRequest = {}));
30024var DeletePushTemplateResponse;
30025(function (DeletePushTemplateResponse) {
30026 DeletePushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30027})(DeletePushTemplateResponse || (DeletePushTemplateResponse = {}));
30028var DeleteRecommenderConfigurationRequest;
30029(function (DeleteRecommenderConfigurationRequest) {
30030 DeleteRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30031})(DeleteRecommenderConfigurationRequest || (DeleteRecommenderConfigurationRequest = {}));
30032var DeleteRecommenderConfigurationResponse;
30033(function (DeleteRecommenderConfigurationResponse) {
30034 DeleteRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30035})(DeleteRecommenderConfigurationResponse || (DeleteRecommenderConfigurationResponse = {}));
30036var DeleteSegmentRequest;
30037(function (DeleteSegmentRequest) {
30038 DeleteSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30039})(DeleteSegmentRequest || (DeleteSegmentRequest = {}));
30040var DeleteSegmentResponse;
30041(function (DeleteSegmentResponse) {
30042 DeleteSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30043})(DeleteSegmentResponse || (DeleteSegmentResponse = {}));
30044var DeleteSmsChannelRequest;
30045(function (DeleteSmsChannelRequest) {
30046 DeleteSmsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30047})(DeleteSmsChannelRequest || (DeleteSmsChannelRequest = {}));
30048var SMSChannelResponse;
30049(function (SMSChannelResponse) {
30050 SMSChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30051})(SMSChannelResponse || (SMSChannelResponse = {}));
30052var DeleteSmsChannelResponse;
30053(function (DeleteSmsChannelResponse) {
30054 DeleteSmsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30055})(DeleteSmsChannelResponse || (DeleteSmsChannelResponse = {}));
30056var DeleteSmsTemplateRequest;
30057(function (DeleteSmsTemplateRequest) {
30058 DeleteSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30059})(DeleteSmsTemplateRequest || (DeleteSmsTemplateRequest = {}));
30060var DeleteSmsTemplateResponse;
30061(function (DeleteSmsTemplateResponse) {
30062 DeleteSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30063})(DeleteSmsTemplateResponse || (DeleteSmsTemplateResponse = {}));
30064var DeleteUserEndpointsRequest;
30065(function (DeleteUserEndpointsRequest) {
30066 DeleteUserEndpointsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30067})(DeleteUserEndpointsRequest || (DeleteUserEndpointsRequest = {}));
30068var EndpointsResponse;
30069(function (EndpointsResponse) {
30070 EndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30071})(EndpointsResponse || (EndpointsResponse = {}));
30072var DeleteUserEndpointsResponse;
30073(function (DeleteUserEndpointsResponse) {
30074 DeleteUserEndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30075})(DeleteUserEndpointsResponse || (DeleteUserEndpointsResponse = {}));
30076var DeleteVoiceChannelRequest;
30077(function (DeleteVoiceChannelRequest) {
30078 DeleteVoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30079})(DeleteVoiceChannelRequest || (DeleteVoiceChannelRequest = {}));
30080var VoiceChannelResponse;
30081(function (VoiceChannelResponse) {
30082 VoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30083})(VoiceChannelResponse || (VoiceChannelResponse = {}));
30084var DeleteVoiceChannelResponse;
30085(function (DeleteVoiceChannelResponse) {
30086 DeleteVoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30087})(DeleteVoiceChannelResponse || (DeleteVoiceChannelResponse = {}));
30088var DeleteVoiceTemplateRequest;
30089(function (DeleteVoiceTemplateRequest) {
30090 DeleteVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30091})(DeleteVoiceTemplateRequest || (DeleteVoiceTemplateRequest = {}));
30092var DeleteVoiceTemplateResponse;
30093(function (DeleteVoiceTemplateResponse) {
30094 DeleteVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30095})(DeleteVoiceTemplateResponse || (DeleteVoiceTemplateResponse = {}));
30096var DeliveryStatus;
30097(function (DeliveryStatus) {
30098 DeliveryStatus["DUPLICATE"] = "DUPLICATE";
30099 DeliveryStatus["OPT_OUT"] = "OPT_OUT";
30100 DeliveryStatus["PERMANENT_FAILURE"] = "PERMANENT_FAILURE";
30101 DeliveryStatus["SUCCESSFUL"] = "SUCCESSFUL";
30102 DeliveryStatus["TEMPORARY_FAILURE"] = "TEMPORARY_FAILURE";
30103 DeliveryStatus["THROTTLED"] = "THROTTLED";
30104 DeliveryStatus["UNKNOWN_FAILURE"] = "UNKNOWN_FAILURE";
30105})(DeliveryStatus || (DeliveryStatus = {}));
30106var RawEmail;
30107(function (RawEmail) {
30108 RawEmail.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30109})(RawEmail || (RawEmail = {}));
30110var SimpleEmailPart;
30111(function (SimpleEmailPart) {
30112 SimpleEmailPart.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30113})(SimpleEmailPart || (SimpleEmailPart = {}));
30114var SimpleEmail;
30115(function (SimpleEmail) {
30116 SimpleEmail.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30117})(SimpleEmail || (SimpleEmail = {}));
30118var EmailMessage;
30119(function (EmailMessage) {
30120 EmailMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30121})(EmailMessage || (EmailMessage = {}));
30122var GCMMessage;
30123(function (GCMMessage) {
30124 GCMMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30125})(GCMMessage || (GCMMessage = {}));
30126var SMSMessage;
30127(function (SMSMessage) {
30128 SMSMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30129})(SMSMessage || (SMSMessage = {}));
30130var VoiceMessage;
30131(function (VoiceMessage) {
30132 VoiceMessage.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30133})(VoiceMessage || (VoiceMessage = {}));
30134var DirectMessageConfiguration;
30135(function (DirectMessageConfiguration) {
30136 DirectMessageConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30137})(DirectMessageConfiguration || (DirectMessageConfiguration = {}));
30138var EmailChannelRequest;
30139(function (EmailChannelRequest) {
30140 EmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30141})(EmailChannelRequest || (EmailChannelRequest = {}));
30142var TemplateType;
30143(function (TemplateType) {
30144 TemplateType["EMAIL"] = "EMAIL";
30145 TemplateType["PUSH"] = "PUSH";
30146 TemplateType["SMS"] = "SMS";
30147 TemplateType["VOICE"] = "VOICE";
30148})(TemplateType || (TemplateType = {}));
30149var EmailTemplateResponse;
30150(function (EmailTemplateResponse) {
30151 EmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30152})(EmailTemplateResponse || (EmailTemplateResponse = {}));
30153var EndpointBatchItem;
30154(function (EndpointBatchItem) {
30155 EndpointBatchItem.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30156})(EndpointBatchItem || (EndpointBatchItem = {}));
30157var EndpointBatchRequest;
30158(function (EndpointBatchRequest) {
30159 EndpointBatchRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30160})(EndpointBatchRequest || (EndpointBatchRequest = {}));
30161var EndpointItemResponse;
30162(function (EndpointItemResponse) {
30163 EndpointItemResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30164})(EndpointItemResponse || (EndpointItemResponse = {}));
30165var EndpointMessageResult;
30166(function (EndpointMessageResult) {
30167 EndpointMessageResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30168})(EndpointMessageResult || (EndpointMessageResult = {}));
30169var EndpointRequest;
30170(function (EndpointRequest) {
30171 EndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30172})(EndpointRequest || (EndpointRequest = {}));
30173var EndpointSendConfiguration;
30174(function (EndpointSendConfiguration) {
30175 EndpointSendConfiguration.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30176})(EndpointSendConfiguration || (EndpointSendConfiguration = {}));
30177var Session;
30178(function (Session) {
30179 Session.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30180})(Session || (Session = {}));
30181var Event;
30182(function (Event) {
30183 Event.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30184})(Event || (Event = {}));
30185var EventItemResponse;
30186(function (EventItemResponse) {
30187 EventItemResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30188})(EventItemResponse || (EventItemResponse = {}));
30189var PublicEndpoint;
30190(function (PublicEndpoint) {
30191 PublicEndpoint.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30192})(PublicEndpoint || (PublicEndpoint = {}));
30193var EventsBatch;
30194(function (EventsBatch) {
30195 EventsBatch.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30196})(EventsBatch || (EventsBatch = {}));
30197var EventsRequest;
30198(function (EventsRequest) {
30199 EventsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30200})(EventsRequest || (EventsRequest = {}));
30201var ItemResponse;
30202(function (ItemResponse) {
30203 ItemResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30204})(ItemResponse || (ItemResponse = {}));
30205var EventsResponse;
30206(function (EventsResponse) {
30207 EventsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30208})(EventsResponse || (EventsResponse = {}));
30209var ExportJobsResponse;
30210(function (ExportJobsResponse) {
30211 ExportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30212})(ExportJobsResponse || (ExportJobsResponse = {}));
30213var GCMChannelRequest;
30214(function (GCMChannelRequest) {
30215 GCMChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30216})(GCMChannelRequest || (GCMChannelRequest = {}));
30217var GetAdmChannelRequest;
30218(function (GetAdmChannelRequest) {
30219 GetAdmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30220})(GetAdmChannelRequest || (GetAdmChannelRequest = {}));
30221var GetAdmChannelResponse;
30222(function (GetAdmChannelResponse) {
30223 GetAdmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30224})(GetAdmChannelResponse || (GetAdmChannelResponse = {}));
30225var GetApnsChannelRequest;
30226(function (GetApnsChannelRequest) {
30227 GetApnsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30228})(GetApnsChannelRequest || (GetApnsChannelRequest = {}));
30229var GetApnsChannelResponse;
30230(function (GetApnsChannelResponse) {
30231 GetApnsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30232})(GetApnsChannelResponse || (GetApnsChannelResponse = {}));
30233var GetApnsSandboxChannelRequest;
30234(function (GetApnsSandboxChannelRequest) {
30235 GetApnsSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30236})(GetApnsSandboxChannelRequest || (GetApnsSandboxChannelRequest = {}));
30237var GetApnsSandboxChannelResponse;
30238(function (GetApnsSandboxChannelResponse) {
30239 GetApnsSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30240})(GetApnsSandboxChannelResponse || (GetApnsSandboxChannelResponse = {}));
30241var GetApnsVoipChannelRequest;
30242(function (GetApnsVoipChannelRequest) {
30243 GetApnsVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30244})(GetApnsVoipChannelRequest || (GetApnsVoipChannelRequest = {}));
30245var GetApnsVoipChannelResponse;
30246(function (GetApnsVoipChannelResponse) {
30247 GetApnsVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30248})(GetApnsVoipChannelResponse || (GetApnsVoipChannelResponse = {}));
30249var GetApnsVoipSandboxChannelRequest;
30250(function (GetApnsVoipSandboxChannelRequest) {
30251 GetApnsVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30252})(GetApnsVoipSandboxChannelRequest || (GetApnsVoipSandboxChannelRequest = {}));
30253var GetApnsVoipSandboxChannelResponse;
30254(function (GetApnsVoipSandboxChannelResponse) {
30255 GetApnsVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30256})(GetApnsVoipSandboxChannelResponse || (GetApnsVoipSandboxChannelResponse = {}));
30257var GetAppRequest;
30258(function (GetAppRequest) {
30259 GetAppRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30260})(GetAppRequest || (GetAppRequest = {}));
30261var GetAppResponse;
30262(function (GetAppResponse) {
30263 GetAppResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30264})(GetAppResponse || (GetAppResponse = {}));
30265var GetApplicationDateRangeKpiRequest;
30266(function (GetApplicationDateRangeKpiRequest) {
30267 GetApplicationDateRangeKpiRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30268})(GetApplicationDateRangeKpiRequest || (GetApplicationDateRangeKpiRequest = {}));
30269var GetApplicationDateRangeKpiResponse;
30270(function (GetApplicationDateRangeKpiResponse) {
30271 GetApplicationDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30272})(GetApplicationDateRangeKpiResponse || (GetApplicationDateRangeKpiResponse = {}));
30273var GetApplicationSettingsRequest;
30274(function (GetApplicationSettingsRequest) {
30275 GetApplicationSettingsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30276})(GetApplicationSettingsRequest || (GetApplicationSettingsRequest = {}));
30277var GetApplicationSettingsResponse;
30278(function (GetApplicationSettingsResponse) {
30279 GetApplicationSettingsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30280})(GetApplicationSettingsResponse || (GetApplicationSettingsResponse = {}));
30281var GetAppsRequest;
30282(function (GetAppsRequest) {
30283 GetAppsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30284})(GetAppsRequest || (GetAppsRequest = {}));
30285var GetAppsResponse;
30286(function (GetAppsResponse) {
30287 GetAppsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30288})(GetAppsResponse || (GetAppsResponse = {}));
30289var GetBaiduChannelRequest;
30290(function (GetBaiduChannelRequest) {
30291 GetBaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30292})(GetBaiduChannelRequest || (GetBaiduChannelRequest = {}));
30293var GetBaiduChannelResponse;
30294(function (GetBaiduChannelResponse) {
30295 GetBaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30296})(GetBaiduChannelResponse || (GetBaiduChannelResponse = {}));
30297var GetCampaignRequest;
30298(function (GetCampaignRequest) {
30299 GetCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30300})(GetCampaignRequest || (GetCampaignRequest = {}));
30301var GetCampaignResponse;
30302(function (GetCampaignResponse) {
30303 GetCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30304})(GetCampaignResponse || (GetCampaignResponse = {}));
30305var GetCampaignActivitiesRequest;
30306(function (GetCampaignActivitiesRequest) {
30307 GetCampaignActivitiesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30308})(GetCampaignActivitiesRequest || (GetCampaignActivitiesRequest = {}));
30309var GetCampaignActivitiesResponse;
30310(function (GetCampaignActivitiesResponse) {
30311 GetCampaignActivitiesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30312})(GetCampaignActivitiesResponse || (GetCampaignActivitiesResponse = {}));
30313var GetCampaignDateRangeKpiRequest;
30314(function (GetCampaignDateRangeKpiRequest) {
30315 GetCampaignDateRangeKpiRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30316})(GetCampaignDateRangeKpiRequest || (GetCampaignDateRangeKpiRequest = {}));
30317var GetCampaignDateRangeKpiResponse;
30318(function (GetCampaignDateRangeKpiResponse) {
30319 GetCampaignDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30320})(GetCampaignDateRangeKpiResponse || (GetCampaignDateRangeKpiResponse = {}));
30321var GetCampaignsRequest;
30322(function (GetCampaignsRequest) {
30323 GetCampaignsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30324})(GetCampaignsRequest || (GetCampaignsRequest = {}));
30325var GetCampaignsResponse;
30326(function (GetCampaignsResponse) {
30327 GetCampaignsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30328})(GetCampaignsResponse || (GetCampaignsResponse = {}));
30329var GetCampaignVersionRequest;
30330(function (GetCampaignVersionRequest) {
30331 GetCampaignVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30332})(GetCampaignVersionRequest || (GetCampaignVersionRequest = {}));
30333var GetCampaignVersionResponse;
30334(function (GetCampaignVersionResponse) {
30335 GetCampaignVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30336})(GetCampaignVersionResponse || (GetCampaignVersionResponse = {}));
30337var GetCampaignVersionsRequest;
30338(function (GetCampaignVersionsRequest) {
30339 GetCampaignVersionsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30340})(GetCampaignVersionsRequest || (GetCampaignVersionsRequest = {}));
30341var GetCampaignVersionsResponse;
30342(function (GetCampaignVersionsResponse) {
30343 GetCampaignVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30344})(GetCampaignVersionsResponse || (GetCampaignVersionsResponse = {}));
30345var GetChannelsRequest;
30346(function (GetChannelsRequest) {
30347 GetChannelsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30348})(GetChannelsRequest || (GetChannelsRequest = {}));
30349var GetChannelsResponse;
30350(function (GetChannelsResponse) {
30351 GetChannelsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30352})(GetChannelsResponse || (GetChannelsResponse = {}));
30353var GetEmailChannelRequest;
30354(function (GetEmailChannelRequest) {
30355 GetEmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30356})(GetEmailChannelRequest || (GetEmailChannelRequest = {}));
30357var GetEmailChannelResponse;
30358(function (GetEmailChannelResponse) {
30359 GetEmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30360})(GetEmailChannelResponse || (GetEmailChannelResponse = {}));
30361var GetEmailTemplateRequest;
30362(function (GetEmailTemplateRequest) {
30363 GetEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30364})(GetEmailTemplateRequest || (GetEmailTemplateRequest = {}));
30365var GetEmailTemplateResponse;
30366(function (GetEmailTemplateResponse) {
30367 GetEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30368})(GetEmailTemplateResponse || (GetEmailTemplateResponse = {}));
30369var GetEndpointRequest;
30370(function (GetEndpointRequest) {
30371 GetEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30372})(GetEndpointRequest || (GetEndpointRequest = {}));
30373var GetEndpointResponse;
30374(function (GetEndpointResponse) {
30375 GetEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30376})(GetEndpointResponse || (GetEndpointResponse = {}));
30377var GetEventStreamRequest;
30378(function (GetEventStreamRequest) {
30379 GetEventStreamRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30380})(GetEventStreamRequest || (GetEventStreamRequest = {}));
30381var GetEventStreamResponse;
30382(function (GetEventStreamResponse) {
30383 GetEventStreamResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30384})(GetEventStreamResponse || (GetEventStreamResponse = {}));
30385var GetExportJobRequest;
30386(function (GetExportJobRequest) {
30387 GetExportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30388})(GetExportJobRequest || (GetExportJobRequest = {}));
30389var GetExportJobResponse;
30390(function (GetExportJobResponse) {
30391 GetExportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30392})(GetExportJobResponse || (GetExportJobResponse = {}));
30393var GetExportJobsRequest;
30394(function (GetExportJobsRequest) {
30395 GetExportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30396})(GetExportJobsRequest || (GetExportJobsRequest = {}));
30397var GetExportJobsResponse;
30398(function (GetExportJobsResponse) {
30399 GetExportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30400})(GetExportJobsResponse || (GetExportJobsResponse = {}));
30401var GetGcmChannelRequest;
30402(function (GetGcmChannelRequest) {
30403 GetGcmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30404})(GetGcmChannelRequest || (GetGcmChannelRequest = {}));
30405var GetGcmChannelResponse;
30406(function (GetGcmChannelResponse) {
30407 GetGcmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30408})(GetGcmChannelResponse || (GetGcmChannelResponse = {}));
30409var GetImportJobRequest;
30410(function (GetImportJobRequest) {
30411 GetImportJobRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30412})(GetImportJobRequest || (GetImportJobRequest = {}));
30413var GetImportJobResponse;
30414(function (GetImportJobResponse) {
30415 GetImportJobResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30416})(GetImportJobResponse || (GetImportJobResponse = {}));
30417var GetImportJobsRequest;
30418(function (GetImportJobsRequest) {
30419 GetImportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30420})(GetImportJobsRequest || (GetImportJobsRequest = {}));
30421var ImportJobsResponse;
30422(function (ImportJobsResponse) {
30423 ImportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30424})(ImportJobsResponse || (ImportJobsResponse = {}));
30425var GetImportJobsResponse;
30426(function (GetImportJobsResponse) {
30427 GetImportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30428})(GetImportJobsResponse || (GetImportJobsResponse = {}));
30429var GetJourneyRequest;
30430(function (GetJourneyRequest) {
30431 GetJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30432})(GetJourneyRequest || (GetJourneyRequest = {}));
30433var GetJourneyResponse;
30434(function (GetJourneyResponse) {
30435 GetJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30436})(GetJourneyResponse || (GetJourneyResponse = {}));
30437//# sourceMappingURL=models_0.js.map
30438
30439/***/ }),
30440
30441/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js":
30442/*!*****************************************************************************************!*\
30443 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/models/models_1.js ***!
30444 \*****************************************************************************************/
30445/*! exports provided: GetJourneyDateRangeKpiRequest, JourneyDateRangeKpiResponse, GetJourneyDateRangeKpiResponse, GetJourneyExecutionActivityMetricsRequest, JourneyExecutionActivityMetricsResponse, GetJourneyExecutionActivityMetricsResponse, GetJourneyExecutionMetricsRequest, JourneyExecutionMetricsResponse, GetJourneyExecutionMetricsResponse, GetPushTemplateRequest, PushNotificationTemplateResponse, GetPushTemplateResponse, GetRecommenderConfigurationRequest, GetRecommenderConfigurationResponse, GetRecommenderConfigurationsRequest, ListRecommenderConfigurationsResponse, GetRecommenderConfigurationsResponse, GetSegmentRequest, GetSegmentResponse, GetSegmentExportJobsRequest, GetSegmentExportJobsResponse, GetSegmentImportJobsRequest, GetSegmentImportJobsResponse, GetSegmentsRequest, SegmentsResponse, GetSegmentsResponse, GetSegmentVersionRequest, GetSegmentVersionResponse, GetSegmentVersionsRequest, GetSegmentVersionsResponse, GetSmsChannelRequest, GetSmsChannelResponse, GetSmsTemplateRequest, SMSTemplateResponse, GetSmsTemplateResponse, GetUserEndpointsRequest, GetUserEndpointsResponse, GetVoiceChannelRequest, GetVoiceChannelResponse, GetVoiceTemplateRequest, VoiceTemplateResponse, GetVoiceTemplateResponse, JourneysResponse, JourneyStateRequest, ListJourneysRequest, ListJourneysResponse, TemplateResponse, TemplateVersionResponse, ListTagsForResourceRequest, TagsModel, ListTagsForResourceResponse, ListTemplatesRequest, TemplatesResponse, ListTemplatesResponse, ListTemplateVersionsRequest, TemplateVersionsResponse, ListTemplateVersionsResponse, MessageResult, MessageRequest, MessageResponse, NumberValidateRequest, NumberValidateResponse, PhoneNumberValidateRequest, PhoneNumberValidateResponse, PutEventsRequest, PutEventsResponse, WriteEventStream, PutEventStreamRequest, PutEventStreamResponse, UpdateAttributesRequest, RemoveAttributesRequest, RemoveAttributesResponse, SendMessagesRequest, SendMessagesResponse, SendUsersMessageRequest, SendUsersMessagesRequest, SendUsersMessageResponse, SendUsersMessagesResponse, TagResourceRequest, UntagResourceRequest, UpdateAdmChannelRequest, UpdateAdmChannelResponse, UpdateApnsChannelRequest, UpdateApnsChannelResponse, UpdateApnsSandboxChannelRequest, UpdateApnsSandboxChannelResponse, UpdateApnsVoipChannelRequest, UpdateApnsVoipChannelResponse, UpdateApnsVoipSandboxChannelRequest, UpdateApnsVoipSandboxChannelResponse, WriteApplicationSettingsRequest, UpdateApplicationSettingsRequest, UpdateApplicationSettingsResponse, UpdateBaiduChannelRequest, UpdateBaiduChannelResponse, UpdateCampaignRequest, UpdateCampaignResponse, UpdateEmailChannelRequest, UpdateEmailChannelResponse, UpdateEmailTemplateRequest, UpdateEmailTemplateResponse, UpdateEndpointRequest, UpdateEndpointResponse, UpdateEndpointsBatchRequest, UpdateEndpointsBatchResponse, UpdateGcmChannelRequest, UpdateGcmChannelResponse, UpdateJourneyRequest, UpdateJourneyResponse, UpdateJourneyStateRequest, UpdateJourneyStateResponse, UpdatePushTemplateRequest, UpdatePushTemplateResponse, UpdateRecommenderConfigurationShape, UpdateRecommenderConfigurationRequest, UpdateRecommenderConfigurationResponse, UpdateSegmentRequest, UpdateSegmentResponse, SMSChannelRequest, UpdateSmsChannelRequest, UpdateSmsChannelResponse, UpdateSmsTemplateRequest, UpdateSmsTemplateResponse, TemplateActiveVersionRequest, UpdateTemplateActiveVersionRequest, UpdateTemplateActiveVersionResponse, VoiceChannelRequest, UpdateVoiceChannelRequest, UpdateVoiceChannelResponse, UpdateVoiceTemplateRequest, UpdateVoiceTemplateResponse */
30446/***/ (function(module, __webpack_exports__, __webpack_require__) {
30447
30448"use strict";
30449__webpack_require__.r(__webpack_exports__);
30450/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiRequest", function() { return GetJourneyDateRangeKpiRequest; });
30451/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyDateRangeKpiResponse", function() { return JourneyDateRangeKpiResponse; });
30452/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyDateRangeKpiResponse", function() { return GetJourneyDateRangeKpiResponse; });
30453/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsRequest", function() { return GetJourneyExecutionActivityMetricsRequest; });
30454/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionActivityMetricsResponse", function() { return JourneyExecutionActivityMetricsResponse; });
30455/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionActivityMetricsResponse", function() { return GetJourneyExecutionActivityMetricsResponse; });
30456/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsRequest", function() { return GetJourneyExecutionMetricsRequest; });
30457/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyExecutionMetricsResponse", function() { return JourneyExecutionMetricsResponse; });
30458/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetJourneyExecutionMetricsResponse", function() { return GetJourneyExecutionMetricsResponse; });
30459/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateRequest", function() { return GetPushTemplateRequest; });
30460/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushNotificationTemplateResponse", function() { return PushNotificationTemplateResponse; });
30461/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetPushTemplateResponse", function() { return GetPushTemplateResponse; });
30462/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationRequest", function() { return GetRecommenderConfigurationRequest; });
30463/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationResponse", function() { return GetRecommenderConfigurationResponse; });
30464/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsRequest", function() { return GetRecommenderConfigurationsRequest; });
30465/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListRecommenderConfigurationsResponse", function() { return ListRecommenderConfigurationsResponse; });
30466/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetRecommenderConfigurationsResponse", function() { return GetRecommenderConfigurationsResponse; });
30467/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentRequest", function() { return GetSegmentRequest; });
30468/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentResponse", function() { return GetSegmentResponse; });
30469/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsRequest", function() { return GetSegmentExportJobsRequest; });
30470/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentExportJobsResponse", function() { return GetSegmentExportJobsResponse; });
30471/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsRequest", function() { return GetSegmentImportJobsRequest; });
30472/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentImportJobsResponse", function() { return GetSegmentImportJobsResponse; });
30473/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsRequest", function() { return GetSegmentsRequest; });
30474/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SegmentsResponse", function() { return SegmentsResponse; });
30475/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentsResponse", function() { return GetSegmentsResponse; });
30476/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionRequest", function() { return GetSegmentVersionRequest; });
30477/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionResponse", function() { return GetSegmentVersionResponse; });
30478/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsRequest", function() { return GetSegmentVersionsRequest; });
30479/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSegmentVersionsResponse", function() { return GetSegmentVersionsResponse; });
30480/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelRequest", function() { return GetSmsChannelRequest; });
30481/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsChannelResponse", function() { return GetSmsChannelResponse; });
30482/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateRequest", function() { return GetSmsTemplateRequest; });
30483/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSTemplateResponse", function() { return SMSTemplateResponse; });
30484/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetSmsTemplateResponse", function() { return GetSmsTemplateResponse; });
30485/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsRequest", function() { return GetUserEndpointsRequest; });
30486/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetUserEndpointsResponse", function() { return GetUserEndpointsResponse; });
30487/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelRequest", function() { return GetVoiceChannelRequest; });
30488/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceChannelResponse", function() { return GetVoiceChannelResponse; });
30489/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateRequest", function() { return GetVoiceTemplateRequest; });
30490/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceTemplateResponse", function() { return VoiceTemplateResponse; });
30491/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetVoiceTemplateResponse", function() { return GetVoiceTemplateResponse; });
30492/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneysResponse", function() { return JourneysResponse; });
30493/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JourneyStateRequest", function() { return JourneyStateRequest; });
30494/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysRequest", function() { return ListJourneysRequest; });
30495/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListJourneysResponse", function() { return ListJourneysResponse; });
30496/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateResponse", function() { return TemplateResponse; });
30497/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionResponse", function() { return TemplateVersionResponse; });
30498/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceRequest", function() { return ListTagsForResourceRequest; });
30499/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagsModel", function() { return TagsModel; });
30500/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTagsForResourceResponse", function() { return ListTagsForResourceResponse; });
30501/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesRequest", function() { return ListTemplatesRequest; });
30502/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplatesResponse", function() { return TemplatesResponse; });
30503/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplatesResponse", function() { return ListTemplatesResponse; });
30504/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsRequest", function() { return ListTemplateVersionsRequest; });
30505/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateVersionsResponse", function() { return TemplateVersionsResponse; });
30506/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListTemplateVersionsResponse", function() { return ListTemplateVersionsResponse; });
30507/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageResult", function() { return MessageResult; });
30508/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageRequest", function() { return MessageRequest; });
30509/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageResponse", function() { return MessageResponse; });
30510/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberValidateRequest", function() { return NumberValidateRequest; });
30511/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberValidateResponse", function() { return NumberValidateResponse; });
30512/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateRequest", function() { return PhoneNumberValidateRequest; });
30513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PhoneNumberValidateResponse", function() { return PhoneNumberValidateResponse; });
30514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsRequest", function() { return PutEventsRequest; });
30515/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventsResponse", function() { return PutEventsResponse; });
30516/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteEventStream", function() { return WriteEventStream; });
30517/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamRequest", function() { return PutEventStreamRequest; });
30518/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PutEventStreamResponse", function() { return PutEventStreamResponse; });
30519/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAttributesRequest", function() { return UpdateAttributesRequest; });
30520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesRequest", function() { return RemoveAttributesRequest; });
30521/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemoveAttributesResponse", function() { return RemoveAttributesResponse; });
30522/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendMessagesRequest", function() { return SendMessagesRequest; });
30523/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendMessagesResponse", function() { return SendMessagesResponse; });
30524/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageRequest", function() { return SendUsersMessageRequest; });
30525/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesRequest", function() { return SendUsersMessagesRequest; });
30526/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessageResponse", function() { return SendUsersMessageResponse; });
30527/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SendUsersMessagesResponse", function() { return SendUsersMessagesResponse; });
30528/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagResourceRequest", function() { return TagResourceRequest; });
30529/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UntagResourceRequest", function() { return UntagResourceRequest; });
30530/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelRequest", function() { return UpdateAdmChannelRequest; });
30531/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateAdmChannelResponse", function() { return UpdateAdmChannelResponse; });
30532/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelRequest", function() { return UpdateApnsChannelRequest; });
30533/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsChannelResponse", function() { return UpdateApnsChannelResponse; });
30534/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelRequest", function() { return UpdateApnsSandboxChannelRequest; });
30535/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsSandboxChannelResponse", function() { return UpdateApnsSandboxChannelResponse; });
30536/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelRequest", function() { return UpdateApnsVoipChannelRequest; });
30537/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipChannelResponse", function() { return UpdateApnsVoipChannelResponse; });
30538/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelRequest", function() { return UpdateApnsVoipSandboxChannelRequest; });
30539/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApnsVoipSandboxChannelResponse", function() { return UpdateApnsVoipSandboxChannelResponse; });
30540/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WriteApplicationSettingsRequest", function() { return WriteApplicationSettingsRequest; });
30541/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsRequest", function() { return UpdateApplicationSettingsRequest; });
30542/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateApplicationSettingsResponse", function() { return UpdateApplicationSettingsResponse; });
30543/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelRequest", function() { return UpdateBaiduChannelRequest; });
30544/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateBaiduChannelResponse", function() { return UpdateBaiduChannelResponse; });
30545/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignRequest", function() { return UpdateCampaignRequest; });
30546/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateCampaignResponse", function() { return UpdateCampaignResponse; });
30547/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelRequest", function() { return UpdateEmailChannelRequest; });
30548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailChannelResponse", function() { return UpdateEmailChannelResponse; });
30549/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateRequest", function() { return UpdateEmailTemplateRequest; });
30550/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEmailTemplateResponse", function() { return UpdateEmailTemplateResponse; });
30551/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointRequest", function() { return UpdateEndpointRequest; });
30552/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointResponse", function() { return UpdateEndpointResponse; });
30553/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchRequest", function() { return UpdateEndpointsBatchRequest; });
30554/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateEndpointsBatchResponse", function() { return UpdateEndpointsBatchResponse; });
30555/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelRequest", function() { return UpdateGcmChannelRequest; });
30556/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateGcmChannelResponse", function() { return UpdateGcmChannelResponse; });
30557/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyRequest", function() { return UpdateJourneyRequest; });
30558/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyResponse", function() { return UpdateJourneyResponse; });
30559/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateRequest", function() { return UpdateJourneyStateRequest; });
30560/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateJourneyStateResponse", function() { return UpdateJourneyStateResponse; });
30561/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateRequest", function() { return UpdatePushTemplateRequest; });
30562/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdatePushTemplateResponse", function() { return UpdatePushTemplateResponse; });
30563/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationShape", function() { return UpdateRecommenderConfigurationShape; });
30564/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationRequest", function() { return UpdateRecommenderConfigurationRequest; });
30565/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateRecommenderConfigurationResponse", function() { return UpdateRecommenderConfigurationResponse; });
30566/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentRequest", function() { return UpdateSegmentRequest; });
30567/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSegmentResponse", function() { return UpdateSegmentResponse; });
30568/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMSChannelRequest", function() { return SMSChannelRequest; });
30569/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelRequest", function() { return UpdateSmsChannelRequest; });
30570/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsChannelResponse", function() { return UpdateSmsChannelResponse; });
30571/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateRequest", function() { return UpdateSmsTemplateRequest; });
30572/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateSmsTemplateResponse", function() { return UpdateSmsTemplateResponse; });
30573/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateActiveVersionRequest", function() { return TemplateActiveVersionRequest; });
30574/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionRequest", function() { return UpdateTemplateActiveVersionRequest; });
30575/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateTemplateActiveVersionResponse", function() { return UpdateTemplateActiveVersionResponse; });
30576/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VoiceChannelRequest", function() { return VoiceChannelRequest; });
30577/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelRequest", function() { return UpdateVoiceChannelRequest; });
30578/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceChannelResponse", function() { return UpdateVoiceChannelResponse; });
30579/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateRequest", function() { return UpdateVoiceTemplateRequest; });
30580/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpdateVoiceTemplateResponse", function() { return UpdateVoiceTemplateResponse; });
30581/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
30582
30583var GetJourneyDateRangeKpiRequest;
30584(function (GetJourneyDateRangeKpiRequest) {
30585 GetJourneyDateRangeKpiRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30586})(GetJourneyDateRangeKpiRequest || (GetJourneyDateRangeKpiRequest = {}));
30587var JourneyDateRangeKpiResponse;
30588(function (JourneyDateRangeKpiResponse) {
30589 JourneyDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30590})(JourneyDateRangeKpiResponse || (JourneyDateRangeKpiResponse = {}));
30591var GetJourneyDateRangeKpiResponse;
30592(function (GetJourneyDateRangeKpiResponse) {
30593 GetJourneyDateRangeKpiResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30594})(GetJourneyDateRangeKpiResponse || (GetJourneyDateRangeKpiResponse = {}));
30595var GetJourneyExecutionActivityMetricsRequest;
30596(function (GetJourneyExecutionActivityMetricsRequest) {
30597 GetJourneyExecutionActivityMetricsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30598})(GetJourneyExecutionActivityMetricsRequest || (GetJourneyExecutionActivityMetricsRequest = {}));
30599var JourneyExecutionActivityMetricsResponse;
30600(function (JourneyExecutionActivityMetricsResponse) {
30601 JourneyExecutionActivityMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30602})(JourneyExecutionActivityMetricsResponse || (JourneyExecutionActivityMetricsResponse = {}));
30603var GetJourneyExecutionActivityMetricsResponse;
30604(function (GetJourneyExecutionActivityMetricsResponse) {
30605 GetJourneyExecutionActivityMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30606})(GetJourneyExecutionActivityMetricsResponse || (GetJourneyExecutionActivityMetricsResponse = {}));
30607var GetJourneyExecutionMetricsRequest;
30608(function (GetJourneyExecutionMetricsRequest) {
30609 GetJourneyExecutionMetricsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30610})(GetJourneyExecutionMetricsRequest || (GetJourneyExecutionMetricsRequest = {}));
30611var JourneyExecutionMetricsResponse;
30612(function (JourneyExecutionMetricsResponse) {
30613 JourneyExecutionMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30614})(JourneyExecutionMetricsResponse || (JourneyExecutionMetricsResponse = {}));
30615var GetJourneyExecutionMetricsResponse;
30616(function (GetJourneyExecutionMetricsResponse) {
30617 GetJourneyExecutionMetricsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30618})(GetJourneyExecutionMetricsResponse || (GetJourneyExecutionMetricsResponse = {}));
30619var GetPushTemplateRequest;
30620(function (GetPushTemplateRequest) {
30621 GetPushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30622})(GetPushTemplateRequest || (GetPushTemplateRequest = {}));
30623var PushNotificationTemplateResponse;
30624(function (PushNotificationTemplateResponse) {
30625 PushNotificationTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30626})(PushNotificationTemplateResponse || (PushNotificationTemplateResponse = {}));
30627var GetPushTemplateResponse;
30628(function (GetPushTemplateResponse) {
30629 GetPushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30630})(GetPushTemplateResponse || (GetPushTemplateResponse = {}));
30631var GetRecommenderConfigurationRequest;
30632(function (GetRecommenderConfigurationRequest) {
30633 GetRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30634})(GetRecommenderConfigurationRequest || (GetRecommenderConfigurationRequest = {}));
30635var GetRecommenderConfigurationResponse;
30636(function (GetRecommenderConfigurationResponse) {
30637 GetRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30638})(GetRecommenderConfigurationResponse || (GetRecommenderConfigurationResponse = {}));
30639var GetRecommenderConfigurationsRequest;
30640(function (GetRecommenderConfigurationsRequest) {
30641 GetRecommenderConfigurationsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30642})(GetRecommenderConfigurationsRequest || (GetRecommenderConfigurationsRequest = {}));
30643var ListRecommenderConfigurationsResponse;
30644(function (ListRecommenderConfigurationsResponse) {
30645 ListRecommenderConfigurationsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30646})(ListRecommenderConfigurationsResponse || (ListRecommenderConfigurationsResponse = {}));
30647var GetRecommenderConfigurationsResponse;
30648(function (GetRecommenderConfigurationsResponse) {
30649 GetRecommenderConfigurationsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30650})(GetRecommenderConfigurationsResponse || (GetRecommenderConfigurationsResponse = {}));
30651var GetSegmentRequest;
30652(function (GetSegmentRequest) {
30653 GetSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30654})(GetSegmentRequest || (GetSegmentRequest = {}));
30655var GetSegmentResponse;
30656(function (GetSegmentResponse) {
30657 GetSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30658})(GetSegmentResponse || (GetSegmentResponse = {}));
30659var GetSegmentExportJobsRequest;
30660(function (GetSegmentExportJobsRequest) {
30661 GetSegmentExportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30662})(GetSegmentExportJobsRequest || (GetSegmentExportJobsRequest = {}));
30663var GetSegmentExportJobsResponse;
30664(function (GetSegmentExportJobsResponse) {
30665 GetSegmentExportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30666})(GetSegmentExportJobsResponse || (GetSegmentExportJobsResponse = {}));
30667var GetSegmentImportJobsRequest;
30668(function (GetSegmentImportJobsRequest) {
30669 GetSegmentImportJobsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30670})(GetSegmentImportJobsRequest || (GetSegmentImportJobsRequest = {}));
30671var GetSegmentImportJobsResponse;
30672(function (GetSegmentImportJobsResponse) {
30673 GetSegmentImportJobsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30674})(GetSegmentImportJobsResponse || (GetSegmentImportJobsResponse = {}));
30675var GetSegmentsRequest;
30676(function (GetSegmentsRequest) {
30677 GetSegmentsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30678})(GetSegmentsRequest || (GetSegmentsRequest = {}));
30679var SegmentsResponse;
30680(function (SegmentsResponse) {
30681 SegmentsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30682})(SegmentsResponse || (SegmentsResponse = {}));
30683var GetSegmentsResponse;
30684(function (GetSegmentsResponse) {
30685 GetSegmentsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30686})(GetSegmentsResponse || (GetSegmentsResponse = {}));
30687var GetSegmentVersionRequest;
30688(function (GetSegmentVersionRequest) {
30689 GetSegmentVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30690})(GetSegmentVersionRequest || (GetSegmentVersionRequest = {}));
30691var GetSegmentVersionResponse;
30692(function (GetSegmentVersionResponse) {
30693 GetSegmentVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30694})(GetSegmentVersionResponse || (GetSegmentVersionResponse = {}));
30695var GetSegmentVersionsRequest;
30696(function (GetSegmentVersionsRequest) {
30697 GetSegmentVersionsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30698})(GetSegmentVersionsRequest || (GetSegmentVersionsRequest = {}));
30699var GetSegmentVersionsResponse;
30700(function (GetSegmentVersionsResponse) {
30701 GetSegmentVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30702})(GetSegmentVersionsResponse || (GetSegmentVersionsResponse = {}));
30703var GetSmsChannelRequest;
30704(function (GetSmsChannelRequest) {
30705 GetSmsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30706})(GetSmsChannelRequest || (GetSmsChannelRequest = {}));
30707var GetSmsChannelResponse;
30708(function (GetSmsChannelResponse) {
30709 GetSmsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30710})(GetSmsChannelResponse || (GetSmsChannelResponse = {}));
30711var GetSmsTemplateRequest;
30712(function (GetSmsTemplateRequest) {
30713 GetSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30714})(GetSmsTemplateRequest || (GetSmsTemplateRequest = {}));
30715var SMSTemplateResponse;
30716(function (SMSTemplateResponse) {
30717 SMSTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30718})(SMSTemplateResponse || (SMSTemplateResponse = {}));
30719var GetSmsTemplateResponse;
30720(function (GetSmsTemplateResponse) {
30721 GetSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30722})(GetSmsTemplateResponse || (GetSmsTemplateResponse = {}));
30723var GetUserEndpointsRequest;
30724(function (GetUserEndpointsRequest) {
30725 GetUserEndpointsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30726})(GetUserEndpointsRequest || (GetUserEndpointsRequest = {}));
30727var GetUserEndpointsResponse;
30728(function (GetUserEndpointsResponse) {
30729 GetUserEndpointsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30730})(GetUserEndpointsResponse || (GetUserEndpointsResponse = {}));
30731var GetVoiceChannelRequest;
30732(function (GetVoiceChannelRequest) {
30733 GetVoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30734})(GetVoiceChannelRequest || (GetVoiceChannelRequest = {}));
30735var GetVoiceChannelResponse;
30736(function (GetVoiceChannelResponse) {
30737 GetVoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30738})(GetVoiceChannelResponse || (GetVoiceChannelResponse = {}));
30739var GetVoiceTemplateRequest;
30740(function (GetVoiceTemplateRequest) {
30741 GetVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30742})(GetVoiceTemplateRequest || (GetVoiceTemplateRequest = {}));
30743var VoiceTemplateResponse;
30744(function (VoiceTemplateResponse) {
30745 VoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30746})(VoiceTemplateResponse || (VoiceTemplateResponse = {}));
30747var GetVoiceTemplateResponse;
30748(function (GetVoiceTemplateResponse) {
30749 GetVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30750})(GetVoiceTemplateResponse || (GetVoiceTemplateResponse = {}));
30751var JourneysResponse;
30752(function (JourneysResponse) {
30753 JourneysResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30754})(JourneysResponse || (JourneysResponse = {}));
30755var JourneyStateRequest;
30756(function (JourneyStateRequest) {
30757 JourneyStateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30758})(JourneyStateRequest || (JourneyStateRequest = {}));
30759var ListJourneysRequest;
30760(function (ListJourneysRequest) {
30761 ListJourneysRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30762})(ListJourneysRequest || (ListJourneysRequest = {}));
30763var ListJourneysResponse;
30764(function (ListJourneysResponse) {
30765 ListJourneysResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30766})(ListJourneysResponse || (ListJourneysResponse = {}));
30767var TemplateResponse;
30768(function (TemplateResponse) {
30769 TemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30770})(TemplateResponse || (TemplateResponse = {}));
30771var TemplateVersionResponse;
30772(function (TemplateVersionResponse) {
30773 TemplateVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30774})(TemplateVersionResponse || (TemplateVersionResponse = {}));
30775var ListTagsForResourceRequest;
30776(function (ListTagsForResourceRequest) {
30777 ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30778})(ListTagsForResourceRequest || (ListTagsForResourceRequest = {}));
30779var TagsModel;
30780(function (TagsModel) {
30781 TagsModel.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30782})(TagsModel || (TagsModel = {}));
30783var ListTagsForResourceResponse;
30784(function (ListTagsForResourceResponse) {
30785 ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30786})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
30787var ListTemplatesRequest;
30788(function (ListTemplatesRequest) {
30789 ListTemplatesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30790})(ListTemplatesRequest || (ListTemplatesRequest = {}));
30791var TemplatesResponse;
30792(function (TemplatesResponse) {
30793 TemplatesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30794})(TemplatesResponse || (TemplatesResponse = {}));
30795var ListTemplatesResponse;
30796(function (ListTemplatesResponse) {
30797 ListTemplatesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30798})(ListTemplatesResponse || (ListTemplatesResponse = {}));
30799var ListTemplateVersionsRequest;
30800(function (ListTemplateVersionsRequest) {
30801 ListTemplateVersionsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30802})(ListTemplateVersionsRequest || (ListTemplateVersionsRequest = {}));
30803var TemplateVersionsResponse;
30804(function (TemplateVersionsResponse) {
30805 TemplateVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30806})(TemplateVersionsResponse || (TemplateVersionsResponse = {}));
30807var ListTemplateVersionsResponse;
30808(function (ListTemplateVersionsResponse) {
30809 ListTemplateVersionsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30810})(ListTemplateVersionsResponse || (ListTemplateVersionsResponse = {}));
30811var MessageResult;
30812(function (MessageResult) {
30813 MessageResult.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30814})(MessageResult || (MessageResult = {}));
30815var MessageRequest;
30816(function (MessageRequest) {
30817 MessageRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30818})(MessageRequest || (MessageRequest = {}));
30819var MessageResponse;
30820(function (MessageResponse) {
30821 MessageResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30822})(MessageResponse || (MessageResponse = {}));
30823var NumberValidateRequest;
30824(function (NumberValidateRequest) {
30825 NumberValidateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30826})(NumberValidateRequest || (NumberValidateRequest = {}));
30827var NumberValidateResponse;
30828(function (NumberValidateResponse) {
30829 NumberValidateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30830})(NumberValidateResponse || (NumberValidateResponse = {}));
30831var PhoneNumberValidateRequest;
30832(function (PhoneNumberValidateRequest) {
30833 PhoneNumberValidateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30834})(PhoneNumberValidateRequest || (PhoneNumberValidateRequest = {}));
30835var PhoneNumberValidateResponse;
30836(function (PhoneNumberValidateResponse) {
30837 PhoneNumberValidateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30838})(PhoneNumberValidateResponse || (PhoneNumberValidateResponse = {}));
30839var PutEventsRequest;
30840(function (PutEventsRequest) {
30841 PutEventsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30842})(PutEventsRequest || (PutEventsRequest = {}));
30843var PutEventsResponse;
30844(function (PutEventsResponse) {
30845 PutEventsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30846})(PutEventsResponse || (PutEventsResponse = {}));
30847var WriteEventStream;
30848(function (WriteEventStream) {
30849 WriteEventStream.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30850})(WriteEventStream || (WriteEventStream = {}));
30851var PutEventStreamRequest;
30852(function (PutEventStreamRequest) {
30853 PutEventStreamRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30854})(PutEventStreamRequest || (PutEventStreamRequest = {}));
30855var PutEventStreamResponse;
30856(function (PutEventStreamResponse) {
30857 PutEventStreamResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30858})(PutEventStreamResponse || (PutEventStreamResponse = {}));
30859var UpdateAttributesRequest;
30860(function (UpdateAttributesRequest) {
30861 UpdateAttributesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30862})(UpdateAttributesRequest || (UpdateAttributesRequest = {}));
30863var RemoveAttributesRequest;
30864(function (RemoveAttributesRequest) {
30865 RemoveAttributesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30866})(RemoveAttributesRequest || (RemoveAttributesRequest = {}));
30867var RemoveAttributesResponse;
30868(function (RemoveAttributesResponse) {
30869 RemoveAttributesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30870})(RemoveAttributesResponse || (RemoveAttributesResponse = {}));
30871var SendMessagesRequest;
30872(function (SendMessagesRequest) {
30873 SendMessagesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30874})(SendMessagesRequest || (SendMessagesRequest = {}));
30875var SendMessagesResponse;
30876(function (SendMessagesResponse) {
30877 SendMessagesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30878})(SendMessagesResponse || (SendMessagesResponse = {}));
30879var SendUsersMessageRequest;
30880(function (SendUsersMessageRequest) {
30881 SendUsersMessageRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30882})(SendUsersMessageRequest || (SendUsersMessageRequest = {}));
30883var SendUsersMessagesRequest;
30884(function (SendUsersMessagesRequest) {
30885 SendUsersMessagesRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30886})(SendUsersMessagesRequest || (SendUsersMessagesRequest = {}));
30887var SendUsersMessageResponse;
30888(function (SendUsersMessageResponse) {
30889 SendUsersMessageResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30890})(SendUsersMessageResponse || (SendUsersMessageResponse = {}));
30891var SendUsersMessagesResponse;
30892(function (SendUsersMessagesResponse) {
30893 SendUsersMessagesResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30894})(SendUsersMessagesResponse || (SendUsersMessagesResponse = {}));
30895var TagResourceRequest;
30896(function (TagResourceRequest) {
30897 TagResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30898})(TagResourceRequest || (TagResourceRequest = {}));
30899var UntagResourceRequest;
30900(function (UntagResourceRequest) {
30901 UntagResourceRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30902})(UntagResourceRequest || (UntagResourceRequest = {}));
30903var UpdateAdmChannelRequest;
30904(function (UpdateAdmChannelRequest) {
30905 UpdateAdmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30906})(UpdateAdmChannelRequest || (UpdateAdmChannelRequest = {}));
30907var UpdateAdmChannelResponse;
30908(function (UpdateAdmChannelResponse) {
30909 UpdateAdmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30910})(UpdateAdmChannelResponse || (UpdateAdmChannelResponse = {}));
30911var UpdateApnsChannelRequest;
30912(function (UpdateApnsChannelRequest) {
30913 UpdateApnsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30914})(UpdateApnsChannelRequest || (UpdateApnsChannelRequest = {}));
30915var UpdateApnsChannelResponse;
30916(function (UpdateApnsChannelResponse) {
30917 UpdateApnsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30918})(UpdateApnsChannelResponse || (UpdateApnsChannelResponse = {}));
30919var UpdateApnsSandboxChannelRequest;
30920(function (UpdateApnsSandboxChannelRequest) {
30921 UpdateApnsSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30922})(UpdateApnsSandboxChannelRequest || (UpdateApnsSandboxChannelRequest = {}));
30923var UpdateApnsSandboxChannelResponse;
30924(function (UpdateApnsSandboxChannelResponse) {
30925 UpdateApnsSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30926})(UpdateApnsSandboxChannelResponse || (UpdateApnsSandboxChannelResponse = {}));
30927var UpdateApnsVoipChannelRequest;
30928(function (UpdateApnsVoipChannelRequest) {
30929 UpdateApnsVoipChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30930})(UpdateApnsVoipChannelRequest || (UpdateApnsVoipChannelRequest = {}));
30931var UpdateApnsVoipChannelResponse;
30932(function (UpdateApnsVoipChannelResponse) {
30933 UpdateApnsVoipChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30934})(UpdateApnsVoipChannelResponse || (UpdateApnsVoipChannelResponse = {}));
30935var UpdateApnsVoipSandboxChannelRequest;
30936(function (UpdateApnsVoipSandboxChannelRequest) {
30937 UpdateApnsVoipSandboxChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30938})(UpdateApnsVoipSandboxChannelRequest || (UpdateApnsVoipSandboxChannelRequest = {}));
30939var UpdateApnsVoipSandboxChannelResponse;
30940(function (UpdateApnsVoipSandboxChannelResponse) {
30941 UpdateApnsVoipSandboxChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30942})(UpdateApnsVoipSandboxChannelResponse || (UpdateApnsVoipSandboxChannelResponse = {}));
30943var WriteApplicationSettingsRequest;
30944(function (WriteApplicationSettingsRequest) {
30945 WriteApplicationSettingsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30946})(WriteApplicationSettingsRequest || (WriteApplicationSettingsRequest = {}));
30947var UpdateApplicationSettingsRequest;
30948(function (UpdateApplicationSettingsRequest) {
30949 UpdateApplicationSettingsRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30950})(UpdateApplicationSettingsRequest || (UpdateApplicationSettingsRequest = {}));
30951var UpdateApplicationSettingsResponse;
30952(function (UpdateApplicationSettingsResponse) {
30953 UpdateApplicationSettingsResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30954})(UpdateApplicationSettingsResponse || (UpdateApplicationSettingsResponse = {}));
30955var UpdateBaiduChannelRequest;
30956(function (UpdateBaiduChannelRequest) {
30957 UpdateBaiduChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30958})(UpdateBaiduChannelRequest || (UpdateBaiduChannelRequest = {}));
30959var UpdateBaiduChannelResponse;
30960(function (UpdateBaiduChannelResponse) {
30961 UpdateBaiduChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30962})(UpdateBaiduChannelResponse || (UpdateBaiduChannelResponse = {}));
30963var UpdateCampaignRequest;
30964(function (UpdateCampaignRequest) {
30965 UpdateCampaignRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30966})(UpdateCampaignRequest || (UpdateCampaignRequest = {}));
30967var UpdateCampaignResponse;
30968(function (UpdateCampaignResponse) {
30969 UpdateCampaignResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30970})(UpdateCampaignResponse || (UpdateCampaignResponse = {}));
30971var UpdateEmailChannelRequest;
30972(function (UpdateEmailChannelRequest) {
30973 UpdateEmailChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30974})(UpdateEmailChannelRequest || (UpdateEmailChannelRequest = {}));
30975var UpdateEmailChannelResponse;
30976(function (UpdateEmailChannelResponse) {
30977 UpdateEmailChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30978})(UpdateEmailChannelResponse || (UpdateEmailChannelResponse = {}));
30979var UpdateEmailTemplateRequest;
30980(function (UpdateEmailTemplateRequest) {
30981 UpdateEmailTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30982})(UpdateEmailTemplateRequest || (UpdateEmailTemplateRequest = {}));
30983var UpdateEmailTemplateResponse;
30984(function (UpdateEmailTemplateResponse) {
30985 UpdateEmailTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30986})(UpdateEmailTemplateResponse || (UpdateEmailTemplateResponse = {}));
30987var UpdateEndpointRequest;
30988(function (UpdateEndpointRequest) {
30989 UpdateEndpointRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30990})(UpdateEndpointRequest || (UpdateEndpointRequest = {}));
30991var UpdateEndpointResponse;
30992(function (UpdateEndpointResponse) {
30993 UpdateEndpointResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30994})(UpdateEndpointResponse || (UpdateEndpointResponse = {}));
30995var UpdateEndpointsBatchRequest;
30996(function (UpdateEndpointsBatchRequest) {
30997 UpdateEndpointsBatchRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
30998})(UpdateEndpointsBatchRequest || (UpdateEndpointsBatchRequest = {}));
30999var UpdateEndpointsBatchResponse;
31000(function (UpdateEndpointsBatchResponse) {
31001 UpdateEndpointsBatchResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31002})(UpdateEndpointsBatchResponse || (UpdateEndpointsBatchResponse = {}));
31003var UpdateGcmChannelRequest;
31004(function (UpdateGcmChannelRequest) {
31005 UpdateGcmChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31006})(UpdateGcmChannelRequest || (UpdateGcmChannelRequest = {}));
31007var UpdateGcmChannelResponse;
31008(function (UpdateGcmChannelResponse) {
31009 UpdateGcmChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31010})(UpdateGcmChannelResponse || (UpdateGcmChannelResponse = {}));
31011var UpdateJourneyRequest;
31012(function (UpdateJourneyRequest) {
31013 UpdateJourneyRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31014})(UpdateJourneyRequest || (UpdateJourneyRequest = {}));
31015var UpdateJourneyResponse;
31016(function (UpdateJourneyResponse) {
31017 UpdateJourneyResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31018})(UpdateJourneyResponse || (UpdateJourneyResponse = {}));
31019var UpdateJourneyStateRequest;
31020(function (UpdateJourneyStateRequest) {
31021 UpdateJourneyStateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31022})(UpdateJourneyStateRequest || (UpdateJourneyStateRequest = {}));
31023var UpdateJourneyStateResponse;
31024(function (UpdateJourneyStateResponse) {
31025 UpdateJourneyStateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31026})(UpdateJourneyStateResponse || (UpdateJourneyStateResponse = {}));
31027var UpdatePushTemplateRequest;
31028(function (UpdatePushTemplateRequest) {
31029 UpdatePushTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31030})(UpdatePushTemplateRequest || (UpdatePushTemplateRequest = {}));
31031var UpdatePushTemplateResponse;
31032(function (UpdatePushTemplateResponse) {
31033 UpdatePushTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31034})(UpdatePushTemplateResponse || (UpdatePushTemplateResponse = {}));
31035var UpdateRecommenderConfigurationShape;
31036(function (UpdateRecommenderConfigurationShape) {
31037 UpdateRecommenderConfigurationShape.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31038})(UpdateRecommenderConfigurationShape || (UpdateRecommenderConfigurationShape = {}));
31039var UpdateRecommenderConfigurationRequest;
31040(function (UpdateRecommenderConfigurationRequest) {
31041 UpdateRecommenderConfigurationRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31042})(UpdateRecommenderConfigurationRequest || (UpdateRecommenderConfigurationRequest = {}));
31043var UpdateRecommenderConfigurationResponse;
31044(function (UpdateRecommenderConfigurationResponse) {
31045 UpdateRecommenderConfigurationResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31046})(UpdateRecommenderConfigurationResponse || (UpdateRecommenderConfigurationResponse = {}));
31047var UpdateSegmentRequest;
31048(function (UpdateSegmentRequest) {
31049 UpdateSegmentRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31050})(UpdateSegmentRequest || (UpdateSegmentRequest = {}));
31051var UpdateSegmentResponse;
31052(function (UpdateSegmentResponse) {
31053 UpdateSegmentResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31054})(UpdateSegmentResponse || (UpdateSegmentResponse = {}));
31055var SMSChannelRequest;
31056(function (SMSChannelRequest) {
31057 SMSChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31058})(SMSChannelRequest || (SMSChannelRequest = {}));
31059var UpdateSmsChannelRequest;
31060(function (UpdateSmsChannelRequest) {
31061 UpdateSmsChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31062})(UpdateSmsChannelRequest || (UpdateSmsChannelRequest = {}));
31063var UpdateSmsChannelResponse;
31064(function (UpdateSmsChannelResponse) {
31065 UpdateSmsChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31066})(UpdateSmsChannelResponse || (UpdateSmsChannelResponse = {}));
31067var UpdateSmsTemplateRequest;
31068(function (UpdateSmsTemplateRequest) {
31069 UpdateSmsTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31070})(UpdateSmsTemplateRequest || (UpdateSmsTemplateRequest = {}));
31071var UpdateSmsTemplateResponse;
31072(function (UpdateSmsTemplateResponse) {
31073 UpdateSmsTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31074})(UpdateSmsTemplateResponse || (UpdateSmsTemplateResponse = {}));
31075var TemplateActiveVersionRequest;
31076(function (TemplateActiveVersionRequest) {
31077 TemplateActiveVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31078})(TemplateActiveVersionRequest || (TemplateActiveVersionRequest = {}));
31079var UpdateTemplateActiveVersionRequest;
31080(function (UpdateTemplateActiveVersionRequest) {
31081 UpdateTemplateActiveVersionRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31082})(UpdateTemplateActiveVersionRequest || (UpdateTemplateActiveVersionRequest = {}));
31083var UpdateTemplateActiveVersionResponse;
31084(function (UpdateTemplateActiveVersionResponse) {
31085 UpdateTemplateActiveVersionResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31086})(UpdateTemplateActiveVersionResponse || (UpdateTemplateActiveVersionResponse = {}));
31087var VoiceChannelRequest;
31088(function (VoiceChannelRequest) {
31089 VoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31090})(VoiceChannelRequest || (VoiceChannelRequest = {}));
31091var UpdateVoiceChannelRequest;
31092(function (UpdateVoiceChannelRequest) {
31093 UpdateVoiceChannelRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31094})(UpdateVoiceChannelRequest || (UpdateVoiceChannelRequest = {}));
31095var UpdateVoiceChannelResponse;
31096(function (UpdateVoiceChannelResponse) {
31097 UpdateVoiceChannelResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31098})(UpdateVoiceChannelResponse || (UpdateVoiceChannelResponse = {}));
31099var UpdateVoiceTemplateRequest;
31100(function (UpdateVoiceTemplateRequest) {
31101 UpdateVoiceTemplateRequest.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31102})(UpdateVoiceTemplateRequest || (UpdateVoiceTemplateRequest = {}));
31103var UpdateVoiceTemplateResponse;
31104(function (UpdateVoiceTemplateResponse) {
31105 UpdateVoiceTemplateResponse.filterSensitiveLog = function (obj) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, obj)); };
31106})(UpdateVoiceTemplateResponse || (UpdateVoiceTemplateResponse = {}));
31107//# sourceMappingURL=models_1.js.map
31108
31109/***/ }),
31110
31111/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/package.json":
31112/*!***********************************************************************************!*\
31113 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/package.json ***!
31114 \***********************************************************************************/
31115/*! exports provided: name, description, version, scripts, main, types, module, browser, react-native, sideEffects, dependencies, devDependencies, engines, typesVersions, author, license, homepage, repository, default */
31116/***/ (function(module) {
31117
31118module.exports = JSON.parse("{\"name\":\"@aws-sdk/client-pinpoint\",\"description\":\"AWS SDK for JavaScript Pinpoint Client for Node.js, Browser and React Native\",\"version\":\"3.6.1\",\"scripts\":{\"clean\":\"yarn remove-definitions && yarn remove-dist && yarn remove-documentation\",\"build-documentation\":\"yarn remove-documentation && typedoc ./\",\"prepublishOnly\":\"yarn build\",\"pretest\":\"yarn build:cjs\",\"remove-definitions\":\"rimraf ./types\",\"remove-dist\":\"rimraf ./dist\",\"remove-documentation\":\"rimraf ./docs\",\"test\":\"exit 0\",\"build:cjs\":\"tsc -p tsconfig.json\",\"build:es\":\"tsc -p tsconfig.es.json\",\"build\":\"yarn build:cjs && yarn build:es\",\"postbuild\":\"downlevel-dts types types/ts3.4\"},\"main\":\"./dist/cjs/index.js\",\"types\":\"./types/index.d.ts\",\"module\":\"./dist/es/index.js\",\"browser\":{\"./runtimeConfig\":\"./runtimeConfig.browser\"},\"react-native\":{\"./runtimeConfig\":\"./runtimeConfig.native\"},\"sideEffects\":false,\"dependencies\":{\"@aws-crypto/sha256-browser\":\"^1.0.0\",\"@aws-crypto/sha256-js\":\"^1.0.0\",\"@aws-sdk/config-resolver\":\"3.6.1\",\"@aws-sdk/credential-provider-node\":\"3.6.1\",\"@aws-sdk/fetch-http-handler\":\"3.6.1\",\"@aws-sdk/hash-node\":\"3.6.1\",\"@aws-sdk/invalid-dependency\":\"3.6.1\",\"@aws-sdk/middleware-content-length\":\"3.6.1\",\"@aws-sdk/middleware-host-header\":\"3.6.1\",\"@aws-sdk/middleware-logger\":\"3.6.1\",\"@aws-sdk/middleware-retry\":\"3.6.1\",\"@aws-sdk/middleware-serde\":\"3.6.1\",\"@aws-sdk/middleware-signing\":\"3.6.1\",\"@aws-sdk/middleware-stack\":\"3.6.1\",\"@aws-sdk/middleware-user-agent\":\"3.6.1\",\"@aws-sdk/node-config-provider\":\"3.6.1\",\"@aws-sdk/node-http-handler\":\"3.6.1\",\"@aws-sdk/protocol-http\":\"3.6.1\",\"@aws-sdk/smithy-client\":\"3.6.1\",\"@aws-sdk/types\":\"3.6.1\",\"@aws-sdk/url-parser\":\"3.6.1\",\"@aws-sdk/url-parser-native\":\"3.6.1\",\"@aws-sdk/util-base64-browser\":\"3.6.1\",\"@aws-sdk/util-base64-node\":\"3.6.1\",\"@aws-sdk/util-body-length-browser\":\"3.6.1\",\"@aws-sdk/util-body-length-node\":\"3.6.1\",\"@aws-sdk/util-user-agent-browser\":\"3.6.1\",\"@aws-sdk/util-user-agent-node\":\"3.6.1\",\"@aws-sdk/util-utf8-browser\":\"3.6.1\",\"@aws-sdk/util-utf8-node\":\"3.6.1\",\"tslib\":\"^2.0.0\"},\"devDependencies\":{\"@aws-sdk/client-documentation-generator\":\"3.6.1\",\"@types/node\":\"^12.7.5\",\"downlevel-dts\":\"0.7.0\",\"jest\":\"^26.1.0\",\"rimraf\":\"^3.0.0\",\"typedoc\":\"^0.19.2\",\"typescript\":\"~4.1.2\"},\"engines\":{\"node\":\">=10.0.0\"},\"typesVersions\":{\"<4.0\":{\"types/*\":[\"types/ts3.4/*\"]}},\"author\":{\"name\":\"AWS SDK for JavaScript Team\",\"url\":\"https://aws.amazon.com/javascript/\"},\"license\":\"Apache-2.0\",\"homepage\":\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pinpoint\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/aws/aws-sdk-js-v3.git\",\"directory\":\"clients/client-pinpoint\"}}");
31119
31120/***/ }),
31121
31122/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js":
31123/*!*************************************************************************************************!*\
31124 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/protocols/Aws_restJson1.js ***!
31125 \*************************************************************************************************/
31126/*! exports provided: serializeAws_restJson1CreateAppCommand, serializeAws_restJson1CreateCampaignCommand, serializeAws_restJson1CreateEmailTemplateCommand, serializeAws_restJson1CreateExportJobCommand, serializeAws_restJson1CreateImportJobCommand, serializeAws_restJson1CreateJourneyCommand, serializeAws_restJson1CreatePushTemplateCommand, serializeAws_restJson1CreateRecommenderConfigurationCommand, serializeAws_restJson1CreateSegmentCommand, serializeAws_restJson1CreateSmsTemplateCommand, serializeAws_restJson1CreateVoiceTemplateCommand, serializeAws_restJson1DeleteAdmChannelCommand, serializeAws_restJson1DeleteApnsChannelCommand, serializeAws_restJson1DeleteApnsSandboxChannelCommand, serializeAws_restJson1DeleteApnsVoipChannelCommand, serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand, serializeAws_restJson1DeleteAppCommand, serializeAws_restJson1DeleteBaiduChannelCommand, serializeAws_restJson1DeleteCampaignCommand, serializeAws_restJson1DeleteEmailChannelCommand, serializeAws_restJson1DeleteEmailTemplateCommand, serializeAws_restJson1DeleteEndpointCommand, serializeAws_restJson1DeleteEventStreamCommand, serializeAws_restJson1DeleteGcmChannelCommand, serializeAws_restJson1DeleteJourneyCommand, serializeAws_restJson1DeletePushTemplateCommand, serializeAws_restJson1DeleteRecommenderConfigurationCommand, serializeAws_restJson1DeleteSegmentCommand, serializeAws_restJson1DeleteSmsChannelCommand, serializeAws_restJson1DeleteSmsTemplateCommand, serializeAws_restJson1DeleteUserEndpointsCommand, serializeAws_restJson1DeleteVoiceChannelCommand, serializeAws_restJson1DeleteVoiceTemplateCommand, serializeAws_restJson1GetAdmChannelCommand, serializeAws_restJson1GetApnsChannelCommand, serializeAws_restJson1GetApnsSandboxChannelCommand, serializeAws_restJson1GetApnsVoipChannelCommand, serializeAws_restJson1GetApnsVoipSandboxChannelCommand, serializeAws_restJson1GetAppCommand, serializeAws_restJson1GetApplicationDateRangeKpiCommand, serializeAws_restJson1GetApplicationSettingsCommand, serializeAws_restJson1GetAppsCommand, serializeAws_restJson1GetBaiduChannelCommand, serializeAws_restJson1GetCampaignCommand, serializeAws_restJson1GetCampaignActivitiesCommand, serializeAws_restJson1GetCampaignDateRangeKpiCommand, serializeAws_restJson1GetCampaignsCommand, serializeAws_restJson1GetCampaignVersionCommand, serializeAws_restJson1GetCampaignVersionsCommand, serializeAws_restJson1GetChannelsCommand, serializeAws_restJson1GetEmailChannelCommand, serializeAws_restJson1GetEmailTemplateCommand, serializeAws_restJson1GetEndpointCommand, serializeAws_restJson1GetEventStreamCommand, serializeAws_restJson1GetExportJobCommand, serializeAws_restJson1GetExportJobsCommand, serializeAws_restJson1GetGcmChannelCommand, serializeAws_restJson1GetImportJobCommand, serializeAws_restJson1GetImportJobsCommand, serializeAws_restJson1GetJourneyCommand, serializeAws_restJson1GetJourneyDateRangeKpiCommand, serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand, serializeAws_restJson1GetJourneyExecutionMetricsCommand, serializeAws_restJson1GetPushTemplateCommand, serializeAws_restJson1GetRecommenderConfigurationCommand, serializeAws_restJson1GetRecommenderConfigurationsCommand, serializeAws_restJson1GetSegmentCommand, serializeAws_restJson1GetSegmentExportJobsCommand, serializeAws_restJson1GetSegmentImportJobsCommand, serializeAws_restJson1GetSegmentsCommand, serializeAws_restJson1GetSegmentVersionCommand, serializeAws_restJson1GetSegmentVersionsCommand, serializeAws_restJson1GetSmsChannelCommand, serializeAws_restJson1GetSmsTemplateCommand, serializeAws_restJson1GetUserEndpointsCommand, serializeAws_restJson1GetVoiceChannelCommand, serializeAws_restJson1GetVoiceTemplateCommand, serializeAws_restJson1ListJourneysCommand, serializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTemplatesCommand, serializeAws_restJson1ListTemplateVersionsCommand, serializeAws_restJson1PhoneNumberValidateCommand, serializeAws_restJson1PutEventsCommand, serializeAws_restJson1PutEventStreamCommand, serializeAws_restJson1RemoveAttributesCommand, serializeAws_restJson1SendMessagesCommand, serializeAws_restJson1SendUsersMessagesCommand, serializeAws_restJson1TagResourceCommand, serializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UpdateAdmChannelCommand, serializeAws_restJson1UpdateApnsChannelCommand, serializeAws_restJson1UpdateApnsSandboxChannelCommand, serializeAws_restJson1UpdateApnsVoipChannelCommand, serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand, serializeAws_restJson1UpdateApplicationSettingsCommand, serializeAws_restJson1UpdateBaiduChannelCommand, serializeAws_restJson1UpdateCampaignCommand, serializeAws_restJson1UpdateEmailChannelCommand, serializeAws_restJson1UpdateEmailTemplateCommand, serializeAws_restJson1UpdateEndpointCommand, serializeAws_restJson1UpdateEndpointsBatchCommand, serializeAws_restJson1UpdateGcmChannelCommand, serializeAws_restJson1UpdateJourneyCommand, serializeAws_restJson1UpdateJourneyStateCommand, serializeAws_restJson1UpdatePushTemplateCommand, serializeAws_restJson1UpdateRecommenderConfigurationCommand, serializeAws_restJson1UpdateSegmentCommand, serializeAws_restJson1UpdateSmsChannelCommand, serializeAws_restJson1UpdateSmsTemplateCommand, serializeAws_restJson1UpdateTemplateActiveVersionCommand, serializeAws_restJson1UpdateVoiceChannelCommand, serializeAws_restJson1UpdateVoiceTemplateCommand, deserializeAws_restJson1CreateAppCommand, deserializeAws_restJson1CreateCampaignCommand, deserializeAws_restJson1CreateEmailTemplateCommand, deserializeAws_restJson1CreateExportJobCommand, deserializeAws_restJson1CreateImportJobCommand, deserializeAws_restJson1CreateJourneyCommand, deserializeAws_restJson1CreatePushTemplateCommand, deserializeAws_restJson1CreateRecommenderConfigurationCommand, deserializeAws_restJson1CreateSegmentCommand, deserializeAws_restJson1CreateSmsTemplateCommand, deserializeAws_restJson1CreateVoiceTemplateCommand, deserializeAws_restJson1DeleteAdmChannelCommand, deserializeAws_restJson1DeleteApnsChannelCommand, deserializeAws_restJson1DeleteApnsSandboxChannelCommand, deserializeAws_restJson1DeleteApnsVoipChannelCommand, deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand, deserializeAws_restJson1DeleteAppCommand, deserializeAws_restJson1DeleteBaiduChannelCommand, deserializeAws_restJson1DeleteCampaignCommand, deserializeAws_restJson1DeleteEmailChannelCommand, deserializeAws_restJson1DeleteEmailTemplateCommand, deserializeAws_restJson1DeleteEndpointCommand, deserializeAws_restJson1DeleteEventStreamCommand, deserializeAws_restJson1DeleteGcmChannelCommand, deserializeAws_restJson1DeleteJourneyCommand, deserializeAws_restJson1DeletePushTemplateCommand, deserializeAws_restJson1DeleteRecommenderConfigurationCommand, deserializeAws_restJson1DeleteSegmentCommand, deserializeAws_restJson1DeleteSmsChannelCommand, deserializeAws_restJson1DeleteSmsTemplateCommand, deserializeAws_restJson1DeleteUserEndpointsCommand, deserializeAws_restJson1DeleteVoiceChannelCommand, deserializeAws_restJson1DeleteVoiceTemplateCommand, deserializeAws_restJson1GetAdmChannelCommand, deserializeAws_restJson1GetApnsChannelCommand, deserializeAws_restJson1GetApnsSandboxChannelCommand, deserializeAws_restJson1GetApnsVoipChannelCommand, deserializeAws_restJson1GetApnsVoipSandboxChannelCommand, deserializeAws_restJson1GetAppCommand, deserializeAws_restJson1GetApplicationDateRangeKpiCommand, deserializeAws_restJson1GetApplicationSettingsCommand, deserializeAws_restJson1GetAppsCommand, deserializeAws_restJson1GetBaiduChannelCommand, deserializeAws_restJson1GetCampaignCommand, deserializeAws_restJson1GetCampaignActivitiesCommand, deserializeAws_restJson1GetCampaignDateRangeKpiCommand, deserializeAws_restJson1GetCampaignsCommand, deserializeAws_restJson1GetCampaignVersionCommand, deserializeAws_restJson1GetCampaignVersionsCommand, deserializeAws_restJson1GetChannelsCommand, deserializeAws_restJson1GetEmailChannelCommand, deserializeAws_restJson1GetEmailTemplateCommand, deserializeAws_restJson1GetEndpointCommand, deserializeAws_restJson1GetEventStreamCommand, deserializeAws_restJson1GetExportJobCommand, deserializeAws_restJson1GetExportJobsCommand, deserializeAws_restJson1GetGcmChannelCommand, deserializeAws_restJson1GetImportJobCommand, deserializeAws_restJson1GetImportJobsCommand, deserializeAws_restJson1GetJourneyCommand, deserializeAws_restJson1GetJourneyDateRangeKpiCommand, deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand, deserializeAws_restJson1GetJourneyExecutionMetricsCommand, deserializeAws_restJson1GetPushTemplateCommand, deserializeAws_restJson1GetRecommenderConfigurationCommand, deserializeAws_restJson1GetRecommenderConfigurationsCommand, deserializeAws_restJson1GetSegmentCommand, deserializeAws_restJson1GetSegmentExportJobsCommand, deserializeAws_restJson1GetSegmentImportJobsCommand, deserializeAws_restJson1GetSegmentsCommand, deserializeAws_restJson1GetSegmentVersionCommand, deserializeAws_restJson1GetSegmentVersionsCommand, deserializeAws_restJson1GetSmsChannelCommand, deserializeAws_restJson1GetSmsTemplateCommand, deserializeAws_restJson1GetUserEndpointsCommand, deserializeAws_restJson1GetVoiceChannelCommand, deserializeAws_restJson1GetVoiceTemplateCommand, deserializeAws_restJson1ListJourneysCommand, deserializeAws_restJson1ListTagsForResourceCommand, deserializeAws_restJson1ListTemplatesCommand, deserializeAws_restJson1ListTemplateVersionsCommand, deserializeAws_restJson1PhoneNumberValidateCommand, deserializeAws_restJson1PutEventsCommand, deserializeAws_restJson1PutEventStreamCommand, deserializeAws_restJson1RemoveAttributesCommand, deserializeAws_restJson1SendMessagesCommand, deserializeAws_restJson1SendUsersMessagesCommand, deserializeAws_restJson1TagResourceCommand, deserializeAws_restJson1UntagResourceCommand, deserializeAws_restJson1UpdateAdmChannelCommand, deserializeAws_restJson1UpdateApnsChannelCommand, deserializeAws_restJson1UpdateApnsSandboxChannelCommand, deserializeAws_restJson1UpdateApnsVoipChannelCommand, deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand, deserializeAws_restJson1UpdateApplicationSettingsCommand, deserializeAws_restJson1UpdateBaiduChannelCommand, deserializeAws_restJson1UpdateCampaignCommand, deserializeAws_restJson1UpdateEmailChannelCommand, deserializeAws_restJson1UpdateEmailTemplateCommand, deserializeAws_restJson1UpdateEndpointCommand, deserializeAws_restJson1UpdateEndpointsBatchCommand, deserializeAws_restJson1UpdateGcmChannelCommand, deserializeAws_restJson1UpdateJourneyCommand, deserializeAws_restJson1UpdateJourneyStateCommand, deserializeAws_restJson1UpdatePushTemplateCommand, deserializeAws_restJson1UpdateRecommenderConfigurationCommand, deserializeAws_restJson1UpdateSegmentCommand, deserializeAws_restJson1UpdateSmsChannelCommand, deserializeAws_restJson1UpdateSmsTemplateCommand, deserializeAws_restJson1UpdateTemplateActiveVersionCommand, deserializeAws_restJson1UpdateVoiceChannelCommand, deserializeAws_restJson1UpdateVoiceTemplateCommand */
31127/***/ (function(module, __webpack_exports__, __webpack_require__) {
31128
31129"use strict";
31130__webpack_require__.r(__webpack_exports__);
31131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateAppCommand", function() { return serializeAws_restJson1CreateAppCommand; });
31132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateCampaignCommand", function() { return serializeAws_restJson1CreateCampaignCommand; });
31133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateEmailTemplateCommand", function() { return serializeAws_restJson1CreateEmailTemplateCommand; });
31134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateExportJobCommand", function() { return serializeAws_restJson1CreateExportJobCommand; });
31135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateImportJobCommand", function() { return serializeAws_restJson1CreateImportJobCommand; });
31136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateJourneyCommand", function() { return serializeAws_restJson1CreateJourneyCommand; });
31137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreatePushTemplateCommand", function() { return serializeAws_restJson1CreatePushTemplateCommand; });
31138/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateRecommenderConfigurationCommand", function() { return serializeAws_restJson1CreateRecommenderConfigurationCommand; });
31139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateSegmentCommand", function() { return serializeAws_restJson1CreateSegmentCommand; });
31140/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateSmsTemplateCommand", function() { return serializeAws_restJson1CreateSmsTemplateCommand; });
31141/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1CreateVoiceTemplateCommand", function() { return serializeAws_restJson1CreateVoiceTemplateCommand; });
31142/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteAdmChannelCommand", function() { return serializeAws_restJson1DeleteAdmChannelCommand; });
31143/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsChannelCommand", function() { return serializeAws_restJson1DeleteApnsChannelCommand; });
31144/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsSandboxChannelCommand", function() { return serializeAws_restJson1DeleteApnsSandboxChannelCommand; });
31145/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsVoipChannelCommand", function() { return serializeAws_restJson1DeleteApnsVoipChannelCommand; });
31146/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand; });
31147/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteAppCommand", function() { return serializeAws_restJson1DeleteAppCommand; });
31148/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteBaiduChannelCommand", function() { return serializeAws_restJson1DeleteBaiduChannelCommand; });
31149/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteCampaignCommand", function() { return serializeAws_restJson1DeleteCampaignCommand; });
31150/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEmailChannelCommand", function() { return serializeAws_restJson1DeleteEmailChannelCommand; });
31151/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEmailTemplateCommand", function() { return serializeAws_restJson1DeleteEmailTemplateCommand; });
31152/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEndpointCommand", function() { return serializeAws_restJson1DeleteEndpointCommand; });
31153/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteEventStreamCommand", function() { return serializeAws_restJson1DeleteEventStreamCommand; });
31154/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteGcmChannelCommand", function() { return serializeAws_restJson1DeleteGcmChannelCommand; });
31155/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteJourneyCommand", function() { return serializeAws_restJson1DeleteJourneyCommand; });
31156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeletePushTemplateCommand", function() { return serializeAws_restJson1DeletePushTemplateCommand; });
31157/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteRecommenderConfigurationCommand", function() { return serializeAws_restJson1DeleteRecommenderConfigurationCommand; });
31158/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSegmentCommand", function() { return serializeAws_restJson1DeleteSegmentCommand; });
31159/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSmsChannelCommand", function() { return serializeAws_restJson1DeleteSmsChannelCommand; });
31160/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteSmsTemplateCommand", function() { return serializeAws_restJson1DeleteSmsTemplateCommand; });
31161/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteUserEndpointsCommand", function() { return serializeAws_restJson1DeleteUserEndpointsCommand; });
31162/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteVoiceChannelCommand", function() { return serializeAws_restJson1DeleteVoiceChannelCommand; });
31163/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1DeleteVoiceTemplateCommand", function() { return serializeAws_restJson1DeleteVoiceTemplateCommand; });
31164/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAdmChannelCommand", function() { return serializeAws_restJson1GetAdmChannelCommand; });
31165/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsChannelCommand", function() { return serializeAws_restJson1GetApnsChannelCommand; });
31166/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsSandboxChannelCommand", function() { return serializeAws_restJson1GetApnsSandboxChannelCommand; });
31167/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsVoipChannelCommand", function() { return serializeAws_restJson1GetApnsVoipChannelCommand; });
31168/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1GetApnsVoipSandboxChannelCommand; });
31169/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAppCommand", function() { return serializeAws_restJson1GetAppCommand; });
31170/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApplicationDateRangeKpiCommand", function() { return serializeAws_restJson1GetApplicationDateRangeKpiCommand; });
31171/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetApplicationSettingsCommand", function() { return serializeAws_restJson1GetApplicationSettingsCommand; });
31172/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetAppsCommand", function() { return serializeAws_restJson1GetAppsCommand; });
31173/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetBaiduChannelCommand", function() { return serializeAws_restJson1GetBaiduChannelCommand; });
31174/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignCommand", function() { return serializeAws_restJson1GetCampaignCommand; });
31175/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignActivitiesCommand", function() { return serializeAws_restJson1GetCampaignActivitiesCommand; });
31176/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignDateRangeKpiCommand", function() { return serializeAws_restJson1GetCampaignDateRangeKpiCommand; });
31177/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignsCommand", function() { return serializeAws_restJson1GetCampaignsCommand; });
31178/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignVersionCommand", function() { return serializeAws_restJson1GetCampaignVersionCommand; });
31179/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetCampaignVersionsCommand", function() { return serializeAws_restJson1GetCampaignVersionsCommand; });
31180/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetChannelsCommand", function() { return serializeAws_restJson1GetChannelsCommand; });
31181/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEmailChannelCommand", function() { return serializeAws_restJson1GetEmailChannelCommand; });
31182/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEmailTemplateCommand", function() { return serializeAws_restJson1GetEmailTemplateCommand; });
31183/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEndpointCommand", function() { return serializeAws_restJson1GetEndpointCommand; });
31184/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetEventStreamCommand", function() { return serializeAws_restJson1GetEventStreamCommand; });
31185/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetExportJobCommand", function() { return serializeAws_restJson1GetExportJobCommand; });
31186/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetExportJobsCommand", function() { return serializeAws_restJson1GetExportJobsCommand; });
31187/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetGcmChannelCommand", function() { return serializeAws_restJson1GetGcmChannelCommand; });
31188/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetImportJobCommand", function() { return serializeAws_restJson1GetImportJobCommand; });
31189/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetImportJobsCommand", function() { return serializeAws_restJson1GetImportJobsCommand; });
31190/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyCommand", function() { return serializeAws_restJson1GetJourneyCommand; });
31191/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyDateRangeKpiCommand", function() { return serializeAws_restJson1GetJourneyDateRangeKpiCommand; });
31192/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand", function() { return serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand; });
31193/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetJourneyExecutionMetricsCommand", function() { return serializeAws_restJson1GetJourneyExecutionMetricsCommand; });
31194/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetPushTemplateCommand", function() { return serializeAws_restJson1GetPushTemplateCommand; });
31195/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetRecommenderConfigurationCommand", function() { return serializeAws_restJson1GetRecommenderConfigurationCommand; });
31196/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetRecommenderConfigurationsCommand", function() { return serializeAws_restJson1GetRecommenderConfigurationsCommand; });
31197/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentCommand", function() { return serializeAws_restJson1GetSegmentCommand; });
31198/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentExportJobsCommand", function() { return serializeAws_restJson1GetSegmentExportJobsCommand; });
31199/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentImportJobsCommand", function() { return serializeAws_restJson1GetSegmentImportJobsCommand; });
31200/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentsCommand", function() { return serializeAws_restJson1GetSegmentsCommand; });
31201/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentVersionCommand", function() { return serializeAws_restJson1GetSegmentVersionCommand; });
31202/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSegmentVersionsCommand", function() { return serializeAws_restJson1GetSegmentVersionsCommand; });
31203/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSmsChannelCommand", function() { return serializeAws_restJson1GetSmsChannelCommand; });
31204/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetSmsTemplateCommand", function() { return serializeAws_restJson1GetSmsTemplateCommand; });
31205/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetUserEndpointsCommand", function() { return serializeAws_restJson1GetUserEndpointsCommand; });
31206/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetVoiceChannelCommand", function() { return serializeAws_restJson1GetVoiceChannelCommand; });
31207/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1GetVoiceTemplateCommand", function() { return serializeAws_restJson1GetVoiceTemplateCommand; });
31208/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListJourneysCommand", function() { return serializeAws_restJson1ListJourneysCommand; });
31209/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTagsForResourceCommand", function() { return serializeAws_restJson1ListTagsForResourceCommand; });
31210/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTemplatesCommand", function() { return serializeAws_restJson1ListTemplatesCommand; });
31211/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1ListTemplateVersionsCommand", function() { return serializeAws_restJson1ListTemplateVersionsCommand; });
31212/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PhoneNumberValidateCommand", function() { return serializeAws_restJson1PhoneNumberValidateCommand; });
31213/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventsCommand", function() { return serializeAws_restJson1PutEventsCommand; });
31214/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1PutEventStreamCommand", function() { return serializeAws_restJson1PutEventStreamCommand; });
31215/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1RemoveAttributesCommand", function() { return serializeAws_restJson1RemoveAttributesCommand; });
31216/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1SendMessagesCommand", function() { return serializeAws_restJson1SendMessagesCommand; });
31217/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1SendUsersMessagesCommand", function() { return serializeAws_restJson1SendUsersMessagesCommand; });
31218/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1TagResourceCommand", function() { return serializeAws_restJson1TagResourceCommand; });
31219/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UntagResourceCommand", function() { return serializeAws_restJson1UntagResourceCommand; });
31220/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateAdmChannelCommand", function() { return serializeAws_restJson1UpdateAdmChannelCommand; });
31221/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsChannelCommand", function() { return serializeAws_restJson1UpdateApnsChannelCommand; });
31222/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsSandboxChannelCommand", function() { return serializeAws_restJson1UpdateApnsSandboxChannelCommand; });
31223/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsVoipChannelCommand", function() { return serializeAws_restJson1UpdateApnsVoipChannelCommand; });
31224/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand", function() { return serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand; });
31225/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateApplicationSettingsCommand", function() { return serializeAws_restJson1UpdateApplicationSettingsCommand; });
31226/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateBaiduChannelCommand", function() { return serializeAws_restJson1UpdateBaiduChannelCommand; });
31227/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateCampaignCommand", function() { return serializeAws_restJson1UpdateCampaignCommand; });
31228/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEmailChannelCommand", function() { return serializeAws_restJson1UpdateEmailChannelCommand; });
31229/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEmailTemplateCommand", function() { return serializeAws_restJson1UpdateEmailTemplateCommand; });
31230/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEndpointCommand", function() { return serializeAws_restJson1UpdateEndpointCommand; });
31231/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateEndpointsBatchCommand", function() { return serializeAws_restJson1UpdateEndpointsBatchCommand; });
31232/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateGcmChannelCommand", function() { return serializeAws_restJson1UpdateGcmChannelCommand; });
31233/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateJourneyCommand", function() { return serializeAws_restJson1UpdateJourneyCommand; });
31234/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateJourneyStateCommand", function() { return serializeAws_restJson1UpdateJourneyStateCommand; });
31235/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdatePushTemplateCommand", function() { return serializeAws_restJson1UpdatePushTemplateCommand; });
31236/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateRecommenderConfigurationCommand", function() { return serializeAws_restJson1UpdateRecommenderConfigurationCommand; });
31237/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSegmentCommand", function() { return serializeAws_restJson1UpdateSegmentCommand; });
31238/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSmsChannelCommand", function() { return serializeAws_restJson1UpdateSmsChannelCommand; });
31239/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateSmsTemplateCommand", function() { return serializeAws_restJson1UpdateSmsTemplateCommand; });
31240/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateTemplateActiveVersionCommand", function() { return serializeAws_restJson1UpdateTemplateActiveVersionCommand; });
31241/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateVoiceChannelCommand", function() { return serializeAws_restJson1UpdateVoiceChannelCommand; });
31242/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeAws_restJson1UpdateVoiceTemplateCommand", function() { return serializeAws_restJson1UpdateVoiceTemplateCommand; });
31243/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateAppCommand", function() { return deserializeAws_restJson1CreateAppCommand; });
31244/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateCampaignCommand", function() { return deserializeAws_restJson1CreateCampaignCommand; });
31245/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateEmailTemplateCommand", function() { return deserializeAws_restJson1CreateEmailTemplateCommand; });
31246/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateExportJobCommand", function() { return deserializeAws_restJson1CreateExportJobCommand; });
31247/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateImportJobCommand", function() { return deserializeAws_restJson1CreateImportJobCommand; });
31248/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateJourneyCommand", function() { return deserializeAws_restJson1CreateJourneyCommand; });
31249/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreatePushTemplateCommand", function() { return deserializeAws_restJson1CreatePushTemplateCommand; });
31250/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateRecommenderConfigurationCommand", function() { return deserializeAws_restJson1CreateRecommenderConfigurationCommand; });
31251/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateSegmentCommand", function() { return deserializeAws_restJson1CreateSegmentCommand; });
31252/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateSmsTemplateCommand", function() { return deserializeAws_restJson1CreateSmsTemplateCommand; });
31253/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1CreateVoiceTemplateCommand", function() { return deserializeAws_restJson1CreateVoiceTemplateCommand; });
31254/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteAdmChannelCommand", function() { return deserializeAws_restJson1DeleteAdmChannelCommand; });
31255/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsChannelCommand", function() { return deserializeAws_restJson1DeleteApnsChannelCommand; });
31256/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsSandboxChannelCommand", function() { return deserializeAws_restJson1DeleteApnsSandboxChannelCommand; });
31257/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsVoipChannelCommand", function() { return deserializeAws_restJson1DeleteApnsVoipChannelCommand; });
31258/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand; });
31259/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteAppCommand", function() { return deserializeAws_restJson1DeleteAppCommand; });
31260/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteBaiduChannelCommand", function() { return deserializeAws_restJson1DeleteBaiduChannelCommand; });
31261/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteCampaignCommand", function() { return deserializeAws_restJson1DeleteCampaignCommand; });
31262/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEmailChannelCommand", function() { return deserializeAws_restJson1DeleteEmailChannelCommand; });
31263/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEmailTemplateCommand", function() { return deserializeAws_restJson1DeleteEmailTemplateCommand; });
31264/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEndpointCommand", function() { return deserializeAws_restJson1DeleteEndpointCommand; });
31265/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteEventStreamCommand", function() { return deserializeAws_restJson1DeleteEventStreamCommand; });
31266/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteGcmChannelCommand", function() { return deserializeAws_restJson1DeleteGcmChannelCommand; });
31267/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteJourneyCommand", function() { return deserializeAws_restJson1DeleteJourneyCommand; });
31268/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeletePushTemplateCommand", function() { return deserializeAws_restJson1DeletePushTemplateCommand; });
31269/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteRecommenderConfigurationCommand", function() { return deserializeAws_restJson1DeleteRecommenderConfigurationCommand; });
31270/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSegmentCommand", function() { return deserializeAws_restJson1DeleteSegmentCommand; });
31271/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSmsChannelCommand", function() { return deserializeAws_restJson1DeleteSmsChannelCommand; });
31272/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteSmsTemplateCommand", function() { return deserializeAws_restJson1DeleteSmsTemplateCommand; });
31273/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteUserEndpointsCommand", function() { return deserializeAws_restJson1DeleteUserEndpointsCommand; });
31274/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteVoiceChannelCommand", function() { return deserializeAws_restJson1DeleteVoiceChannelCommand; });
31275/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1DeleteVoiceTemplateCommand", function() { return deserializeAws_restJson1DeleteVoiceTemplateCommand; });
31276/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAdmChannelCommand", function() { return deserializeAws_restJson1GetAdmChannelCommand; });
31277/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsChannelCommand", function() { return deserializeAws_restJson1GetApnsChannelCommand; });
31278/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsSandboxChannelCommand", function() { return deserializeAws_restJson1GetApnsSandboxChannelCommand; });
31279/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsVoipChannelCommand", function() { return deserializeAws_restJson1GetApnsVoipChannelCommand; });
31280/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1GetApnsVoipSandboxChannelCommand; });
31281/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAppCommand", function() { return deserializeAws_restJson1GetAppCommand; });
31282/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApplicationDateRangeKpiCommand", function() { return deserializeAws_restJson1GetApplicationDateRangeKpiCommand; });
31283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetApplicationSettingsCommand", function() { return deserializeAws_restJson1GetApplicationSettingsCommand; });
31284/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetAppsCommand", function() { return deserializeAws_restJson1GetAppsCommand; });
31285/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetBaiduChannelCommand", function() { return deserializeAws_restJson1GetBaiduChannelCommand; });
31286/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignCommand", function() { return deserializeAws_restJson1GetCampaignCommand; });
31287/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignActivitiesCommand", function() { return deserializeAws_restJson1GetCampaignActivitiesCommand; });
31288/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignDateRangeKpiCommand", function() { return deserializeAws_restJson1GetCampaignDateRangeKpiCommand; });
31289/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignsCommand", function() { return deserializeAws_restJson1GetCampaignsCommand; });
31290/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignVersionCommand", function() { return deserializeAws_restJson1GetCampaignVersionCommand; });
31291/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetCampaignVersionsCommand", function() { return deserializeAws_restJson1GetCampaignVersionsCommand; });
31292/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetChannelsCommand", function() { return deserializeAws_restJson1GetChannelsCommand; });
31293/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEmailChannelCommand", function() { return deserializeAws_restJson1GetEmailChannelCommand; });
31294/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEmailTemplateCommand", function() { return deserializeAws_restJson1GetEmailTemplateCommand; });
31295/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEndpointCommand", function() { return deserializeAws_restJson1GetEndpointCommand; });
31296/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetEventStreamCommand", function() { return deserializeAws_restJson1GetEventStreamCommand; });
31297/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetExportJobCommand", function() { return deserializeAws_restJson1GetExportJobCommand; });
31298/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetExportJobsCommand", function() { return deserializeAws_restJson1GetExportJobsCommand; });
31299/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetGcmChannelCommand", function() { return deserializeAws_restJson1GetGcmChannelCommand; });
31300/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetImportJobCommand", function() { return deserializeAws_restJson1GetImportJobCommand; });
31301/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetImportJobsCommand", function() { return deserializeAws_restJson1GetImportJobsCommand; });
31302/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyCommand", function() { return deserializeAws_restJson1GetJourneyCommand; });
31303/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyDateRangeKpiCommand", function() { return deserializeAws_restJson1GetJourneyDateRangeKpiCommand; });
31304/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand", function() { return deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand; });
31305/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetJourneyExecutionMetricsCommand", function() { return deserializeAws_restJson1GetJourneyExecutionMetricsCommand; });
31306/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetPushTemplateCommand", function() { return deserializeAws_restJson1GetPushTemplateCommand; });
31307/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetRecommenderConfigurationCommand", function() { return deserializeAws_restJson1GetRecommenderConfigurationCommand; });
31308/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetRecommenderConfigurationsCommand", function() { return deserializeAws_restJson1GetRecommenderConfigurationsCommand; });
31309/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentCommand", function() { return deserializeAws_restJson1GetSegmentCommand; });
31310/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentExportJobsCommand", function() { return deserializeAws_restJson1GetSegmentExportJobsCommand; });
31311/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentImportJobsCommand", function() { return deserializeAws_restJson1GetSegmentImportJobsCommand; });
31312/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentsCommand", function() { return deserializeAws_restJson1GetSegmentsCommand; });
31313/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentVersionCommand", function() { return deserializeAws_restJson1GetSegmentVersionCommand; });
31314/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSegmentVersionsCommand", function() { return deserializeAws_restJson1GetSegmentVersionsCommand; });
31315/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSmsChannelCommand", function() { return deserializeAws_restJson1GetSmsChannelCommand; });
31316/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetSmsTemplateCommand", function() { return deserializeAws_restJson1GetSmsTemplateCommand; });
31317/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetUserEndpointsCommand", function() { return deserializeAws_restJson1GetUserEndpointsCommand; });
31318/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetVoiceChannelCommand", function() { return deserializeAws_restJson1GetVoiceChannelCommand; });
31319/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1GetVoiceTemplateCommand", function() { return deserializeAws_restJson1GetVoiceTemplateCommand; });
31320/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListJourneysCommand", function() { return deserializeAws_restJson1ListJourneysCommand; });
31321/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTagsForResourceCommand", function() { return deserializeAws_restJson1ListTagsForResourceCommand; });
31322/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTemplatesCommand", function() { return deserializeAws_restJson1ListTemplatesCommand; });
31323/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1ListTemplateVersionsCommand", function() { return deserializeAws_restJson1ListTemplateVersionsCommand; });
31324/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PhoneNumberValidateCommand", function() { return deserializeAws_restJson1PhoneNumberValidateCommand; });
31325/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventsCommand", function() { return deserializeAws_restJson1PutEventsCommand; });
31326/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1PutEventStreamCommand", function() { return deserializeAws_restJson1PutEventStreamCommand; });
31327/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1RemoveAttributesCommand", function() { return deserializeAws_restJson1RemoveAttributesCommand; });
31328/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1SendMessagesCommand", function() { return deserializeAws_restJson1SendMessagesCommand; });
31329/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1SendUsersMessagesCommand", function() { return deserializeAws_restJson1SendUsersMessagesCommand; });
31330/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1TagResourceCommand", function() { return deserializeAws_restJson1TagResourceCommand; });
31331/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UntagResourceCommand", function() { return deserializeAws_restJson1UntagResourceCommand; });
31332/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateAdmChannelCommand", function() { return deserializeAws_restJson1UpdateAdmChannelCommand; });
31333/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsChannelCommand", function() { return deserializeAws_restJson1UpdateApnsChannelCommand; });
31334/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsSandboxChannelCommand", function() { return deserializeAws_restJson1UpdateApnsSandboxChannelCommand; });
31335/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsVoipChannelCommand", function() { return deserializeAws_restJson1UpdateApnsVoipChannelCommand; });
31336/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand", function() { return deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand; });
31337/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateApplicationSettingsCommand", function() { return deserializeAws_restJson1UpdateApplicationSettingsCommand; });
31338/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateBaiduChannelCommand", function() { return deserializeAws_restJson1UpdateBaiduChannelCommand; });
31339/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateCampaignCommand", function() { return deserializeAws_restJson1UpdateCampaignCommand; });
31340/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEmailChannelCommand", function() { return deserializeAws_restJson1UpdateEmailChannelCommand; });
31341/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEmailTemplateCommand", function() { return deserializeAws_restJson1UpdateEmailTemplateCommand; });
31342/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEndpointCommand", function() { return deserializeAws_restJson1UpdateEndpointCommand; });
31343/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateEndpointsBatchCommand", function() { return deserializeAws_restJson1UpdateEndpointsBatchCommand; });
31344/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateGcmChannelCommand", function() { return deserializeAws_restJson1UpdateGcmChannelCommand; });
31345/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateJourneyCommand", function() { return deserializeAws_restJson1UpdateJourneyCommand; });
31346/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateJourneyStateCommand", function() { return deserializeAws_restJson1UpdateJourneyStateCommand; });
31347/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdatePushTemplateCommand", function() { return deserializeAws_restJson1UpdatePushTemplateCommand; });
31348/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateRecommenderConfigurationCommand", function() { return deserializeAws_restJson1UpdateRecommenderConfigurationCommand; });
31349/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSegmentCommand", function() { return deserializeAws_restJson1UpdateSegmentCommand; });
31350/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSmsChannelCommand", function() { return deserializeAws_restJson1UpdateSmsChannelCommand; });
31351/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateSmsTemplateCommand", function() { return deserializeAws_restJson1UpdateSmsTemplateCommand; });
31352/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateTemplateActiveVersionCommand", function() { return deserializeAws_restJson1UpdateTemplateActiveVersionCommand; });
31353/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateVoiceChannelCommand", function() { return deserializeAws_restJson1UpdateVoiceChannelCommand; });
31354/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializeAws_restJson1UpdateVoiceTemplateCommand", function() { return deserializeAws_restJson1UpdateVoiceTemplateCommand; });
31355/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
31356/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
31357/* harmony import */ var _aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/smithy-client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/index.js");
31358
31359
31360
31361var serializeAws_restJson1CreateAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31362 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
31363 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31364 switch (_c.label) {
31365 case 0:
31366 headers = {
31367 "content-type": "application/json",
31368 };
31369 resolvedPath = "/v1/apps";
31370 if (input.CreateApplicationRequest !== undefined) {
31371 body = serializeAws_restJson1CreateApplicationRequest(input.CreateApplicationRequest, context);
31372 }
31373 if (body === undefined) {
31374 body = {};
31375 }
31376 body = JSON.stringify(body);
31377 return [4 /*yield*/, context.endpoint()];
31378 case 1:
31379 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31380 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31381 protocol: protocol,
31382 hostname: hostname,
31383 port: port,
31384 method: "POST",
31385 headers: headers,
31386 path: resolvedPath,
31387 body: body,
31388 })];
31389 }
31390 });
31391}); };
31392var serializeAws_restJson1CreateCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31393 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31394 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31395 switch (_c.label) {
31396 case 0:
31397 headers = {
31398 "content-type": "application/json",
31399 };
31400 resolvedPath = "/v1/apps/{ApplicationId}/campaigns";
31401 if (input.ApplicationId !== undefined) {
31402 labelValue = input.ApplicationId;
31403 if (labelValue.length <= 0) {
31404 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31405 }
31406 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31407 }
31408 else {
31409 throw new Error("No value provided for input HTTP label: ApplicationId.");
31410 }
31411 if (input.WriteCampaignRequest !== undefined) {
31412 body = serializeAws_restJson1WriteCampaignRequest(input.WriteCampaignRequest, context);
31413 }
31414 if (body === undefined) {
31415 body = {};
31416 }
31417 body = JSON.stringify(body);
31418 return [4 /*yield*/, context.endpoint()];
31419 case 1:
31420 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31421 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31422 protocol: protocol,
31423 hostname: hostname,
31424 port: port,
31425 method: "POST",
31426 headers: headers,
31427 path: resolvedPath,
31428 body: body,
31429 })];
31430 }
31431 });
31432}); };
31433var serializeAws_restJson1CreateEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31434 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31435 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31436 switch (_c.label) {
31437 case 0:
31438 headers = {
31439 "content-type": "application/json",
31440 };
31441 resolvedPath = "/v1/templates/{TemplateName}/email";
31442 if (input.TemplateName !== undefined) {
31443 labelValue = input.TemplateName;
31444 if (labelValue.length <= 0) {
31445 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31446 }
31447 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31448 }
31449 else {
31450 throw new Error("No value provided for input HTTP label: TemplateName.");
31451 }
31452 if (input.EmailTemplateRequest !== undefined) {
31453 body = serializeAws_restJson1EmailTemplateRequest(input.EmailTemplateRequest, context);
31454 }
31455 if (body === undefined) {
31456 body = {};
31457 }
31458 body = JSON.stringify(body);
31459 return [4 /*yield*/, context.endpoint()];
31460 case 1:
31461 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31462 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31463 protocol: protocol,
31464 hostname: hostname,
31465 port: port,
31466 method: "POST",
31467 headers: headers,
31468 path: resolvedPath,
31469 body: body,
31470 })];
31471 }
31472 });
31473}); };
31474var serializeAws_restJson1CreateExportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31475 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31476 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31477 switch (_c.label) {
31478 case 0:
31479 headers = {
31480 "content-type": "application/json",
31481 };
31482 resolvedPath = "/v1/apps/{ApplicationId}/jobs/export";
31483 if (input.ApplicationId !== undefined) {
31484 labelValue = input.ApplicationId;
31485 if (labelValue.length <= 0) {
31486 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31487 }
31488 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31489 }
31490 else {
31491 throw new Error("No value provided for input HTTP label: ApplicationId.");
31492 }
31493 if (input.ExportJobRequest !== undefined) {
31494 body = serializeAws_restJson1ExportJobRequest(input.ExportJobRequest, context);
31495 }
31496 if (body === undefined) {
31497 body = {};
31498 }
31499 body = JSON.stringify(body);
31500 return [4 /*yield*/, context.endpoint()];
31501 case 1:
31502 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31503 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31504 protocol: protocol,
31505 hostname: hostname,
31506 port: port,
31507 method: "POST",
31508 headers: headers,
31509 path: resolvedPath,
31510 body: body,
31511 })];
31512 }
31513 });
31514}); };
31515var serializeAws_restJson1CreateImportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31516 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31517 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31518 switch (_c.label) {
31519 case 0:
31520 headers = {
31521 "content-type": "application/json",
31522 };
31523 resolvedPath = "/v1/apps/{ApplicationId}/jobs/import";
31524 if (input.ApplicationId !== undefined) {
31525 labelValue = input.ApplicationId;
31526 if (labelValue.length <= 0) {
31527 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31528 }
31529 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31530 }
31531 else {
31532 throw new Error("No value provided for input HTTP label: ApplicationId.");
31533 }
31534 if (input.ImportJobRequest !== undefined) {
31535 body = serializeAws_restJson1ImportJobRequest(input.ImportJobRequest, context);
31536 }
31537 if (body === undefined) {
31538 body = {};
31539 }
31540 body = JSON.stringify(body);
31541 return [4 /*yield*/, context.endpoint()];
31542 case 1:
31543 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31544 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31545 protocol: protocol,
31546 hostname: hostname,
31547 port: port,
31548 method: "POST",
31549 headers: headers,
31550 path: resolvedPath,
31551 body: body,
31552 })];
31553 }
31554 });
31555}); };
31556var serializeAws_restJson1CreateJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31557 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31558 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31559 switch (_c.label) {
31560 case 0:
31561 headers = {
31562 "content-type": "application/json",
31563 };
31564 resolvedPath = "/v1/apps/{ApplicationId}/journeys";
31565 if (input.ApplicationId !== undefined) {
31566 labelValue = input.ApplicationId;
31567 if (labelValue.length <= 0) {
31568 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31569 }
31570 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31571 }
31572 else {
31573 throw new Error("No value provided for input HTTP label: ApplicationId.");
31574 }
31575 if (input.WriteJourneyRequest !== undefined) {
31576 body = serializeAws_restJson1WriteJourneyRequest(input.WriteJourneyRequest, context);
31577 }
31578 if (body === undefined) {
31579 body = {};
31580 }
31581 body = JSON.stringify(body);
31582 return [4 /*yield*/, context.endpoint()];
31583 case 1:
31584 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31585 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31586 protocol: protocol,
31587 hostname: hostname,
31588 port: port,
31589 method: "POST",
31590 headers: headers,
31591 path: resolvedPath,
31592 body: body,
31593 })];
31594 }
31595 });
31596}); };
31597var serializeAws_restJson1CreatePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31598 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31599 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31600 switch (_c.label) {
31601 case 0:
31602 headers = {
31603 "content-type": "application/json",
31604 };
31605 resolvedPath = "/v1/templates/{TemplateName}/push";
31606 if (input.TemplateName !== undefined) {
31607 labelValue = input.TemplateName;
31608 if (labelValue.length <= 0) {
31609 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31610 }
31611 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31612 }
31613 else {
31614 throw new Error("No value provided for input HTTP label: TemplateName.");
31615 }
31616 if (input.PushNotificationTemplateRequest !== undefined) {
31617 body = serializeAws_restJson1PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context);
31618 }
31619 if (body === undefined) {
31620 body = {};
31621 }
31622 body = JSON.stringify(body);
31623 return [4 /*yield*/, context.endpoint()];
31624 case 1:
31625 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31626 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31627 protocol: protocol,
31628 hostname: hostname,
31629 port: port,
31630 method: "POST",
31631 headers: headers,
31632 path: resolvedPath,
31633 body: body,
31634 })];
31635 }
31636 });
31637}); };
31638var serializeAws_restJson1CreateRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31639 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
31640 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31641 switch (_c.label) {
31642 case 0:
31643 headers = {
31644 "content-type": "application/json",
31645 };
31646 resolvedPath = "/v1/recommenders";
31647 if (input.CreateRecommenderConfiguration !== undefined) {
31648 body = serializeAws_restJson1CreateRecommenderConfigurationShape(input.CreateRecommenderConfiguration, context);
31649 }
31650 if (body === undefined) {
31651 body = {};
31652 }
31653 body = JSON.stringify(body);
31654 return [4 /*yield*/, context.endpoint()];
31655 case 1:
31656 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31657 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31658 protocol: protocol,
31659 hostname: hostname,
31660 port: port,
31661 method: "POST",
31662 headers: headers,
31663 path: resolvedPath,
31664 body: body,
31665 })];
31666 }
31667 });
31668}); };
31669var serializeAws_restJson1CreateSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31670 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31671 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31672 switch (_c.label) {
31673 case 0:
31674 headers = {
31675 "content-type": "application/json",
31676 };
31677 resolvedPath = "/v1/apps/{ApplicationId}/segments";
31678 if (input.ApplicationId !== undefined) {
31679 labelValue = input.ApplicationId;
31680 if (labelValue.length <= 0) {
31681 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31682 }
31683 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31684 }
31685 else {
31686 throw new Error("No value provided for input HTTP label: ApplicationId.");
31687 }
31688 if (input.WriteSegmentRequest !== undefined) {
31689 body = serializeAws_restJson1WriteSegmentRequest(input.WriteSegmentRequest, context);
31690 }
31691 if (body === undefined) {
31692 body = {};
31693 }
31694 body = JSON.stringify(body);
31695 return [4 /*yield*/, context.endpoint()];
31696 case 1:
31697 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31698 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31699 protocol: protocol,
31700 hostname: hostname,
31701 port: port,
31702 method: "POST",
31703 headers: headers,
31704 path: resolvedPath,
31705 body: body,
31706 })];
31707 }
31708 });
31709}); };
31710var serializeAws_restJson1CreateSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31711 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31712 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31713 switch (_c.label) {
31714 case 0:
31715 headers = {
31716 "content-type": "application/json",
31717 };
31718 resolvedPath = "/v1/templates/{TemplateName}/sms";
31719 if (input.TemplateName !== undefined) {
31720 labelValue = input.TemplateName;
31721 if (labelValue.length <= 0) {
31722 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31723 }
31724 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31725 }
31726 else {
31727 throw new Error("No value provided for input HTTP label: TemplateName.");
31728 }
31729 if (input.SMSTemplateRequest !== undefined) {
31730 body = serializeAws_restJson1SMSTemplateRequest(input.SMSTemplateRequest, context);
31731 }
31732 if (body === undefined) {
31733 body = {};
31734 }
31735 body = JSON.stringify(body);
31736 return [4 /*yield*/, context.endpoint()];
31737 case 1:
31738 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31739 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31740 protocol: protocol,
31741 hostname: hostname,
31742 port: port,
31743 method: "POST",
31744 headers: headers,
31745 path: resolvedPath,
31746 body: body,
31747 })];
31748 }
31749 });
31750}); };
31751var serializeAws_restJson1CreateVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31752 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31753 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31754 switch (_c.label) {
31755 case 0:
31756 headers = {
31757 "content-type": "application/json",
31758 };
31759 resolvedPath = "/v1/templates/{TemplateName}/voice";
31760 if (input.TemplateName !== undefined) {
31761 labelValue = input.TemplateName;
31762 if (labelValue.length <= 0) {
31763 throw new Error("Empty value provided for input HTTP label: TemplateName.");
31764 }
31765 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31766 }
31767 else {
31768 throw new Error("No value provided for input HTTP label: TemplateName.");
31769 }
31770 if (input.VoiceTemplateRequest !== undefined) {
31771 body = serializeAws_restJson1VoiceTemplateRequest(input.VoiceTemplateRequest, context);
31772 }
31773 if (body === undefined) {
31774 body = {};
31775 }
31776 body = JSON.stringify(body);
31777 return [4 /*yield*/, context.endpoint()];
31778 case 1:
31779 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31780 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31781 protocol: protocol,
31782 hostname: hostname,
31783 port: port,
31784 method: "POST",
31785 headers: headers,
31786 path: resolvedPath,
31787 body: body,
31788 })];
31789 }
31790 });
31791}); };
31792var serializeAws_restJson1DeleteAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31793 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31794 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31795 switch (_c.label) {
31796 case 0:
31797 headers = {};
31798 resolvedPath = "/v1/apps/{ApplicationId}/channels/adm";
31799 if (input.ApplicationId !== undefined) {
31800 labelValue = input.ApplicationId;
31801 if (labelValue.length <= 0) {
31802 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31803 }
31804 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31805 }
31806 else {
31807 throw new Error("No value provided for input HTTP label: ApplicationId.");
31808 }
31809 return [4 /*yield*/, context.endpoint()];
31810 case 1:
31811 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31812 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31813 protocol: protocol,
31814 hostname: hostname,
31815 port: port,
31816 method: "DELETE",
31817 headers: headers,
31818 path: resolvedPath,
31819 body: body,
31820 })];
31821 }
31822 });
31823}); };
31824var serializeAws_restJson1DeleteApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31825 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31826 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31827 switch (_c.label) {
31828 case 0:
31829 headers = {};
31830 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns";
31831 if (input.ApplicationId !== undefined) {
31832 labelValue = input.ApplicationId;
31833 if (labelValue.length <= 0) {
31834 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31835 }
31836 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31837 }
31838 else {
31839 throw new Error("No value provided for input HTTP label: ApplicationId.");
31840 }
31841 return [4 /*yield*/, context.endpoint()];
31842 case 1:
31843 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31844 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31845 protocol: protocol,
31846 hostname: hostname,
31847 port: port,
31848 method: "DELETE",
31849 headers: headers,
31850 path: resolvedPath,
31851 body: body,
31852 })];
31853 }
31854 });
31855}); };
31856var serializeAws_restJson1DeleteApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31857 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31858 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31859 switch (_c.label) {
31860 case 0:
31861 headers = {};
31862 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox";
31863 if (input.ApplicationId !== undefined) {
31864 labelValue = input.ApplicationId;
31865 if (labelValue.length <= 0) {
31866 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31867 }
31868 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31869 }
31870 else {
31871 throw new Error("No value provided for input HTTP label: ApplicationId.");
31872 }
31873 return [4 /*yield*/, context.endpoint()];
31874 case 1:
31875 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31876 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31877 protocol: protocol,
31878 hostname: hostname,
31879 port: port,
31880 method: "DELETE",
31881 headers: headers,
31882 path: resolvedPath,
31883 body: body,
31884 })];
31885 }
31886 });
31887}); };
31888var serializeAws_restJson1DeleteApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31889 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31890 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31891 switch (_c.label) {
31892 case 0:
31893 headers = {};
31894 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip";
31895 if (input.ApplicationId !== undefined) {
31896 labelValue = input.ApplicationId;
31897 if (labelValue.length <= 0) {
31898 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31899 }
31900 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31901 }
31902 else {
31903 throw new Error("No value provided for input HTTP label: ApplicationId.");
31904 }
31905 return [4 /*yield*/, context.endpoint()];
31906 case 1:
31907 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31908 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31909 protocol: protocol,
31910 hostname: hostname,
31911 port: port,
31912 method: "DELETE",
31913 headers: headers,
31914 path: resolvedPath,
31915 body: body,
31916 })];
31917 }
31918 });
31919}); };
31920var serializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31921 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31922 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31923 switch (_c.label) {
31924 case 0:
31925 headers = {};
31926 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
31927 if (input.ApplicationId !== undefined) {
31928 labelValue = input.ApplicationId;
31929 if (labelValue.length <= 0) {
31930 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31931 }
31932 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31933 }
31934 else {
31935 throw new Error("No value provided for input HTTP label: ApplicationId.");
31936 }
31937 return [4 /*yield*/, context.endpoint()];
31938 case 1:
31939 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31940 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31941 protocol: protocol,
31942 hostname: hostname,
31943 port: port,
31944 method: "DELETE",
31945 headers: headers,
31946 path: resolvedPath,
31947 body: body,
31948 })];
31949 }
31950 });
31951}); };
31952var serializeAws_restJson1DeleteAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31953 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31954 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31955 switch (_c.label) {
31956 case 0:
31957 headers = {};
31958 resolvedPath = "/v1/apps/{ApplicationId}";
31959 if (input.ApplicationId !== undefined) {
31960 labelValue = input.ApplicationId;
31961 if (labelValue.length <= 0) {
31962 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31963 }
31964 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31965 }
31966 else {
31967 throw new Error("No value provided for input HTTP label: ApplicationId.");
31968 }
31969 return [4 /*yield*/, context.endpoint()];
31970 case 1:
31971 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
31972 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
31973 protocol: protocol,
31974 hostname: hostname,
31975 port: port,
31976 method: "DELETE",
31977 headers: headers,
31978 path: resolvedPath,
31979 body: body,
31980 })];
31981 }
31982 });
31983}); };
31984var serializeAws_restJson1DeleteBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
31985 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
31986 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
31987 switch (_c.label) {
31988 case 0:
31989 headers = {};
31990 resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu";
31991 if (input.ApplicationId !== undefined) {
31992 labelValue = input.ApplicationId;
31993 if (labelValue.length <= 0) {
31994 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
31995 }
31996 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
31997 }
31998 else {
31999 throw new Error("No value provided for input HTTP label: ApplicationId.");
32000 }
32001 return [4 /*yield*/, context.endpoint()];
32002 case 1:
32003 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32004 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32005 protocol: protocol,
32006 hostname: hostname,
32007 port: port,
32008 method: "DELETE",
32009 headers: headers,
32010 path: resolvedPath,
32011 body: body,
32012 })];
32013 }
32014 });
32015}); };
32016var serializeAws_restJson1DeleteCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32017 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32018 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32019 switch (_c.label) {
32020 case 0:
32021 headers = {};
32022 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
32023 if (input.ApplicationId !== undefined) {
32024 labelValue = input.ApplicationId;
32025 if (labelValue.length <= 0) {
32026 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32027 }
32028 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32029 }
32030 else {
32031 throw new Error("No value provided for input HTTP label: ApplicationId.");
32032 }
32033 if (input.CampaignId !== undefined) {
32034 labelValue = input.CampaignId;
32035 if (labelValue.length <= 0) {
32036 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32037 }
32038 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32039 }
32040 else {
32041 throw new Error("No value provided for input HTTP label: CampaignId.");
32042 }
32043 return [4 /*yield*/, context.endpoint()];
32044 case 1:
32045 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32046 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32047 protocol: protocol,
32048 hostname: hostname,
32049 port: port,
32050 method: "DELETE",
32051 headers: headers,
32052 path: resolvedPath,
32053 body: body,
32054 })];
32055 }
32056 });
32057}); };
32058var serializeAws_restJson1DeleteEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32059 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32060 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32061 switch (_c.label) {
32062 case 0:
32063 headers = {};
32064 resolvedPath = "/v1/apps/{ApplicationId}/channels/email";
32065 if (input.ApplicationId !== undefined) {
32066 labelValue = input.ApplicationId;
32067 if (labelValue.length <= 0) {
32068 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32069 }
32070 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32071 }
32072 else {
32073 throw new Error("No value provided for input HTTP label: ApplicationId.");
32074 }
32075 return [4 /*yield*/, context.endpoint()];
32076 case 1:
32077 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32078 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32079 protocol: protocol,
32080 hostname: hostname,
32081 port: port,
32082 method: "DELETE",
32083 headers: headers,
32084 path: resolvedPath,
32085 body: body,
32086 })];
32087 }
32088 });
32089}); };
32090var serializeAws_restJson1DeleteEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32091 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32092 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32093 switch (_c.label) {
32094 case 0:
32095 headers = {};
32096 resolvedPath = "/v1/templates/{TemplateName}/email";
32097 if (input.TemplateName !== undefined) {
32098 labelValue = input.TemplateName;
32099 if (labelValue.length <= 0) {
32100 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32101 }
32102 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32103 }
32104 else {
32105 throw new Error("No value provided for input HTTP label: TemplateName.");
32106 }
32107 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32108 return [4 /*yield*/, context.endpoint()];
32109 case 1:
32110 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32111 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32112 protocol: protocol,
32113 hostname: hostname,
32114 port: port,
32115 method: "DELETE",
32116 headers: headers,
32117 path: resolvedPath,
32118 query: query,
32119 body: body,
32120 })];
32121 }
32122 });
32123}); };
32124var serializeAws_restJson1DeleteEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32125 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32126 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32127 switch (_c.label) {
32128 case 0:
32129 headers = {};
32130 resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
32131 if (input.ApplicationId !== undefined) {
32132 labelValue = input.ApplicationId;
32133 if (labelValue.length <= 0) {
32134 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32135 }
32136 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32137 }
32138 else {
32139 throw new Error("No value provided for input HTTP label: ApplicationId.");
32140 }
32141 if (input.EndpointId !== undefined) {
32142 labelValue = input.EndpointId;
32143 if (labelValue.length <= 0) {
32144 throw new Error("Empty value provided for input HTTP label: EndpointId.");
32145 }
32146 resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32147 }
32148 else {
32149 throw new Error("No value provided for input HTTP label: EndpointId.");
32150 }
32151 return [4 /*yield*/, context.endpoint()];
32152 case 1:
32153 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32154 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32155 protocol: protocol,
32156 hostname: hostname,
32157 port: port,
32158 method: "DELETE",
32159 headers: headers,
32160 path: resolvedPath,
32161 body: body,
32162 })];
32163 }
32164 });
32165}); };
32166var serializeAws_restJson1DeleteEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32167 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32168 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32169 switch (_c.label) {
32170 case 0:
32171 headers = {};
32172 resolvedPath = "/v1/apps/{ApplicationId}/eventstream";
32173 if (input.ApplicationId !== undefined) {
32174 labelValue = input.ApplicationId;
32175 if (labelValue.length <= 0) {
32176 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32177 }
32178 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32179 }
32180 else {
32181 throw new Error("No value provided for input HTTP label: ApplicationId.");
32182 }
32183 return [4 /*yield*/, context.endpoint()];
32184 case 1:
32185 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32186 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32187 protocol: protocol,
32188 hostname: hostname,
32189 port: port,
32190 method: "DELETE",
32191 headers: headers,
32192 path: resolvedPath,
32193 body: body,
32194 })];
32195 }
32196 });
32197}); };
32198var serializeAws_restJson1DeleteGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32199 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32200 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32201 switch (_c.label) {
32202 case 0:
32203 headers = {};
32204 resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm";
32205 if (input.ApplicationId !== undefined) {
32206 labelValue = input.ApplicationId;
32207 if (labelValue.length <= 0) {
32208 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32209 }
32210 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32211 }
32212 else {
32213 throw new Error("No value provided for input HTTP label: ApplicationId.");
32214 }
32215 return [4 /*yield*/, context.endpoint()];
32216 case 1:
32217 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32218 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32219 protocol: protocol,
32220 hostname: hostname,
32221 port: port,
32222 method: "DELETE",
32223 headers: headers,
32224 path: resolvedPath,
32225 body: body,
32226 })];
32227 }
32228 });
32229}); };
32230var serializeAws_restJson1DeleteJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32231 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32232 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32233 switch (_c.label) {
32234 case 0:
32235 headers = {};
32236 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}";
32237 if (input.ApplicationId !== undefined) {
32238 labelValue = input.ApplicationId;
32239 if (labelValue.length <= 0) {
32240 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32241 }
32242 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32243 }
32244 else {
32245 throw new Error("No value provided for input HTTP label: ApplicationId.");
32246 }
32247 if (input.JourneyId !== undefined) {
32248 labelValue = input.JourneyId;
32249 if (labelValue.length <= 0) {
32250 throw new Error("Empty value provided for input HTTP label: JourneyId.");
32251 }
32252 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32253 }
32254 else {
32255 throw new Error("No value provided for input HTTP label: JourneyId.");
32256 }
32257 return [4 /*yield*/, context.endpoint()];
32258 case 1:
32259 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32260 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32261 protocol: protocol,
32262 hostname: hostname,
32263 port: port,
32264 method: "DELETE",
32265 headers: headers,
32266 path: resolvedPath,
32267 body: body,
32268 })];
32269 }
32270 });
32271}); };
32272var serializeAws_restJson1DeletePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32273 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32274 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32275 switch (_c.label) {
32276 case 0:
32277 headers = {};
32278 resolvedPath = "/v1/templates/{TemplateName}/push";
32279 if (input.TemplateName !== undefined) {
32280 labelValue = input.TemplateName;
32281 if (labelValue.length <= 0) {
32282 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32283 }
32284 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32285 }
32286 else {
32287 throw new Error("No value provided for input HTTP label: TemplateName.");
32288 }
32289 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32290 return [4 /*yield*/, context.endpoint()];
32291 case 1:
32292 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32293 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32294 protocol: protocol,
32295 hostname: hostname,
32296 port: port,
32297 method: "DELETE",
32298 headers: headers,
32299 path: resolvedPath,
32300 query: query,
32301 body: body,
32302 })];
32303 }
32304 });
32305}); };
32306var serializeAws_restJson1DeleteRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32307 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32308 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32309 switch (_c.label) {
32310 case 0:
32311 headers = {};
32312 resolvedPath = "/v1/recommenders/{RecommenderId}";
32313 if (input.RecommenderId !== undefined) {
32314 labelValue = input.RecommenderId;
32315 if (labelValue.length <= 0) {
32316 throw new Error("Empty value provided for input HTTP label: RecommenderId.");
32317 }
32318 resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32319 }
32320 else {
32321 throw new Error("No value provided for input HTTP label: RecommenderId.");
32322 }
32323 return [4 /*yield*/, context.endpoint()];
32324 case 1:
32325 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32326 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32327 protocol: protocol,
32328 hostname: hostname,
32329 port: port,
32330 method: "DELETE",
32331 headers: headers,
32332 path: resolvedPath,
32333 body: body,
32334 })];
32335 }
32336 });
32337}); };
32338var serializeAws_restJson1DeleteSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32339 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32340 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32341 switch (_c.label) {
32342 case 0:
32343 headers = {};
32344 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}";
32345 if (input.ApplicationId !== undefined) {
32346 labelValue = input.ApplicationId;
32347 if (labelValue.length <= 0) {
32348 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32349 }
32350 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32351 }
32352 else {
32353 throw new Error("No value provided for input HTTP label: ApplicationId.");
32354 }
32355 if (input.SegmentId !== undefined) {
32356 labelValue = input.SegmentId;
32357 if (labelValue.length <= 0) {
32358 throw new Error("Empty value provided for input HTTP label: SegmentId.");
32359 }
32360 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32361 }
32362 else {
32363 throw new Error("No value provided for input HTTP label: SegmentId.");
32364 }
32365 return [4 /*yield*/, context.endpoint()];
32366 case 1:
32367 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32368 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32369 protocol: protocol,
32370 hostname: hostname,
32371 port: port,
32372 method: "DELETE",
32373 headers: headers,
32374 path: resolvedPath,
32375 body: body,
32376 })];
32377 }
32378 });
32379}); };
32380var serializeAws_restJson1DeleteSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32381 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32382 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32383 switch (_c.label) {
32384 case 0:
32385 headers = {};
32386 resolvedPath = "/v1/apps/{ApplicationId}/channels/sms";
32387 if (input.ApplicationId !== undefined) {
32388 labelValue = input.ApplicationId;
32389 if (labelValue.length <= 0) {
32390 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32391 }
32392 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32393 }
32394 else {
32395 throw new Error("No value provided for input HTTP label: ApplicationId.");
32396 }
32397 return [4 /*yield*/, context.endpoint()];
32398 case 1:
32399 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32400 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32401 protocol: protocol,
32402 hostname: hostname,
32403 port: port,
32404 method: "DELETE",
32405 headers: headers,
32406 path: resolvedPath,
32407 body: body,
32408 })];
32409 }
32410 });
32411}); };
32412var serializeAws_restJson1DeleteSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32413 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32414 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32415 switch (_c.label) {
32416 case 0:
32417 headers = {};
32418 resolvedPath = "/v1/templates/{TemplateName}/sms";
32419 if (input.TemplateName !== undefined) {
32420 labelValue = input.TemplateName;
32421 if (labelValue.length <= 0) {
32422 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32423 }
32424 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32425 }
32426 else {
32427 throw new Error("No value provided for input HTTP label: TemplateName.");
32428 }
32429 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32430 return [4 /*yield*/, context.endpoint()];
32431 case 1:
32432 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32433 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32434 protocol: protocol,
32435 hostname: hostname,
32436 port: port,
32437 method: "DELETE",
32438 headers: headers,
32439 path: resolvedPath,
32440 query: query,
32441 body: body,
32442 })];
32443 }
32444 });
32445}); };
32446var serializeAws_restJson1DeleteUserEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32447 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32448 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32449 switch (_c.label) {
32450 case 0:
32451 headers = {};
32452 resolvedPath = "/v1/apps/{ApplicationId}/users/{UserId}";
32453 if (input.ApplicationId !== undefined) {
32454 labelValue = input.ApplicationId;
32455 if (labelValue.length <= 0) {
32456 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32457 }
32458 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32459 }
32460 else {
32461 throw new Error("No value provided for input HTTP label: ApplicationId.");
32462 }
32463 if (input.UserId !== undefined) {
32464 labelValue = input.UserId;
32465 if (labelValue.length <= 0) {
32466 throw new Error("Empty value provided for input HTTP label: UserId.");
32467 }
32468 resolvedPath = resolvedPath.replace("{UserId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32469 }
32470 else {
32471 throw new Error("No value provided for input HTTP label: UserId.");
32472 }
32473 return [4 /*yield*/, context.endpoint()];
32474 case 1:
32475 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32476 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32477 protocol: protocol,
32478 hostname: hostname,
32479 port: port,
32480 method: "DELETE",
32481 headers: headers,
32482 path: resolvedPath,
32483 body: body,
32484 })];
32485 }
32486 });
32487}); };
32488var serializeAws_restJson1DeleteVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32489 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32490 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32491 switch (_c.label) {
32492 case 0:
32493 headers = {};
32494 resolvedPath = "/v1/apps/{ApplicationId}/channels/voice";
32495 if (input.ApplicationId !== undefined) {
32496 labelValue = input.ApplicationId;
32497 if (labelValue.length <= 0) {
32498 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32499 }
32500 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32501 }
32502 else {
32503 throw new Error("No value provided for input HTTP label: ApplicationId.");
32504 }
32505 return [4 /*yield*/, context.endpoint()];
32506 case 1:
32507 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32508 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32509 protocol: protocol,
32510 hostname: hostname,
32511 port: port,
32512 method: "DELETE",
32513 headers: headers,
32514 path: resolvedPath,
32515 body: body,
32516 })];
32517 }
32518 });
32519}); };
32520var serializeAws_restJson1DeleteVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32521 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
32522 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32523 switch (_c.label) {
32524 case 0:
32525 headers = {};
32526 resolvedPath = "/v1/templates/{TemplateName}/voice";
32527 if (input.TemplateName !== undefined) {
32528 labelValue = input.TemplateName;
32529 if (labelValue.length <= 0) {
32530 throw new Error("Empty value provided for input HTTP label: TemplateName.");
32531 }
32532 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32533 }
32534 else {
32535 throw new Error("No value provided for input HTTP label: TemplateName.");
32536 }
32537 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
32538 return [4 /*yield*/, context.endpoint()];
32539 case 1:
32540 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32541 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32542 protocol: protocol,
32543 hostname: hostname,
32544 port: port,
32545 method: "DELETE",
32546 headers: headers,
32547 path: resolvedPath,
32548 query: query,
32549 body: body,
32550 })];
32551 }
32552 });
32553}); };
32554var serializeAws_restJson1GetAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32555 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32556 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32557 switch (_c.label) {
32558 case 0:
32559 headers = {};
32560 resolvedPath = "/v1/apps/{ApplicationId}/channels/adm";
32561 if (input.ApplicationId !== undefined) {
32562 labelValue = input.ApplicationId;
32563 if (labelValue.length <= 0) {
32564 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32565 }
32566 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32567 }
32568 else {
32569 throw new Error("No value provided for input HTTP label: ApplicationId.");
32570 }
32571 return [4 /*yield*/, context.endpoint()];
32572 case 1:
32573 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32574 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32575 protocol: protocol,
32576 hostname: hostname,
32577 port: port,
32578 method: "GET",
32579 headers: headers,
32580 path: resolvedPath,
32581 body: body,
32582 })];
32583 }
32584 });
32585}); };
32586var serializeAws_restJson1GetApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32587 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32588 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32589 switch (_c.label) {
32590 case 0:
32591 headers = {};
32592 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns";
32593 if (input.ApplicationId !== undefined) {
32594 labelValue = input.ApplicationId;
32595 if (labelValue.length <= 0) {
32596 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32597 }
32598 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32599 }
32600 else {
32601 throw new Error("No value provided for input HTTP label: ApplicationId.");
32602 }
32603 return [4 /*yield*/, context.endpoint()];
32604 case 1:
32605 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32606 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32607 protocol: protocol,
32608 hostname: hostname,
32609 port: port,
32610 method: "GET",
32611 headers: headers,
32612 path: resolvedPath,
32613 body: body,
32614 })];
32615 }
32616 });
32617}); };
32618var serializeAws_restJson1GetApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32619 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32620 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32621 switch (_c.label) {
32622 case 0:
32623 headers = {};
32624 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox";
32625 if (input.ApplicationId !== undefined) {
32626 labelValue = input.ApplicationId;
32627 if (labelValue.length <= 0) {
32628 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32629 }
32630 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32631 }
32632 else {
32633 throw new Error("No value provided for input HTTP label: ApplicationId.");
32634 }
32635 return [4 /*yield*/, context.endpoint()];
32636 case 1:
32637 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32638 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32639 protocol: protocol,
32640 hostname: hostname,
32641 port: port,
32642 method: "GET",
32643 headers: headers,
32644 path: resolvedPath,
32645 body: body,
32646 })];
32647 }
32648 });
32649}); };
32650var serializeAws_restJson1GetApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32651 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32652 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32653 switch (_c.label) {
32654 case 0:
32655 headers = {};
32656 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip";
32657 if (input.ApplicationId !== undefined) {
32658 labelValue = input.ApplicationId;
32659 if (labelValue.length <= 0) {
32660 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32661 }
32662 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32663 }
32664 else {
32665 throw new Error("No value provided for input HTTP label: ApplicationId.");
32666 }
32667 return [4 /*yield*/, context.endpoint()];
32668 case 1:
32669 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32670 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32671 protocol: protocol,
32672 hostname: hostname,
32673 port: port,
32674 method: "GET",
32675 headers: headers,
32676 path: resolvedPath,
32677 body: body,
32678 })];
32679 }
32680 });
32681}); };
32682var serializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32683 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32684 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32685 switch (_c.label) {
32686 case 0:
32687 headers = {};
32688 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
32689 if (input.ApplicationId !== undefined) {
32690 labelValue = input.ApplicationId;
32691 if (labelValue.length <= 0) {
32692 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32693 }
32694 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32695 }
32696 else {
32697 throw new Error("No value provided for input HTTP label: ApplicationId.");
32698 }
32699 return [4 /*yield*/, context.endpoint()];
32700 case 1:
32701 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32702 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32703 protocol: protocol,
32704 hostname: hostname,
32705 port: port,
32706 method: "GET",
32707 headers: headers,
32708 path: resolvedPath,
32709 body: body,
32710 })];
32711 }
32712 });
32713}); };
32714var serializeAws_restJson1GetAppCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32715 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32716 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32717 switch (_c.label) {
32718 case 0:
32719 headers = {};
32720 resolvedPath = "/v1/apps/{ApplicationId}";
32721 if (input.ApplicationId !== undefined) {
32722 labelValue = input.ApplicationId;
32723 if (labelValue.length <= 0) {
32724 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32725 }
32726 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32727 }
32728 else {
32729 throw new Error("No value provided for input HTTP label: ApplicationId.");
32730 }
32731 return [4 /*yield*/, context.endpoint()];
32732 case 1:
32733 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32734 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32735 protocol: protocol,
32736 hostname: hostname,
32737 port: port,
32738 method: "GET",
32739 headers: headers,
32740 path: resolvedPath,
32741 body: body,
32742 })];
32743 }
32744 });
32745}); };
32746var serializeAws_restJson1GetApplicationDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32747 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
32748 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32749 switch (_c.label) {
32750 case 0:
32751 headers = {};
32752 resolvedPath = "/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}";
32753 if (input.ApplicationId !== undefined) {
32754 labelValue = input.ApplicationId;
32755 if (labelValue.length <= 0) {
32756 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32757 }
32758 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32759 }
32760 else {
32761 throw new Error("No value provided for input HTTP label: ApplicationId.");
32762 }
32763 if (input.KpiName !== undefined) {
32764 labelValue = input.KpiName;
32765 if (labelValue.length <= 0) {
32766 throw new Error("Empty value provided for input HTTP label: KpiName.");
32767 }
32768 resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32769 }
32770 else {
32771 throw new Error("No value provided for input HTTP label: KpiName.");
32772 }
32773 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined && { "end-time": (input.EndTime.toISOString().split(".")[0] + "Z").toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.StartTime !== undefined && {
32774 "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
32775 }));
32776 return [4 /*yield*/, context.endpoint()];
32777 case 1:
32778 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32779 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32780 protocol: protocol,
32781 hostname: hostname,
32782 port: port,
32783 method: "GET",
32784 headers: headers,
32785 path: resolvedPath,
32786 query: query,
32787 body: body,
32788 })];
32789 }
32790 });
32791}); };
32792var serializeAws_restJson1GetApplicationSettingsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32793 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32794 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32795 switch (_c.label) {
32796 case 0:
32797 headers = {};
32798 resolvedPath = "/v1/apps/{ApplicationId}/settings";
32799 if (input.ApplicationId !== undefined) {
32800 labelValue = input.ApplicationId;
32801 if (labelValue.length <= 0) {
32802 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32803 }
32804 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32805 }
32806 else {
32807 throw new Error("No value provided for input HTTP label: ApplicationId.");
32808 }
32809 return [4 /*yield*/, context.endpoint()];
32810 case 1:
32811 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32812 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32813 protocol: protocol,
32814 hostname: hostname,
32815 port: port,
32816 method: "GET",
32817 headers: headers,
32818 path: resolvedPath,
32819 body: body,
32820 })];
32821 }
32822 });
32823}); };
32824var serializeAws_restJson1GetAppsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32825 var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port;
32826 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32827 switch (_c.label) {
32828 case 0:
32829 headers = {};
32830 resolvedPath = "/v1/apps";
32831 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
32832 return [4 /*yield*/, context.endpoint()];
32833 case 1:
32834 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32835 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32836 protocol: protocol,
32837 hostname: hostname,
32838 port: port,
32839 method: "GET",
32840 headers: headers,
32841 path: resolvedPath,
32842 query: query,
32843 body: body,
32844 })];
32845 }
32846 });
32847}); };
32848var serializeAws_restJson1GetBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32849 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
32850 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32851 switch (_c.label) {
32852 case 0:
32853 headers = {};
32854 resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu";
32855 if (input.ApplicationId !== undefined) {
32856 labelValue = input.ApplicationId;
32857 if (labelValue.length <= 0) {
32858 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32859 }
32860 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32861 }
32862 else {
32863 throw new Error("No value provided for input HTTP label: ApplicationId.");
32864 }
32865 return [4 /*yield*/, context.endpoint()];
32866 case 1:
32867 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32868 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32869 protocol: protocol,
32870 hostname: hostname,
32871 port: port,
32872 method: "GET",
32873 headers: headers,
32874 path: resolvedPath,
32875 body: body,
32876 })];
32877 }
32878 });
32879}); };
32880var serializeAws_restJson1GetCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32881 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
32882 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32883 switch (_c.label) {
32884 case 0:
32885 headers = {};
32886 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
32887 if (input.ApplicationId !== undefined) {
32888 labelValue = input.ApplicationId;
32889 if (labelValue.length <= 0) {
32890 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32891 }
32892 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32893 }
32894 else {
32895 throw new Error("No value provided for input HTTP label: ApplicationId.");
32896 }
32897 if (input.CampaignId !== undefined) {
32898 labelValue = input.CampaignId;
32899 if (labelValue.length <= 0) {
32900 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32901 }
32902 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32903 }
32904 else {
32905 throw new Error("No value provided for input HTTP label: CampaignId.");
32906 }
32907 return [4 /*yield*/, context.endpoint()];
32908 case 1:
32909 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32910 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32911 protocol: protocol,
32912 hostname: hostname,
32913 port: port,
32914 method: "GET",
32915 headers: headers,
32916 path: resolvedPath,
32917 body: body,
32918 })];
32919 }
32920 });
32921}); };
32922var serializeAws_restJson1GetCampaignActivitiesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32923 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
32924 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32925 switch (_c.label) {
32926 case 0:
32927 headers = {};
32928 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities";
32929 if (input.ApplicationId !== undefined) {
32930 labelValue = input.ApplicationId;
32931 if (labelValue.length <= 0) {
32932 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32933 }
32934 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32935 }
32936 else {
32937 throw new Error("No value provided for input HTTP label: ApplicationId.");
32938 }
32939 if (input.CampaignId !== undefined) {
32940 labelValue = input.CampaignId;
32941 if (labelValue.length <= 0) {
32942 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32943 }
32944 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32945 }
32946 else {
32947 throw new Error("No value provided for input HTTP label: CampaignId.");
32948 }
32949 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
32950 return [4 /*yield*/, context.endpoint()];
32951 case 1:
32952 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
32953 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
32954 protocol: protocol,
32955 hostname: hostname,
32956 port: port,
32957 method: "GET",
32958 headers: headers,
32959 path: resolvedPath,
32960 query: query,
32961 body: body,
32962 })];
32963 }
32964 });
32965}); };
32966var serializeAws_restJson1GetCampaignDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
32967 var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
32968 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
32969 switch (_c.label) {
32970 case 0:
32971 headers = {};
32972 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}";
32973 if (input.ApplicationId !== undefined) {
32974 labelValue = input.ApplicationId;
32975 if (labelValue.length <= 0) {
32976 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
32977 }
32978 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32979 }
32980 else {
32981 throw new Error("No value provided for input HTTP label: ApplicationId.");
32982 }
32983 if (input.CampaignId !== undefined) {
32984 labelValue = input.CampaignId;
32985 if (labelValue.length <= 0) {
32986 throw new Error("Empty value provided for input HTTP label: CampaignId.");
32987 }
32988 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32989 }
32990 else {
32991 throw new Error("No value provided for input HTTP label: CampaignId.");
32992 }
32993 if (input.KpiName !== undefined) {
32994 labelValue = input.KpiName;
32995 if (labelValue.length <= 0) {
32996 throw new Error("Empty value provided for input HTTP label: KpiName.");
32997 }
32998 resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
32999 }
33000 else {
33001 throw new Error("No value provided for input HTTP label: KpiName.");
33002 }
33003 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined && { "end-time": (input.EndTime.toISOString().split(".")[0] + "Z").toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.StartTime !== undefined && {
33004 "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
33005 }));
33006 return [4 /*yield*/, context.endpoint()];
33007 case 1:
33008 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33009 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33010 protocol: protocol,
33011 hostname: hostname,
33012 port: port,
33013 method: "GET",
33014 headers: headers,
33015 path: resolvedPath,
33016 query: query,
33017 body: body,
33018 })];
33019 }
33020 });
33021}); };
33022var serializeAws_restJson1GetCampaignsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33023 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33024 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33025 switch (_c.label) {
33026 case 0:
33027 headers = {};
33028 resolvedPath = "/v1/apps/{ApplicationId}/campaigns";
33029 if (input.ApplicationId !== undefined) {
33030 labelValue = input.ApplicationId;
33031 if (labelValue.length <= 0) {
33032 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33033 }
33034 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33035 }
33036 else {
33037 throw new Error("No value provided for input HTTP label: ApplicationId.");
33038 }
33039 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33040 return [4 /*yield*/, context.endpoint()];
33041 case 1:
33042 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33043 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33044 protocol: protocol,
33045 hostname: hostname,
33046 port: port,
33047 method: "GET",
33048 headers: headers,
33049 path: resolvedPath,
33050 query: query,
33051 body: body,
33052 })];
33053 }
33054 });
33055}); };
33056var serializeAws_restJson1GetCampaignVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33057 var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33058 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33059 switch (_c.label) {
33060 case 0:
33061 headers = {};
33062 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}";
33063 if (input.ApplicationId !== undefined) {
33064 labelValue = input.ApplicationId;
33065 if (labelValue.length <= 0) {
33066 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33067 }
33068 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33069 }
33070 else {
33071 throw new Error("No value provided for input HTTP label: ApplicationId.");
33072 }
33073 if (input.CampaignId !== undefined) {
33074 labelValue = input.CampaignId;
33075 if (labelValue.length <= 0) {
33076 throw new Error("Empty value provided for input HTTP label: CampaignId.");
33077 }
33078 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33079 }
33080 else {
33081 throw new Error("No value provided for input HTTP label: CampaignId.");
33082 }
33083 if (input.Version !== undefined) {
33084 labelValue = input.Version;
33085 if (labelValue.length <= 0) {
33086 throw new Error("Empty value provided for input HTTP label: Version.");
33087 }
33088 resolvedPath = resolvedPath.replace("{Version}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33089 }
33090 else {
33091 throw new Error("No value provided for input HTTP label: Version.");
33092 }
33093 return [4 /*yield*/, context.endpoint()];
33094 case 1:
33095 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33096 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33097 protocol: protocol,
33098 hostname: hostname,
33099 port: port,
33100 method: "GET",
33101 headers: headers,
33102 path: resolvedPath,
33103 body: body,
33104 })];
33105 }
33106 });
33107}); };
33108var serializeAws_restJson1GetCampaignVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33109 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33110 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33111 switch (_c.label) {
33112 case 0:
33113 headers = {};
33114 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions";
33115 if (input.ApplicationId !== undefined) {
33116 labelValue = input.ApplicationId;
33117 if (labelValue.length <= 0) {
33118 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33119 }
33120 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33121 }
33122 else {
33123 throw new Error("No value provided for input HTTP label: ApplicationId.");
33124 }
33125 if (input.CampaignId !== undefined) {
33126 labelValue = input.CampaignId;
33127 if (labelValue.length <= 0) {
33128 throw new Error("Empty value provided for input HTTP label: CampaignId.");
33129 }
33130 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33131 }
33132 else {
33133 throw new Error("No value provided for input HTTP label: CampaignId.");
33134 }
33135 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33136 return [4 /*yield*/, context.endpoint()];
33137 case 1:
33138 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33139 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33140 protocol: protocol,
33141 hostname: hostname,
33142 port: port,
33143 method: "GET",
33144 headers: headers,
33145 path: resolvedPath,
33146 query: query,
33147 body: body,
33148 })];
33149 }
33150 });
33151}); };
33152var serializeAws_restJson1GetChannelsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33153 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33154 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33155 switch (_c.label) {
33156 case 0:
33157 headers = {};
33158 resolvedPath = "/v1/apps/{ApplicationId}/channels";
33159 if (input.ApplicationId !== undefined) {
33160 labelValue = input.ApplicationId;
33161 if (labelValue.length <= 0) {
33162 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33163 }
33164 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33165 }
33166 else {
33167 throw new Error("No value provided for input HTTP label: ApplicationId.");
33168 }
33169 return [4 /*yield*/, context.endpoint()];
33170 case 1:
33171 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33172 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33173 protocol: protocol,
33174 hostname: hostname,
33175 port: port,
33176 method: "GET",
33177 headers: headers,
33178 path: resolvedPath,
33179 body: body,
33180 })];
33181 }
33182 });
33183}); };
33184var serializeAws_restJson1GetEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33185 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33186 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33187 switch (_c.label) {
33188 case 0:
33189 headers = {};
33190 resolvedPath = "/v1/apps/{ApplicationId}/channels/email";
33191 if (input.ApplicationId !== undefined) {
33192 labelValue = input.ApplicationId;
33193 if (labelValue.length <= 0) {
33194 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33195 }
33196 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33197 }
33198 else {
33199 throw new Error("No value provided for input HTTP label: ApplicationId.");
33200 }
33201 return [4 /*yield*/, context.endpoint()];
33202 case 1:
33203 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33204 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33205 protocol: protocol,
33206 hostname: hostname,
33207 port: port,
33208 method: "GET",
33209 headers: headers,
33210 path: resolvedPath,
33211 body: body,
33212 })];
33213 }
33214 });
33215}); };
33216var serializeAws_restJson1GetEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33217 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33218 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33219 switch (_c.label) {
33220 case 0:
33221 headers = {};
33222 resolvedPath = "/v1/templates/{TemplateName}/email";
33223 if (input.TemplateName !== undefined) {
33224 labelValue = input.TemplateName;
33225 if (labelValue.length <= 0) {
33226 throw new Error("Empty value provided for input HTTP label: TemplateName.");
33227 }
33228 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33229 }
33230 else {
33231 throw new Error("No value provided for input HTTP label: TemplateName.");
33232 }
33233 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
33234 return [4 /*yield*/, context.endpoint()];
33235 case 1:
33236 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33237 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33238 protocol: protocol,
33239 hostname: hostname,
33240 port: port,
33241 method: "GET",
33242 headers: headers,
33243 path: resolvedPath,
33244 query: query,
33245 body: body,
33246 })];
33247 }
33248 });
33249}); };
33250var serializeAws_restJson1GetEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33251 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33252 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33253 switch (_c.label) {
33254 case 0:
33255 headers = {};
33256 resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
33257 if (input.ApplicationId !== undefined) {
33258 labelValue = input.ApplicationId;
33259 if (labelValue.length <= 0) {
33260 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33261 }
33262 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33263 }
33264 else {
33265 throw new Error("No value provided for input HTTP label: ApplicationId.");
33266 }
33267 if (input.EndpointId !== undefined) {
33268 labelValue = input.EndpointId;
33269 if (labelValue.length <= 0) {
33270 throw new Error("Empty value provided for input HTTP label: EndpointId.");
33271 }
33272 resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33273 }
33274 else {
33275 throw new Error("No value provided for input HTTP label: EndpointId.");
33276 }
33277 return [4 /*yield*/, context.endpoint()];
33278 case 1:
33279 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33280 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33281 protocol: protocol,
33282 hostname: hostname,
33283 port: port,
33284 method: "GET",
33285 headers: headers,
33286 path: resolvedPath,
33287 body: body,
33288 })];
33289 }
33290 });
33291}); };
33292var serializeAws_restJson1GetEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33293 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33294 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33295 switch (_c.label) {
33296 case 0:
33297 headers = {};
33298 resolvedPath = "/v1/apps/{ApplicationId}/eventstream";
33299 if (input.ApplicationId !== undefined) {
33300 labelValue = input.ApplicationId;
33301 if (labelValue.length <= 0) {
33302 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33303 }
33304 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33305 }
33306 else {
33307 throw new Error("No value provided for input HTTP label: ApplicationId.");
33308 }
33309 return [4 /*yield*/, context.endpoint()];
33310 case 1:
33311 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33312 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33313 protocol: protocol,
33314 hostname: hostname,
33315 port: port,
33316 method: "GET",
33317 headers: headers,
33318 path: resolvedPath,
33319 body: body,
33320 })];
33321 }
33322 });
33323}); };
33324var serializeAws_restJson1GetExportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33325 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33326 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33327 switch (_c.label) {
33328 case 0:
33329 headers = {};
33330 resolvedPath = "/v1/apps/{ApplicationId}/jobs/export/{JobId}";
33331 if (input.ApplicationId !== undefined) {
33332 labelValue = input.ApplicationId;
33333 if (labelValue.length <= 0) {
33334 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33335 }
33336 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33337 }
33338 else {
33339 throw new Error("No value provided for input HTTP label: ApplicationId.");
33340 }
33341 if (input.JobId !== undefined) {
33342 labelValue = input.JobId;
33343 if (labelValue.length <= 0) {
33344 throw new Error("Empty value provided for input HTTP label: JobId.");
33345 }
33346 resolvedPath = resolvedPath.replace("{JobId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33347 }
33348 else {
33349 throw new Error("No value provided for input HTTP label: JobId.");
33350 }
33351 return [4 /*yield*/, context.endpoint()];
33352 case 1:
33353 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33354 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33355 protocol: protocol,
33356 hostname: hostname,
33357 port: port,
33358 method: "GET",
33359 headers: headers,
33360 path: resolvedPath,
33361 body: body,
33362 })];
33363 }
33364 });
33365}); };
33366var serializeAws_restJson1GetExportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33367 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33368 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33369 switch (_c.label) {
33370 case 0:
33371 headers = {};
33372 resolvedPath = "/v1/apps/{ApplicationId}/jobs/export";
33373 if (input.ApplicationId !== undefined) {
33374 labelValue = input.ApplicationId;
33375 if (labelValue.length <= 0) {
33376 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33377 }
33378 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33379 }
33380 else {
33381 throw new Error("No value provided for input HTTP label: ApplicationId.");
33382 }
33383 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33384 return [4 /*yield*/, context.endpoint()];
33385 case 1:
33386 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33387 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33388 protocol: protocol,
33389 hostname: hostname,
33390 port: port,
33391 method: "GET",
33392 headers: headers,
33393 path: resolvedPath,
33394 query: query,
33395 body: body,
33396 })];
33397 }
33398 });
33399}); };
33400var serializeAws_restJson1GetGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33401 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33402 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33403 switch (_c.label) {
33404 case 0:
33405 headers = {};
33406 resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm";
33407 if (input.ApplicationId !== undefined) {
33408 labelValue = input.ApplicationId;
33409 if (labelValue.length <= 0) {
33410 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33411 }
33412 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33413 }
33414 else {
33415 throw new Error("No value provided for input HTTP label: ApplicationId.");
33416 }
33417 return [4 /*yield*/, context.endpoint()];
33418 case 1:
33419 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33420 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33421 protocol: protocol,
33422 hostname: hostname,
33423 port: port,
33424 method: "GET",
33425 headers: headers,
33426 path: resolvedPath,
33427 body: body,
33428 })];
33429 }
33430 });
33431}); };
33432var serializeAws_restJson1GetImportJobCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33433 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33434 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33435 switch (_c.label) {
33436 case 0:
33437 headers = {};
33438 resolvedPath = "/v1/apps/{ApplicationId}/jobs/import/{JobId}";
33439 if (input.ApplicationId !== undefined) {
33440 labelValue = input.ApplicationId;
33441 if (labelValue.length <= 0) {
33442 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33443 }
33444 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33445 }
33446 else {
33447 throw new Error("No value provided for input HTTP label: ApplicationId.");
33448 }
33449 if (input.JobId !== undefined) {
33450 labelValue = input.JobId;
33451 if (labelValue.length <= 0) {
33452 throw new Error("Empty value provided for input HTTP label: JobId.");
33453 }
33454 resolvedPath = resolvedPath.replace("{JobId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33455 }
33456 else {
33457 throw new Error("No value provided for input HTTP label: JobId.");
33458 }
33459 return [4 /*yield*/, context.endpoint()];
33460 case 1:
33461 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33462 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33463 protocol: protocol,
33464 hostname: hostname,
33465 port: port,
33466 method: "GET",
33467 headers: headers,
33468 path: resolvedPath,
33469 body: body,
33470 })];
33471 }
33472 });
33473}); };
33474var serializeAws_restJson1GetImportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33475 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33476 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33477 switch (_c.label) {
33478 case 0:
33479 headers = {};
33480 resolvedPath = "/v1/apps/{ApplicationId}/jobs/import";
33481 if (input.ApplicationId !== undefined) {
33482 labelValue = input.ApplicationId;
33483 if (labelValue.length <= 0) {
33484 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33485 }
33486 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33487 }
33488 else {
33489 throw new Error("No value provided for input HTTP label: ApplicationId.");
33490 }
33491 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33492 return [4 /*yield*/, context.endpoint()];
33493 case 1:
33494 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33495 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33496 protocol: protocol,
33497 hostname: hostname,
33498 port: port,
33499 method: "GET",
33500 headers: headers,
33501 path: resolvedPath,
33502 query: query,
33503 body: body,
33504 })];
33505 }
33506 });
33507}); };
33508var serializeAws_restJson1GetJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33509 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33510 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33511 switch (_c.label) {
33512 case 0:
33513 headers = {};
33514 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}";
33515 if (input.ApplicationId !== undefined) {
33516 labelValue = input.ApplicationId;
33517 if (labelValue.length <= 0) {
33518 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33519 }
33520 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33521 }
33522 else {
33523 throw new Error("No value provided for input HTTP label: ApplicationId.");
33524 }
33525 if (input.JourneyId !== undefined) {
33526 labelValue = input.JourneyId;
33527 if (labelValue.length <= 0) {
33528 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33529 }
33530 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33531 }
33532 else {
33533 throw new Error("No value provided for input HTTP label: JourneyId.");
33534 }
33535 return [4 /*yield*/, context.endpoint()];
33536 case 1:
33537 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33538 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33539 protocol: protocol,
33540 hostname: hostname,
33541 port: port,
33542 method: "GET",
33543 headers: headers,
33544 path: resolvedPath,
33545 body: body,
33546 })];
33547 }
33548 });
33549}); };
33550var serializeAws_restJson1GetJourneyDateRangeKpiCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33551 var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33552 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33553 switch (_c.label) {
33554 case 0:
33555 headers = {};
33556 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}";
33557 if (input.ApplicationId !== undefined) {
33558 labelValue = input.ApplicationId;
33559 if (labelValue.length <= 0) {
33560 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33561 }
33562 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33563 }
33564 else {
33565 throw new Error("No value provided for input HTTP label: ApplicationId.");
33566 }
33567 if (input.JourneyId !== undefined) {
33568 labelValue = input.JourneyId;
33569 if (labelValue.length <= 0) {
33570 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33571 }
33572 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33573 }
33574 else {
33575 throw new Error("No value provided for input HTTP label: JourneyId.");
33576 }
33577 if (input.KpiName !== undefined) {
33578 labelValue = input.KpiName;
33579 if (labelValue.length <= 0) {
33580 throw new Error("Empty value provided for input HTTP label: KpiName.");
33581 }
33582 resolvedPath = resolvedPath.replace("{KpiName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33583 }
33584 else {
33585 throw new Error("No value provided for input HTTP label: KpiName.");
33586 }
33587 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined && { "end-time": (input.EndTime.toISOString().split(".")[0] + "Z").toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.StartTime !== undefined && {
33588 "start-time": (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
33589 }));
33590 return [4 /*yield*/, context.endpoint()];
33591 case 1:
33592 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33593 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33594 protocol: protocol,
33595 hostname: hostname,
33596 port: port,
33597 method: "GET",
33598 headers: headers,
33599 path: resolvedPath,
33600 query: query,
33601 body: body,
33602 })];
33603 }
33604 });
33605}); };
33606var serializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33607 var headers, resolvedPath, labelValue, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33608 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33609 switch (_c.label) {
33610 case 0:
33611 headers = {};
33612 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics";
33613 if (input.ApplicationId !== undefined) {
33614 labelValue = input.ApplicationId;
33615 if (labelValue.length <= 0) {
33616 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33617 }
33618 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33619 }
33620 else {
33621 throw new Error("No value provided for input HTTP label: ApplicationId.");
33622 }
33623 if (input.JourneyActivityId !== undefined) {
33624 labelValue = input.JourneyActivityId;
33625 if (labelValue.length <= 0) {
33626 throw new Error("Empty value provided for input HTTP label: JourneyActivityId.");
33627 }
33628 resolvedPath = resolvedPath.replace("{JourneyActivityId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33629 }
33630 else {
33631 throw new Error("No value provided for input HTTP label: JourneyActivityId.");
33632 }
33633 if (input.JourneyId !== undefined) {
33634 labelValue = input.JourneyId;
33635 if (labelValue.length <= 0) {
33636 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33637 }
33638 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33639 }
33640 else {
33641 throw new Error("No value provided for input HTTP label: JourneyId.");
33642 }
33643 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize }));
33644 return [4 /*yield*/, context.endpoint()];
33645 case 1:
33646 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33647 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33648 protocol: protocol,
33649 hostname: hostname,
33650 port: port,
33651 method: "GET",
33652 headers: headers,
33653 path: resolvedPath,
33654 query: query,
33655 body: body,
33656 })];
33657 }
33658 });
33659}); };
33660var serializeAws_restJson1GetJourneyExecutionMetricsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33661 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33662 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33663 switch (_c.label) {
33664 case 0:
33665 headers = {};
33666 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics";
33667 if (input.ApplicationId !== undefined) {
33668 labelValue = input.ApplicationId;
33669 if (labelValue.length <= 0) {
33670 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33671 }
33672 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33673 }
33674 else {
33675 throw new Error("No value provided for input HTTP label: ApplicationId.");
33676 }
33677 if (input.JourneyId !== undefined) {
33678 labelValue = input.JourneyId;
33679 if (labelValue.length <= 0) {
33680 throw new Error("Empty value provided for input HTTP label: JourneyId.");
33681 }
33682 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33683 }
33684 else {
33685 throw new Error("No value provided for input HTTP label: JourneyId.");
33686 }
33687 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize }));
33688 return [4 /*yield*/, context.endpoint()];
33689 case 1:
33690 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33691 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33692 protocol: protocol,
33693 hostname: hostname,
33694 port: port,
33695 method: "GET",
33696 headers: headers,
33697 path: resolvedPath,
33698 query: query,
33699 body: body,
33700 })];
33701 }
33702 });
33703}); };
33704var serializeAws_restJson1GetPushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33705 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33706 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33707 switch (_c.label) {
33708 case 0:
33709 headers = {};
33710 resolvedPath = "/v1/templates/{TemplateName}/push";
33711 if (input.TemplateName !== undefined) {
33712 labelValue = input.TemplateName;
33713 if (labelValue.length <= 0) {
33714 throw new Error("Empty value provided for input HTTP label: TemplateName.");
33715 }
33716 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33717 }
33718 else {
33719 throw new Error("No value provided for input HTTP label: TemplateName.");
33720 }
33721 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
33722 return [4 /*yield*/, context.endpoint()];
33723 case 1:
33724 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33725 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33726 protocol: protocol,
33727 hostname: hostname,
33728 port: port,
33729 method: "GET",
33730 headers: headers,
33731 path: resolvedPath,
33732 query: query,
33733 body: body,
33734 })];
33735 }
33736 });
33737}); };
33738var serializeAws_restJson1GetRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33739 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
33740 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33741 switch (_c.label) {
33742 case 0:
33743 headers = {};
33744 resolvedPath = "/v1/recommenders/{RecommenderId}";
33745 if (input.RecommenderId !== undefined) {
33746 labelValue = input.RecommenderId;
33747 if (labelValue.length <= 0) {
33748 throw new Error("Empty value provided for input HTTP label: RecommenderId.");
33749 }
33750 resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33751 }
33752 else {
33753 throw new Error("No value provided for input HTTP label: RecommenderId.");
33754 }
33755 return [4 /*yield*/, context.endpoint()];
33756 case 1:
33757 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33758 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33759 protocol: protocol,
33760 hostname: hostname,
33761 port: port,
33762 method: "GET",
33763 headers: headers,
33764 path: resolvedPath,
33765 body: body,
33766 })];
33767 }
33768 });
33769}); };
33770var serializeAws_restJson1GetRecommenderConfigurationsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33771 var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port;
33772 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33773 switch (_c.label) {
33774 case 0:
33775 headers = {};
33776 resolvedPath = "/v1/recommenders";
33777 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33778 return [4 /*yield*/, context.endpoint()];
33779 case 1:
33780 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33781 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33782 protocol: protocol,
33783 hostname: hostname,
33784 port: port,
33785 method: "GET",
33786 headers: headers,
33787 path: resolvedPath,
33788 query: query,
33789 body: body,
33790 })];
33791 }
33792 });
33793}); };
33794var serializeAws_restJson1GetSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33795 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33796 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33797 switch (_c.label) {
33798 case 0:
33799 headers = {};
33800 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}";
33801 if (input.ApplicationId !== undefined) {
33802 labelValue = input.ApplicationId;
33803 if (labelValue.length <= 0) {
33804 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33805 }
33806 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33807 }
33808 else {
33809 throw new Error("No value provided for input HTTP label: ApplicationId.");
33810 }
33811 if (input.SegmentId !== undefined) {
33812 labelValue = input.SegmentId;
33813 if (labelValue.length <= 0) {
33814 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33815 }
33816 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33817 }
33818 else {
33819 throw new Error("No value provided for input HTTP label: SegmentId.");
33820 }
33821 return [4 /*yield*/, context.endpoint()];
33822 case 1:
33823 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33824 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33825 protocol: protocol,
33826 hostname: hostname,
33827 port: port,
33828 method: "GET",
33829 headers: headers,
33830 path: resolvedPath,
33831 body: body,
33832 })];
33833 }
33834 });
33835}); };
33836var serializeAws_restJson1GetSegmentExportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33837 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33838 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33839 switch (_c.label) {
33840 case 0:
33841 headers = {};
33842 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export";
33843 if (input.ApplicationId !== undefined) {
33844 labelValue = input.ApplicationId;
33845 if (labelValue.length <= 0) {
33846 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33847 }
33848 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33849 }
33850 else {
33851 throw new Error("No value provided for input HTTP label: ApplicationId.");
33852 }
33853 if (input.SegmentId !== undefined) {
33854 labelValue = input.SegmentId;
33855 if (labelValue.length <= 0) {
33856 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33857 }
33858 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33859 }
33860 else {
33861 throw new Error("No value provided for input HTTP label: SegmentId.");
33862 }
33863 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33864 return [4 /*yield*/, context.endpoint()];
33865 case 1:
33866 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33867 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33868 protocol: protocol,
33869 hostname: hostname,
33870 port: port,
33871 method: "GET",
33872 headers: headers,
33873 path: resolvedPath,
33874 query: query,
33875 body: body,
33876 })];
33877 }
33878 });
33879}); };
33880var serializeAws_restJson1GetSegmentImportJobsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33881 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
33882 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33883 switch (_c.label) {
33884 case 0:
33885 headers = {};
33886 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import";
33887 if (input.ApplicationId !== undefined) {
33888 labelValue = input.ApplicationId;
33889 if (labelValue.length <= 0) {
33890 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33891 }
33892 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33893 }
33894 else {
33895 throw new Error("No value provided for input HTTP label: ApplicationId.");
33896 }
33897 if (input.SegmentId !== undefined) {
33898 labelValue = input.SegmentId;
33899 if (labelValue.length <= 0) {
33900 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33901 }
33902 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33903 }
33904 else {
33905 throw new Error("No value provided for input HTTP label: SegmentId.");
33906 }
33907 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33908 return [4 /*yield*/, context.endpoint()];
33909 case 1:
33910 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33911 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33912 protocol: protocol,
33913 hostname: hostname,
33914 port: port,
33915 method: "GET",
33916 headers: headers,
33917 path: resolvedPath,
33918 query: query,
33919 body: body,
33920 })];
33921 }
33922 });
33923}); };
33924var serializeAws_restJson1GetSegmentsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33925 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
33926 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33927 switch (_c.label) {
33928 case 0:
33929 headers = {};
33930 resolvedPath = "/v1/apps/{ApplicationId}/segments";
33931 if (input.ApplicationId !== undefined) {
33932 labelValue = input.ApplicationId;
33933 if (labelValue.length <= 0) {
33934 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33935 }
33936 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33937 }
33938 else {
33939 throw new Error("No value provided for input HTTP label: ApplicationId.");
33940 }
33941 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
33942 return [4 /*yield*/, context.endpoint()];
33943 case 1:
33944 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33945 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33946 protocol: protocol,
33947 hostname: hostname,
33948 port: port,
33949 method: "GET",
33950 headers: headers,
33951 path: resolvedPath,
33952 query: query,
33953 body: body,
33954 })];
33955 }
33956 });
33957}); };
33958var serializeAws_restJson1GetSegmentVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
33959 var headers, resolvedPath, labelValue, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
33960 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
33961 switch (_c.label) {
33962 case 0:
33963 headers = {};
33964 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}";
33965 if (input.ApplicationId !== undefined) {
33966 labelValue = input.ApplicationId;
33967 if (labelValue.length <= 0) {
33968 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
33969 }
33970 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33971 }
33972 else {
33973 throw new Error("No value provided for input HTTP label: ApplicationId.");
33974 }
33975 if (input.SegmentId !== undefined) {
33976 labelValue = input.SegmentId;
33977 if (labelValue.length <= 0) {
33978 throw new Error("Empty value provided for input HTTP label: SegmentId.");
33979 }
33980 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33981 }
33982 else {
33983 throw new Error("No value provided for input HTTP label: SegmentId.");
33984 }
33985 if (input.Version !== undefined) {
33986 labelValue = input.Version;
33987 if (labelValue.length <= 0) {
33988 throw new Error("Empty value provided for input HTTP label: Version.");
33989 }
33990 resolvedPath = resolvedPath.replace("{Version}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
33991 }
33992 else {
33993 throw new Error("No value provided for input HTTP label: Version.");
33994 }
33995 return [4 /*yield*/, context.endpoint()];
33996 case 1:
33997 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
33998 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
33999 protocol: protocol,
34000 hostname: hostname,
34001 port: port,
34002 method: "GET",
34003 headers: headers,
34004 path: resolvedPath,
34005 body: body,
34006 })];
34007 }
34008 });
34009}); };
34010var serializeAws_restJson1GetSegmentVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34011 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
34012 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34013 switch (_c.label) {
34014 case 0:
34015 headers = {};
34016 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}/versions";
34017 if (input.ApplicationId !== undefined) {
34018 labelValue = input.ApplicationId;
34019 if (labelValue.length <= 0) {
34020 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34021 }
34022 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34023 }
34024 else {
34025 throw new Error("No value provided for input HTTP label: ApplicationId.");
34026 }
34027 if (input.SegmentId !== undefined) {
34028 labelValue = input.SegmentId;
34029 if (labelValue.length <= 0) {
34030 throw new Error("Empty value provided for input HTTP label: SegmentId.");
34031 }
34032 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34033 }
34034 else {
34035 throw new Error("No value provided for input HTTP label: SegmentId.");
34036 }
34037 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
34038 return [4 /*yield*/, context.endpoint()];
34039 case 1:
34040 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34041 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34042 protocol: protocol,
34043 hostname: hostname,
34044 port: port,
34045 method: "GET",
34046 headers: headers,
34047 path: resolvedPath,
34048 query: query,
34049 body: body,
34050 })];
34051 }
34052 });
34053}); };
34054var serializeAws_restJson1GetSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34055 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34056 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34057 switch (_c.label) {
34058 case 0:
34059 headers = {};
34060 resolvedPath = "/v1/apps/{ApplicationId}/channels/sms";
34061 if (input.ApplicationId !== undefined) {
34062 labelValue = input.ApplicationId;
34063 if (labelValue.length <= 0) {
34064 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34065 }
34066 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34067 }
34068 else {
34069 throw new Error("No value provided for input HTTP label: ApplicationId.");
34070 }
34071 return [4 /*yield*/, context.endpoint()];
34072 case 1:
34073 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34074 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34075 protocol: protocol,
34076 hostname: hostname,
34077 port: port,
34078 method: "GET",
34079 headers: headers,
34080 path: resolvedPath,
34081 body: body,
34082 })];
34083 }
34084 });
34085}); };
34086var serializeAws_restJson1GetSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34087 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34088 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34089 switch (_c.label) {
34090 case 0:
34091 headers = {};
34092 resolvedPath = "/v1/templates/{TemplateName}/sms";
34093 if (input.TemplateName !== undefined) {
34094 labelValue = input.TemplateName;
34095 if (labelValue.length <= 0) {
34096 throw new Error("Empty value provided for input HTTP label: TemplateName.");
34097 }
34098 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34099 }
34100 else {
34101 throw new Error("No value provided for input HTTP label: TemplateName.");
34102 }
34103 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
34104 return [4 /*yield*/, context.endpoint()];
34105 case 1:
34106 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34107 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34108 protocol: protocol,
34109 hostname: hostname,
34110 port: port,
34111 method: "GET",
34112 headers: headers,
34113 path: resolvedPath,
34114 query: query,
34115 body: body,
34116 })];
34117 }
34118 });
34119}); };
34120var serializeAws_restJson1GetUserEndpointsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34121 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
34122 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34123 switch (_c.label) {
34124 case 0:
34125 headers = {};
34126 resolvedPath = "/v1/apps/{ApplicationId}/users/{UserId}";
34127 if (input.ApplicationId !== undefined) {
34128 labelValue = input.ApplicationId;
34129 if (labelValue.length <= 0) {
34130 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34131 }
34132 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34133 }
34134 else {
34135 throw new Error("No value provided for input HTTP label: ApplicationId.");
34136 }
34137 if (input.UserId !== undefined) {
34138 labelValue = input.UserId;
34139 if (labelValue.length <= 0) {
34140 throw new Error("Empty value provided for input HTTP label: UserId.");
34141 }
34142 resolvedPath = resolvedPath.replace("{UserId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34143 }
34144 else {
34145 throw new Error("No value provided for input HTTP label: UserId.");
34146 }
34147 return [4 /*yield*/, context.endpoint()];
34148 case 1:
34149 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34150 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34151 protocol: protocol,
34152 hostname: hostname,
34153 port: port,
34154 method: "GET",
34155 headers: headers,
34156 path: resolvedPath,
34157 body: body,
34158 })];
34159 }
34160 });
34161}); };
34162var serializeAws_restJson1GetVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34163 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34164 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34165 switch (_c.label) {
34166 case 0:
34167 headers = {};
34168 resolvedPath = "/v1/apps/{ApplicationId}/channels/voice";
34169 if (input.ApplicationId !== undefined) {
34170 labelValue = input.ApplicationId;
34171 if (labelValue.length <= 0) {
34172 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34173 }
34174 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34175 }
34176 else {
34177 throw new Error("No value provided for input HTTP label: ApplicationId.");
34178 }
34179 return [4 /*yield*/, context.endpoint()];
34180 case 1:
34181 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34182 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34183 protocol: protocol,
34184 hostname: hostname,
34185 port: port,
34186 method: "GET",
34187 headers: headers,
34188 path: resolvedPath,
34189 body: body,
34190 })];
34191 }
34192 });
34193}); };
34194var serializeAws_restJson1GetVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34195 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34196 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34197 switch (_c.label) {
34198 case 0:
34199 headers = {};
34200 resolvedPath = "/v1/templates/{TemplateName}/voice";
34201 if (input.TemplateName !== undefined) {
34202 labelValue = input.TemplateName;
34203 if (labelValue.length <= 0) {
34204 throw new Error("Empty value provided for input HTTP label: TemplateName.");
34205 }
34206 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34207 }
34208 else {
34209 throw new Error("No value provided for input HTTP label: TemplateName.");
34210 }
34211 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && { version: input.Version }));
34212 return [4 /*yield*/, context.endpoint()];
34213 case 1:
34214 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34215 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34216 protocol: protocol,
34217 hostname: hostname,
34218 port: port,
34219 method: "GET",
34220 headers: headers,
34221 path: resolvedPath,
34222 query: query,
34223 body: body,
34224 })];
34225 }
34226 });
34227}); };
34228var serializeAws_restJson1ListJourneysCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34229 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34230 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34231 switch (_c.label) {
34232 case 0:
34233 headers = {};
34234 resolvedPath = "/v1/apps/{ApplicationId}/journeys";
34235 if (input.ApplicationId !== undefined) {
34236 labelValue = input.ApplicationId;
34237 if (labelValue.length <= 0) {
34238 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34239 }
34240 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34241 }
34242 else {
34243 throw new Error("No value provided for input HTTP label: ApplicationId.");
34244 }
34245 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Token !== undefined && { token: input.Token }));
34246 return [4 /*yield*/, context.endpoint()];
34247 case 1:
34248 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34249 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34250 protocol: protocol,
34251 hostname: hostname,
34252 port: port,
34253 method: "GET",
34254 headers: headers,
34255 path: resolvedPath,
34256 query: query,
34257 body: body,
34258 })];
34259 }
34260 });
34261}); };
34262var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34263 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34264 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34265 switch (_c.label) {
34266 case 0:
34267 headers = {};
34268 resolvedPath = "/v1/tags/{ResourceArn}";
34269 if (input.ResourceArn !== undefined) {
34270 labelValue = input.ResourceArn;
34271 if (labelValue.length <= 0) {
34272 throw new Error("Empty value provided for input HTTP label: ResourceArn.");
34273 }
34274 resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34275 }
34276 else {
34277 throw new Error("No value provided for input HTTP label: ResourceArn.");
34278 }
34279 return [4 /*yield*/, context.endpoint()];
34280 case 1:
34281 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34282 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34283 protocol: protocol,
34284 hostname: hostname,
34285 port: port,
34286 method: "GET",
34287 headers: headers,
34288 path: resolvedPath,
34289 body: body,
34290 })];
34291 }
34292 });
34293}); };
34294var serializeAws_restJson1ListTemplatesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34295 var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port;
34296 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34297 switch (_c.label) {
34298 case 0:
34299 headers = {};
34300 resolvedPath = "/v1/templates";
34301 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize })), (input.Prefix !== undefined && { prefix: input.Prefix })), (input.TemplateType !== undefined && { "template-type": input.TemplateType }));
34302 return [4 /*yield*/, context.endpoint()];
34303 case 1:
34304 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34305 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34306 protocol: protocol,
34307 hostname: hostname,
34308 port: port,
34309 method: "GET",
34310 headers: headers,
34311 path: resolvedPath,
34312 query: query,
34313 body: body,
34314 })];
34315 }
34316 });
34317}); };
34318var serializeAws_restJson1ListTemplateVersionsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34319 var headers, resolvedPath, labelValue, labelValue, query, body, _a, hostname, _b, protocol, port;
34320 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34321 switch (_c.label) {
34322 case 0:
34323 headers = {};
34324 resolvedPath = "/v1/templates/{TemplateName}/{TemplateType}/versions";
34325 if (input.TemplateName !== undefined) {
34326 labelValue = input.TemplateName;
34327 if (labelValue.length <= 0) {
34328 throw new Error("Empty value provided for input HTTP label: TemplateName.");
34329 }
34330 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34331 }
34332 else {
34333 throw new Error("No value provided for input HTTP label: TemplateName.");
34334 }
34335 if (input.TemplateType !== undefined) {
34336 labelValue = input.TemplateType;
34337 if (labelValue.length <= 0) {
34338 throw new Error("Empty value provided for input HTTP label: TemplateType.");
34339 }
34340 resolvedPath = resolvedPath.replace("{TemplateType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34341 }
34342 else {
34343 throw new Error("No value provided for input HTTP label: TemplateType.");
34344 }
34345 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.PageSize !== undefined && { "page-size": input.PageSize }));
34346 return [4 /*yield*/, context.endpoint()];
34347 case 1:
34348 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34349 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34350 protocol: protocol,
34351 hostname: hostname,
34352 port: port,
34353 method: "GET",
34354 headers: headers,
34355 path: resolvedPath,
34356 query: query,
34357 body: body,
34358 })];
34359 }
34360 });
34361}); };
34362var serializeAws_restJson1PhoneNumberValidateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34363 var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
34364 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34365 switch (_c.label) {
34366 case 0:
34367 headers = {
34368 "content-type": "application/json",
34369 };
34370 resolvedPath = "/v1/phone/number/validate";
34371 if (input.NumberValidateRequest !== undefined) {
34372 body = serializeAws_restJson1NumberValidateRequest(input.NumberValidateRequest, context);
34373 }
34374 if (body === undefined) {
34375 body = {};
34376 }
34377 body = JSON.stringify(body);
34378 return [4 /*yield*/, context.endpoint()];
34379 case 1:
34380 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34381 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34382 protocol: protocol,
34383 hostname: hostname,
34384 port: port,
34385 method: "POST",
34386 headers: headers,
34387 path: resolvedPath,
34388 body: body,
34389 })];
34390 }
34391 });
34392}); };
34393var serializeAws_restJson1PutEventsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34394 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34395 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34396 switch (_c.label) {
34397 case 0:
34398 headers = {
34399 "content-type": "application/json",
34400 };
34401 resolvedPath = "/v1/apps/{ApplicationId}/events";
34402 if (input.ApplicationId !== undefined) {
34403 labelValue = input.ApplicationId;
34404 if (labelValue.length <= 0) {
34405 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34406 }
34407 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34408 }
34409 else {
34410 throw new Error("No value provided for input HTTP label: ApplicationId.");
34411 }
34412 if (input.EventsRequest !== undefined) {
34413 body = serializeAws_restJson1EventsRequest(input.EventsRequest, context);
34414 }
34415 if (body === undefined) {
34416 body = {};
34417 }
34418 body = JSON.stringify(body);
34419 return [4 /*yield*/, context.endpoint()];
34420 case 1:
34421 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34422 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34423 protocol: protocol,
34424 hostname: hostname,
34425 port: port,
34426 method: "POST",
34427 headers: headers,
34428 path: resolvedPath,
34429 body: body,
34430 })];
34431 }
34432 });
34433}); };
34434var serializeAws_restJson1PutEventStreamCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34435 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34436 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34437 switch (_c.label) {
34438 case 0:
34439 headers = {
34440 "content-type": "application/json",
34441 };
34442 resolvedPath = "/v1/apps/{ApplicationId}/eventstream";
34443 if (input.ApplicationId !== undefined) {
34444 labelValue = input.ApplicationId;
34445 if (labelValue.length <= 0) {
34446 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34447 }
34448 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34449 }
34450 else {
34451 throw new Error("No value provided for input HTTP label: ApplicationId.");
34452 }
34453 if (input.WriteEventStream !== undefined) {
34454 body = serializeAws_restJson1WriteEventStream(input.WriteEventStream, context);
34455 }
34456 if (body === undefined) {
34457 body = {};
34458 }
34459 body = JSON.stringify(body);
34460 return [4 /*yield*/, context.endpoint()];
34461 case 1:
34462 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34463 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34464 protocol: protocol,
34465 hostname: hostname,
34466 port: port,
34467 method: "POST",
34468 headers: headers,
34469 path: resolvedPath,
34470 body: body,
34471 })];
34472 }
34473 });
34474}); };
34475var serializeAws_restJson1RemoveAttributesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34476 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
34477 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34478 switch (_c.label) {
34479 case 0:
34480 headers = {
34481 "content-type": "application/json",
34482 };
34483 resolvedPath = "/v1/apps/{ApplicationId}/attributes/{AttributeType}";
34484 if (input.ApplicationId !== undefined) {
34485 labelValue = input.ApplicationId;
34486 if (labelValue.length <= 0) {
34487 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34488 }
34489 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34490 }
34491 else {
34492 throw new Error("No value provided for input HTTP label: ApplicationId.");
34493 }
34494 if (input.AttributeType !== undefined) {
34495 labelValue = input.AttributeType;
34496 if (labelValue.length <= 0) {
34497 throw new Error("Empty value provided for input HTTP label: AttributeType.");
34498 }
34499 resolvedPath = resolvedPath.replace("{AttributeType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34500 }
34501 else {
34502 throw new Error("No value provided for input HTTP label: AttributeType.");
34503 }
34504 if (input.UpdateAttributesRequest !== undefined) {
34505 body = serializeAws_restJson1UpdateAttributesRequest(input.UpdateAttributesRequest, context);
34506 }
34507 if (body === undefined) {
34508 body = {};
34509 }
34510 body = JSON.stringify(body);
34511 return [4 /*yield*/, context.endpoint()];
34512 case 1:
34513 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34514 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34515 protocol: protocol,
34516 hostname: hostname,
34517 port: port,
34518 method: "PUT",
34519 headers: headers,
34520 path: resolvedPath,
34521 body: body,
34522 })];
34523 }
34524 });
34525}); };
34526var serializeAws_restJson1SendMessagesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34527 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34528 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34529 switch (_c.label) {
34530 case 0:
34531 headers = {
34532 "content-type": "application/json",
34533 };
34534 resolvedPath = "/v1/apps/{ApplicationId}/messages";
34535 if (input.ApplicationId !== undefined) {
34536 labelValue = input.ApplicationId;
34537 if (labelValue.length <= 0) {
34538 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34539 }
34540 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34541 }
34542 else {
34543 throw new Error("No value provided for input HTTP label: ApplicationId.");
34544 }
34545 if (input.MessageRequest !== undefined) {
34546 body = serializeAws_restJson1MessageRequest(input.MessageRequest, context);
34547 }
34548 if (body === undefined) {
34549 body = {};
34550 }
34551 body = JSON.stringify(body);
34552 return [4 /*yield*/, context.endpoint()];
34553 case 1:
34554 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34555 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34556 protocol: protocol,
34557 hostname: hostname,
34558 port: port,
34559 method: "POST",
34560 headers: headers,
34561 path: resolvedPath,
34562 body: body,
34563 })];
34564 }
34565 });
34566}); };
34567var serializeAws_restJson1SendUsersMessagesCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34568 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34569 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34570 switch (_c.label) {
34571 case 0:
34572 headers = {
34573 "content-type": "application/json",
34574 };
34575 resolvedPath = "/v1/apps/{ApplicationId}/users-messages";
34576 if (input.ApplicationId !== undefined) {
34577 labelValue = input.ApplicationId;
34578 if (labelValue.length <= 0) {
34579 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34580 }
34581 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34582 }
34583 else {
34584 throw new Error("No value provided for input HTTP label: ApplicationId.");
34585 }
34586 if (input.SendUsersMessageRequest !== undefined) {
34587 body = serializeAws_restJson1SendUsersMessageRequest(input.SendUsersMessageRequest, context);
34588 }
34589 if (body === undefined) {
34590 body = {};
34591 }
34592 body = JSON.stringify(body);
34593 return [4 /*yield*/, context.endpoint()];
34594 case 1:
34595 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34596 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34597 protocol: protocol,
34598 hostname: hostname,
34599 port: port,
34600 method: "POST",
34601 headers: headers,
34602 path: resolvedPath,
34603 body: body,
34604 })];
34605 }
34606 });
34607}); };
34608var serializeAws_restJson1TagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34609 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34610 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34611 switch (_c.label) {
34612 case 0:
34613 headers = {
34614 "content-type": "application/json",
34615 };
34616 resolvedPath = "/v1/tags/{ResourceArn}";
34617 if (input.ResourceArn !== undefined) {
34618 labelValue = input.ResourceArn;
34619 if (labelValue.length <= 0) {
34620 throw new Error("Empty value provided for input HTTP label: ResourceArn.");
34621 }
34622 resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34623 }
34624 else {
34625 throw new Error("No value provided for input HTTP label: ResourceArn.");
34626 }
34627 if (input.TagsModel !== undefined) {
34628 body = serializeAws_restJson1TagsModel(input.TagsModel, context);
34629 }
34630 if (body === undefined) {
34631 body = {};
34632 }
34633 body = JSON.stringify(body);
34634 return [4 /*yield*/, context.endpoint()];
34635 case 1:
34636 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34637 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34638 protocol: protocol,
34639 hostname: hostname,
34640 port: port,
34641 method: "POST",
34642 headers: headers,
34643 path: resolvedPath,
34644 body: body,
34645 })];
34646 }
34647 });
34648}); };
34649var serializeAws_restJson1UntagResourceCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34650 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
34651 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34652 switch (_c.label) {
34653 case 0:
34654 headers = {};
34655 resolvedPath = "/v1/tags/{ResourceArn}";
34656 if (input.ResourceArn !== undefined) {
34657 labelValue = input.ResourceArn;
34658 if (labelValue.length <= 0) {
34659 throw new Error("Empty value provided for input HTTP label: ResourceArn.");
34660 }
34661 resolvedPath = resolvedPath.replace("{ResourceArn}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34662 }
34663 else {
34664 throw new Error("No value provided for input HTTP label: ResourceArn.");
34665 }
34666 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
34667 return [4 /*yield*/, context.endpoint()];
34668 case 1:
34669 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34670 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34671 protocol: protocol,
34672 hostname: hostname,
34673 port: port,
34674 method: "DELETE",
34675 headers: headers,
34676 path: resolvedPath,
34677 query: query,
34678 body: body,
34679 })];
34680 }
34681 });
34682}); };
34683var serializeAws_restJson1UpdateAdmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34684 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34685 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34686 switch (_c.label) {
34687 case 0:
34688 headers = {
34689 "content-type": "application/json",
34690 };
34691 resolvedPath = "/v1/apps/{ApplicationId}/channels/adm";
34692 if (input.ApplicationId !== undefined) {
34693 labelValue = input.ApplicationId;
34694 if (labelValue.length <= 0) {
34695 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34696 }
34697 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34698 }
34699 else {
34700 throw new Error("No value provided for input HTTP label: ApplicationId.");
34701 }
34702 if (input.ADMChannelRequest !== undefined) {
34703 body = serializeAws_restJson1ADMChannelRequest(input.ADMChannelRequest, context);
34704 }
34705 if (body === undefined) {
34706 body = {};
34707 }
34708 body = JSON.stringify(body);
34709 return [4 /*yield*/, context.endpoint()];
34710 case 1:
34711 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34712 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34713 protocol: protocol,
34714 hostname: hostname,
34715 port: port,
34716 method: "PUT",
34717 headers: headers,
34718 path: resolvedPath,
34719 body: body,
34720 })];
34721 }
34722 });
34723}); };
34724var serializeAws_restJson1UpdateApnsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34725 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34726 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34727 switch (_c.label) {
34728 case 0:
34729 headers = {
34730 "content-type": "application/json",
34731 };
34732 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns";
34733 if (input.ApplicationId !== undefined) {
34734 labelValue = input.ApplicationId;
34735 if (labelValue.length <= 0) {
34736 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34737 }
34738 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34739 }
34740 else {
34741 throw new Error("No value provided for input HTTP label: ApplicationId.");
34742 }
34743 if (input.APNSChannelRequest !== undefined) {
34744 body = serializeAws_restJson1APNSChannelRequest(input.APNSChannelRequest, context);
34745 }
34746 if (body === undefined) {
34747 body = {};
34748 }
34749 body = JSON.stringify(body);
34750 return [4 /*yield*/, context.endpoint()];
34751 case 1:
34752 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34753 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34754 protocol: protocol,
34755 hostname: hostname,
34756 port: port,
34757 method: "PUT",
34758 headers: headers,
34759 path: resolvedPath,
34760 body: body,
34761 })];
34762 }
34763 });
34764}); };
34765var serializeAws_restJson1UpdateApnsSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34766 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34767 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34768 switch (_c.label) {
34769 case 0:
34770 headers = {
34771 "content-type": "application/json",
34772 };
34773 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_sandbox";
34774 if (input.ApplicationId !== undefined) {
34775 labelValue = input.ApplicationId;
34776 if (labelValue.length <= 0) {
34777 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34778 }
34779 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34780 }
34781 else {
34782 throw new Error("No value provided for input HTTP label: ApplicationId.");
34783 }
34784 if (input.APNSSandboxChannelRequest !== undefined) {
34785 body = serializeAws_restJson1APNSSandboxChannelRequest(input.APNSSandboxChannelRequest, context);
34786 }
34787 if (body === undefined) {
34788 body = {};
34789 }
34790 body = JSON.stringify(body);
34791 return [4 /*yield*/, context.endpoint()];
34792 case 1:
34793 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34794 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34795 protocol: protocol,
34796 hostname: hostname,
34797 port: port,
34798 method: "PUT",
34799 headers: headers,
34800 path: resolvedPath,
34801 body: body,
34802 })];
34803 }
34804 });
34805}); };
34806var serializeAws_restJson1UpdateApnsVoipChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34807 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34808 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34809 switch (_c.label) {
34810 case 0:
34811 headers = {
34812 "content-type": "application/json",
34813 };
34814 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip";
34815 if (input.ApplicationId !== undefined) {
34816 labelValue = input.ApplicationId;
34817 if (labelValue.length <= 0) {
34818 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34819 }
34820 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34821 }
34822 else {
34823 throw new Error("No value provided for input HTTP label: ApplicationId.");
34824 }
34825 if (input.APNSVoipChannelRequest !== undefined) {
34826 body = serializeAws_restJson1APNSVoipChannelRequest(input.APNSVoipChannelRequest, context);
34827 }
34828 if (body === undefined) {
34829 body = {};
34830 }
34831 body = JSON.stringify(body);
34832 return [4 /*yield*/, context.endpoint()];
34833 case 1:
34834 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34835 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34836 protocol: protocol,
34837 hostname: hostname,
34838 port: port,
34839 method: "PUT",
34840 headers: headers,
34841 path: resolvedPath,
34842 body: body,
34843 })];
34844 }
34845 });
34846}); };
34847var serializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34848 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34849 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34850 switch (_c.label) {
34851 case 0:
34852 headers = {
34853 "content-type": "application/json",
34854 };
34855 resolvedPath = "/v1/apps/{ApplicationId}/channels/apns_voip_sandbox";
34856 if (input.ApplicationId !== undefined) {
34857 labelValue = input.ApplicationId;
34858 if (labelValue.length <= 0) {
34859 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34860 }
34861 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34862 }
34863 else {
34864 throw new Error("No value provided for input HTTP label: ApplicationId.");
34865 }
34866 if (input.APNSVoipSandboxChannelRequest !== undefined) {
34867 body = serializeAws_restJson1APNSVoipSandboxChannelRequest(input.APNSVoipSandboxChannelRequest, context);
34868 }
34869 if (body === undefined) {
34870 body = {};
34871 }
34872 body = JSON.stringify(body);
34873 return [4 /*yield*/, context.endpoint()];
34874 case 1:
34875 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34876 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34877 protocol: protocol,
34878 hostname: hostname,
34879 port: port,
34880 method: "PUT",
34881 headers: headers,
34882 path: resolvedPath,
34883 body: body,
34884 })];
34885 }
34886 });
34887}); };
34888var serializeAws_restJson1UpdateApplicationSettingsCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34889 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34890 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34891 switch (_c.label) {
34892 case 0:
34893 headers = {
34894 "content-type": "application/json",
34895 };
34896 resolvedPath = "/v1/apps/{ApplicationId}/settings";
34897 if (input.ApplicationId !== undefined) {
34898 labelValue = input.ApplicationId;
34899 if (labelValue.length <= 0) {
34900 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34901 }
34902 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34903 }
34904 else {
34905 throw new Error("No value provided for input HTTP label: ApplicationId.");
34906 }
34907 if (input.WriteApplicationSettingsRequest !== undefined) {
34908 body = serializeAws_restJson1WriteApplicationSettingsRequest(input.WriteApplicationSettingsRequest, context);
34909 }
34910 if (body === undefined) {
34911 body = {};
34912 }
34913 body = JSON.stringify(body);
34914 return [4 /*yield*/, context.endpoint()];
34915 case 1:
34916 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34917 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34918 protocol: protocol,
34919 hostname: hostname,
34920 port: port,
34921 method: "PUT",
34922 headers: headers,
34923 path: resolvedPath,
34924 body: body,
34925 })];
34926 }
34927 });
34928}); };
34929var serializeAws_restJson1UpdateBaiduChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34930 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
34931 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34932 switch (_c.label) {
34933 case 0:
34934 headers = {
34935 "content-type": "application/json",
34936 };
34937 resolvedPath = "/v1/apps/{ApplicationId}/channels/baidu";
34938 if (input.ApplicationId !== undefined) {
34939 labelValue = input.ApplicationId;
34940 if (labelValue.length <= 0) {
34941 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34942 }
34943 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34944 }
34945 else {
34946 throw new Error("No value provided for input HTTP label: ApplicationId.");
34947 }
34948 if (input.BaiduChannelRequest !== undefined) {
34949 body = serializeAws_restJson1BaiduChannelRequest(input.BaiduChannelRequest, context);
34950 }
34951 if (body === undefined) {
34952 body = {};
34953 }
34954 body = JSON.stringify(body);
34955 return [4 /*yield*/, context.endpoint()];
34956 case 1:
34957 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
34958 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
34959 protocol: protocol,
34960 hostname: hostname,
34961 port: port,
34962 method: "PUT",
34963 headers: headers,
34964 path: resolvedPath,
34965 body: body,
34966 })];
34967 }
34968 });
34969}); };
34970var serializeAws_restJson1UpdateCampaignCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
34971 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
34972 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
34973 switch (_c.label) {
34974 case 0:
34975 headers = {
34976 "content-type": "application/json",
34977 };
34978 resolvedPath = "/v1/apps/{ApplicationId}/campaigns/{CampaignId}";
34979 if (input.ApplicationId !== undefined) {
34980 labelValue = input.ApplicationId;
34981 if (labelValue.length <= 0) {
34982 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
34983 }
34984 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34985 }
34986 else {
34987 throw new Error("No value provided for input HTTP label: ApplicationId.");
34988 }
34989 if (input.CampaignId !== undefined) {
34990 labelValue = input.CampaignId;
34991 if (labelValue.length <= 0) {
34992 throw new Error("Empty value provided for input HTTP label: CampaignId.");
34993 }
34994 resolvedPath = resolvedPath.replace("{CampaignId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
34995 }
34996 else {
34997 throw new Error("No value provided for input HTTP label: CampaignId.");
34998 }
34999 if (input.WriteCampaignRequest !== undefined) {
35000 body = serializeAws_restJson1WriteCampaignRequest(input.WriteCampaignRequest, context);
35001 }
35002 if (body === undefined) {
35003 body = {};
35004 }
35005 body = JSON.stringify(body);
35006 return [4 /*yield*/, context.endpoint()];
35007 case 1:
35008 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35009 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35010 protocol: protocol,
35011 hostname: hostname,
35012 port: port,
35013 method: "PUT",
35014 headers: headers,
35015 path: resolvedPath,
35016 body: body,
35017 })];
35018 }
35019 });
35020}); };
35021var serializeAws_restJson1UpdateEmailChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35022 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35023 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35024 switch (_c.label) {
35025 case 0:
35026 headers = {
35027 "content-type": "application/json",
35028 };
35029 resolvedPath = "/v1/apps/{ApplicationId}/channels/email";
35030 if (input.ApplicationId !== undefined) {
35031 labelValue = input.ApplicationId;
35032 if (labelValue.length <= 0) {
35033 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35034 }
35035 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35036 }
35037 else {
35038 throw new Error("No value provided for input HTTP label: ApplicationId.");
35039 }
35040 if (input.EmailChannelRequest !== undefined) {
35041 body = serializeAws_restJson1EmailChannelRequest(input.EmailChannelRequest, context);
35042 }
35043 if (body === undefined) {
35044 body = {};
35045 }
35046 body = JSON.stringify(body);
35047 return [4 /*yield*/, context.endpoint()];
35048 case 1:
35049 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35050 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35051 protocol: protocol,
35052 hostname: hostname,
35053 port: port,
35054 method: "PUT",
35055 headers: headers,
35056 path: resolvedPath,
35057 body: body,
35058 })];
35059 }
35060 });
35061}); };
35062var serializeAws_restJson1UpdateEmailTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35063 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35064 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35065 switch (_c.label) {
35066 case 0:
35067 headers = {
35068 "content-type": "application/json",
35069 };
35070 resolvedPath = "/v1/templates/{TemplateName}/email";
35071 if (input.TemplateName !== undefined) {
35072 labelValue = input.TemplateName;
35073 if (labelValue.length <= 0) {
35074 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35075 }
35076 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35077 }
35078 else {
35079 throw new Error("No value provided for input HTTP label: TemplateName.");
35080 }
35081 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version }));
35082 if (input.EmailTemplateRequest !== undefined) {
35083 body = serializeAws_restJson1EmailTemplateRequest(input.EmailTemplateRequest, context);
35084 }
35085 if (body === undefined) {
35086 body = {};
35087 }
35088 body = JSON.stringify(body);
35089 return [4 /*yield*/, context.endpoint()];
35090 case 1:
35091 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35092 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35093 protocol: protocol,
35094 hostname: hostname,
35095 port: port,
35096 method: "PUT",
35097 headers: headers,
35098 path: resolvedPath,
35099 query: query,
35100 body: body,
35101 })];
35102 }
35103 });
35104}); };
35105var serializeAws_restJson1UpdateEndpointCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35106 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35107 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35108 switch (_c.label) {
35109 case 0:
35110 headers = {
35111 "content-type": "application/json",
35112 };
35113 resolvedPath = "/v1/apps/{ApplicationId}/endpoints/{EndpointId}";
35114 if (input.ApplicationId !== undefined) {
35115 labelValue = input.ApplicationId;
35116 if (labelValue.length <= 0) {
35117 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35118 }
35119 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35120 }
35121 else {
35122 throw new Error("No value provided for input HTTP label: ApplicationId.");
35123 }
35124 if (input.EndpointId !== undefined) {
35125 labelValue = input.EndpointId;
35126 if (labelValue.length <= 0) {
35127 throw new Error("Empty value provided for input HTTP label: EndpointId.");
35128 }
35129 resolvedPath = resolvedPath.replace("{EndpointId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35130 }
35131 else {
35132 throw new Error("No value provided for input HTTP label: EndpointId.");
35133 }
35134 if (input.EndpointRequest !== undefined) {
35135 body = serializeAws_restJson1EndpointRequest(input.EndpointRequest, context);
35136 }
35137 if (body === undefined) {
35138 body = {};
35139 }
35140 body = JSON.stringify(body);
35141 return [4 /*yield*/, context.endpoint()];
35142 case 1:
35143 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35144 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35145 protocol: protocol,
35146 hostname: hostname,
35147 port: port,
35148 method: "PUT",
35149 headers: headers,
35150 path: resolvedPath,
35151 body: body,
35152 })];
35153 }
35154 });
35155}); };
35156var serializeAws_restJson1UpdateEndpointsBatchCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35157 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35158 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35159 switch (_c.label) {
35160 case 0:
35161 headers = {
35162 "content-type": "application/json",
35163 };
35164 resolvedPath = "/v1/apps/{ApplicationId}/endpoints";
35165 if (input.ApplicationId !== undefined) {
35166 labelValue = input.ApplicationId;
35167 if (labelValue.length <= 0) {
35168 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35169 }
35170 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35171 }
35172 else {
35173 throw new Error("No value provided for input HTTP label: ApplicationId.");
35174 }
35175 if (input.EndpointBatchRequest !== undefined) {
35176 body = serializeAws_restJson1EndpointBatchRequest(input.EndpointBatchRequest, context);
35177 }
35178 if (body === undefined) {
35179 body = {};
35180 }
35181 body = JSON.stringify(body);
35182 return [4 /*yield*/, context.endpoint()];
35183 case 1:
35184 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35185 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35186 protocol: protocol,
35187 hostname: hostname,
35188 port: port,
35189 method: "PUT",
35190 headers: headers,
35191 path: resolvedPath,
35192 body: body,
35193 })];
35194 }
35195 });
35196}); };
35197var serializeAws_restJson1UpdateGcmChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35198 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35199 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35200 switch (_c.label) {
35201 case 0:
35202 headers = {
35203 "content-type": "application/json",
35204 };
35205 resolvedPath = "/v1/apps/{ApplicationId}/channels/gcm";
35206 if (input.ApplicationId !== undefined) {
35207 labelValue = input.ApplicationId;
35208 if (labelValue.length <= 0) {
35209 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35210 }
35211 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35212 }
35213 else {
35214 throw new Error("No value provided for input HTTP label: ApplicationId.");
35215 }
35216 if (input.GCMChannelRequest !== undefined) {
35217 body = serializeAws_restJson1GCMChannelRequest(input.GCMChannelRequest, context);
35218 }
35219 if (body === undefined) {
35220 body = {};
35221 }
35222 body = JSON.stringify(body);
35223 return [4 /*yield*/, context.endpoint()];
35224 case 1:
35225 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35226 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35227 protocol: protocol,
35228 hostname: hostname,
35229 port: port,
35230 method: "PUT",
35231 headers: headers,
35232 path: resolvedPath,
35233 body: body,
35234 })];
35235 }
35236 });
35237}); };
35238var serializeAws_restJson1UpdateJourneyCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35239 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35240 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35241 switch (_c.label) {
35242 case 0:
35243 headers = {
35244 "content-type": "application/json",
35245 };
35246 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}";
35247 if (input.ApplicationId !== undefined) {
35248 labelValue = input.ApplicationId;
35249 if (labelValue.length <= 0) {
35250 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35251 }
35252 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35253 }
35254 else {
35255 throw new Error("No value provided for input HTTP label: ApplicationId.");
35256 }
35257 if (input.JourneyId !== undefined) {
35258 labelValue = input.JourneyId;
35259 if (labelValue.length <= 0) {
35260 throw new Error("Empty value provided for input HTTP label: JourneyId.");
35261 }
35262 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35263 }
35264 else {
35265 throw new Error("No value provided for input HTTP label: JourneyId.");
35266 }
35267 if (input.WriteJourneyRequest !== undefined) {
35268 body = serializeAws_restJson1WriteJourneyRequest(input.WriteJourneyRequest, context);
35269 }
35270 if (body === undefined) {
35271 body = {};
35272 }
35273 body = JSON.stringify(body);
35274 return [4 /*yield*/, context.endpoint()];
35275 case 1:
35276 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35277 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35278 protocol: protocol,
35279 hostname: hostname,
35280 port: port,
35281 method: "PUT",
35282 headers: headers,
35283 path: resolvedPath,
35284 body: body,
35285 })];
35286 }
35287 });
35288}); };
35289var serializeAws_restJson1UpdateJourneyStateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35290 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35291 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35292 switch (_c.label) {
35293 case 0:
35294 headers = {
35295 "content-type": "application/json",
35296 };
35297 resolvedPath = "/v1/apps/{ApplicationId}/journeys/{JourneyId}/state";
35298 if (input.ApplicationId !== undefined) {
35299 labelValue = input.ApplicationId;
35300 if (labelValue.length <= 0) {
35301 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35302 }
35303 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35304 }
35305 else {
35306 throw new Error("No value provided for input HTTP label: ApplicationId.");
35307 }
35308 if (input.JourneyId !== undefined) {
35309 labelValue = input.JourneyId;
35310 if (labelValue.length <= 0) {
35311 throw new Error("Empty value provided for input HTTP label: JourneyId.");
35312 }
35313 resolvedPath = resolvedPath.replace("{JourneyId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35314 }
35315 else {
35316 throw new Error("No value provided for input HTTP label: JourneyId.");
35317 }
35318 if (input.JourneyStateRequest !== undefined) {
35319 body = serializeAws_restJson1JourneyStateRequest(input.JourneyStateRequest, context);
35320 }
35321 if (body === undefined) {
35322 body = {};
35323 }
35324 body = JSON.stringify(body);
35325 return [4 /*yield*/, context.endpoint()];
35326 case 1:
35327 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35328 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35329 protocol: protocol,
35330 hostname: hostname,
35331 port: port,
35332 method: "PUT",
35333 headers: headers,
35334 path: resolvedPath,
35335 body: body,
35336 })];
35337 }
35338 });
35339}); };
35340var serializeAws_restJson1UpdatePushTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35341 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35342 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35343 switch (_c.label) {
35344 case 0:
35345 headers = {
35346 "content-type": "application/json",
35347 };
35348 resolvedPath = "/v1/templates/{TemplateName}/push";
35349 if (input.TemplateName !== undefined) {
35350 labelValue = input.TemplateName;
35351 if (labelValue.length <= 0) {
35352 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35353 }
35354 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35355 }
35356 else {
35357 throw new Error("No value provided for input HTTP label: TemplateName.");
35358 }
35359 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version }));
35360 if (input.PushNotificationTemplateRequest !== undefined) {
35361 body = serializeAws_restJson1PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context);
35362 }
35363 if (body === undefined) {
35364 body = {};
35365 }
35366 body = JSON.stringify(body);
35367 return [4 /*yield*/, context.endpoint()];
35368 case 1:
35369 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35370 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35371 protocol: protocol,
35372 hostname: hostname,
35373 port: port,
35374 method: "PUT",
35375 headers: headers,
35376 path: resolvedPath,
35377 query: query,
35378 body: body,
35379 })];
35380 }
35381 });
35382}); };
35383var serializeAws_restJson1UpdateRecommenderConfigurationCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35384 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35385 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35386 switch (_c.label) {
35387 case 0:
35388 headers = {
35389 "content-type": "application/json",
35390 };
35391 resolvedPath = "/v1/recommenders/{RecommenderId}";
35392 if (input.RecommenderId !== undefined) {
35393 labelValue = input.RecommenderId;
35394 if (labelValue.length <= 0) {
35395 throw new Error("Empty value provided for input HTTP label: RecommenderId.");
35396 }
35397 resolvedPath = resolvedPath.replace("{RecommenderId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35398 }
35399 else {
35400 throw new Error("No value provided for input HTTP label: RecommenderId.");
35401 }
35402 if (input.UpdateRecommenderConfiguration !== undefined) {
35403 body = serializeAws_restJson1UpdateRecommenderConfigurationShape(input.UpdateRecommenderConfiguration, context);
35404 }
35405 if (body === undefined) {
35406 body = {};
35407 }
35408 body = JSON.stringify(body);
35409 return [4 /*yield*/, context.endpoint()];
35410 case 1:
35411 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35412 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35413 protocol: protocol,
35414 hostname: hostname,
35415 port: port,
35416 method: "PUT",
35417 headers: headers,
35418 path: resolvedPath,
35419 body: body,
35420 })];
35421 }
35422 });
35423}); };
35424var serializeAws_restJson1UpdateSegmentCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35425 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35426 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35427 switch (_c.label) {
35428 case 0:
35429 headers = {
35430 "content-type": "application/json",
35431 };
35432 resolvedPath = "/v1/apps/{ApplicationId}/segments/{SegmentId}";
35433 if (input.ApplicationId !== undefined) {
35434 labelValue = input.ApplicationId;
35435 if (labelValue.length <= 0) {
35436 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35437 }
35438 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35439 }
35440 else {
35441 throw new Error("No value provided for input HTTP label: ApplicationId.");
35442 }
35443 if (input.SegmentId !== undefined) {
35444 labelValue = input.SegmentId;
35445 if (labelValue.length <= 0) {
35446 throw new Error("Empty value provided for input HTTP label: SegmentId.");
35447 }
35448 resolvedPath = resolvedPath.replace("{SegmentId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35449 }
35450 else {
35451 throw new Error("No value provided for input HTTP label: SegmentId.");
35452 }
35453 if (input.WriteSegmentRequest !== undefined) {
35454 body = serializeAws_restJson1WriteSegmentRequest(input.WriteSegmentRequest, context);
35455 }
35456 if (body === undefined) {
35457 body = {};
35458 }
35459 body = JSON.stringify(body);
35460 return [4 /*yield*/, context.endpoint()];
35461 case 1:
35462 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35463 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35464 protocol: protocol,
35465 hostname: hostname,
35466 port: port,
35467 method: "PUT",
35468 headers: headers,
35469 path: resolvedPath,
35470 body: body,
35471 })];
35472 }
35473 });
35474}); };
35475var serializeAws_restJson1UpdateSmsChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35476 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35477 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35478 switch (_c.label) {
35479 case 0:
35480 headers = {
35481 "content-type": "application/json",
35482 };
35483 resolvedPath = "/v1/apps/{ApplicationId}/channels/sms";
35484 if (input.ApplicationId !== undefined) {
35485 labelValue = input.ApplicationId;
35486 if (labelValue.length <= 0) {
35487 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35488 }
35489 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35490 }
35491 else {
35492 throw new Error("No value provided for input HTTP label: ApplicationId.");
35493 }
35494 if (input.SMSChannelRequest !== undefined) {
35495 body = serializeAws_restJson1SMSChannelRequest(input.SMSChannelRequest, context);
35496 }
35497 if (body === undefined) {
35498 body = {};
35499 }
35500 body = JSON.stringify(body);
35501 return [4 /*yield*/, context.endpoint()];
35502 case 1:
35503 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35504 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35505 protocol: protocol,
35506 hostname: hostname,
35507 port: port,
35508 method: "PUT",
35509 headers: headers,
35510 path: resolvedPath,
35511 body: body,
35512 })];
35513 }
35514 });
35515}); };
35516var serializeAws_restJson1UpdateSmsTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35517 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35518 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35519 switch (_c.label) {
35520 case 0:
35521 headers = {
35522 "content-type": "application/json",
35523 };
35524 resolvedPath = "/v1/templates/{TemplateName}/sms";
35525 if (input.TemplateName !== undefined) {
35526 labelValue = input.TemplateName;
35527 if (labelValue.length <= 0) {
35528 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35529 }
35530 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35531 }
35532 else {
35533 throw new Error("No value provided for input HTTP label: TemplateName.");
35534 }
35535 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version }));
35536 if (input.SMSTemplateRequest !== undefined) {
35537 body = serializeAws_restJson1SMSTemplateRequest(input.SMSTemplateRequest, context);
35538 }
35539 if (body === undefined) {
35540 body = {};
35541 }
35542 body = JSON.stringify(body);
35543 return [4 /*yield*/, context.endpoint()];
35544 case 1:
35545 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35546 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35547 protocol: protocol,
35548 hostname: hostname,
35549 port: port,
35550 method: "PUT",
35551 headers: headers,
35552 path: resolvedPath,
35553 query: query,
35554 body: body,
35555 })];
35556 }
35557 });
35558}); };
35559var serializeAws_restJson1UpdateTemplateActiveVersionCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35560 var headers, resolvedPath, labelValue, labelValue, body, _a, hostname, _b, protocol, port;
35561 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35562 switch (_c.label) {
35563 case 0:
35564 headers = {
35565 "content-type": "application/json",
35566 };
35567 resolvedPath = "/v1/templates/{TemplateName}/{TemplateType}/active-version";
35568 if (input.TemplateName !== undefined) {
35569 labelValue = input.TemplateName;
35570 if (labelValue.length <= 0) {
35571 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35572 }
35573 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35574 }
35575 else {
35576 throw new Error("No value provided for input HTTP label: TemplateName.");
35577 }
35578 if (input.TemplateType !== undefined) {
35579 labelValue = input.TemplateType;
35580 if (labelValue.length <= 0) {
35581 throw new Error("Empty value provided for input HTTP label: TemplateType.");
35582 }
35583 resolvedPath = resolvedPath.replace("{TemplateType}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35584 }
35585 else {
35586 throw new Error("No value provided for input HTTP label: TemplateType.");
35587 }
35588 if (input.TemplateActiveVersionRequest !== undefined) {
35589 body = serializeAws_restJson1TemplateActiveVersionRequest(input.TemplateActiveVersionRequest, context);
35590 }
35591 if (body === undefined) {
35592 body = {};
35593 }
35594 body = JSON.stringify(body);
35595 return [4 /*yield*/, context.endpoint()];
35596 case 1:
35597 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35598 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35599 protocol: protocol,
35600 hostname: hostname,
35601 port: port,
35602 method: "PUT",
35603 headers: headers,
35604 path: resolvedPath,
35605 body: body,
35606 })];
35607 }
35608 });
35609}); };
35610var serializeAws_restJson1UpdateVoiceChannelCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35611 var headers, resolvedPath, labelValue, body, _a, hostname, _b, protocol, port;
35612 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35613 switch (_c.label) {
35614 case 0:
35615 headers = {
35616 "content-type": "application/json",
35617 };
35618 resolvedPath = "/v1/apps/{ApplicationId}/channels/voice";
35619 if (input.ApplicationId !== undefined) {
35620 labelValue = input.ApplicationId;
35621 if (labelValue.length <= 0) {
35622 throw new Error("Empty value provided for input HTTP label: ApplicationId.");
35623 }
35624 resolvedPath = resolvedPath.replace("{ApplicationId}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35625 }
35626 else {
35627 throw new Error("No value provided for input HTTP label: ApplicationId.");
35628 }
35629 if (input.VoiceChannelRequest !== undefined) {
35630 body = serializeAws_restJson1VoiceChannelRequest(input.VoiceChannelRequest, context);
35631 }
35632 if (body === undefined) {
35633 body = {};
35634 }
35635 body = JSON.stringify(body);
35636 return [4 /*yield*/, context.endpoint()];
35637 case 1:
35638 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35639 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35640 protocol: protocol,
35641 hostname: hostname,
35642 port: port,
35643 method: "PUT",
35644 headers: headers,
35645 path: resolvedPath,
35646 body: body,
35647 })];
35648 }
35649 });
35650}); };
35651var serializeAws_restJson1UpdateVoiceTemplateCommand = function (input, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35652 var headers, resolvedPath, labelValue, query, body, _a, hostname, _b, protocol, port;
35653 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
35654 switch (_c.label) {
35655 case 0:
35656 headers = {
35657 "content-type": "application/json",
35658 };
35659 resolvedPath = "/v1/templates/{TemplateName}/voice";
35660 if (input.TemplateName !== undefined) {
35661 labelValue = input.TemplateName;
35662 if (labelValue.length <= 0) {
35663 throw new Error("Empty value provided for input HTTP label: TemplateName.");
35664 }
35665 resolvedPath = resolvedPath.replace("{TemplateName}", Object(_aws_sdk_smithy_client__WEBPACK_IMPORTED_MODULE_2__["extendedEncodeURIComponent"])(labelValue));
35666 }
35667 else {
35668 throw new Error("No value provided for input HTTP label: TemplateName.");
35669 }
35670 query = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CreateNewVersion !== undefined && { "create-new-version": input.CreateNewVersion.toString() })), (input.Version !== undefined && { version: input.Version }));
35671 if (input.VoiceTemplateRequest !== undefined) {
35672 body = serializeAws_restJson1VoiceTemplateRequest(input.VoiceTemplateRequest, context);
35673 }
35674 if (body === undefined) {
35675 body = {};
35676 }
35677 body = JSON.stringify(body);
35678 return [4 /*yield*/, context.endpoint()];
35679 case 1:
35680 _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
35681 return [2 /*return*/, new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]({
35682 protocol: protocol,
35683 hostname: hostname,
35684 port: port,
35685 method: "PUT",
35686 headers: headers,
35687 path: resolvedPath,
35688 query: query,
35689 body: body,
35690 })];
35691 }
35692 });
35693}); };
35694var deserializeAws_restJson1CreateAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35695 var contents, data;
35696 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35697 switch (_a.label) {
35698 case 0:
35699 if (output.statusCode !== 201 && output.statusCode >= 300) {
35700 return [2 /*return*/, deserializeAws_restJson1CreateAppCommandError(output, context)];
35701 }
35702 contents = {
35703 $metadata: deserializeMetadata(output),
35704 ApplicationResponse: undefined,
35705 };
35706 return [4 /*yield*/, parseBody(output.body, context)];
35707 case 1:
35708 data = _a.sent();
35709 contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context);
35710 return [2 /*return*/, Promise.resolve(contents)];
35711 }
35712 });
35713}); };
35714var deserializeAws_restJson1CreateAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35715 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
35716 var _k;
35717 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
35718 switch (_l.label) {
35719 case 0:
35720 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35721 _k = {};
35722 return [4 /*yield*/, parseBody(output.body, context)];
35723 case 1:
35724 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
35725 errorCode = "UnknownError";
35726 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35727 _b = errorCode;
35728 switch (_b) {
35729 case "BadRequestException": return [3 /*break*/, 2];
35730 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35731 case "ForbiddenException": return [3 /*break*/, 4];
35732 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35733 case "InternalServerErrorException": return [3 /*break*/, 6];
35734 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35735 case "MethodNotAllowedException": return [3 /*break*/, 8];
35736 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35737 case "NotFoundException": return [3 /*break*/, 10];
35738 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
35739 case "PayloadTooLargeException": return [3 /*break*/, 12];
35740 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
35741 case "TooManyRequestsException": return [3 /*break*/, 14];
35742 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
35743 }
35744 return [3 /*break*/, 16];
35745 case 2:
35746 _c = [{}];
35747 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35748 case 3:
35749 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35750 return [3 /*break*/, 17];
35751 case 4:
35752 _d = [{}];
35753 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
35754 case 5:
35755 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35756 return [3 /*break*/, 17];
35757 case 6:
35758 _e = [{}];
35759 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
35760 case 7:
35761 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35762 return [3 /*break*/, 17];
35763 case 8:
35764 _f = [{}];
35765 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
35766 case 9:
35767 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35768 return [3 /*break*/, 17];
35769 case 10:
35770 _g = [{}];
35771 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
35772 case 11:
35773 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35774 return [3 /*break*/, 17];
35775 case 12:
35776 _h = [{}];
35777 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
35778 case 13:
35779 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35780 return [3 /*break*/, 17];
35781 case 14:
35782 _j = [{}];
35783 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
35784 case 15:
35785 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35786 return [3 /*break*/, 17];
35787 case 16:
35788 parsedBody = parsedOutput.body;
35789 errorCode = parsedBody.code || parsedBody.Code || errorCode;
35790 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
35791 _l.label = 17;
35792 case 17:
35793 message = response.message || response.Message || errorCode;
35794 response.message = message;
35795 delete response.Message;
35796 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
35797 }
35798 });
35799}); };
35800var deserializeAws_restJson1CreateCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35801 var contents, data;
35802 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35803 switch (_a.label) {
35804 case 0:
35805 if (output.statusCode !== 201 && output.statusCode >= 300) {
35806 return [2 /*return*/, deserializeAws_restJson1CreateCampaignCommandError(output, context)];
35807 }
35808 contents = {
35809 $metadata: deserializeMetadata(output),
35810 CampaignResponse: undefined,
35811 };
35812 return [4 /*yield*/, parseBody(output.body, context)];
35813 case 1:
35814 data = _a.sent();
35815 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
35816 return [2 /*return*/, Promise.resolve(contents)];
35817 }
35818 });
35819}); };
35820var deserializeAws_restJson1CreateCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35821 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
35822 var _k;
35823 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
35824 switch (_l.label) {
35825 case 0:
35826 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35827 _k = {};
35828 return [4 /*yield*/, parseBody(output.body, context)];
35829 case 1:
35830 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
35831 errorCode = "UnknownError";
35832 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35833 _b = errorCode;
35834 switch (_b) {
35835 case "BadRequestException": return [3 /*break*/, 2];
35836 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35837 case "ForbiddenException": return [3 /*break*/, 4];
35838 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35839 case "InternalServerErrorException": return [3 /*break*/, 6];
35840 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35841 case "MethodNotAllowedException": return [3 /*break*/, 8];
35842 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35843 case "NotFoundException": return [3 /*break*/, 10];
35844 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
35845 case "PayloadTooLargeException": return [3 /*break*/, 12];
35846 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
35847 case "TooManyRequestsException": return [3 /*break*/, 14];
35848 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
35849 }
35850 return [3 /*break*/, 16];
35851 case 2:
35852 _c = [{}];
35853 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35854 case 3:
35855 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35856 return [3 /*break*/, 17];
35857 case 4:
35858 _d = [{}];
35859 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
35860 case 5:
35861 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35862 return [3 /*break*/, 17];
35863 case 6:
35864 _e = [{}];
35865 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
35866 case 7:
35867 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35868 return [3 /*break*/, 17];
35869 case 8:
35870 _f = [{}];
35871 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
35872 case 9:
35873 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35874 return [3 /*break*/, 17];
35875 case 10:
35876 _g = [{}];
35877 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
35878 case 11:
35879 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35880 return [3 /*break*/, 17];
35881 case 12:
35882 _h = [{}];
35883 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
35884 case 13:
35885 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35886 return [3 /*break*/, 17];
35887 case 14:
35888 _j = [{}];
35889 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
35890 case 15:
35891 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35892 return [3 /*break*/, 17];
35893 case 16:
35894 parsedBody = parsedOutput.body;
35895 errorCode = parsedBody.code || parsedBody.Code || errorCode;
35896 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
35897 _l.label = 17;
35898 case 17:
35899 message = response.message || response.Message || errorCode;
35900 response.message = message;
35901 delete response.Message;
35902 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
35903 }
35904 });
35905}); };
35906var deserializeAws_restJson1CreateEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35907 var contents, data;
35908 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35909 switch (_a.label) {
35910 case 0:
35911 if (output.statusCode !== 201 && output.statusCode >= 300) {
35912 return [2 /*return*/, deserializeAws_restJson1CreateEmailTemplateCommandError(output, context)];
35913 }
35914 contents = {
35915 $metadata: deserializeMetadata(output),
35916 CreateTemplateMessageBody: undefined,
35917 };
35918 return [4 /*yield*/, parseBody(output.body, context)];
35919 case 1:
35920 data = _a.sent();
35921 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
35922 return [2 /*return*/, Promise.resolve(contents)];
35923 }
35924 });
35925}); };
35926var deserializeAws_restJson1CreateEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35927 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
35928 var _h;
35929 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
35930 switch (_j.label) {
35931 case 0:
35932 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
35933 _h = {};
35934 return [4 /*yield*/, parseBody(output.body, context)];
35935 case 1:
35936 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
35937 errorCode = "UnknownError";
35938 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
35939 _b = errorCode;
35940 switch (_b) {
35941 case "BadRequestException": return [3 /*break*/, 2];
35942 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
35943 case "ForbiddenException": return [3 /*break*/, 4];
35944 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
35945 case "InternalServerErrorException": return [3 /*break*/, 6];
35946 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
35947 case "MethodNotAllowedException": return [3 /*break*/, 8];
35948 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
35949 case "TooManyRequestsException": return [3 /*break*/, 10];
35950 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
35951 }
35952 return [3 /*break*/, 12];
35953 case 2:
35954 _c = [{}];
35955 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
35956 case 3:
35957 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35958 return [3 /*break*/, 13];
35959 case 4:
35960 _d = [{}];
35961 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
35962 case 5:
35963 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35964 return [3 /*break*/, 13];
35965 case 6:
35966 _e = [{}];
35967 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
35968 case 7:
35969 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35970 return [3 /*break*/, 13];
35971 case 8:
35972 _f = [{}];
35973 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
35974 case 9:
35975 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35976 return [3 /*break*/, 13];
35977 case 10:
35978 _g = [{}];
35979 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
35980 case 11:
35981 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
35982 return [3 /*break*/, 13];
35983 case 12:
35984 parsedBody = parsedOutput.body;
35985 errorCode = parsedBody.code || parsedBody.Code || errorCode;
35986 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
35987 _j.label = 13;
35988 case 13:
35989 message = response.message || response.Message || errorCode;
35990 response.message = message;
35991 delete response.Message;
35992 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
35993 }
35994 });
35995}); };
35996var deserializeAws_restJson1CreateExportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
35997 var contents, data;
35998 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
35999 switch (_a.label) {
36000 case 0:
36001 if (output.statusCode !== 202 && output.statusCode >= 300) {
36002 return [2 /*return*/, deserializeAws_restJson1CreateExportJobCommandError(output, context)];
36003 }
36004 contents = {
36005 $metadata: deserializeMetadata(output),
36006 ExportJobResponse: undefined,
36007 };
36008 return [4 /*yield*/, parseBody(output.body, context)];
36009 case 1:
36010 data = _a.sent();
36011 contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context);
36012 return [2 /*return*/, Promise.resolve(contents)];
36013 }
36014 });
36015}); };
36016var deserializeAws_restJson1CreateExportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36017 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36018 var _k;
36019 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36020 switch (_l.label) {
36021 case 0:
36022 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36023 _k = {};
36024 return [4 /*yield*/, parseBody(output.body, context)];
36025 case 1:
36026 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36027 errorCode = "UnknownError";
36028 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36029 _b = errorCode;
36030 switch (_b) {
36031 case "BadRequestException": return [3 /*break*/, 2];
36032 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36033 case "ForbiddenException": return [3 /*break*/, 4];
36034 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36035 case "InternalServerErrorException": return [3 /*break*/, 6];
36036 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36037 case "MethodNotAllowedException": return [3 /*break*/, 8];
36038 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36039 case "NotFoundException": return [3 /*break*/, 10];
36040 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36041 case "PayloadTooLargeException": return [3 /*break*/, 12];
36042 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36043 case "TooManyRequestsException": return [3 /*break*/, 14];
36044 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36045 }
36046 return [3 /*break*/, 16];
36047 case 2:
36048 _c = [{}];
36049 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36050 case 3:
36051 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36052 return [3 /*break*/, 17];
36053 case 4:
36054 _d = [{}];
36055 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36056 case 5:
36057 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36058 return [3 /*break*/, 17];
36059 case 6:
36060 _e = [{}];
36061 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36062 case 7:
36063 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36064 return [3 /*break*/, 17];
36065 case 8:
36066 _f = [{}];
36067 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36068 case 9:
36069 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36070 return [3 /*break*/, 17];
36071 case 10:
36072 _g = [{}];
36073 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36074 case 11:
36075 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36076 return [3 /*break*/, 17];
36077 case 12:
36078 _h = [{}];
36079 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36080 case 13:
36081 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36082 return [3 /*break*/, 17];
36083 case 14:
36084 _j = [{}];
36085 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36086 case 15:
36087 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36088 return [3 /*break*/, 17];
36089 case 16:
36090 parsedBody = parsedOutput.body;
36091 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36092 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36093 _l.label = 17;
36094 case 17:
36095 message = response.message || response.Message || errorCode;
36096 response.message = message;
36097 delete response.Message;
36098 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36099 }
36100 });
36101}); };
36102var deserializeAws_restJson1CreateImportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36103 var contents, data;
36104 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36105 switch (_a.label) {
36106 case 0:
36107 if (output.statusCode !== 201 && output.statusCode >= 300) {
36108 return [2 /*return*/, deserializeAws_restJson1CreateImportJobCommandError(output, context)];
36109 }
36110 contents = {
36111 $metadata: deserializeMetadata(output),
36112 ImportJobResponse: undefined,
36113 };
36114 return [4 /*yield*/, parseBody(output.body, context)];
36115 case 1:
36116 data = _a.sent();
36117 contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context);
36118 return [2 /*return*/, Promise.resolve(contents)];
36119 }
36120 });
36121}); };
36122var deserializeAws_restJson1CreateImportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36123 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36124 var _k;
36125 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36126 switch (_l.label) {
36127 case 0:
36128 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36129 _k = {};
36130 return [4 /*yield*/, parseBody(output.body, context)];
36131 case 1:
36132 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36133 errorCode = "UnknownError";
36134 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36135 _b = errorCode;
36136 switch (_b) {
36137 case "BadRequestException": return [3 /*break*/, 2];
36138 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36139 case "ForbiddenException": return [3 /*break*/, 4];
36140 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36141 case "InternalServerErrorException": return [3 /*break*/, 6];
36142 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36143 case "MethodNotAllowedException": return [3 /*break*/, 8];
36144 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36145 case "NotFoundException": return [3 /*break*/, 10];
36146 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36147 case "PayloadTooLargeException": return [3 /*break*/, 12];
36148 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36149 case "TooManyRequestsException": return [3 /*break*/, 14];
36150 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36151 }
36152 return [3 /*break*/, 16];
36153 case 2:
36154 _c = [{}];
36155 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36156 case 3:
36157 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36158 return [3 /*break*/, 17];
36159 case 4:
36160 _d = [{}];
36161 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36162 case 5:
36163 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36164 return [3 /*break*/, 17];
36165 case 6:
36166 _e = [{}];
36167 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36168 case 7:
36169 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36170 return [3 /*break*/, 17];
36171 case 8:
36172 _f = [{}];
36173 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36174 case 9:
36175 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36176 return [3 /*break*/, 17];
36177 case 10:
36178 _g = [{}];
36179 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36180 case 11:
36181 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36182 return [3 /*break*/, 17];
36183 case 12:
36184 _h = [{}];
36185 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36186 case 13:
36187 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36188 return [3 /*break*/, 17];
36189 case 14:
36190 _j = [{}];
36191 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36192 case 15:
36193 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36194 return [3 /*break*/, 17];
36195 case 16:
36196 parsedBody = parsedOutput.body;
36197 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36198 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36199 _l.label = 17;
36200 case 17:
36201 message = response.message || response.Message || errorCode;
36202 response.message = message;
36203 delete response.Message;
36204 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36205 }
36206 });
36207}); };
36208var deserializeAws_restJson1CreateJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36209 var contents, data;
36210 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36211 switch (_a.label) {
36212 case 0:
36213 if (output.statusCode !== 201 && output.statusCode >= 300) {
36214 return [2 /*return*/, deserializeAws_restJson1CreateJourneyCommandError(output, context)];
36215 }
36216 contents = {
36217 $metadata: deserializeMetadata(output),
36218 JourneyResponse: undefined,
36219 };
36220 return [4 /*yield*/, parseBody(output.body, context)];
36221 case 1:
36222 data = _a.sent();
36223 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
36224 return [2 /*return*/, Promise.resolve(contents)];
36225 }
36226 });
36227}); };
36228var deserializeAws_restJson1CreateJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36229 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36230 var _k;
36231 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36232 switch (_l.label) {
36233 case 0:
36234 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36235 _k = {};
36236 return [4 /*yield*/, parseBody(output.body, context)];
36237 case 1:
36238 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36239 errorCode = "UnknownError";
36240 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36241 _b = errorCode;
36242 switch (_b) {
36243 case "BadRequestException": return [3 /*break*/, 2];
36244 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36245 case "ForbiddenException": return [3 /*break*/, 4];
36246 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36247 case "InternalServerErrorException": return [3 /*break*/, 6];
36248 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36249 case "MethodNotAllowedException": return [3 /*break*/, 8];
36250 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36251 case "NotFoundException": return [3 /*break*/, 10];
36252 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36253 case "PayloadTooLargeException": return [3 /*break*/, 12];
36254 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36255 case "TooManyRequestsException": return [3 /*break*/, 14];
36256 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36257 }
36258 return [3 /*break*/, 16];
36259 case 2:
36260 _c = [{}];
36261 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36262 case 3:
36263 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36264 return [3 /*break*/, 17];
36265 case 4:
36266 _d = [{}];
36267 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36268 case 5:
36269 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36270 return [3 /*break*/, 17];
36271 case 6:
36272 _e = [{}];
36273 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36274 case 7:
36275 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36276 return [3 /*break*/, 17];
36277 case 8:
36278 _f = [{}];
36279 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36280 case 9:
36281 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36282 return [3 /*break*/, 17];
36283 case 10:
36284 _g = [{}];
36285 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36286 case 11:
36287 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36288 return [3 /*break*/, 17];
36289 case 12:
36290 _h = [{}];
36291 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36292 case 13:
36293 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36294 return [3 /*break*/, 17];
36295 case 14:
36296 _j = [{}];
36297 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36298 case 15:
36299 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36300 return [3 /*break*/, 17];
36301 case 16:
36302 parsedBody = parsedOutput.body;
36303 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36304 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36305 _l.label = 17;
36306 case 17:
36307 message = response.message || response.Message || errorCode;
36308 response.message = message;
36309 delete response.Message;
36310 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36311 }
36312 });
36313}); };
36314var deserializeAws_restJson1CreatePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36315 var contents, data;
36316 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36317 switch (_a.label) {
36318 case 0:
36319 if (output.statusCode !== 201 && output.statusCode >= 300) {
36320 return [2 /*return*/, deserializeAws_restJson1CreatePushTemplateCommandError(output, context)];
36321 }
36322 contents = {
36323 $metadata: deserializeMetadata(output),
36324 CreateTemplateMessageBody: undefined,
36325 };
36326 return [4 /*yield*/, parseBody(output.body, context)];
36327 case 1:
36328 data = _a.sent();
36329 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
36330 return [2 /*return*/, Promise.resolve(contents)];
36331 }
36332 });
36333}); };
36334var deserializeAws_restJson1CreatePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36335 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
36336 var _h;
36337 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
36338 switch (_j.label) {
36339 case 0:
36340 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36341 _h = {};
36342 return [4 /*yield*/, parseBody(output.body, context)];
36343 case 1:
36344 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
36345 errorCode = "UnknownError";
36346 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36347 _b = errorCode;
36348 switch (_b) {
36349 case "BadRequestException": return [3 /*break*/, 2];
36350 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36351 case "ForbiddenException": return [3 /*break*/, 4];
36352 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36353 case "InternalServerErrorException": return [3 /*break*/, 6];
36354 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36355 case "MethodNotAllowedException": return [3 /*break*/, 8];
36356 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36357 case "TooManyRequestsException": return [3 /*break*/, 10];
36358 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
36359 }
36360 return [3 /*break*/, 12];
36361 case 2:
36362 _c = [{}];
36363 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36364 case 3:
36365 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36366 return [3 /*break*/, 13];
36367 case 4:
36368 _d = [{}];
36369 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36370 case 5:
36371 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36372 return [3 /*break*/, 13];
36373 case 6:
36374 _e = [{}];
36375 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36376 case 7:
36377 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36378 return [3 /*break*/, 13];
36379 case 8:
36380 _f = [{}];
36381 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36382 case 9:
36383 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36384 return [3 /*break*/, 13];
36385 case 10:
36386 _g = [{}];
36387 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36388 case 11:
36389 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36390 return [3 /*break*/, 13];
36391 case 12:
36392 parsedBody = parsedOutput.body;
36393 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36394 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36395 _j.label = 13;
36396 case 13:
36397 message = response.message || response.Message || errorCode;
36398 response.message = message;
36399 delete response.Message;
36400 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36401 }
36402 });
36403}); };
36404var deserializeAws_restJson1CreateRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36405 var contents, data;
36406 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36407 switch (_a.label) {
36408 case 0:
36409 if (output.statusCode !== 201 && output.statusCode >= 300) {
36410 return [2 /*return*/, deserializeAws_restJson1CreateRecommenderConfigurationCommandError(output, context)];
36411 }
36412 contents = {
36413 $metadata: deserializeMetadata(output),
36414 RecommenderConfigurationResponse: undefined,
36415 };
36416 return [4 /*yield*/, parseBody(output.body, context)];
36417 case 1:
36418 data = _a.sent();
36419 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
36420 return [2 /*return*/, Promise.resolve(contents)];
36421 }
36422 });
36423}); };
36424var deserializeAws_restJson1CreateRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36425 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36426 var _k;
36427 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36428 switch (_l.label) {
36429 case 0:
36430 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36431 _k = {};
36432 return [4 /*yield*/, parseBody(output.body, context)];
36433 case 1:
36434 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36435 errorCode = "UnknownError";
36436 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36437 _b = errorCode;
36438 switch (_b) {
36439 case "BadRequestException": return [3 /*break*/, 2];
36440 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36441 case "ForbiddenException": return [3 /*break*/, 4];
36442 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36443 case "InternalServerErrorException": return [3 /*break*/, 6];
36444 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36445 case "MethodNotAllowedException": return [3 /*break*/, 8];
36446 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36447 case "NotFoundException": return [3 /*break*/, 10];
36448 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36449 case "PayloadTooLargeException": return [3 /*break*/, 12];
36450 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36451 case "TooManyRequestsException": return [3 /*break*/, 14];
36452 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36453 }
36454 return [3 /*break*/, 16];
36455 case 2:
36456 _c = [{}];
36457 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36458 case 3:
36459 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36460 return [3 /*break*/, 17];
36461 case 4:
36462 _d = [{}];
36463 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36464 case 5:
36465 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36466 return [3 /*break*/, 17];
36467 case 6:
36468 _e = [{}];
36469 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36470 case 7:
36471 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36472 return [3 /*break*/, 17];
36473 case 8:
36474 _f = [{}];
36475 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36476 case 9:
36477 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36478 return [3 /*break*/, 17];
36479 case 10:
36480 _g = [{}];
36481 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36482 case 11:
36483 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36484 return [3 /*break*/, 17];
36485 case 12:
36486 _h = [{}];
36487 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36488 case 13:
36489 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36490 return [3 /*break*/, 17];
36491 case 14:
36492 _j = [{}];
36493 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36494 case 15:
36495 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36496 return [3 /*break*/, 17];
36497 case 16:
36498 parsedBody = parsedOutput.body;
36499 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36500 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36501 _l.label = 17;
36502 case 17:
36503 message = response.message || response.Message || errorCode;
36504 response.message = message;
36505 delete response.Message;
36506 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36507 }
36508 });
36509}); };
36510var deserializeAws_restJson1CreateSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36511 var contents, data;
36512 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36513 switch (_a.label) {
36514 case 0:
36515 if (output.statusCode !== 201 && output.statusCode >= 300) {
36516 return [2 /*return*/, deserializeAws_restJson1CreateSegmentCommandError(output, context)];
36517 }
36518 contents = {
36519 $metadata: deserializeMetadata(output),
36520 SegmentResponse: undefined,
36521 };
36522 return [4 /*yield*/, parseBody(output.body, context)];
36523 case 1:
36524 data = _a.sent();
36525 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
36526 return [2 /*return*/, Promise.resolve(contents)];
36527 }
36528 });
36529}); };
36530var deserializeAws_restJson1CreateSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36531 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36532 var _k;
36533 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36534 switch (_l.label) {
36535 case 0:
36536 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36537 _k = {};
36538 return [4 /*yield*/, parseBody(output.body, context)];
36539 case 1:
36540 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36541 errorCode = "UnknownError";
36542 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36543 _b = errorCode;
36544 switch (_b) {
36545 case "BadRequestException": return [3 /*break*/, 2];
36546 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36547 case "ForbiddenException": return [3 /*break*/, 4];
36548 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36549 case "InternalServerErrorException": return [3 /*break*/, 6];
36550 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36551 case "MethodNotAllowedException": return [3 /*break*/, 8];
36552 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36553 case "NotFoundException": return [3 /*break*/, 10];
36554 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36555 case "PayloadTooLargeException": return [3 /*break*/, 12];
36556 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36557 case "TooManyRequestsException": return [3 /*break*/, 14];
36558 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36559 }
36560 return [3 /*break*/, 16];
36561 case 2:
36562 _c = [{}];
36563 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36564 case 3:
36565 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36566 return [3 /*break*/, 17];
36567 case 4:
36568 _d = [{}];
36569 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36570 case 5:
36571 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36572 return [3 /*break*/, 17];
36573 case 6:
36574 _e = [{}];
36575 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36576 case 7:
36577 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36578 return [3 /*break*/, 17];
36579 case 8:
36580 _f = [{}];
36581 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36582 case 9:
36583 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36584 return [3 /*break*/, 17];
36585 case 10:
36586 _g = [{}];
36587 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36588 case 11:
36589 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36590 return [3 /*break*/, 17];
36591 case 12:
36592 _h = [{}];
36593 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36594 case 13:
36595 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36596 return [3 /*break*/, 17];
36597 case 14:
36598 _j = [{}];
36599 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36600 case 15:
36601 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36602 return [3 /*break*/, 17];
36603 case 16:
36604 parsedBody = parsedOutput.body;
36605 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36606 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36607 _l.label = 17;
36608 case 17:
36609 message = response.message || response.Message || errorCode;
36610 response.message = message;
36611 delete response.Message;
36612 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36613 }
36614 });
36615}); };
36616var deserializeAws_restJson1CreateSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36617 var contents, data;
36618 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36619 switch (_a.label) {
36620 case 0:
36621 if (output.statusCode !== 201 && output.statusCode >= 300) {
36622 return [2 /*return*/, deserializeAws_restJson1CreateSmsTemplateCommandError(output, context)];
36623 }
36624 contents = {
36625 $metadata: deserializeMetadata(output),
36626 CreateTemplateMessageBody: undefined,
36627 };
36628 return [4 /*yield*/, parseBody(output.body, context)];
36629 case 1:
36630 data = _a.sent();
36631 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
36632 return [2 /*return*/, Promise.resolve(contents)];
36633 }
36634 });
36635}); };
36636var deserializeAws_restJson1CreateSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36637 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
36638 var _h;
36639 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
36640 switch (_j.label) {
36641 case 0:
36642 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36643 _h = {};
36644 return [4 /*yield*/, parseBody(output.body, context)];
36645 case 1:
36646 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
36647 errorCode = "UnknownError";
36648 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36649 _b = errorCode;
36650 switch (_b) {
36651 case "BadRequestException": return [3 /*break*/, 2];
36652 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36653 case "ForbiddenException": return [3 /*break*/, 4];
36654 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36655 case "InternalServerErrorException": return [3 /*break*/, 6];
36656 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36657 case "MethodNotAllowedException": return [3 /*break*/, 8];
36658 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36659 case "TooManyRequestsException": return [3 /*break*/, 10];
36660 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
36661 }
36662 return [3 /*break*/, 12];
36663 case 2:
36664 _c = [{}];
36665 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36666 case 3:
36667 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36668 return [3 /*break*/, 13];
36669 case 4:
36670 _d = [{}];
36671 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36672 case 5:
36673 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36674 return [3 /*break*/, 13];
36675 case 6:
36676 _e = [{}];
36677 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36678 case 7:
36679 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36680 return [3 /*break*/, 13];
36681 case 8:
36682 _f = [{}];
36683 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36684 case 9:
36685 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36686 return [3 /*break*/, 13];
36687 case 10:
36688 _g = [{}];
36689 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36690 case 11:
36691 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36692 return [3 /*break*/, 13];
36693 case 12:
36694 parsedBody = parsedOutput.body;
36695 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36696 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36697 _j.label = 13;
36698 case 13:
36699 message = response.message || response.Message || errorCode;
36700 response.message = message;
36701 delete response.Message;
36702 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36703 }
36704 });
36705}); };
36706var deserializeAws_restJson1CreateVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36707 var contents, data;
36708 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36709 switch (_a.label) {
36710 case 0:
36711 if (output.statusCode !== 201 && output.statusCode >= 300) {
36712 return [2 /*return*/, deserializeAws_restJson1CreateVoiceTemplateCommandError(output, context)];
36713 }
36714 contents = {
36715 $metadata: deserializeMetadata(output),
36716 CreateTemplateMessageBody: undefined,
36717 };
36718 return [4 /*yield*/, parseBody(output.body, context)];
36719 case 1:
36720 data = _a.sent();
36721 contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context);
36722 return [2 /*return*/, Promise.resolve(contents)];
36723 }
36724 });
36725}); };
36726var deserializeAws_restJson1CreateVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36727 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
36728 var _h;
36729 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
36730 switch (_j.label) {
36731 case 0:
36732 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36733 _h = {};
36734 return [4 /*yield*/, parseBody(output.body, context)];
36735 case 1:
36736 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
36737 errorCode = "UnknownError";
36738 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36739 _b = errorCode;
36740 switch (_b) {
36741 case "BadRequestException": return [3 /*break*/, 2];
36742 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36743 case "ForbiddenException": return [3 /*break*/, 4];
36744 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36745 case "InternalServerErrorException": return [3 /*break*/, 6];
36746 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36747 case "MethodNotAllowedException": return [3 /*break*/, 8];
36748 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36749 case "TooManyRequestsException": return [3 /*break*/, 10];
36750 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
36751 }
36752 return [3 /*break*/, 12];
36753 case 2:
36754 _c = [{}];
36755 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36756 case 3:
36757 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36758 return [3 /*break*/, 13];
36759 case 4:
36760 _d = [{}];
36761 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36762 case 5:
36763 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36764 return [3 /*break*/, 13];
36765 case 6:
36766 _e = [{}];
36767 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36768 case 7:
36769 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36770 return [3 /*break*/, 13];
36771 case 8:
36772 _f = [{}];
36773 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36774 case 9:
36775 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36776 return [3 /*break*/, 13];
36777 case 10:
36778 _g = [{}];
36779 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36780 case 11:
36781 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36782 return [3 /*break*/, 13];
36783 case 12:
36784 parsedBody = parsedOutput.body;
36785 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36786 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36787 _j.label = 13;
36788 case 13:
36789 message = response.message || response.Message || errorCode;
36790 response.message = message;
36791 delete response.Message;
36792 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36793 }
36794 });
36795}); };
36796var deserializeAws_restJson1DeleteAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36797 var contents, data;
36798 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36799 switch (_a.label) {
36800 case 0:
36801 if (output.statusCode !== 200 && output.statusCode >= 300) {
36802 return [2 /*return*/, deserializeAws_restJson1DeleteAdmChannelCommandError(output, context)];
36803 }
36804 contents = {
36805 $metadata: deserializeMetadata(output),
36806 ADMChannelResponse: undefined,
36807 };
36808 return [4 /*yield*/, parseBody(output.body, context)];
36809 case 1:
36810 data = _a.sent();
36811 contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context);
36812 return [2 /*return*/, Promise.resolve(contents)];
36813 }
36814 });
36815}); };
36816var deserializeAws_restJson1DeleteAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36817 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36818 var _k;
36819 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36820 switch (_l.label) {
36821 case 0:
36822 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36823 _k = {};
36824 return [4 /*yield*/, parseBody(output.body, context)];
36825 case 1:
36826 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36827 errorCode = "UnknownError";
36828 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36829 _b = errorCode;
36830 switch (_b) {
36831 case "BadRequestException": return [3 /*break*/, 2];
36832 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36833 case "ForbiddenException": return [3 /*break*/, 4];
36834 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36835 case "InternalServerErrorException": return [3 /*break*/, 6];
36836 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36837 case "MethodNotAllowedException": return [3 /*break*/, 8];
36838 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36839 case "NotFoundException": return [3 /*break*/, 10];
36840 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36841 case "PayloadTooLargeException": return [3 /*break*/, 12];
36842 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36843 case "TooManyRequestsException": return [3 /*break*/, 14];
36844 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36845 }
36846 return [3 /*break*/, 16];
36847 case 2:
36848 _c = [{}];
36849 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36850 case 3:
36851 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36852 return [3 /*break*/, 17];
36853 case 4:
36854 _d = [{}];
36855 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36856 case 5:
36857 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36858 return [3 /*break*/, 17];
36859 case 6:
36860 _e = [{}];
36861 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36862 case 7:
36863 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36864 return [3 /*break*/, 17];
36865 case 8:
36866 _f = [{}];
36867 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36868 case 9:
36869 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36870 return [3 /*break*/, 17];
36871 case 10:
36872 _g = [{}];
36873 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36874 case 11:
36875 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36876 return [3 /*break*/, 17];
36877 case 12:
36878 _h = [{}];
36879 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36880 case 13:
36881 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36882 return [3 /*break*/, 17];
36883 case 14:
36884 _j = [{}];
36885 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36886 case 15:
36887 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36888 return [3 /*break*/, 17];
36889 case 16:
36890 parsedBody = parsedOutput.body;
36891 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36892 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36893 _l.label = 17;
36894 case 17:
36895 message = response.message || response.Message || errorCode;
36896 response.message = message;
36897 delete response.Message;
36898 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
36899 }
36900 });
36901}); };
36902var deserializeAws_restJson1DeleteApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36903 var contents, data;
36904 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
36905 switch (_a.label) {
36906 case 0:
36907 if (output.statusCode !== 200 && output.statusCode >= 300) {
36908 return [2 /*return*/, deserializeAws_restJson1DeleteApnsChannelCommandError(output, context)];
36909 }
36910 contents = {
36911 $metadata: deserializeMetadata(output),
36912 APNSChannelResponse: undefined,
36913 };
36914 return [4 /*yield*/, parseBody(output.body, context)];
36915 case 1:
36916 data = _a.sent();
36917 contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context);
36918 return [2 /*return*/, Promise.resolve(contents)];
36919 }
36920 });
36921}); };
36922var deserializeAws_restJson1DeleteApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
36923 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
36924 var _k;
36925 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
36926 switch (_l.label) {
36927 case 0:
36928 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
36929 _k = {};
36930 return [4 /*yield*/, parseBody(output.body, context)];
36931 case 1:
36932 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
36933 errorCode = "UnknownError";
36934 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
36935 _b = errorCode;
36936 switch (_b) {
36937 case "BadRequestException": return [3 /*break*/, 2];
36938 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
36939 case "ForbiddenException": return [3 /*break*/, 4];
36940 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
36941 case "InternalServerErrorException": return [3 /*break*/, 6];
36942 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
36943 case "MethodNotAllowedException": return [3 /*break*/, 8];
36944 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
36945 case "NotFoundException": return [3 /*break*/, 10];
36946 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
36947 case "PayloadTooLargeException": return [3 /*break*/, 12];
36948 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
36949 case "TooManyRequestsException": return [3 /*break*/, 14];
36950 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
36951 }
36952 return [3 /*break*/, 16];
36953 case 2:
36954 _c = [{}];
36955 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
36956 case 3:
36957 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36958 return [3 /*break*/, 17];
36959 case 4:
36960 _d = [{}];
36961 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
36962 case 5:
36963 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36964 return [3 /*break*/, 17];
36965 case 6:
36966 _e = [{}];
36967 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
36968 case 7:
36969 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36970 return [3 /*break*/, 17];
36971 case 8:
36972 _f = [{}];
36973 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
36974 case 9:
36975 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36976 return [3 /*break*/, 17];
36977 case 10:
36978 _g = [{}];
36979 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
36980 case 11:
36981 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36982 return [3 /*break*/, 17];
36983 case 12:
36984 _h = [{}];
36985 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
36986 case 13:
36987 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36988 return [3 /*break*/, 17];
36989 case 14:
36990 _j = [{}];
36991 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
36992 case 15:
36993 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
36994 return [3 /*break*/, 17];
36995 case 16:
36996 parsedBody = parsedOutput.body;
36997 errorCode = parsedBody.code || parsedBody.Code || errorCode;
36998 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
36999 _l.label = 17;
37000 case 17:
37001 message = response.message || response.Message || errorCode;
37002 response.message = message;
37003 delete response.Message;
37004 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37005 }
37006 });
37007}); };
37008var deserializeAws_restJson1DeleteApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37009 var contents, data;
37010 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37011 switch (_a.label) {
37012 case 0:
37013 if (output.statusCode !== 200 && output.statusCode >= 300) {
37014 return [2 /*return*/, deserializeAws_restJson1DeleteApnsSandboxChannelCommandError(output, context)];
37015 }
37016 contents = {
37017 $metadata: deserializeMetadata(output),
37018 APNSSandboxChannelResponse: undefined,
37019 };
37020 return [4 /*yield*/, parseBody(output.body, context)];
37021 case 1:
37022 data = _a.sent();
37023 contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context);
37024 return [2 /*return*/, Promise.resolve(contents)];
37025 }
37026 });
37027}); };
37028var deserializeAws_restJson1DeleteApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37029 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37030 var _k;
37031 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37032 switch (_l.label) {
37033 case 0:
37034 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37035 _k = {};
37036 return [4 /*yield*/, parseBody(output.body, context)];
37037 case 1:
37038 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37039 errorCode = "UnknownError";
37040 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37041 _b = errorCode;
37042 switch (_b) {
37043 case "BadRequestException": return [3 /*break*/, 2];
37044 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37045 case "ForbiddenException": return [3 /*break*/, 4];
37046 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37047 case "InternalServerErrorException": return [3 /*break*/, 6];
37048 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37049 case "MethodNotAllowedException": return [3 /*break*/, 8];
37050 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37051 case "NotFoundException": return [3 /*break*/, 10];
37052 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37053 case "PayloadTooLargeException": return [3 /*break*/, 12];
37054 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37055 case "TooManyRequestsException": return [3 /*break*/, 14];
37056 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37057 }
37058 return [3 /*break*/, 16];
37059 case 2:
37060 _c = [{}];
37061 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37062 case 3:
37063 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37064 return [3 /*break*/, 17];
37065 case 4:
37066 _d = [{}];
37067 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37068 case 5:
37069 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37070 return [3 /*break*/, 17];
37071 case 6:
37072 _e = [{}];
37073 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37074 case 7:
37075 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37076 return [3 /*break*/, 17];
37077 case 8:
37078 _f = [{}];
37079 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37080 case 9:
37081 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37082 return [3 /*break*/, 17];
37083 case 10:
37084 _g = [{}];
37085 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37086 case 11:
37087 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37088 return [3 /*break*/, 17];
37089 case 12:
37090 _h = [{}];
37091 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37092 case 13:
37093 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37094 return [3 /*break*/, 17];
37095 case 14:
37096 _j = [{}];
37097 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37098 case 15:
37099 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37100 return [3 /*break*/, 17];
37101 case 16:
37102 parsedBody = parsedOutput.body;
37103 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37104 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37105 _l.label = 17;
37106 case 17:
37107 message = response.message || response.Message || errorCode;
37108 response.message = message;
37109 delete response.Message;
37110 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37111 }
37112 });
37113}); };
37114var deserializeAws_restJson1DeleteApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37115 var contents, data;
37116 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37117 switch (_a.label) {
37118 case 0:
37119 if (output.statusCode !== 200 && output.statusCode >= 300) {
37120 return [2 /*return*/, deserializeAws_restJson1DeleteApnsVoipChannelCommandError(output, context)];
37121 }
37122 contents = {
37123 $metadata: deserializeMetadata(output),
37124 APNSVoipChannelResponse: undefined,
37125 };
37126 return [4 /*yield*/, parseBody(output.body, context)];
37127 case 1:
37128 data = _a.sent();
37129 contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context);
37130 return [2 /*return*/, Promise.resolve(contents)];
37131 }
37132 });
37133}); };
37134var deserializeAws_restJson1DeleteApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37135 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37136 var _k;
37137 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37138 switch (_l.label) {
37139 case 0:
37140 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37141 _k = {};
37142 return [4 /*yield*/, parseBody(output.body, context)];
37143 case 1:
37144 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37145 errorCode = "UnknownError";
37146 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37147 _b = errorCode;
37148 switch (_b) {
37149 case "BadRequestException": return [3 /*break*/, 2];
37150 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37151 case "ForbiddenException": return [3 /*break*/, 4];
37152 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37153 case "InternalServerErrorException": return [3 /*break*/, 6];
37154 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37155 case "MethodNotAllowedException": return [3 /*break*/, 8];
37156 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37157 case "NotFoundException": return [3 /*break*/, 10];
37158 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37159 case "PayloadTooLargeException": return [3 /*break*/, 12];
37160 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37161 case "TooManyRequestsException": return [3 /*break*/, 14];
37162 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37163 }
37164 return [3 /*break*/, 16];
37165 case 2:
37166 _c = [{}];
37167 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37168 case 3:
37169 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37170 return [3 /*break*/, 17];
37171 case 4:
37172 _d = [{}];
37173 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37174 case 5:
37175 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37176 return [3 /*break*/, 17];
37177 case 6:
37178 _e = [{}];
37179 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37180 case 7:
37181 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37182 return [3 /*break*/, 17];
37183 case 8:
37184 _f = [{}];
37185 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37186 case 9:
37187 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37188 return [3 /*break*/, 17];
37189 case 10:
37190 _g = [{}];
37191 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37192 case 11:
37193 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37194 return [3 /*break*/, 17];
37195 case 12:
37196 _h = [{}];
37197 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37198 case 13:
37199 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37200 return [3 /*break*/, 17];
37201 case 14:
37202 _j = [{}];
37203 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37204 case 15:
37205 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37206 return [3 /*break*/, 17];
37207 case 16:
37208 parsedBody = parsedOutput.body;
37209 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37210 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37211 _l.label = 17;
37212 case 17:
37213 message = response.message || response.Message || errorCode;
37214 response.message = message;
37215 delete response.Message;
37216 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37217 }
37218 });
37219}); };
37220var deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37221 var contents, data;
37222 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37223 switch (_a.label) {
37224 case 0:
37225 if (output.statusCode !== 200 && output.statusCode >= 300) {
37226 return [2 /*return*/, deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError(output, context)];
37227 }
37228 contents = {
37229 $metadata: deserializeMetadata(output),
37230 APNSVoipSandboxChannelResponse: undefined,
37231 };
37232 return [4 /*yield*/, parseBody(output.body, context)];
37233 case 1:
37234 data = _a.sent();
37235 contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context);
37236 return [2 /*return*/, Promise.resolve(contents)];
37237 }
37238 });
37239}); };
37240var deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37241 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37242 var _k;
37243 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37244 switch (_l.label) {
37245 case 0:
37246 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37247 _k = {};
37248 return [4 /*yield*/, parseBody(output.body, context)];
37249 case 1:
37250 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37251 errorCode = "UnknownError";
37252 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37253 _b = errorCode;
37254 switch (_b) {
37255 case "BadRequestException": return [3 /*break*/, 2];
37256 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37257 case "ForbiddenException": return [3 /*break*/, 4];
37258 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37259 case "InternalServerErrorException": return [3 /*break*/, 6];
37260 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37261 case "MethodNotAllowedException": return [3 /*break*/, 8];
37262 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37263 case "NotFoundException": return [3 /*break*/, 10];
37264 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37265 case "PayloadTooLargeException": return [3 /*break*/, 12];
37266 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37267 case "TooManyRequestsException": return [3 /*break*/, 14];
37268 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37269 }
37270 return [3 /*break*/, 16];
37271 case 2:
37272 _c = [{}];
37273 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37274 case 3:
37275 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37276 return [3 /*break*/, 17];
37277 case 4:
37278 _d = [{}];
37279 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37280 case 5:
37281 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37282 return [3 /*break*/, 17];
37283 case 6:
37284 _e = [{}];
37285 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37286 case 7:
37287 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37288 return [3 /*break*/, 17];
37289 case 8:
37290 _f = [{}];
37291 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37292 case 9:
37293 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37294 return [3 /*break*/, 17];
37295 case 10:
37296 _g = [{}];
37297 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37298 case 11:
37299 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37300 return [3 /*break*/, 17];
37301 case 12:
37302 _h = [{}];
37303 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37304 case 13:
37305 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37306 return [3 /*break*/, 17];
37307 case 14:
37308 _j = [{}];
37309 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37310 case 15:
37311 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37312 return [3 /*break*/, 17];
37313 case 16:
37314 parsedBody = parsedOutput.body;
37315 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37316 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37317 _l.label = 17;
37318 case 17:
37319 message = response.message || response.Message || errorCode;
37320 response.message = message;
37321 delete response.Message;
37322 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37323 }
37324 });
37325}); };
37326var deserializeAws_restJson1DeleteAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37327 var contents, data;
37328 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37329 switch (_a.label) {
37330 case 0:
37331 if (output.statusCode !== 200 && output.statusCode >= 300) {
37332 return [2 /*return*/, deserializeAws_restJson1DeleteAppCommandError(output, context)];
37333 }
37334 contents = {
37335 $metadata: deserializeMetadata(output),
37336 ApplicationResponse: undefined,
37337 };
37338 return [4 /*yield*/, parseBody(output.body, context)];
37339 case 1:
37340 data = _a.sent();
37341 contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context);
37342 return [2 /*return*/, Promise.resolve(contents)];
37343 }
37344 });
37345}); };
37346var deserializeAws_restJson1DeleteAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37347 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37348 var _k;
37349 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37350 switch (_l.label) {
37351 case 0:
37352 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37353 _k = {};
37354 return [4 /*yield*/, parseBody(output.body, context)];
37355 case 1:
37356 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37357 errorCode = "UnknownError";
37358 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37359 _b = errorCode;
37360 switch (_b) {
37361 case "BadRequestException": return [3 /*break*/, 2];
37362 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37363 case "ForbiddenException": return [3 /*break*/, 4];
37364 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37365 case "InternalServerErrorException": return [3 /*break*/, 6];
37366 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37367 case "MethodNotAllowedException": return [3 /*break*/, 8];
37368 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37369 case "NotFoundException": return [3 /*break*/, 10];
37370 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37371 case "PayloadTooLargeException": return [3 /*break*/, 12];
37372 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37373 case "TooManyRequestsException": return [3 /*break*/, 14];
37374 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37375 }
37376 return [3 /*break*/, 16];
37377 case 2:
37378 _c = [{}];
37379 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37380 case 3:
37381 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37382 return [3 /*break*/, 17];
37383 case 4:
37384 _d = [{}];
37385 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37386 case 5:
37387 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37388 return [3 /*break*/, 17];
37389 case 6:
37390 _e = [{}];
37391 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37392 case 7:
37393 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37394 return [3 /*break*/, 17];
37395 case 8:
37396 _f = [{}];
37397 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37398 case 9:
37399 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37400 return [3 /*break*/, 17];
37401 case 10:
37402 _g = [{}];
37403 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37404 case 11:
37405 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37406 return [3 /*break*/, 17];
37407 case 12:
37408 _h = [{}];
37409 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37410 case 13:
37411 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37412 return [3 /*break*/, 17];
37413 case 14:
37414 _j = [{}];
37415 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37416 case 15:
37417 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37418 return [3 /*break*/, 17];
37419 case 16:
37420 parsedBody = parsedOutput.body;
37421 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37422 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37423 _l.label = 17;
37424 case 17:
37425 message = response.message || response.Message || errorCode;
37426 response.message = message;
37427 delete response.Message;
37428 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37429 }
37430 });
37431}); };
37432var deserializeAws_restJson1DeleteBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37433 var contents, data;
37434 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37435 switch (_a.label) {
37436 case 0:
37437 if (output.statusCode !== 200 && output.statusCode >= 300) {
37438 return [2 /*return*/, deserializeAws_restJson1DeleteBaiduChannelCommandError(output, context)];
37439 }
37440 contents = {
37441 $metadata: deserializeMetadata(output),
37442 BaiduChannelResponse: undefined,
37443 };
37444 return [4 /*yield*/, parseBody(output.body, context)];
37445 case 1:
37446 data = _a.sent();
37447 contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context);
37448 return [2 /*return*/, Promise.resolve(contents)];
37449 }
37450 });
37451}); };
37452var deserializeAws_restJson1DeleteBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37453 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37454 var _k;
37455 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37456 switch (_l.label) {
37457 case 0:
37458 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37459 _k = {};
37460 return [4 /*yield*/, parseBody(output.body, context)];
37461 case 1:
37462 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37463 errorCode = "UnknownError";
37464 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37465 _b = errorCode;
37466 switch (_b) {
37467 case "BadRequestException": return [3 /*break*/, 2];
37468 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37469 case "ForbiddenException": return [3 /*break*/, 4];
37470 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37471 case "InternalServerErrorException": return [3 /*break*/, 6];
37472 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37473 case "MethodNotAllowedException": return [3 /*break*/, 8];
37474 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37475 case "NotFoundException": return [3 /*break*/, 10];
37476 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37477 case "PayloadTooLargeException": return [3 /*break*/, 12];
37478 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37479 case "TooManyRequestsException": return [3 /*break*/, 14];
37480 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37481 }
37482 return [3 /*break*/, 16];
37483 case 2:
37484 _c = [{}];
37485 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37486 case 3:
37487 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37488 return [3 /*break*/, 17];
37489 case 4:
37490 _d = [{}];
37491 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37492 case 5:
37493 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37494 return [3 /*break*/, 17];
37495 case 6:
37496 _e = [{}];
37497 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37498 case 7:
37499 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37500 return [3 /*break*/, 17];
37501 case 8:
37502 _f = [{}];
37503 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37504 case 9:
37505 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37506 return [3 /*break*/, 17];
37507 case 10:
37508 _g = [{}];
37509 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37510 case 11:
37511 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37512 return [3 /*break*/, 17];
37513 case 12:
37514 _h = [{}];
37515 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37516 case 13:
37517 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37518 return [3 /*break*/, 17];
37519 case 14:
37520 _j = [{}];
37521 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37522 case 15:
37523 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37524 return [3 /*break*/, 17];
37525 case 16:
37526 parsedBody = parsedOutput.body;
37527 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37528 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37529 _l.label = 17;
37530 case 17:
37531 message = response.message || response.Message || errorCode;
37532 response.message = message;
37533 delete response.Message;
37534 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37535 }
37536 });
37537}); };
37538var deserializeAws_restJson1DeleteCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37539 var contents, data;
37540 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37541 switch (_a.label) {
37542 case 0:
37543 if (output.statusCode !== 200 && output.statusCode >= 300) {
37544 return [2 /*return*/, deserializeAws_restJson1DeleteCampaignCommandError(output, context)];
37545 }
37546 contents = {
37547 $metadata: deserializeMetadata(output),
37548 CampaignResponse: undefined,
37549 };
37550 return [4 /*yield*/, parseBody(output.body, context)];
37551 case 1:
37552 data = _a.sent();
37553 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
37554 return [2 /*return*/, Promise.resolve(contents)];
37555 }
37556 });
37557}); };
37558var deserializeAws_restJson1DeleteCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37559 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37560 var _k;
37561 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37562 switch (_l.label) {
37563 case 0:
37564 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37565 _k = {};
37566 return [4 /*yield*/, parseBody(output.body, context)];
37567 case 1:
37568 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37569 errorCode = "UnknownError";
37570 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37571 _b = errorCode;
37572 switch (_b) {
37573 case "BadRequestException": return [3 /*break*/, 2];
37574 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37575 case "ForbiddenException": return [3 /*break*/, 4];
37576 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37577 case "InternalServerErrorException": return [3 /*break*/, 6];
37578 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37579 case "MethodNotAllowedException": return [3 /*break*/, 8];
37580 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37581 case "NotFoundException": return [3 /*break*/, 10];
37582 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37583 case "PayloadTooLargeException": return [3 /*break*/, 12];
37584 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37585 case "TooManyRequestsException": return [3 /*break*/, 14];
37586 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37587 }
37588 return [3 /*break*/, 16];
37589 case 2:
37590 _c = [{}];
37591 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37592 case 3:
37593 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37594 return [3 /*break*/, 17];
37595 case 4:
37596 _d = [{}];
37597 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37598 case 5:
37599 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37600 return [3 /*break*/, 17];
37601 case 6:
37602 _e = [{}];
37603 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37604 case 7:
37605 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37606 return [3 /*break*/, 17];
37607 case 8:
37608 _f = [{}];
37609 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37610 case 9:
37611 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37612 return [3 /*break*/, 17];
37613 case 10:
37614 _g = [{}];
37615 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37616 case 11:
37617 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37618 return [3 /*break*/, 17];
37619 case 12:
37620 _h = [{}];
37621 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37622 case 13:
37623 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37624 return [3 /*break*/, 17];
37625 case 14:
37626 _j = [{}];
37627 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37628 case 15:
37629 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37630 return [3 /*break*/, 17];
37631 case 16:
37632 parsedBody = parsedOutput.body;
37633 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37634 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37635 _l.label = 17;
37636 case 17:
37637 message = response.message || response.Message || errorCode;
37638 response.message = message;
37639 delete response.Message;
37640 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37641 }
37642 });
37643}); };
37644var deserializeAws_restJson1DeleteEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37645 var contents, data;
37646 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37647 switch (_a.label) {
37648 case 0:
37649 if (output.statusCode !== 200 && output.statusCode >= 300) {
37650 return [2 /*return*/, deserializeAws_restJson1DeleteEmailChannelCommandError(output, context)];
37651 }
37652 contents = {
37653 $metadata: deserializeMetadata(output),
37654 EmailChannelResponse: undefined,
37655 };
37656 return [4 /*yield*/, parseBody(output.body, context)];
37657 case 1:
37658 data = _a.sent();
37659 contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context);
37660 return [2 /*return*/, Promise.resolve(contents)];
37661 }
37662 });
37663}); };
37664var deserializeAws_restJson1DeleteEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37665 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37666 var _k;
37667 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37668 switch (_l.label) {
37669 case 0:
37670 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37671 _k = {};
37672 return [4 /*yield*/, parseBody(output.body, context)];
37673 case 1:
37674 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37675 errorCode = "UnknownError";
37676 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37677 _b = errorCode;
37678 switch (_b) {
37679 case "BadRequestException": return [3 /*break*/, 2];
37680 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37681 case "ForbiddenException": return [3 /*break*/, 4];
37682 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37683 case "InternalServerErrorException": return [3 /*break*/, 6];
37684 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37685 case "MethodNotAllowedException": return [3 /*break*/, 8];
37686 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37687 case "NotFoundException": return [3 /*break*/, 10];
37688 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37689 case "PayloadTooLargeException": return [3 /*break*/, 12];
37690 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37691 case "TooManyRequestsException": return [3 /*break*/, 14];
37692 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37693 }
37694 return [3 /*break*/, 16];
37695 case 2:
37696 _c = [{}];
37697 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37698 case 3:
37699 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37700 return [3 /*break*/, 17];
37701 case 4:
37702 _d = [{}];
37703 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37704 case 5:
37705 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37706 return [3 /*break*/, 17];
37707 case 6:
37708 _e = [{}];
37709 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37710 case 7:
37711 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37712 return [3 /*break*/, 17];
37713 case 8:
37714 _f = [{}];
37715 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37716 case 9:
37717 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37718 return [3 /*break*/, 17];
37719 case 10:
37720 _g = [{}];
37721 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37722 case 11:
37723 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37724 return [3 /*break*/, 17];
37725 case 12:
37726 _h = [{}];
37727 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37728 case 13:
37729 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37730 return [3 /*break*/, 17];
37731 case 14:
37732 _j = [{}];
37733 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37734 case 15:
37735 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37736 return [3 /*break*/, 17];
37737 case 16:
37738 parsedBody = parsedOutput.body;
37739 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37740 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37741 _l.label = 17;
37742 case 17:
37743 message = response.message || response.Message || errorCode;
37744 response.message = message;
37745 delete response.Message;
37746 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37747 }
37748 });
37749}); };
37750var deserializeAws_restJson1DeleteEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37751 var contents, data;
37752 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37753 switch (_a.label) {
37754 case 0:
37755 if (output.statusCode !== 202 && output.statusCode >= 300) {
37756 return [2 /*return*/, deserializeAws_restJson1DeleteEmailTemplateCommandError(output, context)];
37757 }
37758 contents = {
37759 $metadata: deserializeMetadata(output),
37760 MessageBody: undefined,
37761 };
37762 return [4 /*yield*/, parseBody(output.body, context)];
37763 case 1:
37764 data = _a.sent();
37765 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
37766 return [2 /*return*/, Promise.resolve(contents)];
37767 }
37768 });
37769}); };
37770var deserializeAws_restJson1DeleteEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37771 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37772 var _k;
37773 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37774 switch (_l.label) {
37775 case 0:
37776 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37777 _k = {};
37778 return [4 /*yield*/, parseBody(output.body, context)];
37779 case 1:
37780 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37781 errorCode = "UnknownError";
37782 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37783 _b = errorCode;
37784 switch (_b) {
37785 case "BadRequestException": return [3 /*break*/, 2];
37786 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37787 case "ForbiddenException": return [3 /*break*/, 4];
37788 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37789 case "InternalServerErrorException": return [3 /*break*/, 6];
37790 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37791 case "MethodNotAllowedException": return [3 /*break*/, 8];
37792 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37793 case "NotFoundException": return [3 /*break*/, 10];
37794 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37795 case "PayloadTooLargeException": return [3 /*break*/, 12];
37796 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37797 case "TooManyRequestsException": return [3 /*break*/, 14];
37798 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37799 }
37800 return [3 /*break*/, 16];
37801 case 2:
37802 _c = [{}];
37803 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37804 case 3:
37805 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37806 return [3 /*break*/, 17];
37807 case 4:
37808 _d = [{}];
37809 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37810 case 5:
37811 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37812 return [3 /*break*/, 17];
37813 case 6:
37814 _e = [{}];
37815 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37816 case 7:
37817 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37818 return [3 /*break*/, 17];
37819 case 8:
37820 _f = [{}];
37821 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37822 case 9:
37823 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37824 return [3 /*break*/, 17];
37825 case 10:
37826 _g = [{}];
37827 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37828 case 11:
37829 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37830 return [3 /*break*/, 17];
37831 case 12:
37832 _h = [{}];
37833 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37834 case 13:
37835 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37836 return [3 /*break*/, 17];
37837 case 14:
37838 _j = [{}];
37839 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37840 case 15:
37841 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37842 return [3 /*break*/, 17];
37843 case 16:
37844 parsedBody = parsedOutput.body;
37845 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37846 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37847 _l.label = 17;
37848 case 17:
37849 message = response.message || response.Message || errorCode;
37850 response.message = message;
37851 delete response.Message;
37852 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37853 }
37854 });
37855}); };
37856var deserializeAws_restJson1DeleteEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37857 var contents, data;
37858 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37859 switch (_a.label) {
37860 case 0:
37861 if (output.statusCode !== 202 && output.statusCode >= 300) {
37862 return [2 /*return*/, deserializeAws_restJson1DeleteEndpointCommandError(output, context)];
37863 }
37864 contents = {
37865 $metadata: deserializeMetadata(output),
37866 EndpointResponse: undefined,
37867 };
37868 return [4 /*yield*/, parseBody(output.body, context)];
37869 case 1:
37870 data = _a.sent();
37871 contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context);
37872 return [2 /*return*/, Promise.resolve(contents)];
37873 }
37874 });
37875}); };
37876var deserializeAws_restJson1DeleteEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37877 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37878 var _k;
37879 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37880 switch (_l.label) {
37881 case 0:
37882 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37883 _k = {};
37884 return [4 /*yield*/, parseBody(output.body, context)];
37885 case 1:
37886 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37887 errorCode = "UnknownError";
37888 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37889 _b = errorCode;
37890 switch (_b) {
37891 case "BadRequestException": return [3 /*break*/, 2];
37892 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37893 case "ForbiddenException": return [3 /*break*/, 4];
37894 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
37895 case "InternalServerErrorException": return [3 /*break*/, 6];
37896 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
37897 case "MethodNotAllowedException": return [3 /*break*/, 8];
37898 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
37899 case "NotFoundException": return [3 /*break*/, 10];
37900 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
37901 case "PayloadTooLargeException": return [3 /*break*/, 12];
37902 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
37903 case "TooManyRequestsException": return [3 /*break*/, 14];
37904 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
37905 }
37906 return [3 /*break*/, 16];
37907 case 2:
37908 _c = [{}];
37909 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
37910 case 3:
37911 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37912 return [3 /*break*/, 17];
37913 case 4:
37914 _d = [{}];
37915 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
37916 case 5:
37917 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37918 return [3 /*break*/, 17];
37919 case 6:
37920 _e = [{}];
37921 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
37922 case 7:
37923 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37924 return [3 /*break*/, 17];
37925 case 8:
37926 _f = [{}];
37927 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
37928 case 9:
37929 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37930 return [3 /*break*/, 17];
37931 case 10:
37932 _g = [{}];
37933 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
37934 case 11:
37935 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37936 return [3 /*break*/, 17];
37937 case 12:
37938 _h = [{}];
37939 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
37940 case 13:
37941 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37942 return [3 /*break*/, 17];
37943 case 14:
37944 _j = [{}];
37945 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
37946 case 15:
37947 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
37948 return [3 /*break*/, 17];
37949 case 16:
37950 parsedBody = parsedOutput.body;
37951 errorCode = parsedBody.code || parsedBody.Code || errorCode;
37952 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
37953 _l.label = 17;
37954 case 17:
37955 message = response.message || response.Message || errorCode;
37956 response.message = message;
37957 delete response.Message;
37958 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
37959 }
37960 });
37961}); };
37962var deserializeAws_restJson1DeleteEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37963 var contents, data;
37964 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
37965 switch (_a.label) {
37966 case 0:
37967 if (output.statusCode !== 200 && output.statusCode >= 300) {
37968 return [2 /*return*/, deserializeAws_restJson1DeleteEventStreamCommandError(output, context)];
37969 }
37970 contents = {
37971 $metadata: deserializeMetadata(output),
37972 EventStream: undefined,
37973 };
37974 return [4 /*yield*/, parseBody(output.body, context)];
37975 case 1:
37976 data = _a.sent();
37977 contents.EventStream = deserializeAws_restJson1EventStream(data, context);
37978 return [2 /*return*/, Promise.resolve(contents)];
37979 }
37980 });
37981}); };
37982var deserializeAws_restJson1DeleteEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
37983 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
37984 var _k;
37985 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
37986 switch (_l.label) {
37987 case 0:
37988 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
37989 _k = {};
37990 return [4 /*yield*/, parseBody(output.body, context)];
37991 case 1:
37992 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
37993 errorCode = "UnknownError";
37994 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
37995 _b = errorCode;
37996 switch (_b) {
37997 case "BadRequestException": return [3 /*break*/, 2];
37998 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
37999 case "ForbiddenException": return [3 /*break*/, 4];
38000 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38001 case "InternalServerErrorException": return [3 /*break*/, 6];
38002 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38003 case "MethodNotAllowedException": return [3 /*break*/, 8];
38004 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38005 case "NotFoundException": return [3 /*break*/, 10];
38006 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38007 case "PayloadTooLargeException": return [3 /*break*/, 12];
38008 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38009 case "TooManyRequestsException": return [3 /*break*/, 14];
38010 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38011 }
38012 return [3 /*break*/, 16];
38013 case 2:
38014 _c = [{}];
38015 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38016 case 3:
38017 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38018 return [3 /*break*/, 17];
38019 case 4:
38020 _d = [{}];
38021 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38022 case 5:
38023 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38024 return [3 /*break*/, 17];
38025 case 6:
38026 _e = [{}];
38027 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38028 case 7:
38029 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38030 return [3 /*break*/, 17];
38031 case 8:
38032 _f = [{}];
38033 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38034 case 9:
38035 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38036 return [3 /*break*/, 17];
38037 case 10:
38038 _g = [{}];
38039 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38040 case 11:
38041 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38042 return [3 /*break*/, 17];
38043 case 12:
38044 _h = [{}];
38045 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38046 case 13:
38047 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38048 return [3 /*break*/, 17];
38049 case 14:
38050 _j = [{}];
38051 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38052 case 15:
38053 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38054 return [3 /*break*/, 17];
38055 case 16:
38056 parsedBody = parsedOutput.body;
38057 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38058 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38059 _l.label = 17;
38060 case 17:
38061 message = response.message || response.Message || errorCode;
38062 response.message = message;
38063 delete response.Message;
38064 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38065 }
38066 });
38067}); };
38068var deserializeAws_restJson1DeleteGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38069 var contents, data;
38070 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38071 switch (_a.label) {
38072 case 0:
38073 if (output.statusCode !== 200 && output.statusCode >= 300) {
38074 return [2 /*return*/, deserializeAws_restJson1DeleteGcmChannelCommandError(output, context)];
38075 }
38076 contents = {
38077 $metadata: deserializeMetadata(output),
38078 GCMChannelResponse: undefined,
38079 };
38080 return [4 /*yield*/, parseBody(output.body, context)];
38081 case 1:
38082 data = _a.sent();
38083 contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context);
38084 return [2 /*return*/, Promise.resolve(contents)];
38085 }
38086 });
38087}); };
38088var deserializeAws_restJson1DeleteGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38089 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38090 var _k;
38091 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38092 switch (_l.label) {
38093 case 0:
38094 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38095 _k = {};
38096 return [4 /*yield*/, parseBody(output.body, context)];
38097 case 1:
38098 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38099 errorCode = "UnknownError";
38100 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38101 _b = errorCode;
38102 switch (_b) {
38103 case "BadRequestException": return [3 /*break*/, 2];
38104 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38105 case "ForbiddenException": return [3 /*break*/, 4];
38106 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38107 case "InternalServerErrorException": return [3 /*break*/, 6];
38108 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38109 case "MethodNotAllowedException": return [3 /*break*/, 8];
38110 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38111 case "NotFoundException": return [3 /*break*/, 10];
38112 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38113 case "PayloadTooLargeException": return [3 /*break*/, 12];
38114 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38115 case "TooManyRequestsException": return [3 /*break*/, 14];
38116 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38117 }
38118 return [3 /*break*/, 16];
38119 case 2:
38120 _c = [{}];
38121 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38122 case 3:
38123 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38124 return [3 /*break*/, 17];
38125 case 4:
38126 _d = [{}];
38127 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38128 case 5:
38129 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38130 return [3 /*break*/, 17];
38131 case 6:
38132 _e = [{}];
38133 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38134 case 7:
38135 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38136 return [3 /*break*/, 17];
38137 case 8:
38138 _f = [{}];
38139 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38140 case 9:
38141 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38142 return [3 /*break*/, 17];
38143 case 10:
38144 _g = [{}];
38145 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38146 case 11:
38147 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38148 return [3 /*break*/, 17];
38149 case 12:
38150 _h = [{}];
38151 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38152 case 13:
38153 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38154 return [3 /*break*/, 17];
38155 case 14:
38156 _j = [{}];
38157 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38158 case 15:
38159 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38160 return [3 /*break*/, 17];
38161 case 16:
38162 parsedBody = parsedOutput.body;
38163 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38164 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38165 _l.label = 17;
38166 case 17:
38167 message = response.message || response.Message || errorCode;
38168 response.message = message;
38169 delete response.Message;
38170 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38171 }
38172 });
38173}); };
38174var deserializeAws_restJson1DeleteJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38175 var contents, data;
38176 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38177 switch (_a.label) {
38178 case 0:
38179 if (output.statusCode !== 200 && output.statusCode >= 300) {
38180 return [2 /*return*/, deserializeAws_restJson1DeleteJourneyCommandError(output, context)];
38181 }
38182 contents = {
38183 $metadata: deserializeMetadata(output),
38184 JourneyResponse: undefined,
38185 };
38186 return [4 /*yield*/, parseBody(output.body, context)];
38187 case 1:
38188 data = _a.sent();
38189 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
38190 return [2 /*return*/, Promise.resolve(contents)];
38191 }
38192 });
38193}); };
38194var deserializeAws_restJson1DeleteJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38195 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38196 var _k;
38197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38198 switch (_l.label) {
38199 case 0:
38200 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38201 _k = {};
38202 return [4 /*yield*/, parseBody(output.body, context)];
38203 case 1:
38204 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38205 errorCode = "UnknownError";
38206 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38207 _b = errorCode;
38208 switch (_b) {
38209 case "BadRequestException": return [3 /*break*/, 2];
38210 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38211 case "ForbiddenException": return [3 /*break*/, 4];
38212 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38213 case "InternalServerErrorException": return [3 /*break*/, 6];
38214 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38215 case "MethodNotAllowedException": return [3 /*break*/, 8];
38216 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38217 case "NotFoundException": return [3 /*break*/, 10];
38218 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38219 case "PayloadTooLargeException": return [3 /*break*/, 12];
38220 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38221 case "TooManyRequestsException": return [3 /*break*/, 14];
38222 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38223 }
38224 return [3 /*break*/, 16];
38225 case 2:
38226 _c = [{}];
38227 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38228 case 3:
38229 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38230 return [3 /*break*/, 17];
38231 case 4:
38232 _d = [{}];
38233 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38234 case 5:
38235 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38236 return [3 /*break*/, 17];
38237 case 6:
38238 _e = [{}];
38239 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38240 case 7:
38241 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38242 return [3 /*break*/, 17];
38243 case 8:
38244 _f = [{}];
38245 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38246 case 9:
38247 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38248 return [3 /*break*/, 17];
38249 case 10:
38250 _g = [{}];
38251 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38252 case 11:
38253 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38254 return [3 /*break*/, 17];
38255 case 12:
38256 _h = [{}];
38257 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38258 case 13:
38259 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38260 return [3 /*break*/, 17];
38261 case 14:
38262 _j = [{}];
38263 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38264 case 15:
38265 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38266 return [3 /*break*/, 17];
38267 case 16:
38268 parsedBody = parsedOutput.body;
38269 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38270 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38271 _l.label = 17;
38272 case 17:
38273 message = response.message || response.Message || errorCode;
38274 response.message = message;
38275 delete response.Message;
38276 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38277 }
38278 });
38279}); };
38280var deserializeAws_restJson1DeletePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38281 var contents, data;
38282 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38283 switch (_a.label) {
38284 case 0:
38285 if (output.statusCode !== 202 && output.statusCode >= 300) {
38286 return [2 /*return*/, deserializeAws_restJson1DeletePushTemplateCommandError(output, context)];
38287 }
38288 contents = {
38289 $metadata: deserializeMetadata(output),
38290 MessageBody: undefined,
38291 };
38292 return [4 /*yield*/, parseBody(output.body, context)];
38293 case 1:
38294 data = _a.sent();
38295 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
38296 return [2 /*return*/, Promise.resolve(contents)];
38297 }
38298 });
38299}); };
38300var deserializeAws_restJson1DeletePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38301 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38302 var _k;
38303 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38304 switch (_l.label) {
38305 case 0:
38306 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38307 _k = {};
38308 return [4 /*yield*/, parseBody(output.body, context)];
38309 case 1:
38310 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38311 errorCode = "UnknownError";
38312 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38313 _b = errorCode;
38314 switch (_b) {
38315 case "BadRequestException": return [3 /*break*/, 2];
38316 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38317 case "ForbiddenException": return [3 /*break*/, 4];
38318 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38319 case "InternalServerErrorException": return [3 /*break*/, 6];
38320 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38321 case "MethodNotAllowedException": return [3 /*break*/, 8];
38322 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38323 case "NotFoundException": return [3 /*break*/, 10];
38324 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38325 case "PayloadTooLargeException": return [3 /*break*/, 12];
38326 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38327 case "TooManyRequestsException": return [3 /*break*/, 14];
38328 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38329 }
38330 return [3 /*break*/, 16];
38331 case 2:
38332 _c = [{}];
38333 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38334 case 3:
38335 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38336 return [3 /*break*/, 17];
38337 case 4:
38338 _d = [{}];
38339 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38340 case 5:
38341 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38342 return [3 /*break*/, 17];
38343 case 6:
38344 _e = [{}];
38345 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38346 case 7:
38347 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38348 return [3 /*break*/, 17];
38349 case 8:
38350 _f = [{}];
38351 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38352 case 9:
38353 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38354 return [3 /*break*/, 17];
38355 case 10:
38356 _g = [{}];
38357 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38358 case 11:
38359 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38360 return [3 /*break*/, 17];
38361 case 12:
38362 _h = [{}];
38363 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38364 case 13:
38365 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38366 return [3 /*break*/, 17];
38367 case 14:
38368 _j = [{}];
38369 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38370 case 15:
38371 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38372 return [3 /*break*/, 17];
38373 case 16:
38374 parsedBody = parsedOutput.body;
38375 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38376 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38377 _l.label = 17;
38378 case 17:
38379 message = response.message || response.Message || errorCode;
38380 response.message = message;
38381 delete response.Message;
38382 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38383 }
38384 });
38385}); };
38386var deserializeAws_restJson1DeleteRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38387 var contents, data;
38388 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38389 switch (_a.label) {
38390 case 0:
38391 if (output.statusCode !== 200 && output.statusCode >= 300) {
38392 return [2 /*return*/, deserializeAws_restJson1DeleteRecommenderConfigurationCommandError(output, context)];
38393 }
38394 contents = {
38395 $metadata: deserializeMetadata(output),
38396 RecommenderConfigurationResponse: undefined,
38397 };
38398 return [4 /*yield*/, parseBody(output.body, context)];
38399 case 1:
38400 data = _a.sent();
38401 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
38402 return [2 /*return*/, Promise.resolve(contents)];
38403 }
38404 });
38405}); };
38406var deserializeAws_restJson1DeleteRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38407 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38408 var _k;
38409 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38410 switch (_l.label) {
38411 case 0:
38412 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38413 _k = {};
38414 return [4 /*yield*/, parseBody(output.body, context)];
38415 case 1:
38416 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38417 errorCode = "UnknownError";
38418 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38419 _b = errorCode;
38420 switch (_b) {
38421 case "BadRequestException": return [3 /*break*/, 2];
38422 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38423 case "ForbiddenException": return [3 /*break*/, 4];
38424 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38425 case "InternalServerErrorException": return [3 /*break*/, 6];
38426 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38427 case "MethodNotAllowedException": return [3 /*break*/, 8];
38428 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38429 case "NotFoundException": return [3 /*break*/, 10];
38430 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38431 case "PayloadTooLargeException": return [3 /*break*/, 12];
38432 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38433 case "TooManyRequestsException": return [3 /*break*/, 14];
38434 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38435 }
38436 return [3 /*break*/, 16];
38437 case 2:
38438 _c = [{}];
38439 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38440 case 3:
38441 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38442 return [3 /*break*/, 17];
38443 case 4:
38444 _d = [{}];
38445 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38446 case 5:
38447 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38448 return [3 /*break*/, 17];
38449 case 6:
38450 _e = [{}];
38451 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38452 case 7:
38453 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38454 return [3 /*break*/, 17];
38455 case 8:
38456 _f = [{}];
38457 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38458 case 9:
38459 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38460 return [3 /*break*/, 17];
38461 case 10:
38462 _g = [{}];
38463 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38464 case 11:
38465 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38466 return [3 /*break*/, 17];
38467 case 12:
38468 _h = [{}];
38469 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38470 case 13:
38471 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38472 return [3 /*break*/, 17];
38473 case 14:
38474 _j = [{}];
38475 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38476 case 15:
38477 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38478 return [3 /*break*/, 17];
38479 case 16:
38480 parsedBody = parsedOutput.body;
38481 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38482 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38483 _l.label = 17;
38484 case 17:
38485 message = response.message || response.Message || errorCode;
38486 response.message = message;
38487 delete response.Message;
38488 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38489 }
38490 });
38491}); };
38492var deserializeAws_restJson1DeleteSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38493 var contents, data;
38494 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38495 switch (_a.label) {
38496 case 0:
38497 if (output.statusCode !== 200 && output.statusCode >= 300) {
38498 return [2 /*return*/, deserializeAws_restJson1DeleteSegmentCommandError(output, context)];
38499 }
38500 contents = {
38501 $metadata: deserializeMetadata(output),
38502 SegmentResponse: undefined,
38503 };
38504 return [4 /*yield*/, parseBody(output.body, context)];
38505 case 1:
38506 data = _a.sent();
38507 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
38508 return [2 /*return*/, Promise.resolve(contents)];
38509 }
38510 });
38511}); };
38512var deserializeAws_restJson1DeleteSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38513 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38514 var _k;
38515 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38516 switch (_l.label) {
38517 case 0:
38518 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38519 _k = {};
38520 return [4 /*yield*/, parseBody(output.body, context)];
38521 case 1:
38522 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38523 errorCode = "UnknownError";
38524 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38525 _b = errorCode;
38526 switch (_b) {
38527 case "BadRequestException": return [3 /*break*/, 2];
38528 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38529 case "ForbiddenException": return [3 /*break*/, 4];
38530 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38531 case "InternalServerErrorException": return [3 /*break*/, 6];
38532 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38533 case "MethodNotAllowedException": return [3 /*break*/, 8];
38534 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38535 case "NotFoundException": return [3 /*break*/, 10];
38536 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38537 case "PayloadTooLargeException": return [3 /*break*/, 12];
38538 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38539 case "TooManyRequestsException": return [3 /*break*/, 14];
38540 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38541 }
38542 return [3 /*break*/, 16];
38543 case 2:
38544 _c = [{}];
38545 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38546 case 3:
38547 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38548 return [3 /*break*/, 17];
38549 case 4:
38550 _d = [{}];
38551 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38552 case 5:
38553 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38554 return [3 /*break*/, 17];
38555 case 6:
38556 _e = [{}];
38557 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38558 case 7:
38559 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38560 return [3 /*break*/, 17];
38561 case 8:
38562 _f = [{}];
38563 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38564 case 9:
38565 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38566 return [3 /*break*/, 17];
38567 case 10:
38568 _g = [{}];
38569 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38570 case 11:
38571 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38572 return [3 /*break*/, 17];
38573 case 12:
38574 _h = [{}];
38575 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38576 case 13:
38577 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38578 return [3 /*break*/, 17];
38579 case 14:
38580 _j = [{}];
38581 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38582 case 15:
38583 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38584 return [3 /*break*/, 17];
38585 case 16:
38586 parsedBody = parsedOutput.body;
38587 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38588 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38589 _l.label = 17;
38590 case 17:
38591 message = response.message || response.Message || errorCode;
38592 response.message = message;
38593 delete response.Message;
38594 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38595 }
38596 });
38597}); };
38598var deserializeAws_restJson1DeleteSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38599 var contents, data;
38600 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38601 switch (_a.label) {
38602 case 0:
38603 if (output.statusCode !== 200 && output.statusCode >= 300) {
38604 return [2 /*return*/, deserializeAws_restJson1DeleteSmsChannelCommandError(output, context)];
38605 }
38606 contents = {
38607 $metadata: deserializeMetadata(output),
38608 SMSChannelResponse: undefined,
38609 };
38610 return [4 /*yield*/, parseBody(output.body, context)];
38611 case 1:
38612 data = _a.sent();
38613 contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context);
38614 return [2 /*return*/, Promise.resolve(contents)];
38615 }
38616 });
38617}); };
38618var deserializeAws_restJson1DeleteSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38619 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38620 var _k;
38621 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38622 switch (_l.label) {
38623 case 0:
38624 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38625 _k = {};
38626 return [4 /*yield*/, parseBody(output.body, context)];
38627 case 1:
38628 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38629 errorCode = "UnknownError";
38630 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38631 _b = errorCode;
38632 switch (_b) {
38633 case "BadRequestException": return [3 /*break*/, 2];
38634 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38635 case "ForbiddenException": return [3 /*break*/, 4];
38636 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38637 case "InternalServerErrorException": return [3 /*break*/, 6];
38638 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38639 case "MethodNotAllowedException": return [3 /*break*/, 8];
38640 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38641 case "NotFoundException": return [3 /*break*/, 10];
38642 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38643 case "PayloadTooLargeException": return [3 /*break*/, 12];
38644 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38645 case "TooManyRequestsException": return [3 /*break*/, 14];
38646 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38647 }
38648 return [3 /*break*/, 16];
38649 case 2:
38650 _c = [{}];
38651 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38652 case 3:
38653 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38654 return [3 /*break*/, 17];
38655 case 4:
38656 _d = [{}];
38657 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38658 case 5:
38659 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38660 return [3 /*break*/, 17];
38661 case 6:
38662 _e = [{}];
38663 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38664 case 7:
38665 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38666 return [3 /*break*/, 17];
38667 case 8:
38668 _f = [{}];
38669 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38670 case 9:
38671 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38672 return [3 /*break*/, 17];
38673 case 10:
38674 _g = [{}];
38675 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38676 case 11:
38677 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38678 return [3 /*break*/, 17];
38679 case 12:
38680 _h = [{}];
38681 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38682 case 13:
38683 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38684 return [3 /*break*/, 17];
38685 case 14:
38686 _j = [{}];
38687 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38688 case 15:
38689 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38690 return [3 /*break*/, 17];
38691 case 16:
38692 parsedBody = parsedOutput.body;
38693 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38694 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38695 _l.label = 17;
38696 case 17:
38697 message = response.message || response.Message || errorCode;
38698 response.message = message;
38699 delete response.Message;
38700 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38701 }
38702 });
38703}); };
38704var deserializeAws_restJson1DeleteSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38705 var contents, data;
38706 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38707 switch (_a.label) {
38708 case 0:
38709 if (output.statusCode !== 202 && output.statusCode >= 300) {
38710 return [2 /*return*/, deserializeAws_restJson1DeleteSmsTemplateCommandError(output, context)];
38711 }
38712 contents = {
38713 $metadata: deserializeMetadata(output),
38714 MessageBody: undefined,
38715 };
38716 return [4 /*yield*/, parseBody(output.body, context)];
38717 case 1:
38718 data = _a.sent();
38719 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
38720 return [2 /*return*/, Promise.resolve(contents)];
38721 }
38722 });
38723}); };
38724var deserializeAws_restJson1DeleteSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38725 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38726 var _k;
38727 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38728 switch (_l.label) {
38729 case 0:
38730 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38731 _k = {};
38732 return [4 /*yield*/, parseBody(output.body, context)];
38733 case 1:
38734 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38735 errorCode = "UnknownError";
38736 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38737 _b = errorCode;
38738 switch (_b) {
38739 case "BadRequestException": return [3 /*break*/, 2];
38740 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38741 case "ForbiddenException": return [3 /*break*/, 4];
38742 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38743 case "InternalServerErrorException": return [3 /*break*/, 6];
38744 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38745 case "MethodNotAllowedException": return [3 /*break*/, 8];
38746 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38747 case "NotFoundException": return [3 /*break*/, 10];
38748 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38749 case "PayloadTooLargeException": return [3 /*break*/, 12];
38750 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38751 case "TooManyRequestsException": return [3 /*break*/, 14];
38752 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38753 }
38754 return [3 /*break*/, 16];
38755 case 2:
38756 _c = [{}];
38757 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38758 case 3:
38759 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38760 return [3 /*break*/, 17];
38761 case 4:
38762 _d = [{}];
38763 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38764 case 5:
38765 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38766 return [3 /*break*/, 17];
38767 case 6:
38768 _e = [{}];
38769 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38770 case 7:
38771 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38772 return [3 /*break*/, 17];
38773 case 8:
38774 _f = [{}];
38775 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38776 case 9:
38777 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38778 return [3 /*break*/, 17];
38779 case 10:
38780 _g = [{}];
38781 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38782 case 11:
38783 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38784 return [3 /*break*/, 17];
38785 case 12:
38786 _h = [{}];
38787 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38788 case 13:
38789 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38790 return [3 /*break*/, 17];
38791 case 14:
38792 _j = [{}];
38793 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38794 case 15:
38795 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38796 return [3 /*break*/, 17];
38797 case 16:
38798 parsedBody = parsedOutput.body;
38799 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38800 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38801 _l.label = 17;
38802 case 17:
38803 message = response.message || response.Message || errorCode;
38804 response.message = message;
38805 delete response.Message;
38806 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38807 }
38808 });
38809}); };
38810var deserializeAws_restJson1DeleteUserEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38811 var contents, data;
38812 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38813 switch (_a.label) {
38814 case 0:
38815 if (output.statusCode !== 202 && output.statusCode >= 300) {
38816 return [2 /*return*/, deserializeAws_restJson1DeleteUserEndpointsCommandError(output, context)];
38817 }
38818 contents = {
38819 $metadata: deserializeMetadata(output),
38820 EndpointsResponse: undefined,
38821 };
38822 return [4 /*yield*/, parseBody(output.body, context)];
38823 case 1:
38824 data = _a.sent();
38825 contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context);
38826 return [2 /*return*/, Promise.resolve(contents)];
38827 }
38828 });
38829}); };
38830var deserializeAws_restJson1DeleteUserEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38831 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38832 var _k;
38833 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38834 switch (_l.label) {
38835 case 0:
38836 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38837 _k = {};
38838 return [4 /*yield*/, parseBody(output.body, context)];
38839 case 1:
38840 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38841 errorCode = "UnknownError";
38842 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38843 _b = errorCode;
38844 switch (_b) {
38845 case "BadRequestException": return [3 /*break*/, 2];
38846 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38847 case "ForbiddenException": return [3 /*break*/, 4];
38848 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38849 case "InternalServerErrorException": return [3 /*break*/, 6];
38850 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38851 case "MethodNotAllowedException": return [3 /*break*/, 8];
38852 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38853 case "NotFoundException": return [3 /*break*/, 10];
38854 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38855 case "PayloadTooLargeException": return [3 /*break*/, 12];
38856 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38857 case "TooManyRequestsException": return [3 /*break*/, 14];
38858 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38859 }
38860 return [3 /*break*/, 16];
38861 case 2:
38862 _c = [{}];
38863 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38864 case 3:
38865 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38866 return [3 /*break*/, 17];
38867 case 4:
38868 _d = [{}];
38869 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38870 case 5:
38871 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38872 return [3 /*break*/, 17];
38873 case 6:
38874 _e = [{}];
38875 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38876 case 7:
38877 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38878 return [3 /*break*/, 17];
38879 case 8:
38880 _f = [{}];
38881 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38882 case 9:
38883 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38884 return [3 /*break*/, 17];
38885 case 10:
38886 _g = [{}];
38887 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38888 case 11:
38889 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38890 return [3 /*break*/, 17];
38891 case 12:
38892 _h = [{}];
38893 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
38894 case 13:
38895 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38896 return [3 /*break*/, 17];
38897 case 14:
38898 _j = [{}];
38899 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
38900 case 15:
38901 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38902 return [3 /*break*/, 17];
38903 case 16:
38904 parsedBody = parsedOutput.body;
38905 errorCode = parsedBody.code || parsedBody.Code || errorCode;
38906 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
38907 _l.label = 17;
38908 case 17:
38909 message = response.message || response.Message || errorCode;
38910 response.message = message;
38911 delete response.Message;
38912 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
38913 }
38914 });
38915}); };
38916var deserializeAws_restJson1DeleteVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38917 var contents, data;
38918 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
38919 switch (_a.label) {
38920 case 0:
38921 if (output.statusCode !== 200 && output.statusCode >= 300) {
38922 return [2 /*return*/, deserializeAws_restJson1DeleteVoiceChannelCommandError(output, context)];
38923 }
38924 contents = {
38925 $metadata: deserializeMetadata(output),
38926 VoiceChannelResponse: undefined,
38927 };
38928 return [4 /*yield*/, parseBody(output.body, context)];
38929 case 1:
38930 data = _a.sent();
38931 contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context);
38932 return [2 /*return*/, Promise.resolve(contents)];
38933 }
38934 });
38935}); };
38936var deserializeAws_restJson1DeleteVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
38937 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
38938 var _k;
38939 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
38940 switch (_l.label) {
38941 case 0:
38942 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
38943 _k = {};
38944 return [4 /*yield*/, parseBody(output.body, context)];
38945 case 1:
38946 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
38947 errorCode = "UnknownError";
38948 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
38949 _b = errorCode;
38950 switch (_b) {
38951 case "BadRequestException": return [3 /*break*/, 2];
38952 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
38953 case "ForbiddenException": return [3 /*break*/, 4];
38954 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
38955 case "InternalServerErrorException": return [3 /*break*/, 6];
38956 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
38957 case "MethodNotAllowedException": return [3 /*break*/, 8];
38958 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
38959 case "NotFoundException": return [3 /*break*/, 10];
38960 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
38961 case "PayloadTooLargeException": return [3 /*break*/, 12];
38962 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
38963 case "TooManyRequestsException": return [3 /*break*/, 14];
38964 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
38965 }
38966 return [3 /*break*/, 16];
38967 case 2:
38968 _c = [{}];
38969 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
38970 case 3:
38971 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38972 return [3 /*break*/, 17];
38973 case 4:
38974 _d = [{}];
38975 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
38976 case 5:
38977 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38978 return [3 /*break*/, 17];
38979 case 6:
38980 _e = [{}];
38981 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
38982 case 7:
38983 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38984 return [3 /*break*/, 17];
38985 case 8:
38986 _f = [{}];
38987 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
38988 case 9:
38989 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38990 return [3 /*break*/, 17];
38991 case 10:
38992 _g = [{}];
38993 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
38994 case 11:
38995 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
38996 return [3 /*break*/, 17];
38997 case 12:
38998 _h = [{}];
38999 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39000 case 13:
39001 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39002 return [3 /*break*/, 17];
39003 case 14:
39004 _j = [{}];
39005 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39006 case 15:
39007 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39008 return [3 /*break*/, 17];
39009 case 16:
39010 parsedBody = parsedOutput.body;
39011 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39012 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39013 _l.label = 17;
39014 case 17:
39015 message = response.message || response.Message || errorCode;
39016 response.message = message;
39017 delete response.Message;
39018 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39019 }
39020 });
39021}); };
39022var deserializeAws_restJson1DeleteVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39023 var contents, data;
39024 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39025 switch (_a.label) {
39026 case 0:
39027 if (output.statusCode !== 202 && output.statusCode >= 300) {
39028 return [2 /*return*/, deserializeAws_restJson1DeleteVoiceTemplateCommandError(output, context)];
39029 }
39030 contents = {
39031 $metadata: deserializeMetadata(output),
39032 MessageBody: undefined,
39033 };
39034 return [4 /*yield*/, parseBody(output.body, context)];
39035 case 1:
39036 data = _a.sent();
39037 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
39038 return [2 /*return*/, Promise.resolve(contents)];
39039 }
39040 });
39041}); };
39042var deserializeAws_restJson1DeleteVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39043 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39044 var _k;
39045 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39046 switch (_l.label) {
39047 case 0:
39048 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39049 _k = {};
39050 return [4 /*yield*/, parseBody(output.body, context)];
39051 case 1:
39052 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39053 errorCode = "UnknownError";
39054 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39055 _b = errorCode;
39056 switch (_b) {
39057 case "BadRequestException": return [3 /*break*/, 2];
39058 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39059 case "ForbiddenException": return [3 /*break*/, 4];
39060 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39061 case "InternalServerErrorException": return [3 /*break*/, 6];
39062 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39063 case "MethodNotAllowedException": return [3 /*break*/, 8];
39064 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39065 case "NotFoundException": return [3 /*break*/, 10];
39066 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39067 case "PayloadTooLargeException": return [3 /*break*/, 12];
39068 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39069 case "TooManyRequestsException": return [3 /*break*/, 14];
39070 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39071 }
39072 return [3 /*break*/, 16];
39073 case 2:
39074 _c = [{}];
39075 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39076 case 3:
39077 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39078 return [3 /*break*/, 17];
39079 case 4:
39080 _d = [{}];
39081 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39082 case 5:
39083 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39084 return [3 /*break*/, 17];
39085 case 6:
39086 _e = [{}];
39087 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39088 case 7:
39089 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39090 return [3 /*break*/, 17];
39091 case 8:
39092 _f = [{}];
39093 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39094 case 9:
39095 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39096 return [3 /*break*/, 17];
39097 case 10:
39098 _g = [{}];
39099 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39100 case 11:
39101 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39102 return [3 /*break*/, 17];
39103 case 12:
39104 _h = [{}];
39105 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39106 case 13:
39107 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39108 return [3 /*break*/, 17];
39109 case 14:
39110 _j = [{}];
39111 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39112 case 15:
39113 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39114 return [3 /*break*/, 17];
39115 case 16:
39116 parsedBody = parsedOutput.body;
39117 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39118 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39119 _l.label = 17;
39120 case 17:
39121 message = response.message || response.Message || errorCode;
39122 response.message = message;
39123 delete response.Message;
39124 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39125 }
39126 });
39127}); };
39128var deserializeAws_restJson1GetAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39129 var contents, data;
39130 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39131 switch (_a.label) {
39132 case 0:
39133 if (output.statusCode !== 200 && output.statusCode >= 300) {
39134 return [2 /*return*/, deserializeAws_restJson1GetAdmChannelCommandError(output, context)];
39135 }
39136 contents = {
39137 $metadata: deserializeMetadata(output),
39138 ADMChannelResponse: undefined,
39139 };
39140 return [4 /*yield*/, parseBody(output.body, context)];
39141 case 1:
39142 data = _a.sent();
39143 contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context);
39144 return [2 /*return*/, Promise.resolve(contents)];
39145 }
39146 });
39147}); };
39148var deserializeAws_restJson1GetAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39149 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39150 var _k;
39151 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39152 switch (_l.label) {
39153 case 0:
39154 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39155 _k = {};
39156 return [4 /*yield*/, parseBody(output.body, context)];
39157 case 1:
39158 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39159 errorCode = "UnknownError";
39160 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39161 _b = errorCode;
39162 switch (_b) {
39163 case "BadRequestException": return [3 /*break*/, 2];
39164 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39165 case "ForbiddenException": return [3 /*break*/, 4];
39166 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39167 case "InternalServerErrorException": return [3 /*break*/, 6];
39168 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39169 case "MethodNotAllowedException": return [3 /*break*/, 8];
39170 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39171 case "NotFoundException": return [3 /*break*/, 10];
39172 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39173 case "PayloadTooLargeException": return [3 /*break*/, 12];
39174 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39175 case "TooManyRequestsException": return [3 /*break*/, 14];
39176 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39177 }
39178 return [3 /*break*/, 16];
39179 case 2:
39180 _c = [{}];
39181 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39182 case 3:
39183 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39184 return [3 /*break*/, 17];
39185 case 4:
39186 _d = [{}];
39187 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39188 case 5:
39189 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39190 return [3 /*break*/, 17];
39191 case 6:
39192 _e = [{}];
39193 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39194 case 7:
39195 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39196 return [3 /*break*/, 17];
39197 case 8:
39198 _f = [{}];
39199 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39200 case 9:
39201 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39202 return [3 /*break*/, 17];
39203 case 10:
39204 _g = [{}];
39205 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39206 case 11:
39207 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39208 return [3 /*break*/, 17];
39209 case 12:
39210 _h = [{}];
39211 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39212 case 13:
39213 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39214 return [3 /*break*/, 17];
39215 case 14:
39216 _j = [{}];
39217 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39218 case 15:
39219 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39220 return [3 /*break*/, 17];
39221 case 16:
39222 parsedBody = parsedOutput.body;
39223 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39224 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39225 _l.label = 17;
39226 case 17:
39227 message = response.message || response.Message || errorCode;
39228 response.message = message;
39229 delete response.Message;
39230 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39231 }
39232 });
39233}); };
39234var deserializeAws_restJson1GetApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39235 var contents, data;
39236 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39237 switch (_a.label) {
39238 case 0:
39239 if (output.statusCode !== 200 && output.statusCode >= 300) {
39240 return [2 /*return*/, deserializeAws_restJson1GetApnsChannelCommandError(output, context)];
39241 }
39242 contents = {
39243 $metadata: deserializeMetadata(output),
39244 APNSChannelResponse: undefined,
39245 };
39246 return [4 /*yield*/, parseBody(output.body, context)];
39247 case 1:
39248 data = _a.sent();
39249 contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context);
39250 return [2 /*return*/, Promise.resolve(contents)];
39251 }
39252 });
39253}); };
39254var deserializeAws_restJson1GetApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39255 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39256 var _k;
39257 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39258 switch (_l.label) {
39259 case 0:
39260 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39261 _k = {};
39262 return [4 /*yield*/, parseBody(output.body, context)];
39263 case 1:
39264 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39265 errorCode = "UnknownError";
39266 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39267 _b = errorCode;
39268 switch (_b) {
39269 case "BadRequestException": return [3 /*break*/, 2];
39270 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39271 case "ForbiddenException": return [3 /*break*/, 4];
39272 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39273 case "InternalServerErrorException": return [3 /*break*/, 6];
39274 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39275 case "MethodNotAllowedException": return [3 /*break*/, 8];
39276 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39277 case "NotFoundException": return [3 /*break*/, 10];
39278 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39279 case "PayloadTooLargeException": return [3 /*break*/, 12];
39280 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39281 case "TooManyRequestsException": return [3 /*break*/, 14];
39282 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39283 }
39284 return [3 /*break*/, 16];
39285 case 2:
39286 _c = [{}];
39287 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39288 case 3:
39289 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39290 return [3 /*break*/, 17];
39291 case 4:
39292 _d = [{}];
39293 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39294 case 5:
39295 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39296 return [3 /*break*/, 17];
39297 case 6:
39298 _e = [{}];
39299 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39300 case 7:
39301 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39302 return [3 /*break*/, 17];
39303 case 8:
39304 _f = [{}];
39305 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39306 case 9:
39307 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39308 return [3 /*break*/, 17];
39309 case 10:
39310 _g = [{}];
39311 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39312 case 11:
39313 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39314 return [3 /*break*/, 17];
39315 case 12:
39316 _h = [{}];
39317 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39318 case 13:
39319 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39320 return [3 /*break*/, 17];
39321 case 14:
39322 _j = [{}];
39323 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39324 case 15:
39325 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39326 return [3 /*break*/, 17];
39327 case 16:
39328 parsedBody = parsedOutput.body;
39329 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39330 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39331 _l.label = 17;
39332 case 17:
39333 message = response.message || response.Message || errorCode;
39334 response.message = message;
39335 delete response.Message;
39336 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39337 }
39338 });
39339}); };
39340var deserializeAws_restJson1GetApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39341 var contents, data;
39342 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39343 switch (_a.label) {
39344 case 0:
39345 if (output.statusCode !== 200 && output.statusCode >= 300) {
39346 return [2 /*return*/, deserializeAws_restJson1GetApnsSandboxChannelCommandError(output, context)];
39347 }
39348 contents = {
39349 $metadata: deserializeMetadata(output),
39350 APNSSandboxChannelResponse: undefined,
39351 };
39352 return [4 /*yield*/, parseBody(output.body, context)];
39353 case 1:
39354 data = _a.sent();
39355 contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context);
39356 return [2 /*return*/, Promise.resolve(contents)];
39357 }
39358 });
39359}); };
39360var deserializeAws_restJson1GetApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39361 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39362 var _k;
39363 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39364 switch (_l.label) {
39365 case 0:
39366 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39367 _k = {};
39368 return [4 /*yield*/, parseBody(output.body, context)];
39369 case 1:
39370 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39371 errorCode = "UnknownError";
39372 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39373 _b = errorCode;
39374 switch (_b) {
39375 case "BadRequestException": return [3 /*break*/, 2];
39376 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39377 case "ForbiddenException": return [3 /*break*/, 4];
39378 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39379 case "InternalServerErrorException": return [3 /*break*/, 6];
39380 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39381 case "MethodNotAllowedException": return [3 /*break*/, 8];
39382 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39383 case "NotFoundException": return [3 /*break*/, 10];
39384 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39385 case "PayloadTooLargeException": return [3 /*break*/, 12];
39386 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39387 case "TooManyRequestsException": return [3 /*break*/, 14];
39388 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39389 }
39390 return [3 /*break*/, 16];
39391 case 2:
39392 _c = [{}];
39393 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39394 case 3:
39395 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39396 return [3 /*break*/, 17];
39397 case 4:
39398 _d = [{}];
39399 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39400 case 5:
39401 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39402 return [3 /*break*/, 17];
39403 case 6:
39404 _e = [{}];
39405 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39406 case 7:
39407 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39408 return [3 /*break*/, 17];
39409 case 8:
39410 _f = [{}];
39411 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39412 case 9:
39413 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39414 return [3 /*break*/, 17];
39415 case 10:
39416 _g = [{}];
39417 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39418 case 11:
39419 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39420 return [3 /*break*/, 17];
39421 case 12:
39422 _h = [{}];
39423 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39424 case 13:
39425 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39426 return [3 /*break*/, 17];
39427 case 14:
39428 _j = [{}];
39429 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39430 case 15:
39431 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39432 return [3 /*break*/, 17];
39433 case 16:
39434 parsedBody = parsedOutput.body;
39435 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39436 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39437 _l.label = 17;
39438 case 17:
39439 message = response.message || response.Message || errorCode;
39440 response.message = message;
39441 delete response.Message;
39442 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39443 }
39444 });
39445}); };
39446var deserializeAws_restJson1GetApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39447 var contents, data;
39448 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39449 switch (_a.label) {
39450 case 0:
39451 if (output.statusCode !== 200 && output.statusCode >= 300) {
39452 return [2 /*return*/, deserializeAws_restJson1GetApnsVoipChannelCommandError(output, context)];
39453 }
39454 contents = {
39455 $metadata: deserializeMetadata(output),
39456 APNSVoipChannelResponse: undefined,
39457 };
39458 return [4 /*yield*/, parseBody(output.body, context)];
39459 case 1:
39460 data = _a.sent();
39461 contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context);
39462 return [2 /*return*/, Promise.resolve(contents)];
39463 }
39464 });
39465}); };
39466var deserializeAws_restJson1GetApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39467 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39468 var _k;
39469 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39470 switch (_l.label) {
39471 case 0:
39472 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39473 _k = {};
39474 return [4 /*yield*/, parseBody(output.body, context)];
39475 case 1:
39476 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39477 errorCode = "UnknownError";
39478 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39479 _b = errorCode;
39480 switch (_b) {
39481 case "BadRequestException": return [3 /*break*/, 2];
39482 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39483 case "ForbiddenException": return [3 /*break*/, 4];
39484 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39485 case "InternalServerErrorException": return [3 /*break*/, 6];
39486 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39487 case "MethodNotAllowedException": return [3 /*break*/, 8];
39488 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39489 case "NotFoundException": return [3 /*break*/, 10];
39490 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39491 case "PayloadTooLargeException": return [3 /*break*/, 12];
39492 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39493 case "TooManyRequestsException": return [3 /*break*/, 14];
39494 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39495 }
39496 return [3 /*break*/, 16];
39497 case 2:
39498 _c = [{}];
39499 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39500 case 3:
39501 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39502 return [3 /*break*/, 17];
39503 case 4:
39504 _d = [{}];
39505 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39506 case 5:
39507 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39508 return [3 /*break*/, 17];
39509 case 6:
39510 _e = [{}];
39511 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39512 case 7:
39513 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39514 return [3 /*break*/, 17];
39515 case 8:
39516 _f = [{}];
39517 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39518 case 9:
39519 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39520 return [3 /*break*/, 17];
39521 case 10:
39522 _g = [{}];
39523 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39524 case 11:
39525 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39526 return [3 /*break*/, 17];
39527 case 12:
39528 _h = [{}];
39529 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39530 case 13:
39531 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39532 return [3 /*break*/, 17];
39533 case 14:
39534 _j = [{}];
39535 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39536 case 15:
39537 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39538 return [3 /*break*/, 17];
39539 case 16:
39540 parsedBody = parsedOutput.body;
39541 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39542 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39543 _l.label = 17;
39544 case 17:
39545 message = response.message || response.Message || errorCode;
39546 response.message = message;
39547 delete response.Message;
39548 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39549 }
39550 });
39551}); };
39552var deserializeAws_restJson1GetApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39553 var contents, data;
39554 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39555 switch (_a.label) {
39556 case 0:
39557 if (output.statusCode !== 200 && output.statusCode >= 300) {
39558 return [2 /*return*/, deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError(output, context)];
39559 }
39560 contents = {
39561 $metadata: deserializeMetadata(output),
39562 APNSVoipSandboxChannelResponse: undefined,
39563 };
39564 return [4 /*yield*/, parseBody(output.body, context)];
39565 case 1:
39566 data = _a.sent();
39567 contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context);
39568 return [2 /*return*/, Promise.resolve(contents)];
39569 }
39570 });
39571}); };
39572var deserializeAws_restJson1GetApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39573 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39574 var _k;
39575 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39576 switch (_l.label) {
39577 case 0:
39578 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39579 _k = {};
39580 return [4 /*yield*/, parseBody(output.body, context)];
39581 case 1:
39582 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39583 errorCode = "UnknownError";
39584 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39585 _b = errorCode;
39586 switch (_b) {
39587 case "BadRequestException": return [3 /*break*/, 2];
39588 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39589 case "ForbiddenException": return [3 /*break*/, 4];
39590 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39591 case "InternalServerErrorException": return [3 /*break*/, 6];
39592 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39593 case "MethodNotAllowedException": return [3 /*break*/, 8];
39594 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39595 case "NotFoundException": return [3 /*break*/, 10];
39596 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39597 case "PayloadTooLargeException": return [3 /*break*/, 12];
39598 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39599 case "TooManyRequestsException": return [3 /*break*/, 14];
39600 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39601 }
39602 return [3 /*break*/, 16];
39603 case 2:
39604 _c = [{}];
39605 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39606 case 3:
39607 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39608 return [3 /*break*/, 17];
39609 case 4:
39610 _d = [{}];
39611 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39612 case 5:
39613 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39614 return [3 /*break*/, 17];
39615 case 6:
39616 _e = [{}];
39617 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39618 case 7:
39619 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39620 return [3 /*break*/, 17];
39621 case 8:
39622 _f = [{}];
39623 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39624 case 9:
39625 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39626 return [3 /*break*/, 17];
39627 case 10:
39628 _g = [{}];
39629 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39630 case 11:
39631 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39632 return [3 /*break*/, 17];
39633 case 12:
39634 _h = [{}];
39635 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39636 case 13:
39637 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39638 return [3 /*break*/, 17];
39639 case 14:
39640 _j = [{}];
39641 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39642 case 15:
39643 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39644 return [3 /*break*/, 17];
39645 case 16:
39646 parsedBody = parsedOutput.body;
39647 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39648 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39649 _l.label = 17;
39650 case 17:
39651 message = response.message || response.Message || errorCode;
39652 response.message = message;
39653 delete response.Message;
39654 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39655 }
39656 });
39657}); };
39658var deserializeAws_restJson1GetAppCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39659 var contents, data;
39660 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39661 switch (_a.label) {
39662 case 0:
39663 if (output.statusCode !== 200 && output.statusCode >= 300) {
39664 return [2 /*return*/, deserializeAws_restJson1GetAppCommandError(output, context)];
39665 }
39666 contents = {
39667 $metadata: deserializeMetadata(output),
39668 ApplicationResponse: undefined,
39669 };
39670 return [4 /*yield*/, parseBody(output.body, context)];
39671 case 1:
39672 data = _a.sent();
39673 contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context);
39674 return [2 /*return*/, Promise.resolve(contents)];
39675 }
39676 });
39677}); };
39678var deserializeAws_restJson1GetAppCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39679 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39680 var _k;
39681 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39682 switch (_l.label) {
39683 case 0:
39684 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39685 _k = {};
39686 return [4 /*yield*/, parseBody(output.body, context)];
39687 case 1:
39688 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39689 errorCode = "UnknownError";
39690 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39691 _b = errorCode;
39692 switch (_b) {
39693 case "BadRequestException": return [3 /*break*/, 2];
39694 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39695 case "ForbiddenException": return [3 /*break*/, 4];
39696 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39697 case "InternalServerErrorException": return [3 /*break*/, 6];
39698 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39699 case "MethodNotAllowedException": return [3 /*break*/, 8];
39700 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39701 case "NotFoundException": return [3 /*break*/, 10];
39702 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39703 case "PayloadTooLargeException": return [3 /*break*/, 12];
39704 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39705 case "TooManyRequestsException": return [3 /*break*/, 14];
39706 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39707 }
39708 return [3 /*break*/, 16];
39709 case 2:
39710 _c = [{}];
39711 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39712 case 3:
39713 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39714 return [3 /*break*/, 17];
39715 case 4:
39716 _d = [{}];
39717 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39718 case 5:
39719 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39720 return [3 /*break*/, 17];
39721 case 6:
39722 _e = [{}];
39723 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39724 case 7:
39725 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39726 return [3 /*break*/, 17];
39727 case 8:
39728 _f = [{}];
39729 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39730 case 9:
39731 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39732 return [3 /*break*/, 17];
39733 case 10:
39734 _g = [{}];
39735 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39736 case 11:
39737 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39738 return [3 /*break*/, 17];
39739 case 12:
39740 _h = [{}];
39741 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39742 case 13:
39743 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39744 return [3 /*break*/, 17];
39745 case 14:
39746 _j = [{}];
39747 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39748 case 15:
39749 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39750 return [3 /*break*/, 17];
39751 case 16:
39752 parsedBody = parsedOutput.body;
39753 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39754 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39755 _l.label = 17;
39756 case 17:
39757 message = response.message || response.Message || errorCode;
39758 response.message = message;
39759 delete response.Message;
39760 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39761 }
39762 });
39763}); };
39764var deserializeAws_restJson1GetApplicationDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39765 var contents, data;
39766 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39767 switch (_a.label) {
39768 case 0:
39769 if (output.statusCode !== 200 && output.statusCode >= 300) {
39770 return [2 /*return*/, deserializeAws_restJson1GetApplicationDateRangeKpiCommandError(output, context)];
39771 }
39772 contents = {
39773 $metadata: deserializeMetadata(output),
39774 ApplicationDateRangeKpiResponse: undefined,
39775 };
39776 return [4 /*yield*/, parseBody(output.body, context)];
39777 case 1:
39778 data = _a.sent();
39779 contents.ApplicationDateRangeKpiResponse = deserializeAws_restJson1ApplicationDateRangeKpiResponse(data, context);
39780 return [2 /*return*/, Promise.resolve(contents)];
39781 }
39782 });
39783}); };
39784var deserializeAws_restJson1GetApplicationDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39785 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39786 var _k;
39787 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39788 switch (_l.label) {
39789 case 0:
39790 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39791 _k = {};
39792 return [4 /*yield*/, parseBody(output.body, context)];
39793 case 1:
39794 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39795 errorCode = "UnknownError";
39796 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39797 _b = errorCode;
39798 switch (_b) {
39799 case "BadRequestException": return [3 /*break*/, 2];
39800 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39801 case "ForbiddenException": return [3 /*break*/, 4];
39802 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39803 case "InternalServerErrorException": return [3 /*break*/, 6];
39804 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39805 case "MethodNotAllowedException": return [3 /*break*/, 8];
39806 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39807 case "NotFoundException": return [3 /*break*/, 10];
39808 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39809 case "PayloadTooLargeException": return [3 /*break*/, 12];
39810 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39811 case "TooManyRequestsException": return [3 /*break*/, 14];
39812 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39813 }
39814 return [3 /*break*/, 16];
39815 case 2:
39816 _c = [{}];
39817 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39818 case 3:
39819 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39820 return [3 /*break*/, 17];
39821 case 4:
39822 _d = [{}];
39823 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39824 case 5:
39825 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39826 return [3 /*break*/, 17];
39827 case 6:
39828 _e = [{}];
39829 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39830 case 7:
39831 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39832 return [3 /*break*/, 17];
39833 case 8:
39834 _f = [{}];
39835 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39836 case 9:
39837 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39838 return [3 /*break*/, 17];
39839 case 10:
39840 _g = [{}];
39841 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39842 case 11:
39843 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39844 return [3 /*break*/, 17];
39845 case 12:
39846 _h = [{}];
39847 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39848 case 13:
39849 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39850 return [3 /*break*/, 17];
39851 case 14:
39852 _j = [{}];
39853 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39854 case 15:
39855 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39856 return [3 /*break*/, 17];
39857 case 16:
39858 parsedBody = parsedOutput.body;
39859 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39860 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39861 _l.label = 17;
39862 case 17:
39863 message = response.message || response.Message || errorCode;
39864 response.message = message;
39865 delete response.Message;
39866 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39867 }
39868 });
39869}); };
39870var deserializeAws_restJson1GetApplicationSettingsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39871 var contents, data;
39872 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39873 switch (_a.label) {
39874 case 0:
39875 if (output.statusCode !== 200 && output.statusCode >= 300) {
39876 return [2 /*return*/, deserializeAws_restJson1GetApplicationSettingsCommandError(output, context)];
39877 }
39878 contents = {
39879 $metadata: deserializeMetadata(output),
39880 ApplicationSettingsResource: undefined,
39881 };
39882 return [4 /*yield*/, parseBody(output.body, context)];
39883 case 1:
39884 data = _a.sent();
39885 contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context);
39886 return [2 /*return*/, Promise.resolve(contents)];
39887 }
39888 });
39889}); };
39890var deserializeAws_restJson1GetApplicationSettingsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39891 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39892 var _k;
39893 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
39894 switch (_l.label) {
39895 case 0:
39896 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
39897 _k = {};
39898 return [4 /*yield*/, parseBody(output.body, context)];
39899 case 1:
39900 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
39901 errorCode = "UnknownError";
39902 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39903 _b = errorCode;
39904 switch (_b) {
39905 case "BadRequestException": return [3 /*break*/, 2];
39906 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
39907 case "ForbiddenException": return [3 /*break*/, 4];
39908 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
39909 case "InternalServerErrorException": return [3 /*break*/, 6];
39910 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
39911 case "MethodNotAllowedException": return [3 /*break*/, 8];
39912 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
39913 case "NotFoundException": return [3 /*break*/, 10];
39914 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
39915 case "PayloadTooLargeException": return [3 /*break*/, 12];
39916 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
39917 case "TooManyRequestsException": return [3 /*break*/, 14];
39918 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
39919 }
39920 return [3 /*break*/, 16];
39921 case 2:
39922 _c = [{}];
39923 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
39924 case 3:
39925 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39926 return [3 /*break*/, 17];
39927 case 4:
39928 _d = [{}];
39929 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
39930 case 5:
39931 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39932 return [3 /*break*/, 17];
39933 case 6:
39934 _e = [{}];
39935 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
39936 case 7:
39937 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39938 return [3 /*break*/, 17];
39939 case 8:
39940 _f = [{}];
39941 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
39942 case 9:
39943 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39944 return [3 /*break*/, 17];
39945 case 10:
39946 _g = [{}];
39947 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
39948 case 11:
39949 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39950 return [3 /*break*/, 17];
39951 case 12:
39952 _h = [{}];
39953 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
39954 case 13:
39955 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39956 return [3 /*break*/, 17];
39957 case 14:
39958 _j = [{}];
39959 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
39960 case 15:
39961 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
39962 return [3 /*break*/, 17];
39963 case 16:
39964 parsedBody = parsedOutput.body;
39965 errorCode = parsedBody.code || parsedBody.Code || errorCode;
39966 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
39967 _l.label = 17;
39968 case 17:
39969 message = response.message || response.Message || errorCode;
39970 response.message = message;
39971 delete response.Message;
39972 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
39973 }
39974 });
39975}); };
39976var deserializeAws_restJson1GetAppsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39977 var contents, data;
39978 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
39979 switch (_a.label) {
39980 case 0:
39981 if (output.statusCode !== 200 && output.statusCode >= 300) {
39982 return [2 /*return*/, deserializeAws_restJson1GetAppsCommandError(output, context)];
39983 }
39984 contents = {
39985 $metadata: deserializeMetadata(output),
39986 ApplicationsResponse: undefined,
39987 };
39988 return [4 /*yield*/, parseBody(output.body, context)];
39989 case 1:
39990 data = _a.sent();
39991 contents.ApplicationsResponse = deserializeAws_restJson1ApplicationsResponse(data, context);
39992 return [2 /*return*/, Promise.resolve(contents)];
39993 }
39994 });
39995}); };
39996var deserializeAws_restJson1GetAppsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
39997 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
39998 var _k;
39999 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40000 switch (_l.label) {
40001 case 0:
40002 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40003 _k = {};
40004 return [4 /*yield*/, parseBody(output.body, context)];
40005 case 1:
40006 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40007 errorCode = "UnknownError";
40008 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40009 _b = errorCode;
40010 switch (_b) {
40011 case "BadRequestException": return [3 /*break*/, 2];
40012 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40013 case "ForbiddenException": return [3 /*break*/, 4];
40014 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40015 case "InternalServerErrorException": return [3 /*break*/, 6];
40016 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40017 case "MethodNotAllowedException": return [3 /*break*/, 8];
40018 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40019 case "NotFoundException": return [3 /*break*/, 10];
40020 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40021 case "PayloadTooLargeException": return [3 /*break*/, 12];
40022 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40023 case "TooManyRequestsException": return [3 /*break*/, 14];
40024 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40025 }
40026 return [3 /*break*/, 16];
40027 case 2:
40028 _c = [{}];
40029 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40030 case 3:
40031 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40032 return [3 /*break*/, 17];
40033 case 4:
40034 _d = [{}];
40035 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40036 case 5:
40037 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40038 return [3 /*break*/, 17];
40039 case 6:
40040 _e = [{}];
40041 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40042 case 7:
40043 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40044 return [3 /*break*/, 17];
40045 case 8:
40046 _f = [{}];
40047 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40048 case 9:
40049 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40050 return [3 /*break*/, 17];
40051 case 10:
40052 _g = [{}];
40053 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40054 case 11:
40055 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40056 return [3 /*break*/, 17];
40057 case 12:
40058 _h = [{}];
40059 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40060 case 13:
40061 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40062 return [3 /*break*/, 17];
40063 case 14:
40064 _j = [{}];
40065 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40066 case 15:
40067 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40068 return [3 /*break*/, 17];
40069 case 16:
40070 parsedBody = parsedOutput.body;
40071 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40072 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40073 _l.label = 17;
40074 case 17:
40075 message = response.message || response.Message || errorCode;
40076 response.message = message;
40077 delete response.Message;
40078 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40079 }
40080 });
40081}); };
40082var deserializeAws_restJson1GetBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40083 var contents, data;
40084 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40085 switch (_a.label) {
40086 case 0:
40087 if (output.statusCode !== 200 && output.statusCode >= 300) {
40088 return [2 /*return*/, deserializeAws_restJson1GetBaiduChannelCommandError(output, context)];
40089 }
40090 contents = {
40091 $metadata: deserializeMetadata(output),
40092 BaiduChannelResponse: undefined,
40093 };
40094 return [4 /*yield*/, parseBody(output.body, context)];
40095 case 1:
40096 data = _a.sent();
40097 contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context);
40098 return [2 /*return*/, Promise.resolve(contents)];
40099 }
40100 });
40101}); };
40102var deserializeAws_restJson1GetBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40103 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40104 var _k;
40105 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40106 switch (_l.label) {
40107 case 0:
40108 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40109 _k = {};
40110 return [4 /*yield*/, parseBody(output.body, context)];
40111 case 1:
40112 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40113 errorCode = "UnknownError";
40114 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40115 _b = errorCode;
40116 switch (_b) {
40117 case "BadRequestException": return [3 /*break*/, 2];
40118 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40119 case "ForbiddenException": return [3 /*break*/, 4];
40120 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40121 case "InternalServerErrorException": return [3 /*break*/, 6];
40122 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40123 case "MethodNotAllowedException": return [3 /*break*/, 8];
40124 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40125 case "NotFoundException": return [3 /*break*/, 10];
40126 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40127 case "PayloadTooLargeException": return [3 /*break*/, 12];
40128 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40129 case "TooManyRequestsException": return [3 /*break*/, 14];
40130 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40131 }
40132 return [3 /*break*/, 16];
40133 case 2:
40134 _c = [{}];
40135 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40136 case 3:
40137 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40138 return [3 /*break*/, 17];
40139 case 4:
40140 _d = [{}];
40141 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40142 case 5:
40143 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40144 return [3 /*break*/, 17];
40145 case 6:
40146 _e = [{}];
40147 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40148 case 7:
40149 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40150 return [3 /*break*/, 17];
40151 case 8:
40152 _f = [{}];
40153 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40154 case 9:
40155 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40156 return [3 /*break*/, 17];
40157 case 10:
40158 _g = [{}];
40159 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40160 case 11:
40161 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40162 return [3 /*break*/, 17];
40163 case 12:
40164 _h = [{}];
40165 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40166 case 13:
40167 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40168 return [3 /*break*/, 17];
40169 case 14:
40170 _j = [{}];
40171 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40172 case 15:
40173 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40174 return [3 /*break*/, 17];
40175 case 16:
40176 parsedBody = parsedOutput.body;
40177 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40178 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40179 _l.label = 17;
40180 case 17:
40181 message = response.message || response.Message || errorCode;
40182 response.message = message;
40183 delete response.Message;
40184 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40185 }
40186 });
40187}); };
40188var deserializeAws_restJson1GetCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40189 var contents, data;
40190 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40191 switch (_a.label) {
40192 case 0:
40193 if (output.statusCode !== 200 && output.statusCode >= 300) {
40194 return [2 /*return*/, deserializeAws_restJson1GetCampaignCommandError(output, context)];
40195 }
40196 contents = {
40197 $metadata: deserializeMetadata(output),
40198 CampaignResponse: undefined,
40199 };
40200 return [4 /*yield*/, parseBody(output.body, context)];
40201 case 1:
40202 data = _a.sent();
40203 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
40204 return [2 /*return*/, Promise.resolve(contents)];
40205 }
40206 });
40207}); };
40208var deserializeAws_restJson1GetCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40209 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40210 var _k;
40211 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40212 switch (_l.label) {
40213 case 0:
40214 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40215 _k = {};
40216 return [4 /*yield*/, parseBody(output.body, context)];
40217 case 1:
40218 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40219 errorCode = "UnknownError";
40220 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40221 _b = errorCode;
40222 switch (_b) {
40223 case "BadRequestException": return [3 /*break*/, 2];
40224 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40225 case "ForbiddenException": return [3 /*break*/, 4];
40226 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40227 case "InternalServerErrorException": return [3 /*break*/, 6];
40228 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40229 case "MethodNotAllowedException": return [3 /*break*/, 8];
40230 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40231 case "NotFoundException": return [3 /*break*/, 10];
40232 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40233 case "PayloadTooLargeException": return [3 /*break*/, 12];
40234 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40235 case "TooManyRequestsException": return [3 /*break*/, 14];
40236 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40237 }
40238 return [3 /*break*/, 16];
40239 case 2:
40240 _c = [{}];
40241 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40242 case 3:
40243 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40244 return [3 /*break*/, 17];
40245 case 4:
40246 _d = [{}];
40247 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40248 case 5:
40249 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40250 return [3 /*break*/, 17];
40251 case 6:
40252 _e = [{}];
40253 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40254 case 7:
40255 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40256 return [3 /*break*/, 17];
40257 case 8:
40258 _f = [{}];
40259 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40260 case 9:
40261 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40262 return [3 /*break*/, 17];
40263 case 10:
40264 _g = [{}];
40265 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40266 case 11:
40267 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40268 return [3 /*break*/, 17];
40269 case 12:
40270 _h = [{}];
40271 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40272 case 13:
40273 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40274 return [3 /*break*/, 17];
40275 case 14:
40276 _j = [{}];
40277 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40278 case 15:
40279 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40280 return [3 /*break*/, 17];
40281 case 16:
40282 parsedBody = parsedOutput.body;
40283 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40284 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40285 _l.label = 17;
40286 case 17:
40287 message = response.message || response.Message || errorCode;
40288 response.message = message;
40289 delete response.Message;
40290 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40291 }
40292 });
40293}); };
40294var deserializeAws_restJson1GetCampaignActivitiesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40295 var contents, data;
40296 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40297 switch (_a.label) {
40298 case 0:
40299 if (output.statusCode !== 200 && output.statusCode >= 300) {
40300 return [2 /*return*/, deserializeAws_restJson1GetCampaignActivitiesCommandError(output, context)];
40301 }
40302 contents = {
40303 $metadata: deserializeMetadata(output),
40304 ActivitiesResponse: undefined,
40305 };
40306 return [4 /*yield*/, parseBody(output.body, context)];
40307 case 1:
40308 data = _a.sent();
40309 contents.ActivitiesResponse = deserializeAws_restJson1ActivitiesResponse(data, context);
40310 return [2 /*return*/, Promise.resolve(contents)];
40311 }
40312 });
40313}); };
40314var deserializeAws_restJson1GetCampaignActivitiesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40315 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40316 var _k;
40317 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40318 switch (_l.label) {
40319 case 0:
40320 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40321 _k = {};
40322 return [4 /*yield*/, parseBody(output.body, context)];
40323 case 1:
40324 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40325 errorCode = "UnknownError";
40326 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40327 _b = errorCode;
40328 switch (_b) {
40329 case "BadRequestException": return [3 /*break*/, 2];
40330 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40331 case "ForbiddenException": return [3 /*break*/, 4];
40332 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40333 case "InternalServerErrorException": return [3 /*break*/, 6];
40334 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40335 case "MethodNotAllowedException": return [3 /*break*/, 8];
40336 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40337 case "NotFoundException": return [3 /*break*/, 10];
40338 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40339 case "PayloadTooLargeException": return [3 /*break*/, 12];
40340 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40341 case "TooManyRequestsException": return [3 /*break*/, 14];
40342 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40343 }
40344 return [3 /*break*/, 16];
40345 case 2:
40346 _c = [{}];
40347 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40348 case 3:
40349 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40350 return [3 /*break*/, 17];
40351 case 4:
40352 _d = [{}];
40353 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40354 case 5:
40355 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40356 return [3 /*break*/, 17];
40357 case 6:
40358 _e = [{}];
40359 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40360 case 7:
40361 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40362 return [3 /*break*/, 17];
40363 case 8:
40364 _f = [{}];
40365 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40366 case 9:
40367 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40368 return [3 /*break*/, 17];
40369 case 10:
40370 _g = [{}];
40371 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40372 case 11:
40373 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40374 return [3 /*break*/, 17];
40375 case 12:
40376 _h = [{}];
40377 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40378 case 13:
40379 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40380 return [3 /*break*/, 17];
40381 case 14:
40382 _j = [{}];
40383 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40384 case 15:
40385 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40386 return [3 /*break*/, 17];
40387 case 16:
40388 parsedBody = parsedOutput.body;
40389 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40390 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40391 _l.label = 17;
40392 case 17:
40393 message = response.message || response.Message || errorCode;
40394 response.message = message;
40395 delete response.Message;
40396 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40397 }
40398 });
40399}); };
40400var deserializeAws_restJson1GetCampaignDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40401 var contents, data;
40402 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40403 switch (_a.label) {
40404 case 0:
40405 if (output.statusCode !== 200 && output.statusCode >= 300) {
40406 return [2 /*return*/, deserializeAws_restJson1GetCampaignDateRangeKpiCommandError(output, context)];
40407 }
40408 contents = {
40409 $metadata: deserializeMetadata(output),
40410 CampaignDateRangeKpiResponse: undefined,
40411 };
40412 return [4 /*yield*/, parseBody(output.body, context)];
40413 case 1:
40414 data = _a.sent();
40415 contents.CampaignDateRangeKpiResponse = deserializeAws_restJson1CampaignDateRangeKpiResponse(data, context);
40416 return [2 /*return*/, Promise.resolve(contents)];
40417 }
40418 });
40419}); };
40420var deserializeAws_restJson1GetCampaignDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40421 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40422 var _k;
40423 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40424 switch (_l.label) {
40425 case 0:
40426 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40427 _k = {};
40428 return [4 /*yield*/, parseBody(output.body, context)];
40429 case 1:
40430 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40431 errorCode = "UnknownError";
40432 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40433 _b = errorCode;
40434 switch (_b) {
40435 case "BadRequestException": return [3 /*break*/, 2];
40436 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40437 case "ForbiddenException": return [3 /*break*/, 4];
40438 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40439 case "InternalServerErrorException": return [3 /*break*/, 6];
40440 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40441 case "MethodNotAllowedException": return [3 /*break*/, 8];
40442 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40443 case "NotFoundException": return [3 /*break*/, 10];
40444 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40445 case "PayloadTooLargeException": return [3 /*break*/, 12];
40446 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40447 case "TooManyRequestsException": return [3 /*break*/, 14];
40448 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40449 }
40450 return [3 /*break*/, 16];
40451 case 2:
40452 _c = [{}];
40453 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40454 case 3:
40455 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40456 return [3 /*break*/, 17];
40457 case 4:
40458 _d = [{}];
40459 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40460 case 5:
40461 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40462 return [3 /*break*/, 17];
40463 case 6:
40464 _e = [{}];
40465 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40466 case 7:
40467 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40468 return [3 /*break*/, 17];
40469 case 8:
40470 _f = [{}];
40471 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40472 case 9:
40473 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40474 return [3 /*break*/, 17];
40475 case 10:
40476 _g = [{}];
40477 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40478 case 11:
40479 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40480 return [3 /*break*/, 17];
40481 case 12:
40482 _h = [{}];
40483 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40484 case 13:
40485 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40486 return [3 /*break*/, 17];
40487 case 14:
40488 _j = [{}];
40489 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40490 case 15:
40491 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40492 return [3 /*break*/, 17];
40493 case 16:
40494 parsedBody = parsedOutput.body;
40495 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40496 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40497 _l.label = 17;
40498 case 17:
40499 message = response.message || response.Message || errorCode;
40500 response.message = message;
40501 delete response.Message;
40502 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40503 }
40504 });
40505}); };
40506var deserializeAws_restJson1GetCampaignsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40507 var contents, data;
40508 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40509 switch (_a.label) {
40510 case 0:
40511 if (output.statusCode !== 200 && output.statusCode >= 300) {
40512 return [2 /*return*/, deserializeAws_restJson1GetCampaignsCommandError(output, context)];
40513 }
40514 contents = {
40515 $metadata: deserializeMetadata(output),
40516 CampaignsResponse: undefined,
40517 };
40518 return [4 /*yield*/, parseBody(output.body, context)];
40519 case 1:
40520 data = _a.sent();
40521 contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context);
40522 return [2 /*return*/, Promise.resolve(contents)];
40523 }
40524 });
40525}); };
40526var deserializeAws_restJson1GetCampaignsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40527 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40528 var _k;
40529 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40530 switch (_l.label) {
40531 case 0:
40532 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40533 _k = {};
40534 return [4 /*yield*/, parseBody(output.body, context)];
40535 case 1:
40536 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40537 errorCode = "UnknownError";
40538 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40539 _b = errorCode;
40540 switch (_b) {
40541 case "BadRequestException": return [3 /*break*/, 2];
40542 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40543 case "ForbiddenException": return [3 /*break*/, 4];
40544 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40545 case "InternalServerErrorException": return [3 /*break*/, 6];
40546 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40547 case "MethodNotAllowedException": return [3 /*break*/, 8];
40548 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40549 case "NotFoundException": return [3 /*break*/, 10];
40550 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40551 case "PayloadTooLargeException": return [3 /*break*/, 12];
40552 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40553 case "TooManyRequestsException": return [3 /*break*/, 14];
40554 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40555 }
40556 return [3 /*break*/, 16];
40557 case 2:
40558 _c = [{}];
40559 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40560 case 3:
40561 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40562 return [3 /*break*/, 17];
40563 case 4:
40564 _d = [{}];
40565 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40566 case 5:
40567 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40568 return [3 /*break*/, 17];
40569 case 6:
40570 _e = [{}];
40571 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40572 case 7:
40573 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40574 return [3 /*break*/, 17];
40575 case 8:
40576 _f = [{}];
40577 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40578 case 9:
40579 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40580 return [3 /*break*/, 17];
40581 case 10:
40582 _g = [{}];
40583 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40584 case 11:
40585 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40586 return [3 /*break*/, 17];
40587 case 12:
40588 _h = [{}];
40589 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40590 case 13:
40591 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40592 return [3 /*break*/, 17];
40593 case 14:
40594 _j = [{}];
40595 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40596 case 15:
40597 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40598 return [3 /*break*/, 17];
40599 case 16:
40600 parsedBody = parsedOutput.body;
40601 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40602 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40603 _l.label = 17;
40604 case 17:
40605 message = response.message || response.Message || errorCode;
40606 response.message = message;
40607 delete response.Message;
40608 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40609 }
40610 });
40611}); };
40612var deserializeAws_restJson1GetCampaignVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40613 var contents, data;
40614 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40615 switch (_a.label) {
40616 case 0:
40617 if (output.statusCode !== 200 && output.statusCode >= 300) {
40618 return [2 /*return*/, deserializeAws_restJson1GetCampaignVersionCommandError(output, context)];
40619 }
40620 contents = {
40621 $metadata: deserializeMetadata(output),
40622 CampaignResponse: undefined,
40623 };
40624 return [4 /*yield*/, parseBody(output.body, context)];
40625 case 1:
40626 data = _a.sent();
40627 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
40628 return [2 /*return*/, Promise.resolve(contents)];
40629 }
40630 });
40631}); };
40632var deserializeAws_restJson1GetCampaignVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40633 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40634 var _k;
40635 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40636 switch (_l.label) {
40637 case 0:
40638 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40639 _k = {};
40640 return [4 /*yield*/, parseBody(output.body, context)];
40641 case 1:
40642 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40643 errorCode = "UnknownError";
40644 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40645 _b = errorCode;
40646 switch (_b) {
40647 case "BadRequestException": return [3 /*break*/, 2];
40648 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40649 case "ForbiddenException": return [3 /*break*/, 4];
40650 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40651 case "InternalServerErrorException": return [3 /*break*/, 6];
40652 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40653 case "MethodNotAllowedException": return [3 /*break*/, 8];
40654 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40655 case "NotFoundException": return [3 /*break*/, 10];
40656 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40657 case "PayloadTooLargeException": return [3 /*break*/, 12];
40658 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40659 case "TooManyRequestsException": return [3 /*break*/, 14];
40660 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40661 }
40662 return [3 /*break*/, 16];
40663 case 2:
40664 _c = [{}];
40665 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40666 case 3:
40667 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40668 return [3 /*break*/, 17];
40669 case 4:
40670 _d = [{}];
40671 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40672 case 5:
40673 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40674 return [3 /*break*/, 17];
40675 case 6:
40676 _e = [{}];
40677 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40678 case 7:
40679 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40680 return [3 /*break*/, 17];
40681 case 8:
40682 _f = [{}];
40683 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40684 case 9:
40685 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40686 return [3 /*break*/, 17];
40687 case 10:
40688 _g = [{}];
40689 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40690 case 11:
40691 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40692 return [3 /*break*/, 17];
40693 case 12:
40694 _h = [{}];
40695 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40696 case 13:
40697 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40698 return [3 /*break*/, 17];
40699 case 14:
40700 _j = [{}];
40701 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40702 case 15:
40703 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40704 return [3 /*break*/, 17];
40705 case 16:
40706 parsedBody = parsedOutput.body;
40707 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40708 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40709 _l.label = 17;
40710 case 17:
40711 message = response.message || response.Message || errorCode;
40712 response.message = message;
40713 delete response.Message;
40714 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40715 }
40716 });
40717}); };
40718var deserializeAws_restJson1GetCampaignVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40719 var contents, data;
40720 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40721 switch (_a.label) {
40722 case 0:
40723 if (output.statusCode !== 200 && output.statusCode >= 300) {
40724 return [2 /*return*/, deserializeAws_restJson1GetCampaignVersionsCommandError(output, context)];
40725 }
40726 contents = {
40727 $metadata: deserializeMetadata(output),
40728 CampaignsResponse: undefined,
40729 };
40730 return [4 /*yield*/, parseBody(output.body, context)];
40731 case 1:
40732 data = _a.sent();
40733 contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context);
40734 return [2 /*return*/, Promise.resolve(contents)];
40735 }
40736 });
40737}); };
40738var deserializeAws_restJson1GetCampaignVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40739 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40740 var _k;
40741 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40742 switch (_l.label) {
40743 case 0:
40744 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40745 _k = {};
40746 return [4 /*yield*/, parseBody(output.body, context)];
40747 case 1:
40748 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40749 errorCode = "UnknownError";
40750 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40751 _b = errorCode;
40752 switch (_b) {
40753 case "BadRequestException": return [3 /*break*/, 2];
40754 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40755 case "ForbiddenException": return [3 /*break*/, 4];
40756 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40757 case "InternalServerErrorException": return [3 /*break*/, 6];
40758 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40759 case "MethodNotAllowedException": return [3 /*break*/, 8];
40760 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40761 case "NotFoundException": return [3 /*break*/, 10];
40762 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40763 case "PayloadTooLargeException": return [3 /*break*/, 12];
40764 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40765 case "TooManyRequestsException": return [3 /*break*/, 14];
40766 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40767 }
40768 return [3 /*break*/, 16];
40769 case 2:
40770 _c = [{}];
40771 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40772 case 3:
40773 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40774 return [3 /*break*/, 17];
40775 case 4:
40776 _d = [{}];
40777 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40778 case 5:
40779 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40780 return [3 /*break*/, 17];
40781 case 6:
40782 _e = [{}];
40783 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40784 case 7:
40785 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40786 return [3 /*break*/, 17];
40787 case 8:
40788 _f = [{}];
40789 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40790 case 9:
40791 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40792 return [3 /*break*/, 17];
40793 case 10:
40794 _g = [{}];
40795 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40796 case 11:
40797 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40798 return [3 /*break*/, 17];
40799 case 12:
40800 _h = [{}];
40801 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40802 case 13:
40803 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40804 return [3 /*break*/, 17];
40805 case 14:
40806 _j = [{}];
40807 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40808 case 15:
40809 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40810 return [3 /*break*/, 17];
40811 case 16:
40812 parsedBody = parsedOutput.body;
40813 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40814 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40815 _l.label = 17;
40816 case 17:
40817 message = response.message || response.Message || errorCode;
40818 response.message = message;
40819 delete response.Message;
40820 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40821 }
40822 });
40823}); };
40824var deserializeAws_restJson1GetChannelsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40825 var contents, data;
40826 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40827 switch (_a.label) {
40828 case 0:
40829 if (output.statusCode !== 200 && output.statusCode >= 300) {
40830 return [2 /*return*/, deserializeAws_restJson1GetChannelsCommandError(output, context)];
40831 }
40832 contents = {
40833 $metadata: deserializeMetadata(output),
40834 ChannelsResponse: undefined,
40835 };
40836 return [4 /*yield*/, parseBody(output.body, context)];
40837 case 1:
40838 data = _a.sent();
40839 contents.ChannelsResponse = deserializeAws_restJson1ChannelsResponse(data, context);
40840 return [2 /*return*/, Promise.resolve(contents)];
40841 }
40842 });
40843}); };
40844var deserializeAws_restJson1GetChannelsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40845 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40846 var _k;
40847 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40848 switch (_l.label) {
40849 case 0:
40850 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40851 _k = {};
40852 return [4 /*yield*/, parseBody(output.body, context)];
40853 case 1:
40854 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40855 errorCode = "UnknownError";
40856 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40857 _b = errorCode;
40858 switch (_b) {
40859 case "BadRequestException": return [3 /*break*/, 2];
40860 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40861 case "ForbiddenException": return [3 /*break*/, 4];
40862 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40863 case "InternalServerErrorException": return [3 /*break*/, 6];
40864 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40865 case "MethodNotAllowedException": return [3 /*break*/, 8];
40866 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40867 case "NotFoundException": return [3 /*break*/, 10];
40868 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40869 case "PayloadTooLargeException": return [3 /*break*/, 12];
40870 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40871 case "TooManyRequestsException": return [3 /*break*/, 14];
40872 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40873 }
40874 return [3 /*break*/, 16];
40875 case 2:
40876 _c = [{}];
40877 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40878 case 3:
40879 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40880 return [3 /*break*/, 17];
40881 case 4:
40882 _d = [{}];
40883 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40884 case 5:
40885 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40886 return [3 /*break*/, 17];
40887 case 6:
40888 _e = [{}];
40889 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40890 case 7:
40891 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40892 return [3 /*break*/, 17];
40893 case 8:
40894 _f = [{}];
40895 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
40896 case 9:
40897 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40898 return [3 /*break*/, 17];
40899 case 10:
40900 _g = [{}];
40901 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
40902 case 11:
40903 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40904 return [3 /*break*/, 17];
40905 case 12:
40906 _h = [{}];
40907 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
40908 case 13:
40909 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40910 return [3 /*break*/, 17];
40911 case 14:
40912 _j = [{}];
40913 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
40914 case 15:
40915 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40916 return [3 /*break*/, 17];
40917 case 16:
40918 parsedBody = parsedOutput.body;
40919 errorCode = parsedBody.code || parsedBody.Code || errorCode;
40920 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
40921 _l.label = 17;
40922 case 17:
40923 message = response.message || response.Message || errorCode;
40924 response.message = message;
40925 delete response.Message;
40926 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
40927 }
40928 });
40929}); };
40930var deserializeAws_restJson1GetEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40931 var contents, data;
40932 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
40933 switch (_a.label) {
40934 case 0:
40935 if (output.statusCode !== 200 && output.statusCode >= 300) {
40936 return [2 /*return*/, deserializeAws_restJson1GetEmailChannelCommandError(output, context)];
40937 }
40938 contents = {
40939 $metadata: deserializeMetadata(output),
40940 EmailChannelResponse: undefined,
40941 };
40942 return [4 /*yield*/, parseBody(output.body, context)];
40943 case 1:
40944 data = _a.sent();
40945 contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context);
40946 return [2 /*return*/, Promise.resolve(contents)];
40947 }
40948 });
40949}); };
40950var deserializeAws_restJson1GetEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
40951 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
40952 var _k;
40953 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
40954 switch (_l.label) {
40955 case 0:
40956 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
40957 _k = {};
40958 return [4 /*yield*/, parseBody(output.body, context)];
40959 case 1:
40960 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
40961 errorCode = "UnknownError";
40962 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
40963 _b = errorCode;
40964 switch (_b) {
40965 case "BadRequestException": return [3 /*break*/, 2];
40966 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
40967 case "ForbiddenException": return [3 /*break*/, 4];
40968 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
40969 case "InternalServerErrorException": return [3 /*break*/, 6];
40970 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
40971 case "MethodNotAllowedException": return [3 /*break*/, 8];
40972 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
40973 case "NotFoundException": return [3 /*break*/, 10];
40974 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
40975 case "PayloadTooLargeException": return [3 /*break*/, 12];
40976 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
40977 case "TooManyRequestsException": return [3 /*break*/, 14];
40978 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
40979 }
40980 return [3 /*break*/, 16];
40981 case 2:
40982 _c = [{}];
40983 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
40984 case 3:
40985 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40986 return [3 /*break*/, 17];
40987 case 4:
40988 _d = [{}];
40989 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
40990 case 5:
40991 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40992 return [3 /*break*/, 17];
40993 case 6:
40994 _e = [{}];
40995 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
40996 case 7:
40997 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
40998 return [3 /*break*/, 17];
40999 case 8:
41000 _f = [{}];
41001 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41002 case 9:
41003 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41004 return [3 /*break*/, 17];
41005 case 10:
41006 _g = [{}];
41007 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41008 case 11:
41009 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41010 return [3 /*break*/, 17];
41011 case 12:
41012 _h = [{}];
41013 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41014 case 13:
41015 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41016 return [3 /*break*/, 17];
41017 case 14:
41018 _j = [{}];
41019 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41020 case 15:
41021 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41022 return [3 /*break*/, 17];
41023 case 16:
41024 parsedBody = parsedOutput.body;
41025 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41026 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41027 _l.label = 17;
41028 case 17:
41029 message = response.message || response.Message || errorCode;
41030 response.message = message;
41031 delete response.Message;
41032 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41033 }
41034 });
41035}); };
41036var deserializeAws_restJson1GetEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41037 var contents, data;
41038 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41039 switch (_a.label) {
41040 case 0:
41041 if (output.statusCode !== 200 && output.statusCode >= 300) {
41042 return [2 /*return*/, deserializeAws_restJson1GetEmailTemplateCommandError(output, context)];
41043 }
41044 contents = {
41045 $metadata: deserializeMetadata(output),
41046 EmailTemplateResponse: undefined,
41047 };
41048 return [4 /*yield*/, parseBody(output.body, context)];
41049 case 1:
41050 data = _a.sent();
41051 contents.EmailTemplateResponse = deserializeAws_restJson1EmailTemplateResponse(data, context);
41052 return [2 /*return*/, Promise.resolve(contents)];
41053 }
41054 });
41055}); };
41056var deserializeAws_restJson1GetEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41057 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41058 var _k;
41059 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41060 switch (_l.label) {
41061 case 0:
41062 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41063 _k = {};
41064 return [4 /*yield*/, parseBody(output.body, context)];
41065 case 1:
41066 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41067 errorCode = "UnknownError";
41068 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41069 _b = errorCode;
41070 switch (_b) {
41071 case "BadRequestException": return [3 /*break*/, 2];
41072 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41073 case "ForbiddenException": return [3 /*break*/, 4];
41074 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41075 case "InternalServerErrorException": return [3 /*break*/, 6];
41076 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41077 case "MethodNotAllowedException": return [3 /*break*/, 8];
41078 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41079 case "NotFoundException": return [3 /*break*/, 10];
41080 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41081 case "PayloadTooLargeException": return [3 /*break*/, 12];
41082 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41083 case "TooManyRequestsException": return [3 /*break*/, 14];
41084 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41085 }
41086 return [3 /*break*/, 16];
41087 case 2:
41088 _c = [{}];
41089 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41090 case 3:
41091 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41092 return [3 /*break*/, 17];
41093 case 4:
41094 _d = [{}];
41095 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41096 case 5:
41097 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41098 return [3 /*break*/, 17];
41099 case 6:
41100 _e = [{}];
41101 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41102 case 7:
41103 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41104 return [3 /*break*/, 17];
41105 case 8:
41106 _f = [{}];
41107 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41108 case 9:
41109 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41110 return [3 /*break*/, 17];
41111 case 10:
41112 _g = [{}];
41113 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41114 case 11:
41115 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41116 return [3 /*break*/, 17];
41117 case 12:
41118 _h = [{}];
41119 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41120 case 13:
41121 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41122 return [3 /*break*/, 17];
41123 case 14:
41124 _j = [{}];
41125 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41126 case 15:
41127 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41128 return [3 /*break*/, 17];
41129 case 16:
41130 parsedBody = parsedOutput.body;
41131 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41132 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41133 _l.label = 17;
41134 case 17:
41135 message = response.message || response.Message || errorCode;
41136 response.message = message;
41137 delete response.Message;
41138 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41139 }
41140 });
41141}); };
41142var deserializeAws_restJson1GetEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41143 var contents, data;
41144 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41145 switch (_a.label) {
41146 case 0:
41147 if (output.statusCode !== 200 && output.statusCode >= 300) {
41148 return [2 /*return*/, deserializeAws_restJson1GetEndpointCommandError(output, context)];
41149 }
41150 contents = {
41151 $metadata: deserializeMetadata(output),
41152 EndpointResponse: undefined,
41153 };
41154 return [4 /*yield*/, parseBody(output.body, context)];
41155 case 1:
41156 data = _a.sent();
41157 contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context);
41158 return [2 /*return*/, Promise.resolve(contents)];
41159 }
41160 });
41161}); };
41162var deserializeAws_restJson1GetEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41163 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41164 var _k;
41165 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41166 switch (_l.label) {
41167 case 0:
41168 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41169 _k = {};
41170 return [4 /*yield*/, parseBody(output.body, context)];
41171 case 1:
41172 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41173 errorCode = "UnknownError";
41174 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41175 _b = errorCode;
41176 switch (_b) {
41177 case "BadRequestException": return [3 /*break*/, 2];
41178 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41179 case "ForbiddenException": return [3 /*break*/, 4];
41180 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41181 case "InternalServerErrorException": return [3 /*break*/, 6];
41182 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41183 case "MethodNotAllowedException": return [3 /*break*/, 8];
41184 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41185 case "NotFoundException": return [3 /*break*/, 10];
41186 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41187 case "PayloadTooLargeException": return [3 /*break*/, 12];
41188 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41189 case "TooManyRequestsException": return [3 /*break*/, 14];
41190 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41191 }
41192 return [3 /*break*/, 16];
41193 case 2:
41194 _c = [{}];
41195 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41196 case 3:
41197 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41198 return [3 /*break*/, 17];
41199 case 4:
41200 _d = [{}];
41201 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41202 case 5:
41203 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41204 return [3 /*break*/, 17];
41205 case 6:
41206 _e = [{}];
41207 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41208 case 7:
41209 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41210 return [3 /*break*/, 17];
41211 case 8:
41212 _f = [{}];
41213 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41214 case 9:
41215 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41216 return [3 /*break*/, 17];
41217 case 10:
41218 _g = [{}];
41219 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41220 case 11:
41221 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41222 return [3 /*break*/, 17];
41223 case 12:
41224 _h = [{}];
41225 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41226 case 13:
41227 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41228 return [3 /*break*/, 17];
41229 case 14:
41230 _j = [{}];
41231 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41232 case 15:
41233 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41234 return [3 /*break*/, 17];
41235 case 16:
41236 parsedBody = parsedOutput.body;
41237 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41238 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41239 _l.label = 17;
41240 case 17:
41241 message = response.message || response.Message || errorCode;
41242 response.message = message;
41243 delete response.Message;
41244 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41245 }
41246 });
41247}); };
41248var deserializeAws_restJson1GetEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41249 var contents, data;
41250 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41251 switch (_a.label) {
41252 case 0:
41253 if (output.statusCode !== 200 && output.statusCode >= 300) {
41254 return [2 /*return*/, deserializeAws_restJson1GetEventStreamCommandError(output, context)];
41255 }
41256 contents = {
41257 $metadata: deserializeMetadata(output),
41258 EventStream: undefined,
41259 };
41260 return [4 /*yield*/, parseBody(output.body, context)];
41261 case 1:
41262 data = _a.sent();
41263 contents.EventStream = deserializeAws_restJson1EventStream(data, context);
41264 return [2 /*return*/, Promise.resolve(contents)];
41265 }
41266 });
41267}); };
41268var deserializeAws_restJson1GetEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41269 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41270 var _k;
41271 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41272 switch (_l.label) {
41273 case 0:
41274 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41275 _k = {};
41276 return [4 /*yield*/, parseBody(output.body, context)];
41277 case 1:
41278 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41279 errorCode = "UnknownError";
41280 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41281 _b = errorCode;
41282 switch (_b) {
41283 case "BadRequestException": return [3 /*break*/, 2];
41284 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41285 case "ForbiddenException": return [3 /*break*/, 4];
41286 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41287 case "InternalServerErrorException": return [3 /*break*/, 6];
41288 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41289 case "MethodNotAllowedException": return [3 /*break*/, 8];
41290 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41291 case "NotFoundException": return [3 /*break*/, 10];
41292 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41293 case "PayloadTooLargeException": return [3 /*break*/, 12];
41294 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41295 case "TooManyRequestsException": return [3 /*break*/, 14];
41296 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41297 }
41298 return [3 /*break*/, 16];
41299 case 2:
41300 _c = [{}];
41301 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41302 case 3:
41303 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41304 return [3 /*break*/, 17];
41305 case 4:
41306 _d = [{}];
41307 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41308 case 5:
41309 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41310 return [3 /*break*/, 17];
41311 case 6:
41312 _e = [{}];
41313 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41314 case 7:
41315 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41316 return [3 /*break*/, 17];
41317 case 8:
41318 _f = [{}];
41319 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41320 case 9:
41321 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41322 return [3 /*break*/, 17];
41323 case 10:
41324 _g = [{}];
41325 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41326 case 11:
41327 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41328 return [3 /*break*/, 17];
41329 case 12:
41330 _h = [{}];
41331 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41332 case 13:
41333 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41334 return [3 /*break*/, 17];
41335 case 14:
41336 _j = [{}];
41337 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41338 case 15:
41339 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41340 return [3 /*break*/, 17];
41341 case 16:
41342 parsedBody = parsedOutput.body;
41343 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41344 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41345 _l.label = 17;
41346 case 17:
41347 message = response.message || response.Message || errorCode;
41348 response.message = message;
41349 delete response.Message;
41350 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41351 }
41352 });
41353}); };
41354var deserializeAws_restJson1GetExportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41355 var contents, data;
41356 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41357 switch (_a.label) {
41358 case 0:
41359 if (output.statusCode !== 200 && output.statusCode >= 300) {
41360 return [2 /*return*/, deserializeAws_restJson1GetExportJobCommandError(output, context)];
41361 }
41362 contents = {
41363 $metadata: deserializeMetadata(output),
41364 ExportJobResponse: undefined,
41365 };
41366 return [4 /*yield*/, parseBody(output.body, context)];
41367 case 1:
41368 data = _a.sent();
41369 contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context);
41370 return [2 /*return*/, Promise.resolve(contents)];
41371 }
41372 });
41373}); };
41374var deserializeAws_restJson1GetExportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41375 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41376 var _k;
41377 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41378 switch (_l.label) {
41379 case 0:
41380 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41381 _k = {};
41382 return [4 /*yield*/, parseBody(output.body, context)];
41383 case 1:
41384 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41385 errorCode = "UnknownError";
41386 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41387 _b = errorCode;
41388 switch (_b) {
41389 case "BadRequestException": return [3 /*break*/, 2];
41390 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41391 case "ForbiddenException": return [3 /*break*/, 4];
41392 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41393 case "InternalServerErrorException": return [3 /*break*/, 6];
41394 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41395 case "MethodNotAllowedException": return [3 /*break*/, 8];
41396 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41397 case "NotFoundException": return [3 /*break*/, 10];
41398 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41399 case "PayloadTooLargeException": return [3 /*break*/, 12];
41400 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41401 case "TooManyRequestsException": return [3 /*break*/, 14];
41402 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41403 }
41404 return [3 /*break*/, 16];
41405 case 2:
41406 _c = [{}];
41407 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41408 case 3:
41409 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41410 return [3 /*break*/, 17];
41411 case 4:
41412 _d = [{}];
41413 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41414 case 5:
41415 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41416 return [3 /*break*/, 17];
41417 case 6:
41418 _e = [{}];
41419 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41420 case 7:
41421 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41422 return [3 /*break*/, 17];
41423 case 8:
41424 _f = [{}];
41425 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41426 case 9:
41427 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41428 return [3 /*break*/, 17];
41429 case 10:
41430 _g = [{}];
41431 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41432 case 11:
41433 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41434 return [3 /*break*/, 17];
41435 case 12:
41436 _h = [{}];
41437 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41438 case 13:
41439 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41440 return [3 /*break*/, 17];
41441 case 14:
41442 _j = [{}];
41443 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41444 case 15:
41445 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41446 return [3 /*break*/, 17];
41447 case 16:
41448 parsedBody = parsedOutput.body;
41449 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41450 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41451 _l.label = 17;
41452 case 17:
41453 message = response.message || response.Message || errorCode;
41454 response.message = message;
41455 delete response.Message;
41456 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41457 }
41458 });
41459}); };
41460var deserializeAws_restJson1GetExportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41461 var contents, data;
41462 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41463 switch (_a.label) {
41464 case 0:
41465 if (output.statusCode !== 200 && output.statusCode >= 300) {
41466 return [2 /*return*/, deserializeAws_restJson1GetExportJobsCommandError(output, context)];
41467 }
41468 contents = {
41469 $metadata: deserializeMetadata(output),
41470 ExportJobsResponse: undefined,
41471 };
41472 return [4 /*yield*/, parseBody(output.body, context)];
41473 case 1:
41474 data = _a.sent();
41475 contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context);
41476 return [2 /*return*/, Promise.resolve(contents)];
41477 }
41478 });
41479}); };
41480var deserializeAws_restJson1GetExportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41481 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41482 var _k;
41483 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41484 switch (_l.label) {
41485 case 0:
41486 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41487 _k = {};
41488 return [4 /*yield*/, parseBody(output.body, context)];
41489 case 1:
41490 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41491 errorCode = "UnknownError";
41492 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41493 _b = errorCode;
41494 switch (_b) {
41495 case "BadRequestException": return [3 /*break*/, 2];
41496 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41497 case "ForbiddenException": return [3 /*break*/, 4];
41498 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41499 case "InternalServerErrorException": return [3 /*break*/, 6];
41500 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41501 case "MethodNotAllowedException": return [3 /*break*/, 8];
41502 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41503 case "NotFoundException": return [3 /*break*/, 10];
41504 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41505 case "PayloadTooLargeException": return [3 /*break*/, 12];
41506 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41507 case "TooManyRequestsException": return [3 /*break*/, 14];
41508 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41509 }
41510 return [3 /*break*/, 16];
41511 case 2:
41512 _c = [{}];
41513 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41514 case 3:
41515 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41516 return [3 /*break*/, 17];
41517 case 4:
41518 _d = [{}];
41519 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41520 case 5:
41521 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41522 return [3 /*break*/, 17];
41523 case 6:
41524 _e = [{}];
41525 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41526 case 7:
41527 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41528 return [3 /*break*/, 17];
41529 case 8:
41530 _f = [{}];
41531 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41532 case 9:
41533 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41534 return [3 /*break*/, 17];
41535 case 10:
41536 _g = [{}];
41537 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41538 case 11:
41539 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41540 return [3 /*break*/, 17];
41541 case 12:
41542 _h = [{}];
41543 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41544 case 13:
41545 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41546 return [3 /*break*/, 17];
41547 case 14:
41548 _j = [{}];
41549 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41550 case 15:
41551 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41552 return [3 /*break*/, 17];
41553 case 16:
41554 parsedBody = parsedOutput.body;
41555 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41556 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41557 _l.label = 17;
41558 case 17:
41559 message = response.message || response.Message || errorCode;
41560 response.message = message;
41561 delete response.Message;
41562 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41563 }
41564 });
41565}); };
41566var deserializeAws_restJson1GetGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41567 var contents, data;
41568 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41569 switch (_a.label) {
41570 case 0:
41571 if (output.statusCode !== 200 && output.statusCode >= 300) {
41572 return [2 /*return*/, deserializeAws_restJson1GetGcmChannelCommandError(output, context)];
41573 }
41574 contents = {
41575 $metadata: deserializeMetadata(output),
41576 GCMChannelResponse: undefined,
41577 };
41578 return [4 /*yield*/, parseBody(output.body, context)];
41579 case 1:
41580 data = _a.sent();
41581 contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context);
41582 return [2 /*return*/, Promise.resolve(contents)];
41583 }
41584 });
41585}); };
41586var deserializeAws_restJson1GetGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41587 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41588 var _k;
41589 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41590 switch (_l.label) {
41591 case 0:
41592 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41593 _k = {};
41594 return [4 /*yield*/, parseBody(output.body, context)];
41595 case 1:
41596 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41597 errorCode = "UnknownError";
41598 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41599 _b = errorCode;
41600 switch (_b) {
41601 case "BadRequestException": return [3 /*break*/, 2];
41602 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41603 case "ForbiddenException": return [3 /*break*/, 4];
41604 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41605 case "InternalServerErrorException": return [3 /*break*/, 6];
41606 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41607 case "MethodNotAllowedException": return [3 /*break*/, 8];
41608 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41609 case "NotFoundException": return [3 /*break*/, 10];
41610 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41611 case "PayloadTooLargeException": return [3 /*break*/, 12];
41612 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41613 case "TooManyRequestsException": return [3 /*break*/, 14];
41614 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41615 }
41616 return [3 /*break*/, 16];
41617 case 2:
41618 _c = [{}];
41619 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41620 case 3:
41621 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41622 return [3 /*break*/, 17];
41623 case 4:
41624 _d = [{}];
41625 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41626 case 5:
41627 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41628 return [3 /*break*/, 17];
41629 case 6:
41630 _e = [{}];
41631 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41632 case 7:
41633 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41634 return [3 /*break*/, 17];
41635 case 8:
41636 _f = [{}];
41637 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41638 case 9:
41639 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41640 return [3 /*break*/, 17];
41641 case 10:
41642 _g = [{}];
41643 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41644 case 11:
41645 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41646 return [3 /*break*/, 17];
41647 case 12:
41648 _h = [{}];
41649 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41650 case 13:
41651 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41652 return [3 /*break*/, 17];
41653 case 14:
41654 _j = [{}];
41655 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41656 case 15:
41657 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41658 return [3 /*break*/, 17];
41659 case 16:
41660 parsedBody = parsedOutput.body;
41661 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41662 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41663 _l.label = 17;
41664 case 17:
41665 message = response.message || response.Message || errorCode;
41666 response.message = message;
41667 delete response.Message;
41668 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41669 }
41670 });
41671}); };
41672var deserializeAws_restJson1GetImportJobCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41673 var contents, data;
41674 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41675 switch (_a.label) {
41676 case 0:
41677 if (output.statusCode !== 200 && output.statusCode >= 300) {
41678 return [2 /*return*/, deserializeAws_restJson1GetImportJobCommandError(output, context)];
41679 }
41680 contents = {
41681 $metadata: deserializeMetadata(output),
41682 ImportJobResponse: undefined,
41683 };
41684 return [4 /*yield*/, parseBody(output.body, context)];
41685 case 1:
41686 data = _a.sent();
41687 contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context);
41688 return [2 /*return*/, Promise.resolve(contents)];
41689 }
41690 });
41691}); };
41692var deserializeAws_restJson1GetImportJobCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41693 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41694 var _k;
41695 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41696 switch (_l.label) {
41697 case 0:
41698 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41699 _k = {};
41700 return [4 /*yield*/, parseBody(output.body, context)];
41701 case 1:
41702 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41703 errorCode = "UnknownError";
41704 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41705 _b = errorCode;
41706 switch (_b) {
41707 case "BadRequestException": return [3 /*break*/, 2];
41708 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41709 case "ForbiddenException": return [3 /*break*/, 4];
41710 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41711 case "InternalServerErrorException": return [3 /*break*/, 6];
41712 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41713 case "MethodNotAllowedException": return [3 /*break*/, 8];
41714 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41715 case "NotFoundException": return [3 /*break*/, 10];
41716 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41717 case "PayloadTooLargeException": return [3 /*break*/, 12];
41718 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41719 case "TooManyRequestsException": return [3 /*break*/, 14];
41720 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41721 }
41722 return [3 /*break*/, 16];
41723 case 2:
41724 _c = [{}];
41725 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41726 case 3:
41727 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41728 return [3 /*break*/, 17];
41729 case 4:
41730 _d = [{}];
41731 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41732 case 5:
41733 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41734 return [3 /*break*/, 17];
41735 case 6:
41736 _e = [{}];
41737 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41738 case 7:
41739 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41740 return [3 /*break*/, 17];
41741 case 8:
41742 _f = [{}];
41743 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41744 case 9:
41745 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41746 return [3 /*break*/, 17];
41747 case 10:
41748 _g = [{}];
41749 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41750 case 11:
41751 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41752 return [3 /*break*/, 17];
41753 case 12:
41754 _h = [{}];
41755 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41756 case 13:
41757 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41758 return [3 /*break*/, 17];
41759 case 14:
41760 _j = [{}];
41761 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41762 case 15:
41763 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41764 return [3 /*break*/, 17];
41765 case 16:
41766 parsedBody = parsedOutput.body;
41767 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41768 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41769 _l.label = 17;
41770 case 17:
41771 message = response.message || response.Message || errorCode;
41772 response.message = message;
41773 delete response.Message;
41774 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41775 }
41776 });
41777}); };
41778var deserializeAws_restJson1GetImportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41779 var contents, data;
41780 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41781 switch (_a.label) {
41782 case 0:
41783 if (output.statusCode !== 200 && output.statusCode >= 300) {
41784 return [2 /*return*/, deserializeAws_restJson1GetImportJobsCommandError(output, context)];
41785 }
41786 contents = {
41787 $metadata: deserializeMetadata(output),
41788 ImportJobsResponse: undefined,
41789 };
41790 return [4 /*yield*/, parseBody(output.body, context)];
41791 case 1:
41792 data = _a.sent();
41793 contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context);
41794 return [2 /*return*/, Promise.resolve(contents)];
41795 }
41796 });
41797}); };
41798var deserializeAws_restJson1GetImportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41799 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41800 var _k;
41801 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41802 switch (_l.label) {
41803 case 0:
41804 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41805 _k = {};
41806 return [4 /*yield*/, parseBody(output.body, context)];
41807 case 1:
41808 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41809 errorCode = "UnknownError";
41810 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41811 _b = errorCode;
41812 switch (_b) {
41813 case "BadRequestException": return [3 /*break*/, 2];
41814 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41815 case "ForbiddenException": return [3 /*break*/, 4];
41816 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41817 case "InternalServerErrorException": return [3 /*break*/, 6];
41818 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41819 case "MethodNotAllowedException": return [3 /*break*/, 8];
41820 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41821 case "NotFoundException": return [3 /*break*/, 10];
41822 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41823 case "PayloadTooLargeException": return [3 /*break*/, 12];
41824 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41825 case "TooManyRequestsException": return [3 /*break*/, 14];
41826 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41827 }
41828 return [3 /*break*/, 16];
41829 case 2:
41830 _c = [{}];
41831 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41832 case 3:
41833 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41834 return [3 /*break*/, 17];
41835 case 4:
41836 _d = [{}];
41837 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41838 case 5:
41839 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41840 return [3 /*break*/, 17];
41841 case 6:
41842 _e = [{}];
41843 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41844 case 7:
41845 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41846 return [3 /*break*/, 17];
41847 case 8:
41848 _f = [{}];
41849 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41850 case 9:
41851 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41852 return [3 /*break*/, 17];
41853 case 10:
41854 _g = [{}];
41855 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41856 case 11:
41857 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41858 return [3 /*break*/, 17];
41859 case 12:
41860 _h = [{}];
41861 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41862 case 13:
41863 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41864 return [3 /*break*/, 17];
41865 case 14:
41866 _j = [{}];
41867 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41868 case 15:
41869 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41870 return [3 /*break*/, 17];
41871 case 16:
41872 parsedBody = parsedOutput.body;
41873 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41874 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41875 _l.label = 17;
41876 case 17:
41877 message = response.message || response.Message || errorCode;
41878 response.message = message;
41879 delete response.Message;
41880 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41881 }
41882 });
41883}); };
41884var deserializeAws_restJson1GetJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41885 var contents, data;
41886 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41887 switch (_a.label) {
41888 case 0:
41889 if (output.statusCode !== 200 && output.statusCode >= 300) {
41890 return [2 /*return*/, deserializeAws_restJson1GetJourneyCommandError(output, context)];
41891 }
41892 contents = {
41893 $metadata: deserializeMetadata(output),
41894 JourneyResponse: undefined,
41895 };
41896 return [4 /*yield*/, parseBody(output.body, context)];
41897 case 1:
41898 data = _a.sent();
41899 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
41900 return [2 /*return*/, Promise.resolve(contents)];
41901 }
41902 });
41903}); };
41904var deserializeAws_restJson1GetJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41905 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
41906 var _k;
41907 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
41908 switch (_l.label) {
41909 case 0:
41910 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
41911 _k = {};
41912 return [4 /*yield*/, parseBody(output.body, context)];
41913 case 1:
41914 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
41915 errorCode = "UnknownError";
41916 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
41917 _b = errorCode;
41918 switch (_b) {
41919 case "BadRequestException": return [3 /*break*/, 2];
41920 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
41921 case "ForbiddenException": return [3 /*break*/, 4];
41922 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
41923 case "InternalServerErrorException": return [3 /*break*/, 6];
41924 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
41925 case "MethodNotAllowedException": return [3 /*break*/, 8];
41926 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
41927 case "NotFoundException": return [3 /*break*/, 10];
41928 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
41929 case "PayloadTooLargeException": return [3 /*break*/, 12];
41930 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
41931 case "TooManyRequestsException": return [3 /*break*/, 14];
41932 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
41933 }
41934 return [3 /*break*/, 16];
41935 case 2:
41936 _c = [{}];
41937 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
41938 case 3:
41939 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41940 return [3 /*break*/, 17];
41941 case 4:
41942 _d = [{}];
41943 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
41944 case 5:
41945 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41946 return [3 /*break*/, 17];
41947 case 6:
41948 _e = [{}];
41949 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
41950 case 7:
41951 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41952 return [3 /*break*/, 17];
41953 case 8:
41954 _f = [{}];
41955 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
41956 case 9:
41957 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41958 return [3 /*break*/, 17];
41959 case 10:
41960 _g = [{}];
41961 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
41962 case 11:
41963 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41964 return [3 /*break*/, 17];
41965 case 12:
41966 _h = [{}];
41967 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
41968 case 13:
41969 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41970 return [3 /*break*/, 17];
41971 case 14:
41972 _j = [{}];
41973 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
41974 case 15:
41975 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
41976 return [3 /*break*/, 17];
41977 case 16:
41978 parsedBody = parsedOutput.body;
41979 errorCode = parsedBody.code || parsedBody.Code || errorCode;
41980 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
41981 _l.label = 17;
41982 case 17:
41983 message = response.message || response.Message || errorCode;
41984 response.message = message;
41985 delete response.Message;
41986 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
41987 }
41988 });
41989}); };
41990var deserializeAws_restJson1GetJourneyDateRangeKpiCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
41991 var contents, data;
41992 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
41993 switch (_a.label) {
41994 case 0:
41995 if (output.statusCode !== 200 && output.statusCode >= 300) {
41996 return [2 /*return*/, deserializeAws_restJson1GetJourneyDateRangeKpiCommandError(output, context)];
41997 }
41998 contents = {
41999 $metadata: deserializeMetadata(output),
42000 JourneyDateRangeKpiResponse: undefined,
42001 };
42002 return [4 /*yield*/, parseBody(output.body, context)];
42003 case 1:
42004 data = _a.sent();
42005 contents.JourneyDateRangeKpiResponse = deserializeAws_restJson1JourneyDateRangeKpiResponse(data, context);
42006 return [2 /*return*/, Promise.resolve(contents)];
42007 }
42008 });
42009}); };
42010var deserializeAws_restJson1GetJourneyDateRangeKpiCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42011 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42012 var _k;
42013 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42014 switch (_l.label) {
42015 case 0:
42016 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42017 _k = {};
42018 return [4 /*yield*/, parseBody(output.body, context)];
42019 case 1:
42020 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42021 errorCode = "UnknownError";
42022 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42023 _b = errorCode;
42024 switch (_b) {
42025 case "BadRequestException": return [3 /*break*/, 2];
42026 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42027 case "ForbiddenException": return [3 /*break*/, 4];
42028 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42029 case "InternalServerErrorException": return [3 /*break*/, 6];
42030 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42031 case "MethodNotAllowedException": return [3 /*break*/, 8];
42032 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42033 case "NotFoundException": return [3 /*break*/, 10];
42034 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42035 case "PayloadTooLargeException": return [3 /*break*/, 12];
42036 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42037 case "TooManyRequestsException": return [3 /*break*/, 14];
42038 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42039 }
42040 return [3 /*break*/, 16];
42041 case 2:
42042 _c = [{}];
42043 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42044 case 3:
42045 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42046 return [3 /*break*/, 17];
42047 case 4:
42048 _d = [{}];
42049 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42050 case 5:
42051 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42052 return [3 /*break*/, 17];
42053 case 6:
42054 _e = [{}];
42055 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42056 case 7:
42057 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42058 return [3 /*break*/, 17];
42059 case 8:
42060 _f = [{}];
42061 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42062 case 9:
42063 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42064 return [3 /*break*/, 17];
42065 case 10:
42066 _g = [{}];
42067 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42068 case 11:
42069 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42070 return [3 /*break*/, 17];
42071 case 12:
42072 _h = [{}];
42073 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42074 case 13:
42075 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42076 return [3 /*break*/, 17];
42077 case 14:
42078 _j = [{}];
42079 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42080 case 15:
42081 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42082 return [3 /*break*/, 17];
42083 case 16:
42084 parsedBody = parsedOutput.body;
42085 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42086 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42087 _l.label = 17;
42088 case 17:
42089 message = response.message || response.Message || errorCode;
42090 response.message = message;
42091 delete response.Message;
42092 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42093 }
42094 });
42095}); };
42096var deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42097 var contents, data;
42098 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42099 switch (_a.label) {
42100 case 0:
42101 if (output.statusCode !== 200 && output.statusCode >= 300) {
42102 return [2 /*return*/, deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError(output, context)];
42103 }
42104 contents = {
42105 $metadata: deserializeMetadata(output),
42106 JourneyExecutionActivityMetricsResponse: undefined,
42107 };
42108 return [4 /*yield*/, parseBody(output.body, context)];
42109 case 1:
42110 data = _a.sent();
42111 contents.JourneyExecutionActivityMetricsResponse = deserializeAws_restJson1JourneyExecutionActivityMetricsResponse(data, context);
42112 return [2 /*return*/, Promise.resolve(contents)];
42113 }
42114 });
42115}); };
42116var deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42117 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42118 var _k;
42119 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42120 switch (_l.label) {
42121 case 0:
42122 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42123 _k = {};
42124 return [4 /*yield*/, parseBody(output.body, context)];
42125 case 1:
42126 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42127 errorCode = "UnknownError";
42128 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42129 _b = errorCode;
42130 switch (_b) {
42131 case "BadRequestException": return [3 /*break*/, 2];
42132 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42133 case "ForbiddenException": return [3 /*break*/, 4];
42134 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42135 case "InternalServerErrorException": return [3 /*break*/, 6];
42136 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42137 case "MethodNotAllowedException": return [3 /*break*/, 8];
42138 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42139 case "NotFoundException": return [3 /*break*/, 10];
42140 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42141 case "PayloadTooLargeException": return [3 /*break*/, 12];
42142 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42143 case "TooManyRequestsException": return [3 /*break*/, 14];
42144 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42145 }
42146 return [3 /*break*/, 16];
42147 case 2:
42148 _c = [{}];
42149 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42150 case 3:
42151 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42152 return [3 /*break*/, 17];
42153 case 4:
42154 _d = [{}];
42155 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42156 case 5:
42157 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42158 return [3 /*break*/, 17];
42159 case 6:
42160 _e = [{}];
42161 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42162 case 7:
42163 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42164 return [3 /*break*/, 17];
42165 case 8:
42166 _f = [{}];
42167 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42168 case 9:
42169 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42170 return [3 /*break*/, 17];
42171 case 10:
42172 _g = [{}];
42173 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42174 case 11:
42175 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42176 return [3 /*break*/, 17];
42177 case 12:
42178 _h = [{}];
42179 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42180 case 13:
42181 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42182 return [3 /*break*/, 17];
42183 case 14:
42184 _j = [{}];
42185 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42186 case 15:
42187 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42188 return [3 /*break*/, 17];
42189 case 16:
42190 parsedBody = parsedOutput.body;
42191 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42192 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42193 _l.label = 17;
42194 case 17:
42195 message = response.message || response.Message || errorCode;
42196 response.message = message;
42197 delete response.Message;
42198 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42199 }
42200 });
42201}); };
42202var deserializeAws_restJson1GetJourneyExecutionMetricsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42203 var contents, data;
42204 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42205 switch (_a.label) {
42206 case 0:
42207 if (output.statusCode !== 200 && output.statusCode >= 300) {
42208 return [2 /*return*/, deserializeAws_restJson1GetJourneyExecutionMetricsCommandError(output, context)];
42209 }
42210 contents = {
42211 $metadata: deserializeMetadata(output),
42212 JourneyExecutionMetricsResponse: undefined,
42213 };
42214 return [4 /*yield*/, parseBody(output.body, context)];
42215 case 1:
42216 data = _a.sent();
42217 contents.JourneyExecutionMetricsResponse = deserializeAws_restJson1JourneyExecutionMetricsResponse(data, context);
42218 return [2 /*return*/, Promise.resolve(contents)];
42219 }
42220 });
42221}); };
42222var deserializeAws_restJson1GetJourneyExecutionMetricsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42223 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42224 var _k;
42225 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42226 switch (_l.label) {
42227 case 0:
42228 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42229 _k = {};
42230 return [4 /*yield*/, parseBody(output.body, context)];
42231 case 1:
42232 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42233 errorCode = "UnknownError";
42234 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42235 _b = errorCode;
42236 switch (_b) {
42237 case "BadRequestException": return [3 /*break*/, 2];
42238 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42239 case "ForbiddenException": return [3 /*break*/, 4];
42240 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42241 case "InternalServerErrorException": return [3 /*break*/, 6];
42242 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42243 case "MethodNotAllowedException": return [3 /*break*/, 8];
42244 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42245 case "NotFoundException": return [3 /*break*/, 10];
42246 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42247 case "PayloadTooLargeException": return [3 /*break*/, 12];
42248 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42249 case "TooManyRequestsException": return [3 /*break*/, 14];
42250 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42251 }
42252 return [3 /*break*/, 16];
42253 case 2:
42254 _c = [{}];
42255 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42256 case 3:
42257 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42258 return [3 /*break*/, 17];
42259 case 4:
42260 _d = [{}];
42261 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42262 case 5:
42263 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42264 return [3 /*break*/, 17];
42265 case 6:
42266 _e = [{}];
42267 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42268 case 7:
42269 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42270 return [3 /*break*/, 17];
42271 case 8:
42272 _f = [{}];
42273 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42274 case 9:
42275 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42276 return [3 /*break*/, 17];
42277 case 10:
42278 _g = [{}];
42279 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42280 case 11:
42281 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42282 return [3 /*break*/, 17];
42283 case 12:
42284 _h = [{}];
42285 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42286 case 13:
42287 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42288 return [3 /*break*/, 17];
42289 case 14:
42290 _j = [{}];
42291 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42292 case 15:
42293 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42294 return [3 /*break*/, 17];
42295 case 16:
42296 parsedBody = parsedOutput.body;
42297 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42298 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42299 _l.label = 17;
42300 case 17:
42301 message = response.message || response.Message || errorCode;
42302 response.message = message;
42303 delete response.Message;
42304 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42305 }
42306 });
42307}); };
42308var deserializeAws_restJson1GetPushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42309 var contents, data;
42310 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42311 switch (_a.label) {
42312 case 0:
42313 if (output.statusCode !== 200 && output.statusCode >= 300) {
42314 return [2 /*return*/, deserializeAws_restJson1GetPushTemplateCommandError(output, context)];
42315 }
42316 contents = {
42317 $metadata: deserializeMetadata(output),
42318 PushNotificationTemplateResponse: undefined,
42319 };
42320 return [4 /*yield*/, parseBody(output.body, context)];
42321 case 1:
42322 data = _a.sent();
42323 contents.PushNotificationTemplateResponse = deserializeAws_restJson1PushNotificationTemplateResponse(data, context);
42324 return [2 /*return*/, Promise.resolve(contents)];
42325 }
42326 });
42327}); };
42328var deserializeAws_restJson1GetPushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42329 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42330 var _k;
42331 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42332 switch (_l.label) {
42333 case 0:
42334 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42335 _k = {};
42336 return [4 /*yield*/, parseBody(output.body, context)];
42337 case 1:
42338 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42339 errorCode = "UnknownError";
42340 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42341 _b = errorCode;
42342 switch (_b) {
42343 case "BadRequestException": return [3 /*break*/, 2];
42344 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42345 case "ForbiddenException": return [3 /*break*/, 4];
42346 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42347 case "InternalServerErrorException": return [3 /*break*/, 6];
42348 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42349 case "MethodNotAllowedException": return [3 /*break*/, 8];
42350 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42351 case "NotFoundException": return [3 /*break*/, 10];
42352 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42353 case "PayloadTooLargeException": return [3 /*break*/, 12];
42354 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42355 case "TooManyRequestsException": return [3 /*break*/, 14];
42356 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42357 }
42358 return [3 /*break*/, 16];
42359 case 2:
42360 _c = [{}];
42361 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42362 case 3:
42363 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42364 return [3 /*break*/, 17];
42365 case 4:
42366 _d = [{}];
42367 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42368 case 5:
42369 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42370 return [3 /*break*/, 17];
42371 case 6:
42372 _e = [{}];
42373 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42374 case 7:
42375 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42376 return [3 /*break*/, 17];
42377 case 8:
42378 _f = [{}];
42379 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42380 case 9:
42381 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42382 return [3 /*break*/, 17];
42383 case 10:
42384 _g = [{}];
42385 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42386 case 11:
42387 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42388 return [3 /*break*/, 17];
42389 case 12:
42390 _h = [{}];
42391 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42392 case 13:
42393 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42394 return [3 /*break*/, 17];
42395 case 14:
42396 _j = [{}];
42397 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42398 case 15:
42399 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42400 return [3 /*break*/, 17];
42401 case 16:
42402 parsedBody = parsedOutput.body;
42403 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42404 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42405 _l.label = 17;
42406 case 17:
42407 message = response.message || response.Message || errorCode;
42408 response.message = message;
42409 delete response.Message;
42410 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42411 }
42412 });
42413}); };
42414var deserializeAws_restJson1GetRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42415 var contents, data;
42416 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42417 switch (_a.label) {
42418 case 0:
42419 if (output.statusCode !== 200 && output.statusCode >= 300) {
42420 return [2 /*return*/, deserializeAws_restJson1GetRecommenderConfigurationCommandError(output, context)];
42421 }
42422 contents = {
42423 $metadata: deserializeMetadata(output),
42424 RecommenderConfigurationResponse: undefined,
42425 };
42426 return [4 /*yield*/, parseBody(output.body, context)];
42427 case 1:
42428 data = _a.sent();
42429 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
42430 return [2 /*return*/, Promise.resolve(contents)];
42431 }
42432 });
42433}); };
42434var deserializeAws_restJson1GetRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42435 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42436 var _k;
42437 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42438 switch (_l.label) {
42439 case 0:
42440 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42441 _k = {};
42442 return [4 /*yield*/, parseBody(output.body, context)];
42443 case 1:
42444 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42445 errorCode = "UnknownError";
42446 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42447 _b = errorCode;
42448 switch (_b) {
42449 case "BadRequestException": return [3 /*break*/, 2];
42450 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42451 case "ForbiddenException": return [3 /*break*/, 4];
42452 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42453 case "InternalServerErrorException": return [3 /*break*/, 6];
42454 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42455 case "MethodNotAllowedException": return [3 /*break*/, 8];
42456 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42457 case "NotFoundException": return [3 /*break*/, 10];
42458 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42459 case "PayloadTooLargeException": return [3 /*break*/, 12];
42460 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42461 case "TooManyRequestsException": return [3 /*break*/, 14];
42462 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42463 }
42464 return [3 /*break*/, 16];
42465 case 2:
42466 _c = [{}];
42467 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42468 case 3:
42469 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42470 return [3 /*break*/, 17];
42471 case 4:
42472 _d = [{}];
42473 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42474 case 5:
42475 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42476 return [3 /*break*/, 17];
42477 case 6:
42478 _e = [{}];
42479 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42480 case 7:
42481 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42482 return [3 /*break*/, 17];
42483 case 8:
42484 _f = [{}];
42485 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42486 case 9:
42487 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42488 return [3 /*break*/, 17];
42489 case 10:
42490 _g = [{}];
42491 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42492 case 11:
42493 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42494 return [3 /*break*/, 17];
42495 case 12:
42496 _h = [{}];
42497 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42498 case 13:
42499 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42500 return [3 /*break*/, 17];
42501 case 14:
42502 _j = [{}];
42503 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42504 case 15:
42505 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42506 return [3 /*break*/, 17];
42507 case 16:
42508 parsedBody = parsedOutput.body;
42509 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42510 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42511 _l.label = 17;
42512 case 17:
42513 message = response.message || response.Message || errorCode;
42514 response.message = message;
42515 delete response.Message;
42516 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42517 }
42518 });
42519}); };
42520var deserializeAws_restJson1GetRecommenderConfigurationsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42521 var contents, data;
42522 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42523 switch (_a.label) {
42524 case 0:
42525 if (output.statusCode !== 200 && output.statusCode >= 300) {
42526 return [2 /*return*/, deserializeAws_restJson1GetRecommenderConfigurationsCommandError(output, context)];
42527 }
42528 contents = {
42529 $metadata: deserializeMetadata(output),
42530 ListRecommenderConfigurationsResponse: undefined,
42531 };
42532 return [4 /*yield*/, parseBody(output.body, context)];
42533 case 1:
42534 data = _a.sent();
42535 contents.ListRecommenderConfigurationsResponse = deserializeAws_restJson1ListRecommenderConfigurationsResponse(data, context);
42536 return [2 /*return*/, Promise.resolve(contents)];
42537 }
42538 });
42539}); };
42540var deserializeAws_restJson1GetRecommenderConfigurationsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42541 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42542 var _k;
42543 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42544 switch (_l.label) {
42545 case 0:
42546 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42547 _k = {};
42548 return [4 /*yield*/, parseBody(output.body, context)];
42549 case 1:
42550 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42551 errorCode = "UnknownError";
42552 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42553 _b = errorCode;
42554 switch (_b) {
42555 case "BadRequestException": return [3 /*break*/, 2];
42556 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42557 case "ForbiddenException": return [3 /*break*/, 4];
42558 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42559 case "InternalServerErrorException": return [3 /*break*/, 6];
42560 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42561 case "MethodNotAllowedException": return [3 /*break*/, 8];
42562 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42563 case "NotFoundException": return [3 /*break*/, 10];
42564 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42565 case "PayloadTooLargeException": return [3 /*break*/, 12];
42566 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42567 case "TooManyRequestsException": return [3 /*break*/, 14];
42568 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42569 }
42570 return [3 /*break*/, 16];
42571 case 2:
42572 _c = [{}];
42573 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42574 case 3:
42575 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42576 return [3 /*break*/, 17];
42577 case 4:
42578 _d = [{}];
42579 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42580 case 5:
42581 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42582 return [3 /*break*/, 17];
42583 case 6:
42584 _e = [{}];
42585 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42586 case 7:
42587 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42588 return [3 /*break*/, 17];
42589 case 8:
42590 _f = [{}];
42591 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42592 case 9:
42593 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42594 return [3 /*break*/, 17];
42595 case 10:
42596 _g = [{}];
42597 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42598 case 11:
42599 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42600 return [3 /*break*/, 17];
42601 case 12:
42602 _h = [{}];
42603 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42604 case 13:
42605 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42606 return [3 /*break*/, 17];
42607 case 14:
42608 _j = [{}];
42609 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42610 case 15:
42611 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42612 return [3 /*break*/, 17];
42613 case 16:
42614 parsedBody = parsedOutput.body;
42615 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42616 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42617 _l.label = 17;
42618 case 17:
42619 message = response.message || response.Message || errorCode;
42620 response.message = message;
42621 delete response.Message;
42622 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42623 }
42624 });
42625}); };
42626var deserializeAws_restJson1GetSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42627 var contents, data;
42628 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42629 switch (_a.label) {
42630 case 0:
42631 if (output.statusCode !== 200 && output.statusCode >= 300) {
42632 return [2 /*return*/, deserializeAws_restJson1GetSegmentCommandError(output, context)];
42633 }
42634 contents = {
42635 $metadata: deserializeMetadata(output),
42636 SegmentResponse: undefined,
42637 };
42638 return [4 /*yield*/, parseBody(output.body, context)];
42639 case 1:
42640 data = _a.sent();
42641 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
42642 return [2 /*return*/, Promise.resolve(contents)];
42643 }
42644 });
42645}); };
42646var deserializeAws_restJson1GetSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42647 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42648 var _k;
42649 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42650 switch (_l.label) {
42651 case 0:
42652 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42653 _k = {};
42654 return [4 /*yield*/, parseBody(output.body, context)];
42655 case 1:
42656 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42657 errorCode = "UnknownError";
42658 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42659 _b = errorCode;
42660 switch (_b) {
42661 case "BadRequestException": return [3 /*break*/, 2];
42662 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42663 case "ForbiddenException": return [3 /*break*/, 4];
42664 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42665 case "InternalServerErrorException": return [3 /*break*/, 6];
42666 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42667 case "MethodNotAllowedException": return [3 /*break*/, 8];
42668 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42669 case "NotFoundException": return [3 /*break*/, 10];
42670 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42671 case "PayloadTooLargeException": return [3 /*break*/, 12];
42672 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42673 case "TooManyRequestsException": return [3 /*break*/, 14];
42674 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42675 }
42676 return [3 /*break*/, 16];
42677 case 2:
42678 _c = [{}];
42679 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42680 case 3:
42681 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42682 return [3 /*break*/, 17];
42683 case 4:
42684 _d = [{}];
42685 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42686 case 5:
42687 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42688 return [3 /*break*/, 17];
42689 case 6:
42690 _e = [{}];
42691 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42692 case 7:
42693 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42694 return [3 /*break*/, 17];
42695 case 8:
42696 _f = [{}];
42697 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42698 case 9:
42699 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42700 return [3 /*break*/, 17];
42701 case 10:
42702 _g = [{}];
42703 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42704 case 11:
42705 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42706 return [3 /*break*/, 17];
42707 case 12:
42708 _h = [{}];
42709 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42710 case 13:
42711 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42712 return [3 /*break*/, 17];
42713 case 14:
42714 _j = [{}];
42715 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42716 case 15:
42717 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42718 return [3 /*break*/, 17];
42719 case 16:
42720 parsedBody = parsedOutput.body;
42721 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42722 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42723 _l.label = 17;
42724 case 17:
42725 message = response.message || response.Message || errorCode;
42726 response.message = message;
42727 delete response.Message;
42728 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42729 }
42730 });
42731}); };
42732var deserializeAws_restJson1GetSegmentExportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42733 var contents, data;
42734 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42735 switch (_a.label) {
42736 case 0:
42737 if (output.statusCode !== 200 && output.statusCode >= 300) {
42738 return [2 /*return*/, deserializeAws_restJson1GetSegmentExportJobsCommandError(output, context)];
42739 }
42740 contents = {
42741 $metadata: deserializeMetadata(output),
42742 ExportJobsResponse: undefined,
42743 };
42744 return [4 /*yield*/, parseBody(output.body, context)];
42745 case 1:
42746 data = _a.sent();
42747 contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context);
42748 return [2 /*return*/, Promise.resolve(contents)];
42749 }
42750 });
42751}); };
42752var deserializeAws_restJson1GetSegmentExportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42753 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42754 var _k;
42755 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42756 switch (_l.label) {
42757 case 0:
42758 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42759 _k = {};
42760 return [4 /*yield*/, parseBody(output.body, context)];
42761 case 1:
42762 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42763 errorCode = "UnknownError";
42764 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42765 _b = errorCode;
42766 switch (_b) {
42767 case "BadRequestException": return [3 /*break*/, 2];
42768 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42769 case "ForbiddenException": return [3 /*break*/, 4];
42770 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42771 case "InternalServerErrorException": return [3 /*break*/, 6];
42772 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42773 case "MethodNotAllowedException": return [3 /*break*/, 8];
42774 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42775 case "NotFoundException": return [3 /*break*/, 10];
42776 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42777 case "PayloadTooLargeException": return [3 /*break*/, 12];
42778 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42779 case "TooManyRequestsException": return [3 /*break*/, 14];
42780 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42781 }
42782 return [3 /*break*/, 16];
42783 case 2:
42784 _c = [{}];
42785 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42786 case 3:
42787 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42788 return [3 /*break*/, 17];
42789 case 4:
42790 _d = [{}];
42791 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42792 case 5:
42793 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42794 return [3 /*break*/, 17];
42795 case 6:
42796 _e = [{}];
42797 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42798 case 7:
42799 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42800 return [3 /*break*/, 17];
42801 case 8:
42802 _f = [{}];
42803 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42804 case 9:
42805 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42806 return [3 /*break*/, 17];
42807 case 10:
42808 _g = [{}];
42809 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42810 case 11:
42811 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42812 return [3 /*break*/, 17];
42813 case 12:
42814 _h = [{}];
42815 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42816 case 13:
42817 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42818 return [3 /*break*/, 17];
42819 case 14:
42820 _j = [{}];
42821 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42822 case 15:
42823 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42824 return [3 /*break*/, 17];
42825 case 16:
42826 parsedBody = parsedOutput.body;
42827 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42828 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42829 _l.label = 17;
42830 case 17:
42831 message = response.message || response.Message || errorCode;
42832 response.message = message;
42833 delete response.Message;
42834 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42835 }
42836 });
42837}); };
42838var deserializeAws_restJson1GetSegmentImportJobsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42839 var contents, data;
42840 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42841 switch (_a.label) {
42842 case 0:
42843 if (output.statusCode !== 200 && output.statusCode >= 300) {
42844 return [2 /*return*/, deserializeAws_restJson1GetSegmentImportJobsCommandError(output, context)];
42845 }
42846 contents = {
42847 $metadata: deserializeMetadata(output),
42848 ImportJobsResponse: undefined,
42849 };
42850 return [4 /*yield*/, parseBody(output.body, context)];
42851 case 1:
42852 data = _a.sent();
42853 contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context);
42854 return [2 /*return*/, Promise.resolve(contents)];
42855 }
42856 });
42857}); };
42858var deserializeAws_restJson1GetSegmentImportJobsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42859 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42860 var _k;
42861 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42862 switch (_l.label) {
42863 case 0:
42864 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42865 _k = {};
42866 return [4 /*yield*/, parseBody(output.body, context)];
42867 case 1:
42868 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42869 errorCode = "UnknownError";
42870 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42871 _b = errorCode;
42872 switch (_b) {
42873 case "BadRequestException": return [3 /*break*/, 2];
42874 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42875 case "ForbiddenException": return [3 /*break*/, 4];
42876 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42877 case "InternalServerErrorException": return [3 /*break*/, 6];
42878 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42879 case "MethodNotAllowedException": return [3 /*break*/, 8];
42880 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42881 case "NotFoundException": return [3 /*break*/, 10];
42882 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42883 case "PayloadTooLargeException": return [3 /*break*/, 12];
42884 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42885 case "TooManyRequestsException": return [3 /*break*/, 14];
42886 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42887 }
42888 return [3 /*break*/, 16];
42889 case 2:
42890 _c = [{}];
42891 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42892 case 3:
42893 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42894 return [3 /*break*/, 17];
42895 case 4:
42896 _d = [{}];
42897 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
42898 case 5:
42899 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42900 return [3 /*break*/, 17];
42901 case 6:
42902 _e = [{}];
42903 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
42904 case 7:
42905 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42906 return [3 /*break*/, 17];
42907 case 8:
42908 _f = [{}];
42909 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
42910 case 9:
42911 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42912 return [3 /*break*/, 17];
42913 case 10:
42914 _g = [{}];
42915 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
42916 case 11:
42917 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42918 return [3 /*break*/, 17];
42919 case 12:
42920 _h = [{}];
42921 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
42922 case 13:
42923 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42924 return [3 /*break*/, 17];
42925 case 14:
42926 _j = [{}];
42927 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
42928 case 15:
42929 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
42930 return [3 /*break*/, 17];
42931 case 16:
42932 parsedBody = parsedOutput.body;
42933 errorCode = parsedBody.code || parsedBody.Code || errorCode;
42934 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
42935 _l.label = 17;
42936 case 17:
42937 message = response.message || response.Message || errorCode;
42938 response.message = message;
42939 delete response.Message;
42940 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
42941 }
42942 });
42943}); };
42944var deserializeAws_restJson1GetSegmentsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42945 var contents, data;
42946 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
42947 switch (_a.label) {
42948 case 0:
42949 if (output.statusCode !== 200 && output.statusCode >= 300) {
42950 return [2 /*return*/, deserializeAws_restJson1GetSegmentsCommandError(output, context)];
42951 }
42952 contents = {
42953 $metadata: deserializeMetadata(output),
42954 SegmentsResponse: undefined,
42955 };
42956 return [4 /*yield*/, parseBody(output.body, context)];
42957 case 1:
42958 data = _a.sent();
42959 contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context);
42960 return [2 /*return*/, Promise.resolve(contents)];
42961 }
42962 });
42963}); };
42964var deserializeAws_restJson1GetSegmentsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
42965 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
42966 var _k;
42967 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
42968 switch (_l.label) {
42969 case 0:
42970 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
42971 _k = {};
42972 return [4 /*yield*/, parseBody(output.body, context)];
42973 case 1:
42974 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
42975 errorCode = "UnknownError";
42976 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
42977 _b = errorCode;
42978 switch (_b) {
42979 case "BadRequestException": return [3 /*break*/, 2];
42980 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
42981 case "ForbiddenException": return [3 /*break*/, 4];
42982 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
42983 case "InternalServerErrorException": return [3 /*break*/, 6];
42984 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
42985 case "MethodNotAllowedException": return [3 /*break*/, 8];
42986 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
42987 case "NotFoundException": return [3 /*break*/, 10];
42988 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
42989 case "PayloadTooLargeException": return [3 /*break*/, 12];
42990 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
42991 case "TooManyRequestsException": return [3 /*break*/, 14];
42992 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
42993 }
42994 return [3 /*break*/, 16];
42995 case 2:
42996 _c = [{}];
42997 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
42998 case 3:
42999 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43000 return [3 /*break*/, 17];
43001 case 4:
43002 _d = [{}];
43003 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43004 case 5:
43005 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43006 return [3 /*break*/, 17];
43007 case 6:
43008 _e = [{}];
43009 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43010 case 7:
43011 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43012 return [3 /*break*/, 17];
43013 case 8:
43014 _f = [{}];
43015 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43016 case 9:
43017 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43018 return [3 /*break*/, 17];
43019 case 10:
43020 _g = [{}];
43021 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43022 case 11:
43023 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43024 return [3 /*break*/, 17];
43025 case 12:
43026 _h = [{}];
43027 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43028 case 13:
43029 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43030 return [3 /*break*/, 17];
43031 case 14:
43032 _j = [{}];
43033 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43034 case 15:
43035 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43036 return [3 /*break*/, 17];
43037 case 16:
43038 parsedBody = parsedOutput.body;
43039 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43040 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43041 _l.label = 17;
43042 case 17:
43043 message = response.message || response.Message || errorCode;
43044 response.message = message;
43045 delete response.Message;
43046 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43047 }
43048 });
43049}); };
43050var deserializeAws_restJson1GetSegmentVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43051 var contents, data;
43052 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43053 switch (_a.label) {
43054 case 0:
43055 if (output.statusCode !== 200 && output.statusCode >= 300) {
43056 return [2 /*return*/, deserializeAws_restJson1GetSegmentVersionCommandError(output, context)];
43057 }
43058 contents = {
43059 $metadata: deserializeMetadata(output),
43060 SegmentResponse: undefined,
43061 };
43062 return [4 /*yield*/, parseBody(output.body, context)];
43063 case 1:
43064 data = _a.sent();
43065 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
43066 return [2 /*return*/, Promise.resolve(contents)];
43067 }
43068 });
43069}); };
43070var deserializeAws_restJson1GetSegmentVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43071 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43072 var _k;
43073 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43074 switch (_l.label) {
43075 case 0:
43076 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43077 _k = {};
43078 return [4 /*yield*/, parseBody(output.body, context)];
43079 case 1:
43080 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43081 errorCode = "UnknownError";
43082 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43083 _b = errorCode;
43084 switch (_b) {
43085 case "BadRequestException": return [3 /*break*/, 2];
43086 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43087 case "ForbiddenException": return [3 /*break*/, 4];
43088 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43089 case "InternalServerErrorException": return [3 /*break*/, 6];
43090 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43091 case "MethodNotAllowedException": return [3 /*break*/, 8];
43092 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43093 case "NotFoundException": return [3 /*break*/, 10];
43094 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43095 case "PayloadTooLargeException": return [3 /*break*/, 12];
43096 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43097 case "TooManyRequestsException": return [3 /*break*/, 14];
43098 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43099 }
43100 return [3 /*break*/, 16];
43101 case 2:
43102 _c = [{}];
43103 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43104 case 3:
43105 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43106 return [3 /*break*/, 17];
43107 case 4:
43108 _d = [{}];
43109 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43110 case 5:
43111 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43112 return [3 /*break*/, 17];
43113 case 6:
43114 _e = [{}];
43115 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43116 case 7:
43117 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43118 return [3 /*break*/, 17];
43119 case 8:
43120 _f = [{}];
43121 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43122 case 9:
43123 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43124 return [3 /*break*/, 17];
43125 case 10:
43126 _g = [{}];
43127 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43128 case 11:
43129 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43130 return [3 /*break*/, 17];
43131 case 12:
43132 _h = [{}];
43133 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43134 case 13:
43135 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43136 return [3 /*break*/, 17];
43137 case 14:
43138 _j = [{}];
43139 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43140 case 15:
43141 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43142 return [3 /*break*/, 17];
43143 case 16:
43144 parsedBody = parsedOutput.body;
43145 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43146 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43147 _l.label = 17;
43148 case 17:
43149 message = response.message || response.Message || errorCode;
43150 response.message = message;
43151 delete response.Message;
43152 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43153 }
43154 });
43155}); };
43156var deserializeAws_restJson1GetSegmentVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43157 var contents, data;
43158 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43159 switch (_a.label) {
43160 case 0:
43161 if (output.statusCode !== 200 && output.statusCode >= 300) {
43162 return [2 /*return*/, deserializeAws_restJson1GetSegmentVersionsCommandError(output, context)];
43163 }
43164 contents = {
43165 $metadata: deserializeMetadata(output),
43166 SegmentsResponse: undefined,
43167 };
43168 return [4 /*yield*/, parseBody(output.body, context)];
43169 case 1:
43170 data = _a.sent();
43171 contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context);
43172 return [2 /*return*/, Promise.resolve(contents)];
43173 }
43174 });
43175}); };
43176var deserializeAws_restJson1GetSegmentVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43177 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43178 var _k;
43179 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43180 switch (_l.label) {
43181 case 0:
43182 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43183 _k = {};
43184 return [4 /*yield*/, parseBody(output.body, context)];
43185 case 1:
43186 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43187 errorCode = "UnknownError";
43188 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43189 _b = errorCode;
43190 switch (_b) {
43191 case "BadRequestException": return [3 /*break*/, 2];
43192 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43193 case "ForbiddenException": return [3 /*break*/, 4];
43194 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43195 case "InternalServerErrorException": return [3 /*break*/, 6];
43196 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43197 case "MethodNotAllowedException": return [3 /*break*/, 8];
43198 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43199 case "NotFoundException": return [3 /*break*/, 10];
43200 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43201 case "PayloadTooLargeException": return [3 /*break*/, 12];
43202 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43203 case "TooManyRequestsException": return [3 /*break*/, 14];
43204 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43205 }
43206 return [3 /*break*/, 16];
43207 case 2:
43208 _c = [{}];
43209 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43210 case 3:
43211 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43212 return [3 /*break*/, 17];
43213 case 4:
43214 _d = [{}];
43215 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43216 case 5:
43217 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43218 return [3 /*break*/, 17];
43219 case 6:
43220 _e = [{}];
43221 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43222 case 7:
43223 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43224 return [3 /*break*/, 17];
43225 case 8:
43226 _f = [{}];
43227 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43228 case 9:
43229 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43230 return [3 /*break*/, 17];
43231 case 10:
43232 _g = [{}];
43233 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43234 case 11:
43235 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43236 return [3 /*break*/, 17];
43237 case 12:
43238 _h = [{}];
43239 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43240 case 13:
43241 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43242 return [3 /*break*/, 17];
43243 case 14:
43244 _j = [{}];
43245 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43246 case 15:
43247 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43248 return [3 /*break*/, 17];
43249 case 16:
43250 parsedBody = parsedOutput.body;
43251 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43252 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43253 _l.label = 17;
43254 case 17:
43255 message = response.message || response.Message || errorCode;
43256 response.message = message;
43257 delete response.Message;
43258 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43259 }
43260 });
43261}); };
43262var deserializeAws_restJson1GetSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43263 var contents, data;
43264 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43265 switch (_a.label) {
43266 case 0:
43267 if (output.statusCode !== 200 && output.statusCode >= 300) {
43268 return [2 /*return*/, deserializeAws_restJson1GetSmsChannelCommandError(output, context)];
43269 }
43270 contents = {
43271 $metadata: deserializeMetadata(output),
43272 SMSChannelResponse: undefined,
43273 };
43274 return [4 /*yield*/, parseBody(output.body, context)];
43275 case 1:
43276 data = _a.sent();
43277 contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context);
43278 return [2 /*return*/, Promise.resolve(contents)];
43279 }
43280 });
43281}); };
43282var deserializeAws_restJson1GetSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43283 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43284 var _k;
43285 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43286 switch (_l.label) {
43287 case 0:
43288 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43289 _k = {};
43290 return [4 /*yield*/, parseBody(output.body, context)];
43291 case 1:
43292 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43293 errorCode = "UnknownError";
43294 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43295 _b = errorCode;
43296 switch (_b) {
43297 case "BadRequestException": return [3 /*break*/, 2];
43298 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43299 case "ForbiddenException": return [3 /*break*/, 4];
43300 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43301 case "InternalServerErrorException": return [3 /*break*/, 6];
43302 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43303 case "MethodNotAllowedException": return [3 /*break*/, 8];
43304 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43305 case "NotFoundException": return [3 /*break*/, 10];
43306 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43307 case "PayloadTooLargeException": return [3 /*break*/, 12];
43308 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43309 case "TooManyRequestsException": return [3 /*break*/, 14];
43310 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43311 }
43312 return [3 /*break*/, 16];
43313 case 2:
43314 _c = [{}];
43315 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43316 case 3:
43317 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43318 return [3 /*break*/, 17];
43319 case 4:
43320 _d = [{}];
43321 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43322 case 5:
43323 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43324 return [3 /*break*/, 17];
43325 case 6:
43326 _e = [{}];
43327 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43328 case 7:
43329 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43330 return [3 /*break*/, 17];
43331 case 8:
43332 _f = [{}];
43333 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43334 case 9:
43335 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43336 return [3 /*break*/, 17];
43337 case 10:
43338 _g = [{}];
43339 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43340 case 11:
43341 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43342 return [3 /*break*/, 17];
43343 case 12:
43344 _h = [{}];
43345 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43346 case 13:
43347 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43348 return [3 /*break*/, 17];
43349 case 14:
43350 _j = [{}];
43351 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43352 case 15:
43353 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43354 return [3 /*break*/, 17];
43355 case 16:
43356 parsedBody = parsedOutput.body;
43357 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43358 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43359 _l.label = 17;
43360 case 17:
43361 message = response.message || response.Message || errorCode;
43362 response.message = message;
43363 delete response.Message;
43364 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43365 }
43366 });
43367}); };
43368var deserializeAws_restJson1GetSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43369 var contents, data;
43370 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43371 switch (_a.label) {
43372 case 0:
43373 if (output.statusCode !== 200 && output.statusCode >= 300) {
43374 return [2 /*return*/, deserializeAws_restJson1GetSmsTemplateCommandError(output, context)];
43375 }
43376 contents = {
43377 $metadata: deserializeMetadata(output),
43378 SMSTemplateResponse: undefined,
43379 };
43380 return [4 /*yield*/, parseBody(output.body, context)];
43381 case 1:
43382 data = _a.sent();
43383 contents.SMSTemplateResponse = deserializeAws_restJson1SMSTemplateResponse(data, context);
43384 return [2 /*return*/, Promise.resolve(contents)];
43385 }
43386 });
43387}); };
43388var deserializeAws_restJson1GetSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43389 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43390 var _k;
43391 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43392 switch (_l.label) {
43393 case 0:
43394 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43395 _k = {};
43396 return [4 /*yield*/, parseBody(output.body, context)];
43397 case 1:
43398 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43399 errorCode = "UnknownError";
43400 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43401 _b = errorCode;
43402 switch (_b) {
43403 case "BadRequestException": return [3 /*break*/, 2];
43404 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43405 case "ForbiddenException": return [3 /*break*/, 4];
43406 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43407 case "InternalServerErrorException": return [3 /*break*/, 6];
43408 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43409 case "MethodNotAllowedException": return [3 /*break*/, 8];
43410 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43411 case "NotFoundException": return [3 /*break*/, 10];
43412 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43413 case "PayloadTooLargeException": return [3 /*break*/, 12];
43414 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43415 case "TooManyRequestsException": return [3 /*break*/, 14];
43416 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43417 }
43418 return [3 /*break*/, 16];
43419 case 2:
43420 _c = [{}];
43421 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43422 case 3:
43423 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43424 return [3 /*break*/, 17];
43425 case 4:
43426 _d = [{}];
43427 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43428 case 5:
43429 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43430 return [3 /*break*/, 17];
43431 case 6:
43432 _e = [{}];
43433 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43434 case 7:
43435 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43436 return [3 /*break*/, 17];
43437 case 8:
43438 _f = [{}];
43439 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43440 case 9:
43441 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43442 return [3 /*break*/, 17];
43443 case 10:
43444 _g = [{}];
43445 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43446 case 11:
43447 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43448 return [3 /*break*/, 17];
43449 case 12:
43450 _h = [{}];
43451 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43452 case 13:
43453 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43454 return [3 /*break*/, 17];
43455 case 14:
43456 _j = [{}];
43457 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43458 case 15:
43459 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43460 return [3 /*break*/, 17];
43461 case 16:
43462 parsedBody = parsedOutput.body;
43463 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43464 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43465 _l.label = 17;
43466 case 17:
43467 message = response.message || response.Message || errorCode;
43468 response.message = message;
43469 delete response.Message;
43470 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43471 }
43472 });
43473}); };
43474var deserializeAws_restJson1GetUserEndpointsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43475 var contents, data;
43476 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43477 switch (_a.label) {
43478 case 0:
43479 if (output.statusCode !== 200 && output.statusCode >= 300) {
43480 return [2 /*return*/, deserializeAws_restJson1GetUserEndpointsCommandError(output, context)];
43481 }
43482 contents = {
43483 $metadata: deserializeMetadata(output),
43484 EndpointsResponse: undefined,
43485 };
43486 return [4 /*yield*/, parseBody(output.body, context)];
43487 case 1:
43488 data = _a.sent();
43489 contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context);
43490 return [2 /*return*/, Promise.resolve(contents)];
43491 }
43492 });
43493}); };
43494var deserializeAws_restJson1GetUserEndpointsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43495 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43496 var _k;
43497 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43498 switch (_l.label) {
43499 case 0:
43500 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43501 _k = {};
43502 return [4 /*yield*/, parseBody(output.body, context)];
43503 case 1:
43504 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43505 errorCode = "UnknownError";
43506 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43507 _b = errorCode;
43508 switch (_b) {
43509 case "BadRequestException": return [3 /*break*/, 2];
43510 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43511 case "ForbiddenException": return [3 /*break*/, 4];
43512 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43513 case "InternalServerErrorException": return [3 /*break*/, 6];
43514 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43515 case "MethodNotAllowedException": return [3 /*break*/, 8];
43516 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43517 case "NotFoundException": return [3 /*break*/, 10];
43518 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43519 case "PayloadTooLargeException": return [3 /*break*/, 12];
43520 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43521 case "TooManyRequestsException": return [3 /*break*/, 14];
43522 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43523 }
43524 return [3 /*break*/, 16];
43525 case 2:
43526 _c = [{}];
43527 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43528 case 3:
43529 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43530 return [3 /*break*/, 17];
43531 case 4:
43532 _d = [{}];
43533 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43534 case 5:
43535 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43536 return [3 /*break*/, 17];
43537 case 6:
43538 _e = [{}];
43539 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43540 case 7:
43541 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43542 return [3 /*break*/, 17];
43543 case 8:
43544 _f = [{}];
43545 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43546 case 9:
43547 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43548 return [3 /*break*/, 17];
43549 case 10:
43550 _g = [{}];
43551 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43552 case 11:
43553 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43554 return [3 /*break*/, 17];
43555 case 12:
43556 _h = [{}];
43557 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43558 case 13:
43559 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43560 return [3 /*break*/, 17];
43561 case 14:
43562 _j = [{}];
43563 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43564 case 15:
43565 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43566 return [3 /*break*/, 17];
43567 case 16:
43568 parsedBody = parsedOutput.body;
43569 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43570 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43571 _l.label = 17;
43572 case 17:
43573 message = response.message || response.Message || errorCode;
43574 response.message = message;
43575 delete response.Message;
43576 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43577 }
43578 });
43579}); };
43580var deserializeAws_restJson1GetVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43581 var contents, data;
43582 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43583 switch (_a.label) {
43584 case 0:
43585 if (output.statusCode !== 200 && output.statusCode >= 300) {
43586 return [2 /*return*/, deserializeAws_restJson1GetVoiceChannelCommandError(output, context)];
43587 }
43588 contents = {
43589 $metadata: deserializeMetadata(output),
43590 VoiceChannelResponse: undefined,
43591 };
43592 return [4 /*yield*/, parseBody(output.body, context)];
43593 case 1:
43594 data = _a.sent();
43595 contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context);
43596 return [2 /*return*/, Promise.resolve(contents)];
43597 }
43598 });
43599}); };
43600var deserializeAws_restJson1GetVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43601 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43602 var _k;
43603 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43604 switch (_l.label) {
43605 case 0:
43606 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43607 _k = {};
43608 return [4 /*yield*/, parseBody(output.body, context)];
43609 case 1:
43610 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43611 errorCode = "UnknownError";
43612 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43613 _b = errorCode;
43614 switch (_b) {
43615 case "BadRequestException": return [3 /*break*/, 2];
43616 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43617 case "ForbiddenException": return [3 /*break*/, 4];
43618 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43619 case "InternalServerErrorException": return [3 /*break*/, 6];
43620 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43621 case "MethodNotAllowedException": return [3 /*break*/, 8];
43622 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43623 case "NotFoundException": return [3 /*break*/, 10];
43624 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43625 case "PayloadTooLargeException": return [3 /*break*/, 12];
43626 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43627 case "TooManyRequestsException": return [3 /*break*/, 14];
43628 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43629 }
43630 return [3 /*break*/, 16];
43631 case 2:
43632 _c = [{}];
43633 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43634 case 3:
43635 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43636 return [3 /*break*/, 17];
43637 case 4:
43638 _d = [{}];
43639 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43640 case 5:
43641 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43642 return [3 /*break*/, 17];
43643 case 6:
43644 _e = [{}];
43645 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43646 case 7:
43647 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43648 return [3 /*break*/, 17];
43649 case 8:
43650 _f = [{}];
43651 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43652 case 9:
43653 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43654 return [3 /*break*/, 17];
43655 case 10:
43656 _g = [{}];
43657 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43658 case 11:
43659 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43660 return [3 /*break*/, 17];
43661 case 12:
43662 _h = [{}];
43663 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43664 case 13:
43665 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43666 return [3 /*break*/, 17];
43667 case 14:
43668 _j = [{}];
43669 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43670 case 15:
43671 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43672 return [3 /*break*/, 17];
43673 case 16:
43674 parsedBody = parsedOutput.body;
43675 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43676 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43677 _l.label = 17;
43678 case 17:
43679 message = response.message || response.Message || errorCode;
43680 response.message = message;
43681 delete response.Message;
43682 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43683 }
43684 });
43685}); };
43686var deserializeAws_restJson1GetVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43687 var contents, data;
43688 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43689 switch (_a.label) {
43690 case 0:
43691 if (output.statusCode !== 200 && output.statusCode >= 300) {
43692 return [2 /*return*/, deserializeAws_restJson1GetVoiceTemplateCommandError(output, context)];
43693 }
43694 contents = {
43695 $metadata: deserializeMetadata(output),
43696 VoiceTemplateResponse: undefined,
43697 };
43698 return [4 /*yield*/, parseBody(output.body, context)];
43699 case 1:
43700 data = _a.sent();
43701 contents.VoiceTemplateResponse = deserializeAws_restJson1VoiceTemplateResponse(data, context);
43702 return [2 /*return*/, Promise.resolve(contents)];
43703 }
43704 });
43705}); };
43706var deserializeAws_restJson1GetVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43707 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43708 var _k;
43709 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43710 switch (_l.label) {
43711 case 0:
43712 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43713 _k = {};
43714 return [4 /*yield*/, parseBody(output.body, context)];
43715 case 1:
43716 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43717 errorCode = "UnknownError";
43718 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43719 _b = errorCode;
43720 switch (_b) {
43721 case "BadRequestException": return [3 /*break*/, 2];
43722 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43723 case "ForbiddenException": return [3 /*break*/, 4];
43724 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43725 case "InternalServerErrorException": return [3 /*break*/, 6];
43726 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43727 case "MethodNotAllowedException": return [3 /*break*/, 8];
43728 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43729 case "NotFoundException": return [3 /*break*/, 10];
43730 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43731 case "PayloadTooLargeException": return [3 /*break*/, 12];
43732 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43733 case "TooManyRequestsException": return [3 /*break*/, 14];
43734 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43735 }
43736 return [3 /*break*/, 16];
43737 case 2:
43738 _c = [{}];
43739 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43740 case 3:
43741 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43742 return [3 /*break*/, 17];
43743 case 4:
43744 _d = [{}];
43745 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43746 case 5:
43747 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43748 return [3 /*break*/, 17];
43749 case 6:
43750 _e = [{}];
43751 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43752 case 7:
43753 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43754 return [3 /*break*/, 17];
43755 case 8:
43756 _f = [{}];
43757 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43758 case 9:
43759 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43760 return [3 /*break*/, 17];
43761 case 10:
43762 _g = [{}];
43763 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43764 case 11:
43765 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43766 return [3 /*break*/, 17];
43767 case 12:
43768 _h = [{}];
43769 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43770 case 13:
43771 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43772 return [3 /*break*/, 17];
43773 case 14:
43774 _j = [{}];
43775 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43776 case 15:
43777 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43778 return [3 /*break*/, 17];
43779 case 16:
43780 parsedBody = parsedOutput.body;
43781 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43782 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43783 _l.label = 17;
43784 case 17:
43785 message = response.message || response.Message || errorCode;
43786 response.message = message;
43787 delete response.Message;
43788 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43789 }
43790 });
43791}); };
43792var deserializeAws_restJson1ListJourneysCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43793 var contents, data;
43794 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43795 switch (_a.label) {
43796 case 0:
43797 if (output.statusCode !== 200 && output.statusCode >= 300) {
43798 return [2 /*return*/, deserializeAws_restJson1ListJourneysCommandError(output, context)];
43799 }
43800 contents = {
43801 $metadata: deserializeMetadata(output),
43802 JourneysResponse: undefined,
43803 };
43804 return [4 /*yield*/, parseBody(output.body, context)];
43805 case 1:
43806 data = _a.sent();
43807 contents.JourneysResponse = deserializeAws_restJson1JourneysResponse(data, context);
43808 return [2 /*return*/, Promise.resolve(contents)];
43809 }
43810 });
43811}); };
43812var deserializeAws_restJson1ListJourneysCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43813 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
43814 var _k;
43815 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
43816 switch (_l.label) {
43817 case 0:
43818 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43819 _k = {};
43820 return [4 /*yield*/, parseBody(output.body, context)];
43821 case 1:
43822 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
43823 errorCode = "UnknownError";
43824 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43825 _b = errorCode;
43826 switch (_b) {
43827 case "BadRequestException": return [3 /*break*/, 2];
43828 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43829 case "ForbiddenException": return [3 /*break*/, 4];
43830 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43831 case "InternalServerErrorException": return [3 /*break*/, 6];
43832 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43833 case "MethodNotAllowedException": return [3 /*break*/, 8];
43834 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43835 case "NotFoundException": return [3 /*break*/, 10];
43836 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
43837 case "PayloadTooLargeException": return [3 /*break*/, 12];
43838 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
43839 case "TooManyRequestsException": return [3 /*break*/, 14];
43840 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
43841 }
43842 return [3 /*break*/, 16];
43843 case 2:
43844 _c = [{}];
43845 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43846 case 3:
43847 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43848 return [3 /*break*/, 17];
43849 case 4:
43850 _d = [{}];
43851 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
43852 case 5:
43853 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43854 return [3 /*break*/, 17];
43855 case 6:
43856 _e = [{}];
43857 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
43858 case 7:
43859 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43860 return [3 /*break*/, 17];
43861 case 8:
43862 _f = [{}];
43863 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
43864 case 9:
43865 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43866 return [3 /*break*/, 17];
43867 case 10:
43868 _g = [{}];
43869 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
43870 case 11:
43871 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43872 return [3 /*break*/, 17];
43873 case 12:
43874 _h = [{}];
43875 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
43876 case 13:
43877 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43878 return [3 /*break*/, 17];
43879 case 14:
43880 _j = [{}];
43881 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
43882 case 15:
43883 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43884 return [3 /*break*/, 17];
43885 case 16:
43886 parsedBody = parsedOutput.body;
43887 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43888 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43889 _l.label = 17;
43890 case 17:
43891 message = response.message || response.Message || errorCode;
43892 response.message = message;
43893 delete response.Message;
43894 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43895 }
43896 });
43897}); };
43898var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43899 var contents, data;
43900 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43901 switch (_a.label) {
43902 case 0:
43903 if (output.statusCode !== 200 && output.statusCode >= 300) {
43904 return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
43905 }
43906 contents = {
43907 $metadata: deserializeMetadata(output),
43908 TagsModel: undefined,
43909 };
43910 return [4 /*yield*/, parseBody(output.body, context)];
43911 case 1:
43912 data = _a.sent();
43913 contents.TagsModel = deserializeAws_restJson1TagsModel(data, context);
43914 return [2 /*return*/, Promise.resolve(contents)];
43915 }
43916 });
43917}); };
43918var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43919 var parsedOutput, _a, response, errorCode, parsedBody, message;
43920 var _b;
43921 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
43922 switch (_c.label) {
43923 case 0:
43924 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43925 _b = {};
43926 return [4 /*yield*/, parseBody(output.body, context)];
43927 case 1:
43928 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
43929 errorCode = "UnknownError";
43930 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43931 switch (errorCode) {
43932 default:
43933 parsedBody = parsedOutput.body;
43934 errorCode = parsedBody.code || parsedBody.Code || errorCode;
43935 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
43936 }
43937 message = response.message || response.Message || errorCode;
43938 response.message = message;
43939 delete response.Message;
43940 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
43941 }
43942 });
43943}); };
43944var deserializeAws_restJson1ListTemplatesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43945 var contents, data;
43946 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
43947 switch (_a.label) {
43948 case 0:
43949 if (output.statusCode !== 200 && output.statusCode >= 300) {
43950 return [2 /*return*/, deserializeAws_restJson1ListTemplatesCommandError(output, context)];
43951 }
43952 contents = {
43953 $metadata: deserializeMetadata(output),
43954 TemplatesResponse: undefined,
43955 };
43956 return [4 /*yield*/, parseBody(output.body, context)];
43957 case 1:
43958 data = _a.sent();
43959 contents.TemplatesResponse = deserializeAws_restJson1TemplatesResponse(data, context);
43960 return [2 /*return*/, Promise.resolve(contents)];
43961 }
43962 });
43963}); };
43964var deserializeAws_restJson1ListTemplatesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
43965 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
43966 var _h;
43967 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_j) {
43968 switch (_j.label) {
43969 case 0:
43970 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
43971 _h = {};
43972 return [4 /*yield*/, parseBody(output.body, context)];
43973 case 1:
43974 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
43975 errorCode = "UnknownError";
43976 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
43977 _b = errorCode;
43978 switch (_b) {
43979 case "BadRequestException": return [3 /*break*/, 2];
43980 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
43981 case "ForbiddenException": return [3 /*break*/, 4];
43982 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
43983 case "InternalServerErrorException": return [3 /*break*/, 6];
43984 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
43985 case "MethodNotAllowedException": return [3 /*break*/, 8];
43986 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
43987 case "TooManyRequestsException": return [3 /*break*/, 10];
43988 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 10];
43989 }
43990 return [3 /*break*/, 12];
43991 case 2:
43992 _c = [{}];
43993 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
43994 case 3:
43995 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
43996 return [3 /*break*/, 13];
43997 case 4:
43998 _d = [{}];
43999 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44000 case 5:
44001 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44002 return [3 /*break*/, 13];
44003 case 6:
44004 _e = [{}];
44005 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44006 case 7:
44007 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44008 return [3 /*break*/, 13];
44009 case 8:
44010 _f = [{}];
44011 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44012 case 9:
44013 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44014 return [3 /*break*/, 13];
44015 case 10:
44016 _g = [{}];
44017 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44018 case 11:
44019 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44020 return [3 /*break*/, 13];
44021 case 12:
44022 parsedBody = parsedOutput.body;
44023 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44024 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44025 _j.label = 13;
44026 case 13:
44027 message = response.message || response.Message || errorCode;
44028 response.message = message;
44029 delete response.Message;
44030 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44031 }
44032 });
44033}); };
44034var deserializeAws_restJson1ListTemplateVersionsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44035 var contents, data;
44036 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44037 switch (_a.label) {
44038 case 0:
44039 if (output.statusCode !== 200 && output.statusCode >= 300) {
44040 return [2 /*return*/, deserializeAws_restJson1ListTemplateVersionsCommandError(output, context)];
44041 }
44042 contents = {
44043 $metadata: deserializeMetadata(output),
44044 TemplateVersionsResponse: undefined,
44045 };
44046 return [4 /*yield*/, parseBody(output.body, context)];
44047 case 1:
44048 data = _a.sent();
44049 contents.TemplateVersionsResponse = deserializeAws_restJson1TemplateVersionsResponse(data, context);
44050 return [2 /*return*/, Promise.resolve(contents)];
44051 }
44052 });
44053}); };
44054var deserializeAws_restJson1ListTemplateVersionsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44055 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44056 var _k;
44057 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44058 switch (_l.label) {
44059 case 0:
44060 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44061 _k = {};
44062 return [4 /*yield*/, parseBody(output.body, context)];
44063 case 1:
44064 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44065 errorCode = "UnknownError";
44066 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44067 _b = errorCode;
44068 switch (_b) {
44069 case "BadRequestException": return [3 /*break*/, 2];
44070 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44071 case "ForbiddenException": return [3 /*break*/, 4];
44072 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44073 case "InternalServerErrorException": return [3 /*break*/, 6];
44074 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44075 case "MethodNotAllowedException": return [3 /*break*/, 8];
44076 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44077 case "NotFoundException": return [3 /*break*/, 10];
44078 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44079 case "PayloadTooLargeException": return [3 /*break*/, 12];
44080 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44081 case "TooManyRequestsException": return [3 /*break*/, 14];
44082 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44083 }
44084 return [3 /*break*/, 16];
44085 case 2:
44086 _c = [{}];
44087 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44088 case 3:
44089 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44090 return [3 /*break*/, 17];
44091 case 4:
44092 _d = [{}];
44093 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44094 case 5:
44095 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44096 return [3 /*break*/, 17];
44097 case 6:
44098 _e = [{}];
44099 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44100 case 7:
44101 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44102 return [3 /*break*/, 17];
44103 case 8:
44104 _f = [{}];
44105 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44106 case 9:
44107 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44108 return [3 /*break*/, 17];
44109 case 10:
44110 _g = [{}];
44111 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44112 case 11:
44113 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44114 return [3 /*break*/, 17];
44115 case 12:
44116 _h = [{}];
44117 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44118 case 13:
44119 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44120 return [3 /*break*/, 17];
44121 case 14:
44122 _j = [{}];
44123 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44124 case 15:
44125 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44126 return [3 /*break*/, 17];
44127 case 16:
44128 parsedBody = parsedOutput.body;
44129 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44130 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44131 _l.label = 17;
44132 case 17:
44133 message = response.message || response.Message || errorCode;
44134 response.message = message;
44135 delete response.Message;
44136 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44137 }
44138 });
44139}); };
44140var deserializeAws_restJson1PhoneNumberValidateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44141 var contents, data;
44142 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44143 switch (_a.label) {
44144 case 0:
44145 if (output.statusCode !== 200 && output.statusCode >= 300) {
44146 return [2 /*return*/, deserializeAws_restJson1PhoneNumberValidateCommandError(output, context)];
44147 }
44148 contents = {
44149 $metadata: deserializeMetadata(output),
44150 NumberValidateResponse: undefined,
44151 };
44152 return [4 /*yield*/, parseBody(output.body, context)];
44153 case 1:
44154 data = _a.sent();
44155 contents.NumberValidateResponse = deserializeAws_restJson1NumberValidateResponse(data, context);
44156 return [2 /*return*/, Promise.resolve(contents)];
44157 }
44158 });
44159}); };
44160var deserializeAws_restJson1PhoneNumberValidateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44161 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44162 var _k;
44163 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44164 switch (_l.label) {
44165 case 0:
44166 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44167 _k = {};
44168 return [4 /*yield*/, parseBody(output.body, context)];
44169 case 1:
44170 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44171 errorCode = "UnknownError";
44172 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44173 _b = errorCode;
44174 switch (_b) {
44175 case "BadRequestException": return [3 /*break*/, 2];
44176 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44177 case "ForbiddenException": return [3 /*break*/, 4];
44178 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44179 case "InternalServerErrorException": return [3 /*break*/, 6];
44180 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44181 case "MethodNotAllowedException": return [3 /*break*/, 8];
44182 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44183 case "NotFoundException": return [3 /*break*/, 10];
44184 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44185 case "PayloadTooLargeException": return [3 /*break*/, 12];
44186 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44187 case "TooManyRequestsException": return [3 /*break*/, 14];
44188 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44189 }
44190 return [3 /*break*/, 16];
44191 case 2:
44192 _c = [{}];
44193 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44194 case 3:
44195 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44196 return [3 /*break*/, 17];
44197 case 4:
44198 _d = [{}];
44199 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44200 case 5:
44201 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44202 return [3 /*break*/, 17];
44203 case 6:
44204 _e = [{}];
44205 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44206 case 7:
44207 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44208 return [3 /*break*/, 17];
44209 case 8:
44210 _f = [{}];
44211 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44212 case 9:
44213 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44214 return [3 /*break*/, 17];
44215 case 10:
44216 _g = [{}];
44217 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44218 case 11:
44219 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44220 return [3 /*break*/, 17];
44221 case 12:
44222 _h = [{}];
44223 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44224 case 13:
44225 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44226 return [3 /*break*/, 17];
44227 case 14:
44228 _j = [{}];
44229 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44230 case 15:
44231 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44232 return [3 /*break*/, 17];
44233 case 16:
44234 parsedBody = parsedOutput.body;
44235 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44236 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44237 _l.label = 17;
44238 case 17:
44239 message = response.message || response.Message || errorCode;
44240 response.message = message;
44241 delete response.Message;
44242 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44243 }
44244 });
44245}); };
44246var deserializeAws_restJson1PutEventsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44247 var contents, data;
44248 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44249 switch (_a.label) {
44250 case 0:
44251 if (output.statusCode !== 202 && output.statusCode >= 300) {
44252 return [2 /*return*/, deserializeAws_restJson1PutEventsCommandError(output, context)];
44253 }
44254 contents = {
44255 $metadata: deserializeMetadata(output),
44256 EventsResponse: undefined,
44257 };
44258 return [4 /*yield*/, parseBody(output.body, context)];
44259 case 1:
44260 data = _a.sent();
44261 contents.EventsResponse = deserializeAws_restJson1EventsResponse(data, context);
44262 return [2 /*return*/, Promise.resolve(contents)];
44263 }
44264 });
44265}); };
44266var deserializeAws_restJson1PutEventsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44267 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44268 var _k;
44269 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44270 switch (_l.label) {
44271 case 0:
44272 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44273 _k = {};
44274 return [4 /*yield*/, parseBody(output.body, context)];
44275 case 1:
44276 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44277 errorCode = "UnknownError";
44278 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44279 _b = errorCode;
44280 switch (_b) {
44281 case "BadRequestException": return [3 /*break*/, 2];
44282 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44283 case "ForbiddenException": return [3 /*break*/, 4];
44284 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44285 case "InternalServerErrorException": return [3 /*break*/, 6];
44286 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44287 case "MethodNotAllowedException": return [3 /*break*/, 8];
44288 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44289 case "NotFoundException": return [3 /*break*/, 10];
44290 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44291 case "PayloadTooLargeException": return [3 /*break*/, 12];
44292 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44293 case "TooManyRequestsException": return [3 /*break*/, 14];
44294 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44295 }
44296 return [3 /*break*/, 16];
44297 case 2:
44298 _c = [{}];
44299 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44300 case 3:
44301 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44302 return [3 /*break*/, 17];
44303 case 4:
44304 _d = [{}];
44305 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44306 case 5:
44307 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44308 return [3 /*break*/, 17];
44309 case 6:
44310 _e = [{}];
44311 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44312 case 7:
44313 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44314 return [3 /*break*/, 17];
44315 case 8:
44316 _f = [{}];
44317 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44318 case 9:
44319 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44320 return [3 /*break*/, 17];
44321 case 10:
44322 _g = [{}];
44323 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44324 case 11:
44325 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44326 return [3 /*break*/, 17];
44327 case 12:
44328 _h = [{}];
44329 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44330 case 13:
44331 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44332 return [3 /*break*/, 17];
44333 case 14:
44334 _j = [{}];
44335 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44336 case 15:
44337 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44338 return [3 /*break*/, 17];
44339 case 16:
44340 parsedBody = parsedOutput.body;
44341 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44342 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44343 _l.label = 17;
44344 case 17:
44345 message = response.message || response.Message || errorCode;
44346 response.message = message;
44347 delete response.Message;
44348 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44349 }
44350 });
44351}); };
44352var deserializeAws_restJson1PutEventStreamCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44353 var contents, data;
44354 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44355 switch (_a.label) {
44356 case 0:
44357 if (output.statusCode !== 200 && output.statusCode >= 300) {
44358 return [2 /*return*/, deserializeAws_restJson1PutEventStreamCommandError(output, context)];
44359 }
44360 contents = {
44361 $metadata: deserializeMetadata(output),
44362 EventStream: undefined,
44363 };
44364 return [4 /*yield*/, parseBody(output.body, context)];
44365 case 1:
44366 data = _a.sent();
44367 contents.EventStream = deserializeAws_restJson1EventStream(data, context);
44368 return [2 /*return*/, Promise.resolve(contents)];
44369 }
44370 });
44371}); };
44372var deserializeAws_restJson1PutEventStreamCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44373 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44374 var _k;
44375 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44376 switch (_l.label) {
44377 case 0:
44378 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44379 _k = {};
44380 return [4 /*yield*/, parseBody(output.body, context)];
44381 case 1:
44382 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44383 errorCode = "UnknownError";
44384 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44385 _b = errorCode;
44386 switch (_b) {
44387 case "BadRequestException": return [3 /*break*/, 2];
44388 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44389 case "ForbiddenException": return [3 /*break*/, 4];
44390 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44391 case "InternalServerErrorException": return [3 /*break*/, 6];
44392 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44393 case "MethodNotAllowedException": return [3 /*break*/, 8];
44394 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44395 case "NotFoundException": return [3 /*break*/, 10];
44396 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44397 case "PayloadTooLargeException": return [3 /*break*/, 12];
44398 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44399 case "TooManyRequestsException": return [3 /*break*/, 14];
44400 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44401 }
44402 return [3 /*break*/, 16];
44403 case 2:
44404 _c = [{}];
44405 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44406 case 3:
44407 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44408 return [3 /*break*/, 17];
44409 case 4:
44410 _d = [{}];
44411 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44412 case 5:
44413 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44414 return [3 /*break*/, 17];
44415 case 6:
44416 _e = [{}];
44417 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44418 case 7:
44419 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44420 return [3 /*break*/, 17];
44421 case 8:
44422 _f = [{}];
44423 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44424 case 9:
44425 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44426 return [3 /*break*/, 17];
44427 case 10:
44428 _g = [{}];
44429 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44430 case 11:
44431 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44432 return [3 /*break*/, 17];
44433 case 12:
44434 _h = [{}];
44435 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44436 case 13:
44437 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44438 return [3 /*break*/, 17];
44439 case 14:
44440 _j = [{}];
44441 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44442 case 15:
44443 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44444 return [3 /*break*/, 17];
44445 case 16:
44446 parsedBody = parsedOutput.body;
44447 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44448 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44449 _l.label = 17;
44450 case 17:
44451 message = response.message || response.Message || errorCode;
44452 response.message = message;
44453 delete response.Message;
44454 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44455 }
44456 });
44457}); };
44458var deserializeAws_restJson1RemoveAttributesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44459 var contents, data;
44460 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44461 switch (_a.label) {
44462 case 0:
44463 if (output.statusCode !== 200 && output.statusCode >= 300) {
44464 return [2 /*return*/, deserializeAws_restJson1RemoveAttributesCommandError(output, context)];
44465 }
44466 contents = {
44467 $metadata: deserializeMetadata(output),
44468 AttributesResource: undefined,
44469 };
44470 return [4 /*yield*/, parseBody(output.body, context)];
44471 case 1:
44472 data = _a.sent();
44473 contents.AttributesResource = deserializeAws_restJson1AttributesResource(data, context);
44474 return [2 /*return*/, Promise.resolve(contents)];
44475 }
44476 });
44477}); };
44478var deserializeAws_restJson1RemoveAttributesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44479 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44480 var _k;
44481 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44482 switch (_l.label) {
44483 case 0:
44484 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44485 _k = {};
44486 return [4 /*yield*/, parseBody(output.body, context)];
44487 case 1:
44488 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44489 errorCode = "UnknownError";
44490 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44491 _b = errorCode;
44492 switch (_b) {
44493 case "BadRequestException": return [3 /*break*/, 2];
44494 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44495 case "ForbiddenException": return [3 /*break*/, 4];
44496 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44497 case "InternalServerErrorException": return [3 /*break*/, 6];
44498 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44499 case "MethodNotAllowedException": return [3 /*break*/, 8];
44500 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44501 case "NotFoundException": return [3 /*break*/, 10];
44502 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44503 case "PayloadTooLargeException": return [3 /*break*/, 12];
44504 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44505 case "TooManyRequestsException": return [3 /*break*/, 14];
44506 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44507 }
44508 return [3 /*break*/, 16];
44509 case 2:
44510 _c = [{}];
44511 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44512 case 3:
44513 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44514 return [3 /*break*/, 17];
44515 case 4:
44516 _d = [{}];
44517 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44518 case 5:
44519 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44520 return [3 /*break*/, 17];
44521 case 6:
44522 _e = [{}];
44523 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44524 case 7:
44525 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44526 return [3 /*break*/, 17];
44527 case 8:
44528 _f = [{}];
44529 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44530 case 9:
44531 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44532 return [3 /*break*/, 17];
44533 case 10:
44534 _g = [{}];
44535 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44536 case 11:
44537 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44538 return [3 /*break*/, 17];
44539 case 12:
44540 _h = [{}];
44541 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44542 case 13:
44543 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44544 return [3 /*break*/, 17];
44545 case 14:
44546 _j = [{}];
44547 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44548 case 15:
44549 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44550 return [3 /*break*/, 17];
44551 case 16:
44552 parsedBody = parsedOutput.body;
44553 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44554 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44555 _l.label = 17;
44556 case 17:
44557 message = response.message || response.Message || errorCode;
44558 response.message = message;
44559 delete response.Message;
44560 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44561 }
44562 });
44563}); };
44564var deserializeAws_restJson1SendMessagesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44565 var contents, data;
44566 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44567 switch (_a.label) {
44568 case 0:
44569 if (output.statusCode !== 200 && output.statusCode >= 300) {
44570 return [2 /*return*/, deserializeAws_restJson1SendMessagesCommandError(output, context)];
44571 }
44572 contents = {
44573 $metadata: deserializeMetadata(output),
44574 MessageResponse: undefined,
44575 };
44576 return [4 /*yield*/, parseBody(output.body, context)];
44577 case 1:
44578 data = _a.sent();
44579 contents.MessageResponse = deserializeAws_restJson1MessageResponse(data, context);
44580 return [2 /*return*/, Promise.resolve(contents)];
44581 }
44582 });
44583}); };
44584var deserializeAws_restJson1SendMessagesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44585 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44586 var _k;
44587 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44588 switch (_l.label) {
44589 case 0:
44590 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44591 _k = {};
44592 return [4 /*yield*/, parseBody(output.body, context)];
44593 case 1:
44594 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44595 errorCode = "UnknownError";
44596 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44597 _b = errorCode;
44598 switch (_b) {
44599 case "BadRequestException": return [3 /*break*/, 2];
44600 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44601 case "ForbiddenException": return [3 /*break*/, 4];
44602 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44603 case "InternalServerErrorException": return [3 /*break*/, 6];
44604 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44605 case "MethodNotAllowedException": return [3 /*break*/, 8];
44606 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44607 case "NotFoundException": return [3 /*break*/, 10];
44608 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44609 case "PayloadTooLargeException": return [3 /*break*/, 12];
44610 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44611 case "TooManyRequestsException": return [3 /*break*/, 14];
44612 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44613 }
44614 return [3 /*break*/, 16];
44615 case 2:
44616 _c = [{}];
44617 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44618 case 3:
44619 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44620 return [3 /*break*/, 17];
44621 case 4:
44622 _d = [{}];
44623 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44624 case 5:
44625 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44626 return [3 /*break*/, 17];
44627 case 6:
44628 _e = [{}];
44629 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44630 case 7:
44631 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44632 return [3 /*break*/, 17];
44633 case 8:
44634 _f = [{}];
44635 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44636 case 9:
44637 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44638 return [3 /*break*/, 17];
44639 case 10:
44640 _g = [{}];
44641 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44642 case 11:
44643 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44644 return [3 /*break*/, 17];
44645 case 12:
44646 _h = [{}];
44647 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44648 case 13:
44649 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44650 return [3 /*break*/, 17];
44651 case 14:
44652 _j = [{}];
44653 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44654 case 15:
44655 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44656 return [3 /*break*/, 17];
44657 case 16:
44658 parsedBody = parsedOutput.body;
44659 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44660 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44661 _l.label = 17;
44662 case 17:
44663 message = response.message || response.Message || errorCode;
44664 response.message = message;
44665 delete response.Message;
44666 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44667 }
44668 });
44669}); };
44670var deserializeAws_restJson1SendUsersMessagesCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44671 var contents, data;
44672 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44673 switch (_a.label) {
44674 case 0:
44675 if (output.statusCode !== 200 && output.statusCode >= 300) {
44676 return [2 /*return*/, deserializeAws_restJson1SendUsersMessagesCommandError(output, context)];
44677 }
44678 contents = {
44679 $metadata: deserializeMetadata(output),
44680 SendUsersMessageResponse: undefined,
44681 };
44682 return [4 /*yield*/, parseBody(output.body, context)];
44683 case 1:
44684 data = _a.sent();
44685 contents.SendUsersMessageResponse = deserializeAws_restJson1SendUsersMessageResponse(data, context);
44686 return [2 /*return*/, Promise.resolve(contents)];
44687 }
44688 });
44689}); };
44690var deserializeAws_restJson1SendUsersMessagesCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44691 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44692 var _k;
44693 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44694 switch (_l.label) {
44695 case 0:
44696 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44697 _k = {};
44698 return [4 /*yield*/, parseBody(output.body, context)];
44699 case 1:
44700 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44701 errorCode = "UnknownError";
44702 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44703 _b = errorCode;
44704 switch (_b) {
44705 case "BadRequestException": return [3 /*break*/, 2];
44706 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44707 case "ForbiddenException": return [3 /*break*/, 4];
44708 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44709 case "InternalServerErrorException": return [3 /*break*/, 6];
44710 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44711 case "MethodNotAllowedException": return [3 /*break*/, 8];
44712 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44713 case "NotFoundException": return [3 /*break*/, 10];
44714 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44715 case "PayloadTooLargeException": return [3 /*break*/, 12];
44716 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44717 case "TooManyRequestsException": return [3 /*break*/, 14];
44718 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44719 }
44720 return [3 /*break*/, 16];
44721 case 2:
44722 _c = [{}];
44723 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44724 case 3:
44725 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44726 return [3 /*break*/, 17];
44727 case 4:
44728 _d = [{}];
44729 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44730 case 5:
44731 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44732 return [3 /*break*/, 17];
44733 case 6:
44734 _e = [{}];
44735 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44736 case 7:
44737 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44738 return [3 /*break*/, 17];
44739 case 8:
44740 _f = [{}];
44741 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44742 case 9:
44743 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44744 return [3 /*break*/, 17];
44745 case 10:
44746 _g = [{}];
44747 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44748 case 11:
44749 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44750 return [3 /*break*/, 17];
44751 case 12:
44752 _h = [{}];
44753 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44754 case 13:
44755 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44756 return [3 /*break*/, 17];
44757 case 14:
44758 _j = [{}];
44759 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44760 case 15:
44761 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44762 return [3 /*break*/, 17];
44763 case 16:
44764 parsedBody = parsedOutput.body;
44765 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44766 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44767 _l.label = 17;
44768 case 17:
44769 message = response.message || response.Message || errorCode;
44770 response.message = message;
44771 delete response.Message;
44772 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44773 }
44774 });
44775}); };
44776var deserializeAws_restJson1TagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44777 var contents;
44778 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44779 switch (_a.label) {
44780 case 0:
44781 if (output.statusCode !== 204 && output.statusCode >= 300) {
44782 return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
44783 }
44784 contents = {
44785 $metadata: deserializeMetadata(output),
44786 };
44787 return [4 /*yield*/, collectBody(output.body, context)];
44788 case 1:
44789 _a.sent();
44790 return [2 /*return*/, Promise.resolve(contents)];
44791 }
44792 });
44793}); };
44794var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44795 var parsedOutput, _a, response, errorCode, parsedBody, message;
44796 var _b;
44797 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
44798 switch (_c.label) {
44799 case 0:
44800 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44801 _b = {};
44802 return [4 /*yield*/, parseBody(output.body, context)];
44803 case 1:
44804 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
44805 errorCode = "UnknownError";
44806 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44807 switch (errorCode) {
44808 default:
44809 parsedBody = parsedOutput.body;
44810 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44811 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44812 }
44813 message = response.message || response.Message || errorCode;
44814 response.message = message;
44815 delete response.Message;
44816 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44817 }
44818 });
44819}); };
44820var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44821 var contents;
44822 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44823 switch (_a.label) {
44824 case 0:
44825 if (output.statusCode !== 204 && output.statusCode >= 300) {
44826 return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
44827 }
44828 contents = {
44829 $metadata: deserializeMetadata(output),
44830 };
44831 return [4 /*yield*/, collectBody(output.body, context)];
44832 case 1:
44833 _a.sent();
44834 return [2 /*return*/, Promise.resolve(contents)];
44835 }
44836 });
44837}); };
44838var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44839 var parsedOutput, _a, response, errorCode, parsedBody, message;
44840 var _b;
44841 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
44842 switch (_c.label) {
44843 case 0:
44844 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44845 _b = {};
44846 return [4 /*yield*/, parseBody(output.body, context)];
44847 case 1:
44848 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
44849 errorCode = "UnknownError";
44850 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44851 switch (errorCode) {
44852 default:
44853 parsedBody = parsedOutput.body;
44854 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44855 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44856 }
44857 message = response.message || response.Message || errorCode;
44858 response.message = message;
44859 delete response.Message;
44860 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44861 }
44862 });
44863}); };
44864var deserializeAws_restJson1UpdateAdmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44865 var contents, data;
44866 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44867 switch (_a.label) {
44868 case 0:
44869 if (output.statusCode !== 200 && output.statusCode >= 300) {
44870 return [2 /*return*/, deserializeAws_restJson1UpdateAdmChannelCommandError(output, context)];
44871 }
44872 contents = {
44873 $metadata: deserializeMetadata(output),
44874 ADMChannelResponse: undefined,
44875 };
44876 return [4 /*yield*/, parseBody(output.body, context)];
44877 case 1:
44878 data = _a.sent();
44879 contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context);
44880 return [2 /*return*/, Promise.resolve(contents)];
44881 }
44882 });
44883}); };
44884var deserializeAws_restJson1UpdateAdmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44885 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44886 var _k;
44887 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44888 switch (_l.label) {
44889 case 0:
44890 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44891 _k = {};
44892 return [4 /*yield*/, parseBody(output.body, context)];
44893 case 1:
44894 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
44895 errorCode = "UnknownError";
44896 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
44897 _b = errorCode;
44898 switch (_b) {
44899 case "BadRequestException": return [3 /*break*/, 2];
44900 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
44901 case "ForbiddenException": return [3 /*break*/, 4];
44902 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
44903 case "InternalServerErrorException": return [3 /*break*/, 6];
44904 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
44905 case "MethodNotAllowedException": return [3 /*break*/, 8];
44906 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
44907 case "NotFoundException": return [3 /*break*/, 10];
44908 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
44909 case "PayloadTooLargeException": return [3 /*break*/, 12];
44910 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
44911 case "TooManyRequestsException": return [3 /*break*/, 14];
44912 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
44913 }
44914 return [3 /*break*/, 16];
44915 case 2:
44916 _c = [{}];
44917 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
44918 case 3:
44919 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44920 return [3 /*break*/, 17];
44921 case 4:
44922 _d = [{}];
44923 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
44924 case 5:
44925 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44926 return [3 /*break*/, 17];
44927 case 6:
44928 _e = [{}];
44929 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
44930 case 7:
44931 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44932 return [3 /*break*/, 17];
44933 case 8:
44934 _f = [{}];
44935 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
44936 case 9:
44937 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44938 return [3 /*break*/, 17];
44939 case 10:
44940 _g = [{}];
44941 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
44942 case 11:
44943 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44944 return [3 /*break*/, 17];
44945 case 12:
44946 _h = [{}];
44947 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
44948 case 13:
44949 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44950 return [3 /*break*/, 17];
44951 case 14:
44952 _j = [{}];
44953 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
44954 case 15:
44955 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
44956 return [3 /*break*/, 17];
44957 case 16:
44958 parsedBody = parsedOutput.body;
44959 errorCode = parsedBody.code || parsedBody.Code || errorCode;
44960 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
44961 _l.label = 17;
44962 case 17:
44963 message = response.message || response.Message || errorCode;
44964 response.message = message;
44965 delete response.Message;
44966 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
44967 }
44968 });
44969}); };
44970var deserializeAws_restJson1UpdateApnsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44971 var contents, data;
44972 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
44973 switch (_a.label) {
44974 case 0:
44975 if (output.statusCode !== 200 && output.statusCode >= 300) {
44976 return [2 /*return*/, deserializeAws_restJson1UpdateApnsChannelCommandError(output, context)];
44977 }
44978 contents = {
44979 $metadata: deserializeMetadata(output),
44980 APNSChannelResponse: undefined,
44981 };
44982 return [4 /*yield*/, parseBody(output.body, context)];
44983 case 1:
44984 data = _a.sent();
44985 contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context);
44986 return [2 /*return*/, Promise.resolve(contents)];
44987 }
44988 });
44989}); };
44990var deserializeAws_restJson1UpdateApnsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
44991 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
44992 var _k;
44993 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
44994 switch (_l.label) {
44995 case 0:
44996 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
44997 _k = {};
44998 return [4 /*yield*/, parseBody(output.body, context)];
44999 case 1:
45000 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45001 errorCode = "UnknownError";
45002 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45003 _b = errorCode;
45004 switch (_b) {
45005 case "BadRequestException": return [3 /*break*/, 2];
45006 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45007 case "ForbiddenException": return [3 /*break*/, 4];
45008 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45009 case "InternalServerErrorException": return [3 /*break*/, 6];
45010 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45011 case "MethodNotAllowedException": return [3 /*break*/, 8];
45012 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45013 case "NotFoundException": return [3 /*break*/, 10];
45014 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45015 case "PayloadTooLargeException": return [3 /*break*/, 12];
45016 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45017 case "TooManyRequestsException": return [3 /*break*/, 14];
45018 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45019 }
45020 return [3 /*break*/, 16];
45021 case 2:
45022 _c = [{}];
45023 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45024 case 3:
45025 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45026 return [3 /*break*/, 17];
45027 case 4:
45028 _d = [{}];
45029 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45030 case 5:
45031 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45032 return [3 /*break*/, 17];
45033 case 6:
45034 _e = [{}];
45035 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45036 case 7:
45037 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45038 return [3 /*break*/, 17];
45039 case 8:
45040 _f = [{}];
45041 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45042 case 9:
45043 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45044 return [3 /*break*/, 17];
45045 case 10:
45046 _g = [{}];
45047 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45048 case 11:
45049 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45050 return [3 /*break*/, 17];
45051 case 12:
45052 _h = [{}];
45053 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45054 case 13:
45055 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45056 return [3 /*break*/, 17];
45057 case 14:
45058 _j = [{}];
45059 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45060 case 15:
45061 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45062 return [3 /*break*/, 17];
45063 case 16:
45064 parsedBody = parsedOutput.body;
45065 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45066 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45067 _l.label = 17;
45068 case 17:
45069 message = response.message || response.Message || errorCode;
45070 response.message = message;
45071 delete response.Message;
45072 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45073 }
45074 });
45075}); };
45076var deserializeAws_restJson1UpdateApnsSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45077 var contents, data;
45078 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45079 switch (_a.label) {
45080 case 0:
45081 if (output.statusCode !== 200 && output.statusCode >= 300) {
45082 return [2 /*return*/, deserializeAws_restJson1UpdateApnsSandboxChannelCommandError(output, context)];
45083 }
45084 contents = {
45085 $metadata: deserializeMetadata(output),
45086 APNSSandboxChannelResponse: undefined,
45087 };
45088 return [4 /*yield*/, parseBody(output.body, context)];
45089 case 1:
45090 data = _a.sent();
45091 contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context);
45092 return [2 /*return*/, Promise.resolve(contents)];
45093 }
45094 });
45095}); };
45096var deserializeAws_restJson1UpdateApnsSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45097 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45098 var _k;
45099 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45100 switch (_l.label) {
45101 case 0:
45102 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45103 _k = {};
45104 return [4 /*yield*/, parseBody(output.body, context)];
45105 case 1:
45106 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45107 errorCode = "UnknownError";
45108 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45109 _b = errorCode;
45110 switch (_b) {
45111 case "BadRequestException": return [3 /*break*/, 2];
45112 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45113 case "ForbiddenException": return [3 /*break*/, 4];
45114 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45115 case "InternalServerErrorException": return [3 /*break*/, 6];
45116 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45117 case "MethodNotAllowedException": return [3 /*break*/, 8];
45118 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45119 case "NotFoundException": return [3 /*break*/, 10];
45120 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45121 case "PayloadTooLargeException": return [3 /*break*/, 12];
45122 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45123 case "TooManyRequestsException": return [3 /*break*/, 14];
45124 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45125 }
45126 return [3 /*break*/, 16];
45127 case 2:
45128 _c = [{}];
45129 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45130 case 3:
45131 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45132 return [3 /*break*/, 17];
45133 case 4:
45134 _d = [{}];
45135 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45136 case 5:
45137 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45138 return [3 /*break*/, 17];
45139 case 6:
45140 _e = [{}];
45141 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45142 case 7:
45143 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45144 return [3 /*break*/, 17];
45145 case 8:
45146 _f = [{}];
45147 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45148 case 9:
45149 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45150 return [3 /*break*/, 17];
45151 case 10:
45152 _g = [{}];
45153 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45154 case 11:
45155 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45156 return [3 /*break*/, 17];
45157 case 12:
45158 _h = [{}];
45159 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45160 case 13:
45161 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45162 return [3 /*break*/, 17];
45163 case 14:
45164 _j = [{}];
45165 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45166 case 15:
45167 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45168 return [3 /*break*/, 17];
45169 case 16:
45170 parsedBody = parsedOutput.body;
45171 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45172 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45173 _l.label = 17;
45174 case 17:
45175 message = response.message || response.Message || errorCode;
45176 response.message = message;
45177 delete response.Message;
45178 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45179 }
45180 });
45181}); };
45182var deserializeAws_restJson1UpdateApnsVoipChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45183 var contents, data;
45184 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45185 switch (_a.label) {
45186 case 0:
45187 if (output.statusCode !== 200 && output.statusCode >= 300) {
45188 return [2 /*return*/, deserializeAws_restJson1UpdateApnsVoipChannelCommandError(output, context)];
45189 }
45190 contents = {
45191 $metadata: deserializeMetadata(output),
45192 APNSVoipChannelResponse: undefined,
45193 };
45194 return [4 /*yield*/, parseBody(output.body, context)];
45195 case 1:
45196 data = _a.sent();
45197 contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context);
45198 return [2 /*return*/, Promise.resolve(contents)];
45199 }
45200 });
45201}); };
45202var deserializeAws_restJson1UpdateApnsVoipChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45203 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45204 var _k;
45205 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45206 switch (_l.label) {
45207 case 0:
45208 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45209 _k = {};
45210 return [4 /*yield*/, parseBody(output.body, context)];
45211 case 1:
45212 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45213 errorCode = "UnknownError";
45214 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45215 _b = errorCode;
45216 switch (_b) {
45217 case "BadRequestException": return [3 /*break*/, 2];
45218 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45219 case "ForbiddenException": return [3 /*break*/, 4];
45220 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45221 case "InternalServerErrorException": return [3 /*break*/, 6];
45222 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45223 case "MethodNotAllowedException": return [3 /*break*/, 8];
45224 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45225 case "NotFoundException": return [3 /*break*/, 10];
45226 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45227 case "PayloadTooLargeException": return [3 /*break*/, 12];
45228 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45229 case "TooManyRequestsException": return [3 /*break*/, 14];
45230 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45231 }
45232 return [3 /*break*/, 16];
45233 case 2:
45234 _c = [{}];
45235 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45236 case 3:
45237 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45238 return [3 /*break*/, 17];
45239 case 4:
45240 _d = [{}];
45241 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45242 case 5:
45243 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45244 return [3 /*break*/, 17];
45245 case 6:
45246 _e = [{}];
45247 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45248 case 7:
45249 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45250 return [3 /*break*/, 17];
45251 case 8:
45252 _f = [{}];
45253 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45254 case 9:
45255 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45256 return [3 /*break*/, 17];
45257 case 10:
45258 _g = [{}];
45259 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45260 case 11:
45261 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45262 return [3 /*break*/, 17];
45263 case 12:
45264 _h = [{}];
45265 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45266 case 13:
45267 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45268 return [3 /*break*/, 17];
45269 case 14:
45270 _j = [{}];
45271 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45272 case 15:
45273 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45274 return [3 /*break*/, 17];
45275 case 16:
45276 parsedBody = parsedOutput.body;
45277 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45278 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45279 _l.label = 17;
45280 case 17:
45281 message = response.message || response.Message || errorCode;
45282 response.message = message;
45283 delete response.Message;
45284 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45285 }
45286 });
45287}); };
45288var deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45289 var contents, data;
45290 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45291 switch (_a.label) {
45292 case 0:
45293 if (output.statusCode !== 200 && output.statusCode >= 300) {
45294 return [2 /*return*/, deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError(output, context)];
45295 }
45296 contents = {
45297 $metadata: deserializeMetadata(output),
45298 APNSVoipSandboxChannelResponse: undefined,
45299 };
45300 return [4 /*yield*/, parseBody(output.body, context)];
45301 case 1:
45302 data = _a.sent();
45303 contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context);
45304 return [2 /*return*/, Promise.resolve(contents)];
45305 }
45306 });
45307}); };
45308var deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45309 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45310 var _k;
45311 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45312 switch (_l.label) {
45313 case 0:
45314 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45315 _k = {};
45316 return [4 /*yield*/, parseBody(output.body, context)];
45317 case 1:
45318 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45319 errorCode = "UnknownError";
45320 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45321 _b = errorCode;
45322 switch (_b) {
45323 case "BadRequestException": return [3 /*break*/, 2];
45324 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45325 case "ForbiddenException": return [3 /*break*/, 4];
45326 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45327 case "InternalServerErrorException": return [3 /*break*/, 6];
45328 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45329 case "MethodNotAllowedException": return [3 /*break*/, 8];
45330 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45331 case "NotFoundException": return [3 /*break*/, 10];
45332 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45333 case "PayloadTooLargeException": return [3 /*break*/, 12];
45334 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45335 case "TooManyRequestsException": return [3 /*break*/, 14];
45336 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45337 }
45338 return [3 /*break*/, 16];
45339 case 2:
45340 _c = [{}];
45341 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45342 case 3:
45343 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45344 return [3 /*break*/, 17];
45345 case 4:
45346 _d = [{}];
45347 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45348 case 5:
45349 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45350 return [3 /*break*/, 17];
45351 case 6:
45352 _e = [{}];
45353 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45354 case 7:
45355 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45356 return [3 /*break*/, 17];
45357 case 8:
45358 _f = [{}];
45359 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45360 case 9:
45361 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45362 return [3 /*break*/, 17];
45363 case 10:
45364 _g = [{}];
45365 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45366 case 11:
45367 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45368 return [3 /*break*/, 17];
45369 case 12:
45370 _h = [{}];
45371 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45372 case 13:
45373 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45374 return [3 /*break*/, 17];
45375 case 14:
45376 _j = [{}];
45377 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45378 case 15:
45379 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45380 return [3 /*break*/, 17];
45381 case 16:
45382 parsedBody = parsedOutput.body;
45383 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45384 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45385 _l.label = 17;
45386 case 17:
45387 message = response.message || response.Message || errorCode;
45388 response.message = message;
45389 delete response.Message;
45390 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45391 }
45392 });
45393}); };
45394var deserializeAws_restJson1UpdateApplicationSettingsCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45395 var contents, data;
45396 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45397 switch (_a.label) {
45398 case 0:
45399 if (output.statusCode !== 200 && output.statusCode >= 300) {
45400 return [2 /*return*/, deserializeAws_restJson1UpdateApplicationSettingsCommandError(output, context)];
45401 }
45402 contents = {
45403 $metadata: deserializeMetadata(output),
45404 ApplicationSettingsResource: undefined,
45405 };
45406 return [4 /*yield*/, parseBody(output.body, context)];
45407 case 1:
45408 data = _a.sent();
45409 contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context);
45410 return [2 /*return*/, Promise.resolve(contents)];
45411 }
45412 });
45413}); };
45414var deserializeAws_restJson1UpdateApplicationSettingsCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45415 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45416 var _k;
45417 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45418 switch (_l.label) {
45419 case 0:
45420 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45421 _k = {};
45422 return [4 /*yield*/, parseBody(output.body, context)];
45423 case 1:
45424 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45425 errorCode = "UnknownError";
45426 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45427 _b = errorCode;
45428 switch (_b) {
45429 case "BadRequestException": return [3 /*break*/, 2];
45430 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45431 case "ForbiddenException": return [3 /*break*/, 4];
45432 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45433 case "InternalServerErrorException": return [3 /*break*/, 6];
45434 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45435 case "MethodNotAllowedException": return [3 /*break*/, 8];
45436 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45437 case "NotFoundException": return [3 /*break*/, 10];
45438 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45439 case "PayloadTooLargeException": return [3 /*break*/, 12];
45440 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45441 case "TooManyRequestsException": return [3 /*break*/, 14];
45442 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45443 }
45444 return [3 /*break*/, 16];
45445 case 2:
45446 _c = [{}];
45447 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45448 case 3:
45449 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45450 return [3 /*break*/, 17];
45451 case 4:
45452 _d = [{}];
45453 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45454 case 5:
45455 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45456 return [3 /*break*/, 17];
45457 case 6:
45458 _e = [{}];
45459 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45460 case 7:
45461 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45462 return [3 /*break*/, 17];
45463 case 8:
45464 _f = [{}];
45465 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45466 case 9:
45467 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45468 return [3 /*break*/, 17];
45469 case 10:
45470 _g = [{}];
45471 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45472 case 11:
45473 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45474 return [3 /*break*/, 17];
45475 case 12:
45476 _h = [{}];
45477 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45478 case 13:
45479 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45480 return [3 /*break*/, 17];
45481 case 14:
45482 _j = [{}];
45483 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45484 case 15:
45485 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45486 return [3 /*break*/, 17];
45487 case 16:
45488 parsedBody = parsedOutput.body;
45489 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45490 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45491 _l.label = 17;
45492 case 17:
45493 message = response.message || response.Message || errorCode;
45494 response.message = message;
45495 delete response.Message;
45496 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45497 }
45498 });
45499}); };
45500var deserializeAws_restJson1UpdateBaiduChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45501 var contents, data;
45502 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45503 switch (_a.label) {
45504 case 0:
45505 if (output.statusCode !== 200 && output.statusCode >= 300) {
45506 return [2 /*return*/, deserializeAws_restJson1UpdateBaiduChannelCommandError(output, context)];
45507 }
45508 contents = {
45509 $metadata: deserializeMetadata(output),
45510 BaiduChannelResponse: undefined,
45511 };
45512 return [4 /*yield*/, parseBody(output.body, context)];
45513 case 1:
45514 data = _a.sent();
45515 contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context);
45516 return [2 /*return*/, Promise.resolve(contents)];
45517 }
45518 });
45519}); };
45520var deserializeAws_restJson1UpdateBaiduChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45521 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45522 var _k;
45523 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45524 switch (_l.label) {
45525 case 0:
45526 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45527 _k = {};
45528 return [4 /*yield*/, parseBody(output.body, context)];
45529 case 1:
45530 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45531 errorCode = "UnknownError";
45532 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45533 _b = errorCode;
45534 switch (_b) {
45535 case "BadRequestException": return [3 /*break*/, 2];
45536 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45537 case "ForbiddenException": return [3 /*break*/, 4];
45538 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45539 case "InternalServerErrorException": return [3 /*break*/, 6];
45540 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45541 case "MethodNotAllowedException": return [3 /*break*/, 8];
45542 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45543 case "NotFoundException": return [3 /*break*/, 10];
45544 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45545 case "PayloadTooLargeException": return [3 /*break*/, 12];
45546 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45547 case "TooManyRequestsException": return [3 /*break*/, 14];
45548 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45549 }
45550 return [3 /*break*/, 16];
45551 case 2:
45552 _c = [{}];
45553 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45554 case 3:
45555 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45556 return [3 /*break*/, 17];
45557 case 4:
45558 _d = [{}];
45559 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45560 case 5:
45561 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45562 return [3 /*break*/, 17];
45563 case 6:
45564 _e = [{}];
45565 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45566 case 7:
45567 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45568 return [3 /*break*/, 17];
45569 case 8:
45570 _f = [{}];
45571 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45572 case 9:
45573 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45574 return [3 /*break*/, 17];
45575 case 10:
45576 _g = [{}];
45577 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45578 case 11:
45579 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45580 return [3 /*break*/, 17];
45581 case 12:
45582 _h = [{}];
45583 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45584 case 13:
45585 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45586 return [3 /*break*/, 17];
45587 case 14:
45588 _j = [{}];
45589 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45590 case 15:
45591 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45592 return [3 /*break*/, 17];
45593 case 16:
45594 parsedBody = parsedOutput.body;
45595 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45596 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45597 _l.label = 17;
45598 case 17:
45599 message = response.message || response.Message || errorCode;
45600 response.message = message;
45601 delete response.Message;
45602 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45603 }
45604 });
45605}); };
45606var deserializeAws_restJson1UpdateCampaignCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45607 var contents, data;
45608 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45609 switch (_a.label) {
45610 case 0:
45611 if (output.statusCode !== 200 && output.statusCode >= 300) {
45612 return [2 /*return*/, deserializeAws_restJson1UpdateCampaignCommandError(output, context)];
45613 }
45614 contents = {
45615 $metadata: deserializeMetadata(output),
45616 CampaignResponse: undefined,
45617 };
45618 return [4 /*yield*/, parseBody(output.body, context)];
45619 case 1:
45620 data = _a.sent();
45621 contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context);
45622 return [2 /*return*/, Promise.resolve(contents)];
45623 }
45624 });
45625}); };
45626var deserializeAws_restJson1UpdateCampaignCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45627 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45628 var _k;
45629 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45630 switch (_l.label) {
45631 case 0:
45632 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45633 _k = {};
45634 return [4 /*yield*/, parseBody(output.body, context)];
45635 case 1:
45636 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45637 errorCode = "UnknownError";
45638 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45639 _b = errorCode;
45640 switch (_b) {
45641 case "BadRequestException": return [3 /*break*/, 2];
45642 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45643 case "ForbiddenException": return [3 /*break*/, 4];
45644 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45645 case "InternalServerErrorException": return [3 /*break*/, 6];
45646 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45647 case "MethodNotAllowedException": return [3 /*break*/, 8];
45648 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45649 case "NotFoundException": return [3 /*break*/, 10];
45650 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45651 case "PayloadTooLargeException": return [3 /*break*/, 12];
45652 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45653 case "TooManyRequestsException": return [3 /*break*/, 14];
45654 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45655 }
45656 return [3 /*break*/, 16];
45657 case 2:
45658 _c = [{}];
45659 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45660 case 3:
45661 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45662 return [3 /*break*/, 17];
45663 case 4:
45664 _d = [{}];
45665 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45666 case 5:
45667 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45668 return [3 /*break*/, 17];
45669 case 6:
45670 _e = [{}];
45671 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45672 case 7:
45673 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45674 return [3 /*break*/, 17];
45675 case 8:
45676 _f = [{}];
45677 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45678 case 9:
45679 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45680 return [3 /*break*/, 17];
45681 case 10:
45682 _g = [{}];
45683 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45684 case 11:
45685 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45686 return [3 /*break*/, 17];
45687 case 12:
45688 _h = [{}];
45689 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45690 case 13:
45691 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45692 return [3 /*break*/, 17];
45693 case 14:
45694 _j = [{}];
45695 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45696 case 15:
45697 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45698 return [3 /*break*/, 17];
45699 case 16:
45700 parsedBody = parsedOutput.body;
45701 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45702 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45703 _l.label = 17;
45704 case 17:
45705 message = response.message || response.Message || errorCode;
45706 response.message = message;
45707 delete response.Message;
45708 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45709 }
45710 });
45711}); };
45712var deserializeAws_restJson1UpdateEmailChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45713 var contents, data;
45714 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45715 switch (_a.label) {
45716 case 0:
45717 if (output.statusCode !== 200 && output.statusCode >= 300) {
45718 return [2 /*return*/, deserializeAws_restJson1UpdateEmailChannelCommandError(output, context)];
45719 }
45720 contents = {
45721 $metadata: deserializeMetadata(output),
45722 EmailChannelResponse: undefined,
45723 };
45724 return [4 /*yield*/, parseBody(output.body, context)];
45725 case 1:
45726 data = _a.sent();
45727 contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context);
45728 return [2 /*return*/, Promise.resolve(contents)];
45729 }
45730 });
45731}); };
45732var deserializeAws_restJson1UpdateEmailChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45733 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45734 var _k;
45735 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45736 switch (_l.label) {
45737 case 0:
45738 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45739 _k = {};
45740 return [4 /*yield*/, parseBody(output.body, context)];
45741 case 1:
45742 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45743 errorCode = "UnknownError";
45744 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45745 _b = errorCode;
45746 switch (_b) {
45747 case "BadRequestException": return [3 /*break*/, 2];
45748 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45749 case "ForbiddenException": return [3 /*break*/, 4];
45750 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45751 case "InternalServerErrorException": return [3 /*break*/, 6];
45752 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45753 case "MethodNotAllowedException": return [3 /*break*/, 8];
45754 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45755 case "NotFoundException": return [3 /*break*/, 10];
45756 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45757 case "PayloadTooLargeException": return [3 /*break*/, 12];
45758 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45759 case "TooManyRequestsException": return [3 /*break*/, 14];
45760 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45761 }
45762 return [3 /*break*/, 16];
45763 case 2:
45764 _c = [{}];
45765 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45766 case 3:
45767 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45768 return [3 /*break*/, 17];
45769 case 4:
45770 _d = [{}];
45771 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45772 case 5:
45773 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45774 return [3 /*break*/, 17];
45775 case 6:
45776 _e = [{}];
45777 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45778 case 7:
45779 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45780 return [3 /*break*/, 17];
45781 case 8:
45782 _f = [{}];
45783 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45784 case 9:
45785 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45786 return [3 /*break*/, 17];
45787 case 10:
45788 _g = [{}];
45789 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45790 case 11:
45791 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45792 return [3 /*break*/, 17];
45793 case 12:
45794 _h = [{}];
45795 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45796 case 13:
45797 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45798 return [3 /*break*/, 17];
45799 case 14:
45800 _j = [{}];
45801 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45802 case 15:
45803 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45804 return [3 /*break*/, 17];
45805 case 16:
45806 parsedBody = parsedOutput.body;
45807 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45808 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45809 _l.label = 17;
45810 case 17:
45811 message = response.message || response.Message || errorCode;
45812 response.message = message;
45813 delete response.Message;
45814 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45815 }
45816 });
45817}); };
45818var deserializeAws_restJson1UpdateEmailTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45819 var contents, data;
45820 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45821 switch (_a.label) {
45822 case 0:
45823 if (output.statusCode !== 202 && output.statusCode >= 300) {
45824 return [2 /*return*/, deserializeAws_restJson1UpdateEmailTemplateCommandError(output, context)];
45825 }
45826 contents = {
45827 $metadata: deserializeMetadata(output),
45828 MessageBody: undefined,
45829 };
45830 return [4 /*yield*/, parseBody(output.body, context)];
45831 case 1:
45832 data = _a.sent();
45833 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
45834 return [2 /*return*/, Promise.resolve(contents)];
45835 }
45836 });
45837}); };
45838var deserializeAws_restJson1UpdateEmailTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45839 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45840 var _k;
45841 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45842 switch (_l.label) {
45843 case 0:
45844 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45845 _k = {};
45846 return [4 /*yield*/, parseBody(output.body, context)];
45847 case 1:
45848 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45849 errorCode = "UnknownError";
45850 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45851 _b = errorCode;
45852 switch (_b) {
45853 case "BadRequestException": return [3 /*break*/, 2];
45854 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45855 case "ForbiddenException": return [3 /*break*/, 4];
45856 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45857 case "InternalServerErrorException": return [3 /*break*/, 6];
45858 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45859 case "MethodNotAllowedException": return [3 /*break*/, 8];
45860 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45861 case "NotFoundException": return [3 /*break*/, 10];
45862 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45863 case "PayloadTooLargeException": return [3 /*break*/, 12];
45864 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45865 case "TooManyRequestsException": return [3 /*break*/, 14];
45866 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45867 }
45868 return [3 /*break*/, 16];
45869 case 2:
45870 _c = [{}];
45871 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45872 case 3:
45873 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45874 return [3 /*break*/, 17];
45875 case 4:
45876 _d = [{}];
45877 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45878 case 5:
45879 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45880 return [3 /*break*/, 17];
45881 case 6:
45882 _e = [{}];
45883 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45884 case 7:
45885 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45886 return [3 /*break*/, 17];
45887 case 8:
45888 _f = [{}];
45889 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45890 case 9:
45891 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45892 return [3 /*break*/, 17];
45893 case 10:
45894 _g = [{}];
45895 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
45896 case 11:
45897 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45898 return [3 /*break*/, 17];
45899 case 12:
45900 _h = [{}];
45901 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
45902 case 13:
45903 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45904 return [3 /*break*/, 17];
45905 case 14:
45906 _j = [{}];
45907 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
45908 case 15:
45909 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45910 return [3 /*break*/, 17];
45911 case 16:
45912 parsedBody = parsedOutput.body;
45913 errorCode = parsedBody.code || parsedBody.Code || errorCode;
45914 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
45915 _l.label = 17;
45916 case 17:
45917 message = response.message || response.Message || errorCode;
45918 response.message = message;
45919 delete response.Message;
45920 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
45921 }
45922 });
45923}); };
45924var deserializeAws_restJson1UpdateEndpointCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45925 var contents, data;
45926 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
45927 switch (_a.label) {
45928 case 0:
45929 if (output.statusCode !== 202 && output.statusCode >= 300) {
45930 return [2 /*return*/, deserializeAws_restJson1UpdateEndpointCommandError(output, context)];
45931 }
45932 contents = {
45933 $metadata: deserializeMetadata(output),
45934 MessageBody: undefined,
45935 };
45936 return [4 /*yield*/, parseBody(output.body, context)];
45937 case 1:
45938 data = _a.sent();
45939 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
45940 return [2 /*return*/, Promise.resolve(contents)];
45941 }
45942 });
45943}); };
45944var deserializeAws_restJson1UpdateEndpointCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
45945 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
45946 var _k;
45947 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
45948 switch (_l.label) {
45949 case 0:
45950 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
45951 _k = {};
45952 return [4 /*yield*/, parseBody(output.body, context)];
45953 case 1:
45954 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
45955 errorCode = "UnknownError";
45956 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
45957 _b = errorCode;
45958 switch (_b) {
45959 case "BadRequestException": return [3 /*break*/, 2];
45960 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
45961 case "ForbiddenException": return [3 /*break*/, 4];
45962 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
45963 case "InternalServerErrorException": return [3 /*break*/, 6];
45964 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
45965 case "MethodNotAllowedException": return [3 /*break*/, 8];
45966 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
45967 case "NotFoundException": return [3 /*break*/, 10];
45968 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
45969 case "PayloadTooLargeException": return [3 /*break*/, 12];
45970 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
45971 case "TooManyRequestsException": return [3 /*break*/, 14];
45972 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
45973 }
45974 return [3 /*break*/, 16];
45975 case 2:
45976 _c = [{}];
45977 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
45978 case 3:
45979 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45980 return [3 /*break*/, 17];
45981 case 4:
45982 _d = [{}];
45983 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
45984 case 5:
45985 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45986 return [3 /*break*/, 17];
45987 case 6:
45988 _e = [{}];
45989 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
45990 case 7:
45991 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45992 return [3 /*break*/, 17];
45993 case 8:
45994 _f = [{}];
45995 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
45996 case 9:
45997 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
45998 return [3 /*break*/, 17];
45999 case 10:
46000 _g = [{}];
46001 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46002 case 11:
46003 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46004 return [3 /*break*/, 17];
46005 case 12:
46006 _h = [{}];
46007 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46008 case 13:
46009 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46010 return [3 /*break*/, 17];
46011 case 14:
46012 _j = [{}];
46013 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46014 case 15:
46015 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46016 return [3 /*break*/, 17];
46017 case 16:
46018 parsedBody = parsedOutput.body;
46019 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46020 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46021 _l.label = 17;
46022 case 17:
46023 message = response.message || response.Message || errorCode;
46024 response.message = message;
46025 delete response.Message;
46026 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46027 }
46028 });
46029}); };
46030var deserializeAws_restJson1UpdateEndpointsBatchCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46031 var contents, data;
46032 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46033 switch (_a.label) {
46034 case 0:
46035 if (output.statusCode !== 202 && output.statusCode >= 300) {
46036 return [2 /*return*/, deserializeAws_restJson1UpdateEndpointsBatchCommandError(output, context)];
46037 }
46038 contents = {
46039 $metadata: deserializeMetadata(output),
46040 MessageBody: undefined,
46041 };
46042 return [4 /*yield*/, parseBody(output.body, context)];
46043 case 1:
46044 data = _a.sent();
46045 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
46046 return [2 /*return*/, Promise.resolve(contents)];
46047 }
46048 });
46049}); };
46050var deserializeAws_restJson1UpdateEndpointsBatchCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46051 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46052 var _k;
46053 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46054 switch (_l.label) {
46055 case 0:
46056 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46057 _k = {};
46058 return [4 /*yield*/, parseBody(output.body, context)];
46059 case 1:
46060 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46061 errorCode = "UnknownError";
46062 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46063 _b = errorCode;
46064 switch (_b) {
46065 case "BadRequestException": return [3 /*break*/, 2];
46066 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46067 case "ForbiddenException": return [3 /*break*/, 4];
46068 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46069 case "InternalServerErrorException": return [3 /*break*/, 6];
46070 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46071 case "MethodNotAllowedException": return [3 /*break*/, 8];
46072 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46073 case "NotFoundException": return [3 /*break*/, 10];
46074 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46075 case "PayloadTooLargeException": return [3 /*break*/, 12];
46076 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46077 case "TooManyRequestsException": return [3 /*break*/, 14];
46078 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46079 }
46080 return [3 /*break*/, 16];
46081 case 2:
46082 _c = [{}];
46083 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46084 case 3:
46085 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46086 return [3 /*break*/, 17];
46087 case 4:
46088 _d = [{}];
46089 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46090 case 5:
46091 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46092 return [3 /*break*/, 17];
46093 case 6:
46094 _e = [{}];
46095 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46096 case 7:
46097 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46098 return [3 /*break*/, 17];
46099 case 8:
46100 _f = [{}];
46101 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46102 case 9:
46103 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46104 return [3 /*break*/, 17];
46105 case 10:
46106 _g = [{}];
46107 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46108 case 11:
46109 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46110 return [3 /*break*/, 17];
46111 case 12:
46112 _h = [{}];
46113 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46114 case 13:
46115 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46116 return [3 /*break*/, 17];
46117 case 14:
46118 _j = [{}];
46119 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46120 case 15:
46121 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46122 return [3 /*break*/, 17];
46123 case 16:
46124 parsedBody = parsedOutput.body;
46125 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46126 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46127 _l.label = 17;
46128 case 17:
46129 message = response.message || response.Message || errorCode;
46130 response.message = message;
46131 delete response.Message;
46132 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46133 }
46134 });
46135}); };
46136var deserializeAws_restJson1UpdateGcmChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46137 var contents, data;
46138 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46139 switch (_a.label) {
46140 case 0:
46141 if (output.statusCode !== 200 && output.statusCode >= 300) {
46142 return [2 /*return*/, deserializeAws_restJson1UpdateGcmChannelCommandError(output, context)];
46143 }
46144 contents = {
46145 $metadata: deserializeMetadata(output),
46146 GCMChannelResponse: undefined,
46147 };
46148 return [4 /*yield*/, parseBody(output.body, context)];
46149 case 1:
46150 data = _a.sent();
46151 contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context);
46152 return [2 /*return*/, Promise.resolve(contents)];
46153 }
46154 });
46155}); };
46156var deserializeAws_restJson1UpdateGcmChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46157 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46158 var _k;
46159 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46160 switch (_l.label) {
46161 case 0:
46162 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46163 _k = {};
46164 return [4 /*yield*/, parseBody(output.body, context)];
46165 case 1:
46166 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46167 errorCode = "UnknownError";
46168 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46169 _b = errorCode;
46170 switch (_b) {
46171 case "BadRequestException": return [3 /*break*/, 2];
46172 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46173 case "ForbiddenException": return [3 /*break*/, 4];
46174 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46175 case "InternalServerErrorException": return [3 /*break*/, 6];
46176 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46177 case "MethodNotAllowedException": return [3 /*break*/, 8];
46178 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46179 case "NotFoundException": return [3 /*break*/, 10];
46180 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46181 case "PayloadTooLargeException": return [3 /*break*/, 12];
46182 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46183 case "TooManyRequestsException": return [3 /*break*/, 14];
46184 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46185 }
46186 return [3 /*break*/, 16];
46187 case 2:
46188 _c = [{}];
46189 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46190 case 3:
46191 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46192 return [3 /*break*/, 17];
46193 case 4:
46194 _d = [{}];
46195 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46196 case 5:
46197 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46198 return [3 /*break*/, 17];
46199 case 6:
46200 _e = [{}];
46201 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46202 case 7:
46203 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46204 return [3 /*break*/, 17];
46205 case 8:
46206 _f = [{}];
46207 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46208 case 9:
46209 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46210 return [3 /*break*/, 17];
46211 case 10:
46212 _g = [{}];
46213 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46214 case 11:
46215 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46216 return [3 /*break*/, 17];
46217 case 12:
46218 _h = [{}];
46219 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46220 case 13:
46221 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46222 return [3 /*break*/, 17];
46223 case 14:
46224 _j = [{}];
46225 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46226 case 15:
46227 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46228 return [3 /*break*/, 17];
46229 case 16:
46230 parsedBody = parsedOutput.body;
46231 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46232 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46233 _l.label = 17;
46234 case 17:
46235 message = response.message || response.Message || errorCode;
46236 response.message = message;
46237 delete response.Message;
46238 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46239 }
46240 });
46241}); };
46242var deserializeAws_restJson1UpdateJourneyCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46243 var contents, data;
46244 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46245 switch (_a.label) {
46246 case 0:
46247 if (output.statusCode !== 200 && output.statusCode >= 300) {
46248 return [2 /*return*/, deserializeAws_restJson1UpdateJourneyCommandError(output, context)];
46249 }
46250 contents = {
46251 $metadata: deserializeMetadata(output),
46252 JourneyResponse: undefined,
46253 };
46254 return [4 /*yield*/, parseBody(output.body, context)];
46255 case 1:
46256 data = _a.sent();
46257 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
46258 return [2 /*return*/, Promise.resolve(contents)];
46259 }
46260 });
46261}); };
46262var deserializeAws_restJson1UpdateJourneyCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46263 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message;
46264 var _l;
46265 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_m) {
46266 switch (_m.label) {
46267 case 0:
46268 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46269 _l = {};
46270 return [4 /*yield*/, parseBody(output.body, context)];
46271 case 1:
46272 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
46273 errorCode = "UnknownError";
46274 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46275 _b = errorCode;
46276 switch (_b) {
46277 case "BadRequestException": return [3 /*break*/, 2];
46278 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46279 case "ConflictException": return [3 /*break*/, 4];
46280 case "com.amazonaws.pinpoint#ConflictException": return [3 /*break*/, 4];
46281 case "ForbiddenException": return [3 /*break*/, 6];
46282 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 6];
46283 case "InternalServerErrorException": return [3 /*break*/, 8];
46284 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 8];
46285 case "MethodNotAllowedException": return [3 /*break*/, 10];
46286 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 10];
46287 case "NotFoundException": return [3 /*break*/, 12];
46288 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 12];
46289 case "PayloadTooLargeException": return [3 /*break*/, 14];
46290 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 14];
46291 case "TooManyRequestsException": return [3 /*break*/, 16];
46292 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 16];
46293 }
46294 return [3 /*break*/, 18];
46295 case 2:
46296 _c = [{}];
46297 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46298 case 3:
46299 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46300 return [3 /*break*/, 19];
46301 case 4:
46302 _d = [{}];
46303 return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
46304 case 5:
46305 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46306 return [3 /*break*/, 19];
46307 case 6:
46308 _e = [{}];
46309 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46310 case 7:
46311 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46312 return [3 /*break*/, 19];
46313 case 8:
46314 _f = [{}];
46315 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46316 case 9:
46317 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46318 return [3 /*break*/, 19];
46319 case 10:
46320 _g = [{}];
46321 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46322 case 11:
46323 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46324 return [3 /*break*/, 19];
46325 case 12:
46326 _h = [{}];
46327 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46328 case 13:
46329 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46330 return [3 /*break*/, 19];
46331 case 14:
46332 _j = [{}];
46333 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46334 case 15:
46335 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46336 return [3 /*break*/, 19];
46337 case 16:
46338 _k = [{}];
46339 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46340 case 17:
46341 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46342 return [3 /*break*/, 19];
46343 case 18:
46344 parsedBody = parsedOutput.body;
46345 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46346 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46347 _m.label = 19;
46348 case 19:
46349 message = response.message || response.Message || errorCode;
46350 response.message = message;
46351 delete response.Message;
46352 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46353 }
46354 });
46355}); };
46356var deserializeAws_restJson1UpdateJourneyStateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46357 var contents, data;
46358 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46359 switch (_a.label) {
46360 case 0:
46361 if (output.statusCode !== 200 && output.statusCode >= 300) {
46362 return [2 /*return*/, deserializeAws_restJson1UpdateJourneyStateCommandError(output, context)];
46363 }
46364 contents = {
46365 $metadata: deserializeMetadata(output),
46366 JourneyResponse: undefined,
46367 };
46368 return [4 /*yield*/, parseBody(output.body, context)];
46369 case 1:
46370 data = _a.sent();
46371 contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context);
46372 return [2 /*return*/, Promise.resolve(contents)];
46373 }
46374 });
46375}); };
46376var deserializeAws_restJson1UpdateJourneyStateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46377 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46378 var _k;
46379 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46380 switch (_l.label) {
46381 case 0:
46382 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46383 _k = {};
46384 return [4 /*yield*/, parseBody(output.body, context)];
46385 case 1:
46386 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46387 errorCode = "UnknownError";
46388 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46389 _b = errorCode;
46390 switch (_b) {
46391 case "BadRequestException": return [3 /*break*/, 2];
46392 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46393 case "ForbiddenException": return [3 /*break*/, 4];
46394 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46395 case "InternalServerErrorException": return [3 /*break*/, 6];
46396 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46397 case "MethodNotAllowedException": return [3 /*break*/, 8];
46398 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46399 case "NotFoundException": return [3 /*break*/, 10];
46400 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46401 case "PayloadTooLargeException": return [3 /*break*/, 12];
46402 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46403 case "TooManyRequestsException": return [3 /*break*/, 14];
46404 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46405 }
46406 return [3 /*break*/, 16];
46407 case 2:
46408 _c = [{}];
46409 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46410 case 3:
46411 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46412 return [3 /*break*/, 17];
46413 case 4:
46414 _d = [{}];
46415 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46416 case 5:
46417 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46418 return [3 /*break*/, 17];
46419 case 6:
46420 _e = [{}];
46421 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46422 case 7:
46423 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46424 return [3 /*break*/, 17];
46425 case 8:
46426 _f = [{}];
46427 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46428 case 9:
46429 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46430 return [3 /*break*/, 17];
46431 case 10:
46432 _g = [{}];
46433 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46434 case 11:
46435 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46436 return [3 /*break*/, 17];
46437 case 12:
46438 _h = [{}];
46439 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46440 case 13:
46441 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46442 return [3 /*break*/, 17];
46443 case 14:
46444 _j = [{}];
46445 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46446 case 15:
46447 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46448 return [3 /*break*/, 17];
46449 case 16:
46450 parsedBody = parsedOutput.body;
46451 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46452 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46453 _l.label = 17;
46454 case 17:
46455 message = response.message || response.Message || errorCode;
46456 response.message = message;
46457 delete response.Message;
46458 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46459 }
46460 });
46461}); };
46462var deserializeAws_restJson1UpdatePushTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46463 var contents, data;
46464 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46465 switch (_a.label) {
46466 case 0:
46467 if (output.statusCode !== 202 && output.statusCode >= 300) {
46468 return [2 /*return*/, deserializeAws_restJson1UpdatePushTemplateCommandError(output, context)];
46469 }
46470 contents = {
46471 $metadata: deserializeMetadata(output),
46472 MessageBody: undefined,
46473 };
46474 return [4 /*yield*/, parseBody(output.body, context)];
46475 case 1:
46476 data = _a.sent();
46477 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
46478 return [2 /*return*/, Promise.resolve(contents)];
46479 }
46480 });
46481}); };
46482var deserializeAws_restJson1UpdatePushTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46483 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46484 var _k;
46485 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46486 switch (_l.label) {
46487 case 0:
46488 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46489 _k = {};
46490 return [4 /*yield*/, parseBody(output.body, context)];
46491 case 1:
46492 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46493 errorCode = "UnknownError";
46494 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46495 _b = errorCode;
46496 switch (_b) {
46497 case "BadRequestException": return [3 /*break*/, 2];
46498 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46499 case "ForbiddenException": return [3 /*break*/, 4];
46500 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46501 case "InternalServerErrorException": return [3 /*break*/, 6];
46502 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46503 case "MethodNotAllowedException": return [3 /*break*/, 8];
46504 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46505 case "NotFoundException": return [3 /*break*/, 10];
46506 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46507 case "PayloadTooLargeException": return [3 /*break*/, 12];
46508 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46509 case "TooManyRequestsException": return [3 /*break*/, 14];
46510 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46511 }
46512 return [3 /*break*/, 16];
46513 case 2:
46514 _c = [{}];
46515 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46516 case 3:
46517 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46518 return [3 /*break*/, 17];
46519 case 4:
46520 _d = [{}];
46521 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46522 case 5:
46523 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46524 return [3 /*break*/, 17];
46525 case 6:
46526 _e = [{}];
46527 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46528 case 7:
46529 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46530 return [3 /*break*/, 17];
46531 case 8:
46532 _f = [{}];
46533 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46534 case 9:
46535 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46536 return [3 /*break*/, 17];
46537 case 10:
46538 _g = [{}];
46539 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46540 case 11:
46541 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46542 return [3 /*break*/, 17];
46543 case 12:
46544 _h = [{}];
46545 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46546 case 13:
46547 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46548 return [3 /*break*/, 17];
46549 case 14:
46550 _j = [{}];
46551 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46552 case 15:
46553 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46554 return [3 /*break*/, 17];
46555 case 16:
46556 parsedBody = parsedOutput.body;
46557 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46558 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46559 _l.label = 17;
46560 case 17:
46561 message = response.message || response.Message || errorCode;
46562 response.message = message;
46563 delete response.Message;
46564 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46565 }
46566 });
46567}); };
46568var deserializeAws_restJson1UpdateRecommenderConfigurationCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46569 var contents, data;
46570 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46571 switch (_a.label) {
46572 case 0:
46573 if (output.statusCode !== 200 && output.statusCode >= 300) {
46574 return [2 /*return*/, deserializeAws_restJson1UpdateRecommenderConfigurationCommandError(output, context)];
46575 }
46576 contents = {
46577 $metadata: deserializeMetadata(output),
46578 RecommenderConfigurationResponse: undefined,
46579 };
46580 return [4 /*yield*/, parseBody(output.body, context)];
46581 case 1:
46582 data = _a.sent();
46583 contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context);
46584 return [2 /*return*/, Promise.resolve(contents)];
46585 }
46586 });
46587}); };
46588var deserializeAws_restJson1UpdateRecommenderConfigurationCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46589 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46590 var _k;
46591 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46592 switch (_l.label) {
46593 case 0:
46594 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46595 _k = {};
46596 return [4 /*yield*/, parseBody(output.body, context)];
46597 case 1:
46598 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46599 errorCode = "UnknownError";
46600 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46601 _b = errorCode;
46602 switch (_b) {
46603 case "BadRequestException": return [3 /*break*/, 2];
46604 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46605 case "ForbiddenException": return [3 /*break*/, 4];
46606 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46607 case "InternalServerErrorException": return [3 /*break*/, 6];
46608 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46609 case "MethodNotAllowedException": return [3 /*break*/, 8];
46610 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46611 case "NotFoundException": return [3 /*break*/, 10];
46612 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46613 case "PayloadTooLargeException": return [3 /*break*/, 12];
46614 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46615 case "TooManyRequestsException": return [3 /*break*/, 14];
46616 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46617 }
46618 return [3 /*break*/, 16];
46619 case 2:
46620 _c = [{}];
46621 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46622 case 3:
46623 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46624 return [3 /*break*/, 17];
46625 case 4:
46626 _d = [{}];
46627 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46628 case 5:
46629 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46630 return [3 /*break*/, 17];
46631 case 6:
46632 _e = [{}];
46633 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46634 case 7:
46635 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46636 return [3 /*break*/, 17];
46637 case 8:
46638 _f = [{}];
46639 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46640 case 9:
46641 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46642 return [3 /*break*/, 17];
46643 case 10:
46644 _g = [{}];
46645 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46646 case 11:
46647 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46648 return [3 /*break*/, 17];
46649 case 12:
46650 _h = [{}];
46651 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46652 case 13:
46653 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46654 return [3 /*break*/, 17];
46655 case 14:
46656 _j = [{}];
46657 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46658 case 15:
46659 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46660 return [3 /*break*/, 17];
46661 case 16:
46662 parsedBody = parsedOutput.body;
46663 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46664 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46665 _l.label = 17;
46666 case 17:
46667 message = response.message || response.Message || errorCode;
46668 response.message = message;
46669 delete response.Message;
46670 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46671 }
46672 });
46673}); };
46674var deserializeAws_restJson1UpdateSegmentCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46675 var contents, data;
46676 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46677 switch (_a.label) {
46678 case 0:
46679 if (output.statusCode !== 200 && output.statusCode >= 300) {
46680 return [2 /*return*/, deserializeAws_restJson1UpdateSegmentCommandError(output, context)];
46681 }
46682 contents = {
46683 $metadata: deserializeMetadata(output),
46684 SegmentResponse: undefined,
46685 };
46686 return [4 /*yield*/, parseBody(output.body, context)];
46687 case 1:
46688 data = _a.sent();
46689 contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context);
46690 return [2 /*return*/, Promise.resolve(contents)];
46691 }
46692 });
46693}); };
46694var deserializeAws_restJson1UpdateSegmentCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46695 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46696 var _k;
46697 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46698 switch (_l.label) {
46699 case 0:
46700 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46701 _k = {};
46702 return [4 /*yield*/, parseBody(output.body, context)];
46703 case 1:
46704 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46705 errorCode = "UnknownError";
46706 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46707 _b = errorCode;
46708 switch (_b) {
46709 case "BadRequestException": return [3 /*break*/, 2];
46710 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46711 case "ForbiddenException": return [3 /*break*/, 4];
46712 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46713 case "InternalServerErrorException": return [3 /*break*/, 6];
46714 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46715 case "MethodNotAllowedException": return [3 /*break*/, 8];
46716 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46717 case "NotFoundException": return [3 /*break*/, 10];
46718 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46719 case "PayloadTooLargeException": return [3 /*break*/, 12];
46720 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46721 case "TooManyRequestsException": return [3 /*break*/, 14];
46722 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46723 }
46724 return [3 /*break*/, 16];
46725 case 2:
46726 _c = [{}];
46727 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46728 case 3:
46729 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46730 return [3 /*break*/, 17];
46731 case 4:
46732 _d = [{}];
46733 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46734 case 5:
46735 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46736 return [3 /*break*/, 17];
46737 case 6:
46738 _e = [{}];
46739 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46740 case 7:
46741 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46742 return [3 /*break*/, 17];
46743 case 8:
46744 _f = [{}];
46745 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46746 case 9:
46747 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46748 return [3 /*break*/, 17];
46749 case 10:
46750 _g = [{}];
46751 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46752 case 11:
46753 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46754 return [3 /*break*/, 17];
46755 case 12:
46756 _h = [{}];
46757 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46758 case 13:
46759 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46760 return [3 /*break*/, 17];
46761 case 14:
46762 _j = [{}];
46763 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46764 case 15:
46765 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46766 return [3 /*break*/, 17];
46767 case 16:
46768 parsedBody = parsedOutput.body;
46769 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46770 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46771 _l.label = 17;
46772 case 17:
46773 message = response.message || response.Message || errorCode;
46774 response.message = message;
46775 delete response.Message;
46776 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46777 }
46778 });
46779}); };
46780var deserializeAws_restJson1UpdateSmsChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46781 var contents, data;
46782 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46783 switch (_a.label) {
46784 case 0:
46785 if (output.statusCode !== 200 && output.statusCode >= 300) {
46786 return [2 /*return*/, deserializeAws_restJson1UpdateSmsChannelCommandError(output, context)];
46787 }
46788 contents = {
46789 $metadata: deserializeMetadata(output),
46790 SMSChannelResponse: undefined,
46791 };
46792 return [4 /*yield*/, parseBody(output.body, context)];
46793 case 1:
46794 data = _a.sent();
46795 contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context);
46796 return [2 /*return*/, Promise.resolve(contents)];
46797 }
46798 });
46799}); };
46800var deserializeAws_restJson1UpdateSmsChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46801 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46802 var _k;
46803 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46804 switch (_l.label) {
46805 case 0:
46806 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46807 _k = {};
46808 return [4 /*yield*/, parseBody(output.body, context)];
46809 case 1:
46810 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46811 errorCode = "UnknownError";
46812 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46813 _b = errorCode;
46814 switch (_b) {
46815 case "BadRequestException": return [3 /*break*/, 2];
46816 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46817 case "ForbiddenException": return [3 /*break*/, 4];
46818 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46819 case "InternalServerErrorException": return [3 /*break*/, 6];
46820 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46821 case "MethodNotAllowedException": return [3 /*break*/, 8];
46822 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46823 case "NotFoundException": return [3 /*break*/, 10];
46824 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46825 case "PayloadTooLargeException": return [3 /*break*/, 12];
46826 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46827 case "TooManyRequestsException": return [3 /*break*/, 14];
46828 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46829 }
46830 return [3 /*break*/, 16];
46831 case 2:
46832 _c = [{}];
46833 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46834 case 3:
46835 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46836 return [3 /*break*/, 17];
46837 case 4:
46838 _d = [{}];
46839 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46840 case 5:
46841 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46842 return [3 /*break*/, 17];
46843 case 6:
46844 _e = [{}];
46845 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46846 case 7:
46847 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46848 return [3 /*break*/, 17];
46849 case 8:
46850 _f = [{}];
46851 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46852 case 9:
46853 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46854 return [3 /*break*/, 17];
46855 case 10:
46856 _g = [{}];
46857 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46858 case 11:
46859 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46860 return [3 /*break*/, 17];
46861 case 12:
46862 _h = [{}];
46863 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46864 case 13:
46865 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46866 return [3 /*break*/, 17];
46867 case 14:
46868 _j = [{}];
46869 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46870 case 15:
46871 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46872 return [3 /*break*/, 17];
46873 case 16:
46874 parsedBody = parsedOutput.body;
46875 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46876 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46877 _l.label = 17;
46878 case 17:
46879 message = response.message || response.Message || errorCode;
46880 response.message = message;
46881 delete response.Message;
46882 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46883 }
46884 });
46885}); };
46886var deserializeAws_restJson1UpdateSmsTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46887 var contents, data;
46888 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46889 switch (_a.label) {
46890 case 0:
46891 if (output.statusCode !== 202 && output.statusCode >= 300) {
46892 return [2 /*return*/, deserializeAws_restJson1UpdateSmsTemplateCommandError(output, context)];
46893 }
46894 contents = {
46895 $metadata: deserializeMetadata(output),
46896 MessageBody: undefined,
46897 };
46898 return [4 /*yield*/, parseBody(output.body, context)];
46899 case 1:
46900 data = _a.sent();
46901 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
46902 return [2 /*return*/, Promise.resolve(contents)];
46903 }
46904 });
46905}); };
46906var deserializeAws_restJson1UpdateSmsTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46907 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
46908 var _k;
46909 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
46910 switch (_l.label) {
46911 case 0:
46912 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
46913 _k = {};
46914 return [4 /*yield*/, parseBody(output.body, context)];
46915 case 1:
46916 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
46917 errorCode = "UnknownError";
46918 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46919 _b = errorCode;
46920 switch (_b) {
46921 case "BadRequestException": return [3 /*break*/, 2];
46922 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
46923 case "ForbiddenException": return [3 /*break*/, 4];
46924 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
46925 case "InternalServerErrorException": return [3 /*break*/, 6];
46926 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
46927 case "MethodNotAllowedException": return [3 /*break*/, 8];
46928 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
46929 case "NotFoundException": return [3 /*break*/, 10];
46930 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
46931 case "PayloadTooLargeException": return [3 /*break*/, 12];
46932 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
46933 case "TooManyRequestsException": return [3 /*break*/, 14];
46934 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
46935 }
46936 return [3 /*break*/, 16];
46937 case 2:
46938 _c = [{}];
46939 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
46940 case 3:
46941 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46942 return [3 /*break*/, 17];
46943 case 4:
46944 _d = [{}];
46945 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
46946 case 5:
46947 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46948 return [3 /*break*/, 17];
46949 case 6:
46950 _e = [{}];
46951 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
46952 case 7:
46953 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46954 return [3 /*break*/, 17];
46955 case 8:
46956 _f = [{}];
46957 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
46958 case 9:
46959 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46960 return [3 /*break*/, 17];
46961 case 10:
46962 _g = [{}];
46963 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
46964 case 11:
46965 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46966 return [3 /*break*/, 17];
46967 case 12:
46968 _h = [{}];
46969 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
46970 case 13:
46971 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46972 return [3 /*break*/, 17];
46973 case 14:
46974 _j = [{}];
46975 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
46976 case 15:
46977 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
46978 return [3 /*break*/, 17];
46979 case 16:
46980 parsedBody = parsedOutput.body;
46981 errorCode = parsedBody.code || parsedBody.Code || errorCode;
46982 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
46983 _l.label = 17;
46984 case 17:
46985 message = response.message || response.Message || errorCode;
46986 response.message = message;
46987 delete response.Message;
46988 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
46989 }
46990 });
46991}); };
46992var deserializeAws_restJson1UpdateTemplateActiveVersionCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
46993 var contents, data;
46994 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
46995 switch (_a.label) {
46996 case 0:
46997 if (output.statusCode !== 200 && output.statusCode >= 300) {
46998 return [2 /*return*/, deserializeAws_restJson1UpdateTemplateActiveVersionCommandError(output, context)];
46999 }
47000 contents = {
47001 $metadata: deserializeMetadata(output),
47002 MessageBody: undefined,
47003 };
47004 return [4 /*yield*/, parseBody(output.body, context)];
47005 case 1:
47006 data = _a.sent();
47007 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
47008 return [2 /*return*/, Promise.resolve(contents)];
47009 }
47010 });
47011}); };
47012var deserializeAws_restJson1UpdateTemplateActiveVersionCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47013 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
47014 var _k;
47015 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
47016 switch (_l.label) {
47017 case 0:
47018 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
47019 _k = {};
47020 return [4 /*yield*/, parseBody(output.body, context)];
47021 case 1:
47022 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
47023 errorCode = "UnknownError";
47024 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
47025 _b = errorCode;
47026 switch (_b) {
47027 case "BadRequestException": return [3 /*break*/, 2];
47028 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
47029 case "ForbiddenException": return [3 /*break*/, 4];
47030 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
47031 case "InternalServerErrorException": return [3 /*break*/, 6];
47032 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
47033 case "MethodNotAllowedException": return [3 /*break*/, 8];
47034 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
47035 case "NotFoundException": return [3 /*break*/, 10];
47036 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
47037 case "PayloadTooLargeException": return [3 /*break*/, 12];
47038 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
47039 case "TooManyRequestsException": return [3 /*break*/, 14];
47040 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
47041 }
47042 return [3 /*break*/, 16];
47043 case 2:
47044 _c = [{}];
47045 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
47046 case 3:
47047 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47048 return [3 /*break*/, 17];
47049 case 4:
47050 _d = [{}];
47051 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
47052 case 5:
47053 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47054 return [3 /*break*/, 17];
47055 case 6:
47056 _e = [{}];
47057 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
47058 case 7:
47059 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47060 return [3 /*break*/, 17];
47061 case 8:
47062 _f = [{}];
47063 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
47064 case 9:
47065 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47066 return [3 /*break*/, 17];
47067 case 10:
47068 _g = [{}];
47069 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
47070 case 11:
47071 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47072 return [3 /*break*/, 17];
47073 case 12:
47074 _h = [{}];
47075 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
47076 case 13:
47077 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47078 return [3 /*break*/, 17];
47079 case 14:
47080 _j = [{}];
47081 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
47082 case 15:
47083 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47084 return [3 /*break*/, 17];
47085 case 16:
47086 parsedBody = parsedOutput.body;
47087 errorCode = parsedBody.code || parsedBody.Code || errorCode;
47088 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
47089 _l.label = 17;
47090 case 17:
47091 message = response.message || response.Message || errorCode;
47092 response.message = message;
47093 delete response.Message;
47094 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
47095 }
47096 });
47097}); };
47098var deserializeAws_restJson1UpdateVoiceChannelCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47099 var contents, data;
47100 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47101 switch (_a.label) {
47102 case 0:
47103 if (output.statusCode !== 200 && output.statusCode >= 300) {
47104 return [2 /*return*/, deserializeAws_restJson1UpdateVoiceChannelCommandError(output, context)];
47105 }
47106 contents = {
47107 $metadata: deserializeMetadata(output),
47108 VoiceChannelResponse: undefined,
47109 };
47110 return [4 /*yield*/, parseBody(output.body, context)];
47111 case 1:
47112 data = _a.sent();
47113 contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context);
47114 return [2 /*return*/, Promise.resolve(contents)];
47115 }
47116 });
47117}); };
47118var deserializeAws_restJson1UpdateVoiceChannelCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47119 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
47120 var _k;
47121 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
47122 switch (_l.label) {
47123 case 0:
47124 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
47125 _k = {};
47126 return [4 /*yield*/, parseBody(output.body, context)];
47127 case 1:
47128 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
47129 errorCode = "UnknownError";
47130 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
47131 _b = errorCode;
47132 switch (_b) {
47133 case "BadRequestException": return [3 /*break*/, 2];
47134 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
47135 case "ForbiddenException": return [3 /*break*/, 4];
47136 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
47137 case "InternalServerErrorException": return [3 /*break*/, 6];
47138 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
47139 case "MethodNotAllowedException": return [3 /*break*/, 8];
47140 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
47141 case "NotFoundException": return [3 /*break*/, 10];
47142 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
47143 case "PayloadTooLargeException": return [3 /*break*/, 12];
47144 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
47145 case "TooManyRequestsException": return [3 /*break*/, 14];
47146 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
47147 }
47148 return [3 /*break*/, 16];
47149 case 2:
47150 _c = [{}];
47151 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
47152 case 3:
47153 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47154 return [3 /*break*/, 17];
47155 case 4:
47156 _d = [{}];
47157 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
47158 case 5:
47159 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47160 return [3 /*break*/, 17];
47161 case 6:
47162 _e = [{}];
47163 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
47164 case 7:
47165 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47166 return [3 /*break*/, 17];
47167 case 8:
47168 _f = [{}];
47169 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
47170 case 9:
47171 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47172 return [3 /*break*/, 17];
47173 case 10:
47174 _g = [{}];
47175 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
47176 case 11:
47177 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47178 return [3 /*break*/, 17];
47179 case 12:
47180 _h = [{}];
47181 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
47182 case 13:
47183 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47184 return [3 /*break*/, 17];
47185 case 14:
47186 _j = [{}];
47187 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
47188 case 15:
47189 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47190 return [3 /*break*/, 17];
47191 case 16:
47192 parsedBody = parsedOutput.body;
47193 errorCode = parsedBody.code || parsedBody.Code || errorCode;
47194 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
47195 _l.label = 17;
47196 case 17:
47197 message = response.message || response.Message || errorCode;
47198 response.message = message;
47199 delete response.Message;
47200 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
47201 }
47202 });
47203}); };
47204var deserializeAws_restJson1UpdateVoiceTemplateCommand = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47205 var contents, data;
47206 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47207 switch (_a.label) {
47208 case 0:
47209 if (output.statusCode !== 202 && output.statusCode >= 300) {
47210 return [2 /*return*/, deserializeAws_restJson1UpdateVoiceTemplateCommandError(output, context)];
47211 }
47212 contents = {
47213 $metadata: deserializeMetadata(output),
47214 MessageBody: undefined,
47215 };
47216 return [4 /*yield*/, parseBody(output.body, context)];
47217 case 1:
47218 data = _a.sent();
47219 contents.MessageBody = deserializeAws_restJson1MessageBody(data, context);
47220 return [2 /*return*/, Promise.resolve(contents)];
47221 }
47222 });
47223}); };
47224var deserializeAws_restJson1UpdateVoiceTemplateCommandError = function (output, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47225 var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
47226 var _k;
47227 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
47228 switch (_l.label) {
47229 case 0:
47230 _a = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, output)];
47231 _k = {};
47232 return [4 /*yield*/, parseBody(output.body, context)];
47233 case 1:
47234 parsedOutput = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
47235 errorCode = "UnknownError";
47236 errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
47237 _b = errorCode;
47238 switch (_b) {
47239 case "BadRequestException": return [3 /*break*/, 2];
47240 case "com.amazonaws.pinpoint#BadRequestException": return [3 /*break*/, 2];
47241 case "ForbiddenException": return [3 /*break*/, 4];
47242 case "com.amazonaws.pinpoint#ForbiddenException": return [3 /*break*/, 4];
47243 case "InternalServerErrorException": return [3 /*break*/, 6];
47244 case "com.amazonaws.pinpoint#InternalServerErrorException": return [3 /*break*/, 6];
47245 case "MethodNotAllowedException": return [3 /*break*/, 8];
47246 case "com.amazonaws.pinpoint#MethodNotAllowedException": return [3 /*break*/, 8];
47247 case "NotFoundException": return [3 /*break*/, 10];
47248 case "com.amazonaws.pinpoint#NotFoundException": return [3 /*break*/, 10];
47249 case "PayloadTooLargeException": return [3 /*break*/, 12];
47250 case "com.amazonaws.pinpoint#PayloadTooLargeException": return [3 /*break*/, 12];
47251 case "TooManyRequestsException": return [3 /*break*/, 14];
47252 case "com.amazonaws.pinpoint#TooManyRequestsException": return [3 /*break*/, 14];
47253 }
47254 return [3 /*break*/, 16];
47255 case 2:
47256 _c = [{}];
47257 return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
47258 case 3:
47259 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47260 return [3 /*break*/, 17];
47261 case 4:
47262 _d = [{}];
47263 return [4 /*yield*/, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
47264 case 5:
47265 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47266 return [3 /*break*/, 17];
47267 case 6:
47268 _e = [{}];
47269 return [4 /*yield*/, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
47270 case 7:
47271 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47272 return [3 /*break*/, 17];
47273 case 8:
47274 _f = [{}];
47275 return [4 /*yield*/, deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)];
47276 case 9:
47277 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47278 return [3 /*break*/, 17];
47279 case 10:
47280 _g = [{}];
47281 return [4 /*yield*/, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
47282 case 11:
47283 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47284 return [3 /*break*/, 17];
47285 case 12:
47286 _h = [{}];
47287 return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
47288 case 13:
47289 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47290 return [3 /*break*/, 17];
47291 case 14:
47292 _j = [{}];
47293 return [4 /*yield*/, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
47294 case 15:
47295 response = tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
47296 return [3 /*break*/, 17];
47297 case 16:
47298 parsedBody = parsedOutput.body;
47299 errorCode = parsedBody.code || parsedBody.Code || errorCode;
47300 response = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
47301 _l.label = 17;
47302 case 17:
47303 message = response.message || response.Message || errorCode;
47304 response.message = message;
47305 delete response.Message;
47306 return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
47307 }
47308 });
47309}); };
47310var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47311 var contents, data;
47312 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47313 contents = {
47314 name: "BadRequestException",
47315 $fault: "client",
47316 $metadata: deserializeMetadata(parsedOutput),
47317 Message: undefined,
47318 RequestID: undefined,
47319 };
47320 data = parsedOutput.body;
47321 if (data.Message !== undefined && data.Message !== null) {
47322 contents.Message = data.Message;
47323 }
47324 if (data.RequestID !== undefined && data.RequestID !== null) {
47325 contents.RequestID = data.RequestID;
47326 }
47327 return [2 /*return*/, contents];
47328 });
47329}); };
47330var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47331 var contents, data;
47332 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47333 contents = {
47334 name: "ConflictException",
47335 $fault: "client",
47336 $metadata: deserializeMetadata(parsedOutput),
47337 Message: undefined,
47338 RequestID: undefined,
47339 };
47340 data = parsedOutput.body;
47341 if (data.Message !== undefined && data.Message !== null) {
47342 contents.Message = data.Message;
47343 }
47344 if (data.RequestID !== undefined && data.RequestID !== null) {
47345 contents.RequestID = data.RequestID;
47346 }
47347 return [2 /*return*/, contents];
47348 });
47349}); };
47350var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47351 var contents, data;
47352 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47353 contents = {
47354 name: "ForbiddenException",
47355 $fault: "client",
47356 $metadata: deserializeMetadata(parsedOutput),
47357 Message: undefined,
47358 RequestID: undefined,
47359 };
47360 data = parsedOutput.body;
47361 if (data.Message !== undefined && data.Message !== null) {
47362 contents.Message = data.Message;
47363 }
47364 if (data.RequestID !== undefined && data.RequestID !== null) {
47365 contents.RequestID = data.RequestID;
47366 }
47367 return [2 /*return*/, contents];
47368 });
47369}); };
47370var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47371 var contents, data;
47372 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47373 contents = {
47374 name: "InternalServerErrorException",
47375 $fault: "server",
47376 $metadata: deserializeMetadata(parsedOutput),
47377 Message: undefined,
47378 RequestID: undefined,
47379 };
47380 data = parsedOutput.body;
47381 if (data.Message !== undefined && data.Message !== null) {
47382 contents.Message = data.Message;
47383 }
47384 if (data.RequestID !== undefined && data.RequestID !== null) {
47385 contents.RequestID = data.RequestID;
47386 }
47387 return [2 /*return*/, contents];
47388 });
47389}); };
47390var deserializeAws_restJson1MethodNotAllowedExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47391 var contents, data;
47392 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47393 contents = {
47394 name: "MethodNotAllowedException",
47395 $fault: "client",
47396 $metadata: deserializeMetadata(parsedOutput),
47397 Message: undefined,
47398 RequestID: undefined,
47399 };
47400 data = parsedOutput.body;
47401 if (data.Message !== undefined && data.Message !== null) {
47402 contents.Message = data.Message;
47403 }
47404 if (data.RequestID !== undefined && data.RequestID !== null) {
47405 contents.RequestID = data.RequestID;
47406 }
47407 return [2 /*return*/, contents];
47408 });
47409}); };
47410var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47411 var contents, data;
47412 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47413 contents = {
47414 name: "NotFoundException",
47415 $fault: "client",
47416 $metadata: deserializeMetadata(parsedOutput),
47417 Message: undefined,
47418 RequestID: undefined,
47419 };
47420 data = parsedOutput.body;
47421 if (data.Message !== undefined && data.Message !== null) {
47422 contents.Message = data.Message;
47423 }
47424 if (data.RequestID !== undefined && data.RequestID !== null) {
47425 contents.RequestID = data.RequestID;
47426 }
47427 return [2 /*return*/, contents];
47428 });
47429}); };
47430var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47431 var contents, data;
47432 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47433 contents = {
47434 name: "PayloadTooLargeException",
47435 $fault: "client",
47436 $metadata: deserializeMetadata(parsedOutput),
47437 Message: undefined,
47438 RequestID: undefined,
47439 };
47440 data = parsedOutput.body;
47441 if (data.Message !== undefined && data.Message !== null) {
47442 contents.Message = data.Message;
47443 }
47444 if (data.RequestID !== undefined && data.RequestID !== null) {
47445 contents.RequestID = data.RequestID;
47446 }
47447 return [2 /*return*/, contents];
47448 });
47449}); };
47450var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
47451 var contents, data;
47452 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
47453 contents = {
47454 name: "TooManyRequestsException",
47455 $fault: "client",
47456 $metadata: deserializeMetadata(parsedOutput),
47457 Message: undefined,
47458 RequestID: undefined,
47459 };
47460 data = parsedOutput.body;
47461 if (data.Message !== undefined && data.Message !== null) {
47462 contents.Message = data.Message;
47463 }
47464 if (data.RequestID !== undefined && data.RequestID !== null) {
47465 contents.RequestID = data.RequestID;
47466 }
47467 return [2 /*return*/, contents];
47468 });
47469}); };
47470var serializeAws_restJson1Activity = function (input, context) {
47471 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CUSTOM !== undefined &&
47472 input.CUSTOM !== null && { CUSTOM: serializeAws_restJson1CustomMessageActivity(input.CUSTOM, context) })), (input.ConditionalSplit !== undefined &&
47473 input.ConditionalSplit !== null && {
47474 ConditionalSplit: serializeAws_restJson1ConditionalSplitActivity(input.ConditionalSplit, context),
47475 })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EMAIL !== undefined &&
47476 input.EMAIL !== null && { EMAIL: serializeAws_restJson1EmailMessageActivity(input.EMAIL, context) })), (input.Holdout !== undefined &&
47477 input.Holdout !== null && { Holdout: serializeAws_restJson1HoldoutActivity(input.Holdout, context) })), (input.MultiCondition !== undefined &&
47478 input.MultiCondition !== null && {
47479 MultiCondition: serializeAws_restJson1MultiConditionalSplitActivity(input.MultiCondition, context),
47480 })), (input.PUSH !== undefined &&
47481 input.PUSH !== null && { PUSH: serializeAws_restJson1PushMessageActivity(input.PUSH, context) })), (input.RandomSplit !== undefined &&
47482 input.RandomSplit !== null && {
47483 RandomSplit: serializeAws_restJson1RandomSplitActivity(input.RandomSplit, context),
47484 })), (input.SMS !== undefined &&
47485 input.SMS !== null && { SMS: serializeAws_restJson1SMSMessageActivity(input.SMS, context) })), (input.Wait !== undefined &&
47486 input.Wait !== null && { Wait: serializeAws_restJson1WaitActivity(input.Wait, context) }));
47487};
47488var serializeAws_restJson1AddressConfiguration = function (input, context) {
47489 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BodyOverride !== undefined && input.BodyOverride !== null && { BodyOverride: input.BodyOverride })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Context !== undefined &&
47490 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.Substitutions !== undefined &&
47491 input.Substitutions !== null && {
47492 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47493 })), (input.TitleOverride !== undefined && input.TitleOverride !== null && { TitleOverride: input.TitleOverride }));
47494};
47495var serializeAws_restJson1ADMChannelRequest = function (input, context) {
47496 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientSecret !== undefined && input.ClientSecret !== null && { ClientSecret: input.ClientSecret })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
47497};
47498var serializeAws_restJson1ADMMessage = function (input, context) {
47499 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.ConsolidationKey !== undefined &&
47500 input.ConsolidationKey !== null && { ConsolidationKey: input.ConsolidationKey })), (input.Data !== undefined &&
47501 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.ExpiresAfter !== undefined && input.ExpiresAfter !== null && { ExpiresAfter: input.ExpiresAfter })), (input.IconReference !== undefined && input.IconReference !== null && { IconReference: input.IconReference })), (input.ImageIconUrl !== undefined && input.ImageIconUrl !== null && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && input.ImageUrl !== null && { ImageUrl: input.ImageUrl })), (input.MD5 !== undefined && input.MD5 !== null && { MD5: input.MD5 })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined &&
47502 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47503 input.Substitutions !== null && {
47504 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47505 })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47506};
47507var serializeAws_restJson1AndroidPushNotificationTemplate = function (input, context) {
47508 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.ImageIconUrl !== undefined && input.ImageIconUrl !== null && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && input.ImageUrl !== null && { ImageUrl: input.ImageUrl })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.SmallImageIconUrl !== undefined &&
47509 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47510};
47511var serializeAws_restJson1APNSChannelRequest = function (input, context) {
47512 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && input.BundleId !== null && { BundleId: input.BundleId })), (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined &&
47513 input.DefaultAuthenticationMethod !== null && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && input.PrivateKey !== null && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && input.TeamId !== null && { TeamId: input.TeamId })), (input.TokenKey !== undefined && input.TokenKey !== null && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && input.TokenKeyId !== null && { TokenKeyId: input.TokenKeyId }));
47514};
47515var serializeAws_restJson1APNSMessage = function (input, context) {
47516 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.APNSPushType !== undefined && input.APNSPushType !== null && { APNSPushType: input.APNSPushType })), (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Badge !== undefined && input.Badge !== null && { Badge: input.Badge })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.Category !== undefined && input.Category !== null && { Category: input.Category })), (input.CollapseId !== undefined && input.CollapseId !== null && { CollapseId: input.CollapseId })), (input.Data !== undefined &&
47517 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.MediaUrl !== undefined && input.MediaUrl !== null && { MediaUrl: input.MediaUrl })), (input.PreferredAuthenticationMethod !== undefined &&
47518 input.PreferredAuthenticationMethod !== null && {
47519 PreferredAuthenticationMethod: input.PreferredAuthenticationMethod,
47520 })), (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47521 input.Substitutions !== null && {
47522 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47523 })), (input.ThreadId !== undefined && input.ThreadId !== null && { ThreadId: input.ThreadId })), (input.TimeToLive !== undefined && input.TimeToLive !== null && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47524};
47525var serializeAws_restJson1APNSPushNotificationTemplate = function (input, context) {
47526 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.MediaUrl !== undefined && input.MediaUrl !== null && { MediaUrl: input.MediaUrl })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47527};
47528var serializeAws_restJson1APNSSandboxChannelRequest = function (input, context) {
47529 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && input.BundleId !== null && { BundleId: input.BundleId })), (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined &&
47530 input.DefaultAuthenticationMethod !== null && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && input.PrivateKey !== null && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && input.TeamId !== null && { TeamId: input.TeamId })), (input.TokenKey !== undefined && input.TokenKey !== null && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && input.TokenKeyId !== null && { TokenKeyId: input.TokenKeyId }));
47531};
47532var serializeAws_restJson1APNSVoipChannelRequest = function (input, context) {
47533 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && input.BundleId !== null && { BundleId: input.BundleId })), (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined &&
47534 input.DefaultAuthenticationMethod !== null && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && input.PrivateKey !== null && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && input.TeamId !== null && { TeamId: input.TeamId })), (input.TokenKey !== undefined && input.TokenKey !== null && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && input.TokenKeyId !== null && { TokenKeyId: input.TokenKeyId }));
47535};
47536var serializeAws_restJson1APNSVoipSandboxChannelRequest = function (input, context) {
47537 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BundleId !== undefined && input.BundleId !== null && { BundleId: input.BundleId })), (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.DefaultAuthenticationMethod !== undefined &&
47538 input.DefaultAuthenticationMethod !== null && { DefaultAuthenticationMethod: input.DefaultAuthenticationMethod })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.PrivateKey !== undefined && input.PrivateKey !== null && { PrivateKey: input.PrivateKey })), (input.TeamId !== undefined && input.TeamId !== null && { TeamId: input.TeamId })), (input.TokenKey !== undefined && input.TokenKey !== null && { TokenKey: input.TokenKey })), (input.TokenKeyId !== undefined && input.TokenKeyId !== null && { TokenKeyId: input.TokenKeyId }));
47539};
47540var serializeAws_restJson1AttributeDimension = function (input, context) {
47541 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AttributeType !== undefined && input.AttributeType !== null && { AttributeType: input.AttributeType })), (input.Values !== undefined &&
47542 input.Values !== null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }));
47543};
47544var serializeAws_restJson1BaiduChannelRequest = function (input, context) {
47545 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ApiKey !== undefined && input.ApiKey !== null && { ApiKey: input.ApiKey })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.SecretKey !== undefined && input.SecretKey !== null && { SecretKey: input.SecretKey }));
47546};
47547var serializeAws_restJson1BaiduMessage = function (input, context) {
47548 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.Data !== undefined &&
47549 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.IconReference !== undefined && input.IconReference !== null && { IconReference: input.IconReference })), (input.ImageIconUrl !== undefined && input.ImageIconUrl !== null && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && input.ImageUrl !== null && { ImageUrl: input.ImageUrl })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined &&
47550 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47551 input.Substitutions !== null && {
47552 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47553 })), (input.TimeToLive !== undefined && input.TimeToLive !== null && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47554};
47555var serializeAws_restJson1CampaignCustomMessage = function (input, context) {
47556 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
47557};
47558var serializeAws_restJson1CampaignEmailMessage = function (input, context) {
47559 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.FromAddress !== undefined && input.FromAddress !== null && { FromAddress: input.FromAddress })), (input.HtmlBody !== undefined && input.HtmlBody !== null && { HtmlBody: input.HtmlBody })), (input.Title !== undefined && input.Title !== null && { Title: input.Title }));
47560};
47561var serializeAws_restJson1CampaignEventFilter = function (input, context) {
47562 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
47563 input.Dimensions !== null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) })), (input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }));
47564};
47565var serializeAws_restJson1CampaignHook = function (input, context) {
47566 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.LambdaFunctionName !== undefined &&
47567 input.LambdaFunctionName !== null && { LambdaFunctionName: input.LambdaFunctionName })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.WebUrl !== undefined && input.WebUrl !== null && { WebUrl: input.WebUrl }));
47568};
47569var serializeAws_restJson1CampaignLimits = function (input, context) {
47570 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Daily !== undefined && input.Daily !== null && { Daily: input.Daily })), (input.MaximumDuration !== undefined &&
47571 input.MaximumDuration !== null && { MaximumDuration: input.MaximumDuration })), (input.MessagesPerSecond !== undefined &&
47572 input.MessagesPerSecond !== null && { MessagesPerSecond: input.MessagesPerSecond })), (input.Total !== undefined && input.Total !== null && { Total: input.Total }));
47573};
47574var serializeAws_restJson1CampaignSmsMessage = function (input, context) {
47575 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.SenderId !== undefined && input.SenderId !== null && { SenderId: input.SenderId }));
47576};
47577var serializeAws_restJson1Condition = function (input, context) {
47578 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Conditions !== undefined &&
47579 input.Conditions !== null && {
47580 Conditions: serializeAws_restJson1ListOfSimpleCondition(input.Conditions, context),
47581 })), (input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }));
47582};
47583var serializeAws_restJson1ConditionalSplitActivity = function (input, context) {
47584 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Condition !== undefined &&
47585 input.Condition !== null && { Condition: serializeAws_restJson1Condition(input.Condition, context) })), (input.EvaluationWaitTime !== undefined &&
47586 input.EvaluationWaitTime !== null && {
47587 EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context),
47588 })), (input.FalseActivity !== undefined && input.FalseActivity !== null && { FalseActivity: input.FalseActivity })), (input.TrueActivity !== undefined && input.TrueActivity !== null && { TrueActivity: input.TrueActivity }));
47589};
47590var serializeAws_restJson1CreateApplicationRequest = function (input, context) {
47591 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.tags !== undefined &&
47592 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
47593};
47594var serializeAws_restJson1CreateRecommenderConfigurationShape = function (input, context) {
47595 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined &&
47596 input.Attributes !== null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RecommendationProviderIdType !== undefined &&
47597 input.RecommendationProviderIdType !== null && {
47598 RecommendationProviderIdType: input.RecommendationProviderIdType,
47599 })), (input.RecommendationProviderRoleArn !== undefined &&
47600 input.RecommendationProviderRoleArn !== null && {
47601 RecommendationProviderRoleArn: input.RecommendationProviderRoleArn,
47602 })), (input.RecommendationProviderUri !== undefined &&
47603 input.RecommendationProviderUri !== null && { RecommendationProviderUri: input.RecommendationProviderUri })), (input.RecommendationTransformerUri !== undefined &&
47604 input.RecommendationTransformerUri !== null && {
47605 RecommendationTransformerUri: input.RecommendationTransformerUri,
47606 })), (input.RecommendationsDisplayName !== undefined &&
47607 input.RecommendationsDisplayName !== null && { RecommendationsDisplayName: input.RecommendationsDisplayName })), (input.RecommendationsPerMessage !== undefined &&
47608 input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }));
47609};
47610var serializeAws_restJson1CustomDeliveryConfiguration = function (input, context) {
47611 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryUri !== undefined && input.DeliveryUri !== null && { DeliveryUri: input.DeliveryUri })), (input.EndpointTypes !== undefined &&
47612 input.EndpointTypes !== null && {
47613 EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context),
47614 }));
47615};
47616var serializeAws_restJson1CustomMessageActivity = function (input, context) {
47617 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DeliveryUri !== undefined && input.DeliveryUri !== null && { DeliveryUri: input.DeliveryUri })), (input.EndpointTypes !== undefined &&
47618 input.EndpointTypes !== null && {
47619 EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context),
47620 })), (input.MessageConfig !== undefined &&
47621 input.MessageConfig !== null && {
47622 MessageConfig: serializeAws_restJson1JourneyCustomMessage(input.MessageConfig, context),
47623 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
47624 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
47625};
47626var serializeAws_restJson1DefaultMessage = function (input, context) {
47627 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.Substitutions !== undefined &&
47628 input.Substitutions !== null && {
47629 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47630 }));
47631};
47632var serializeAws_restJson1DefaultPushNotificationMessage = function (input, context) {
47633 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.Data !== undefined &&
47634 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.Substitutions !== undefined &&
47635 input.Substitutions !== null && {
47636 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47637 })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47638};
47639var serializeAws_restJson1DefaultPushNotificationTemplate = function (input, context) {
47640 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47641};
47642var serializeAws_restJson1DirectMessageConfiguration = function (input, context) {
47643 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ADMMessage !== undefined &&
47644 input.ADMMessage !== null && { ADMMessage: serializeAws_restJson1ADMMessage(input.ADMMessage, context) })), (input.APNSMessage !== undefined &&
47645 input.APNSMessage !== null && { APNSMessage: serializeAws_restJson1APNSMessage(input.APNSMessage, context) })), (input.BaiduMessage !== undefined &&
47646 input.BaiduMessage !== null && { BaiduMessage: serializeAws_restJson1BaiduMessage(input.BaiduMessage, context) })), (input.DefaultMessage !== undefined &&
47647 input.DefaultMessage !== null && {
47648 DefaultMessage: serializeAws_restJson1DefaultMessage(input.DefaultMessage, context),
47649 })), (input.DefaultPushNotificationMessage !== undefined &&
47650 input.DefaultPushNotificationMessage !== null && {
47651 DefaultPushNotificationMessage: serializeAws_restJson1DefaultPushNotificationMessage(input.DefaultPushNotificationMessage, context),
47652 })), (input.EmailMessage !== undefined &&
47653 input.EmailMessage !== null && { EmailMessage: serializeAws_restJson1EmailMessage(input.EmailMessage, context) })), (input.GCMMessage !== undefined &&
47654 input.GCMMessage !== null && { GCMMessage: serializeAws_restJson1GCMMessage(input.GCMMessage, context) })), (input.SMSMessage !== undefined &&
47655 input.SMSMessage !== null && { SMSMessage: serializeAws_restJson1SMSMessage(input.SMSMessage, context) })), (input.VoiceMessage !== undefined &&
47656 input.VoiceMessage !== null && { VoiceMessage: serializeAws_restJson1VoiceMessage(input.VoiceMessage, context) }));
47657};
47658var serializeAws_restJson1EmailChannelRequest = function (input, context) {
47659 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ConfigurationSet !== undefined &&
47660 input.ConfigurationSet !== null && { ConfigurationSet: input.ConfigurationSet })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.FromAddress !== undefined && input.FromAddress !== null && { FromAddress: input.FromAddress })), (input.Identity !== undefined && input.Identity !== null && { Identity: input.Identity })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
47661};
47662var serializeAws_restJson1EmailMessage = function (input, context) {
47663 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.FeedbackForwardingAddress !== undefined &&
47664 input.FeedbackForwardingAddress !== null && { FeedbackForwardingAddress: input.FeedbackForwardingAddress })), (input.FromAddress !== undefined && input.FromAddress !== null && { FromAddress: input.FromAddress })), (input.RawEmail !== undefined &&
47665 input.RawEmail !== null && { RawEmail: serializeAws_restJson1RawEmail(input.RawEmail, context) })), (input.ReplyToAddresses !== undefined &&
47666 input.ReplyToAddresses !== null && {
47667 ReplyToAddresses: serializeAws_restJson1ListOf__string(input.ReplyToAddresses, context),
47668 })), (input.SimpleEmail !== undefined &&
47669 input.SimpleEmail !== null && { SimpleEmail: serializeAws_restJson1SimpleEmail(input.SimpleEmail, context) })), (input.Substitutions !== undefined &&
47670 input.Substitutions !== null && {
47671 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47672 }));
47673};
47674var serializeAws_restJson1EmailMessageActivity = function (input, context) {
47675 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageConfig !== undefined &&
47676 input.MessageConfig !== null && {
47677 MessageConfig: serializeAws_restJson1JourneyEmailMessage(input.MessageConfig, context),
47678 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
47679 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
47680};
47681var serializeAws_restJson1EmailTemplateRequest = function (input, context) {
47682 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DefaultSubstitutions !== undefined &&
47683 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.HtmlPart !== undefined && input.HtmlPart !== null && { HtmlPart: input.HtmlPart })), (input.RecommenderId !== undefined && input.RecommenderId !== null && { RecommenderId: input.RecommenderId })), (input.Subject !== undefined && input.Subject !== null && { Subject: input.Subject })), (input.TemplateDescription !== undefined &&
47684 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.TextPart !== undefined && input.TextPart !== null && { TextPart: input.TextPart })), (input.tags !== undefined &&
47685 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
47686};
47687var serializeAws_restJson1EndpointBatchItem = function (input, context) {
47688 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Address !== undefined && input.Address !== null && { Address: input.Address })), (input.Attributes !== undefined &&
47689 input.Attributes !== null && {
47690 Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
47691 })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Demographic !== undefined &&
47692 input.Demographic !== null && {
47693 Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
47694 })), (input.EffectiveDate !== undefined && input.EffectiveDate !== null && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined &&
47695 input.EndpointStatus !== null && { EndpointStatus: input.EndpointStatus })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Location !== undefined &&
47696 input.Location !== null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined &&
47697 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.OptOut !== undefined && input.OptOut !== null && { OptOut: input.OptOut })), (input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId })), (input.User !== undefined &&
47698 input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }));
47699};
47700var serializeAws_restJson1EndpointBatchRequest = function (input, context) {
47701 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Item !== undefined &&
47702 input.Item !== null && { Item: serializeAws_restJson1ListOfEndpointBatchItem(input.Item, context) }));
47703};
47704var serializeAws_restJson1EndpointDemographic = function (input, context) {
47705 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppVersion !== undefined && input.AppVersion !== null && { AppVersion: input.AppVersion })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.Make !== undefined && input.Make !== null && { Make: input.Make })), (input.Model !== undefined && input.Model !== null && { Model: input.Model })), (input.ModelVersion !== undefined && input.ModelVersion !== null && { ModelVersion: input.ModelVersion })), (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform })), (input.PlatformVersion !== undefined &&
47706 input.PlatformVersion !== null && { PlatformVersion: input.PlatformVersion })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
47707};
47708var serializeAws_restJson1EndpointLocation = function (input, context) {
47709 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.City !== undefined && input.City !== null && { City: input.City })), (input.Country !== undefined && input.Country !== null && { Country: input.Country })), (input.Latitude !== undefined && input.Latitude !== null && { Latitude: input.Latitude })), (input.Longitude !== undefined && input.Longitude !== null && { Longitude: input.Longitude })), (input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode })), (input.Region !== undefined && input.Region !== null && { Region: input.Region }));
47710};
47711var serializeAws_restJson1EndpointRequest = function (input, context) {
47712 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Address !== undefined && input.Address !== null && { Address: input.Address })), (input.Attributes !== undefined &&
47713 input.Attributes !== null && {
47714 Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
47715 })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Demographic !== undefined &&
47716 input.Demographic !== null && {
47717 Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
47718 })), (input.EffectiveDate !== undefined && input.EffectiveDate !== null && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined &&
47719 input.EndpointStatus !== null && { EndpointStatus: input.EndpointStatus })), (input.Location !== undefined &&
47720 input.Location !== null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined &&
47721 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.OptOut !== undefined && input.OptOut !== null && { OptOut: input.OptOut })), (input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId })), (input.User !== undefined &&
47722 input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }));
47723};
47724var serializeAws_restJson1EndpointSendConfiguration = function (input, context) {
47725 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BodyOverride !== undefined && input.BodyOverride !== null && { BodyOverride: input.BodyOverride })), (input.Context !== undefined &&
47726 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.Substitutions !== undefined &&
47727 input.Substitutions !== null && {
47728 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47729 })), (input.TitleOverride !== undefined && input.TitleOverride !== null && { TitleOverride: input.TitleOverride }));
47730};
47731var serializeAws_restJson1EndpointUser = function (input, context) {
47732 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.UserAttributes !== undefined &&
47733 input.UserAttributes !== null && {
47734 UserAttributes: serializeAws_restJson1MapOfListOf__string(input.UserAttributes, context),
47735 })), (input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }));
47736};
47737var serializeAws_restJson1Event = function (input, context) {
47738 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppPackageName !== undefined &&
47739 input.AppPackageName !== null && { AppPackageName: input.AppPackageName })), (input.AppTitle !== undefined && input.AppTitle !== null && { AppTitle: input.AppTitle })), (input.AppVersionCode !== undefined &&
47740 input.AppVersionCode !== null && { AppVersionCode: input.AppVersionCode })), (input.Attributes !== undefined &&
47741 input.Attributes !== null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) })), (input.ClientSdkVersion !== undefined &&
47742 input.ClientSdkVersion !== null && { ClientSdkVersion: input.ClientSdkVersion })), (input.EventType !== undefined && input.EventType !== null && { EventType: input.EventType })), (input.Metrics !== undefined &&
47743 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.SdkName !== undefined && input.SdkName !== null && { SdkName: input.SdkName })), (input.Session !== undefined &&
47744 input.Session !== null && { Session: serializeAws_restJson1Session(input.Session, context) })), (input.Timestamp !== undefined && input.Timestamp !== null && { Timestamp: input.Timestamp }));
47745};
47746var serializeAws_restJson1EventCondition = function (input, context) {
47747 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
47748 input.Dimensions !== null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) })), (input.MessageActivity !== undefined &&
47749 input.MessageActivity !== null && { MessageActivity: input.MessageActivity }));
47750};
47751var serializeAws_restJson1EventDimensions = function (input, context) {
47752 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined &&
47753 input.Attributes !== null && {
47754 Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context),
47755 })), (input.EventType !== undefined &&
47756 input.EventType !== null && { EventType: serializeAws_restJson1SetDimension(input.EventType, context) })), (input.Metrics !== undefined &&
47757 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) }));
47758};
47759var serializeAws_restJson1EventFilter = function (input, context) {
47760 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
47761 input.Dimensions !== null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) })), (input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }));
47762};
47763var serializeAws_restJson1EventsBatch = function (input, context) {
47764 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Endpoint !== undefined &&
47765 input.Endpoint !== null && { Endpoint: serializeAws_restJson1PublicEndpoint(input.Endpoint, context) })), (input.Events !== undefined &&
47766 input.Events !== null && { Events: serializeAws_restJson1MapOfEvent(input.Events, context) }));
47767};
47768var serializeAws_restJson1EventsRequest = function (input, context) {
47769 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.BatchItem !== undefined &&
47770 input.BatchItem !== null && { BatchItem: serializeAws_restJson1MapOfEventsBatch(input.BatchItem, context) }));
47771};
47772var serializeAws_restJson1EventStartCondition = function (input, context) {
47773 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EventFilter !== undefined &&
47774 input.EventFilter !== null && { EventFilter: serializeAws_restJson1EventFilter(input.EventFilter, context) })), (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId }));
47775};
47776var serializeAws_restJson1ExportJobRequest = function (input, context) {
47777 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.S3UrlPrefix !== undefined && input.S3UrlPrefix !== null && { S3UrlPrefix: input.S3UrlPrefix })), (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId })), (input.SegmentVersion !== undefined &&
47778 input.SegmentVersion !== null && { SegmentVersion: input.SegmentVersion }));
47779};
47780var serializeAws_restJson1GCMChannelRequest = function (input, context) {
47781 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ApiKey !== undefined && input.ApiKey !== null && { ApiKey: input.ApiKey })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
47782};
47783var serializeAws_restJson1GCMMessage = function (input, context) {
47784 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.CollapseKey !== undefined && input.CollapseKey !== null && { CollapseKey: input.CollapseKey })), (input.Data !== undefined &&
47785 input.Data !== null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) })), (input.IconReference !== undefined && input.IconReference !== null && { IconReference: input.IconReference })), (input.ImageIconUrl !== undefined && input.ImageIconUrl !== null && { ImageIconUrl: input.ImageIconUrl })), (input.ImageUrl !== undefined && input.ImageUrl !== null && { ImageUrl: input.ImageUrl })), (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.RestrictedPackageName !== undefined &&
47786 input.RestrictedPackageName !== null && { RestrictedPackageName: input.RestrictedPackageName })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.SmallImageIconUrl !== undefined &&
47787 input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl })), (input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound })), (input.Substitutions !== undefined &&
47788 input.Substitutions !== null && {
47789 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
47790 })), (input.TimeToLive !== undefined && input.TimeToLive !== null && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
47791};
47792var serializeAws_restJson1GPSCoordinates = function (input, context) {
47793 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Latitude !== undefined && input.Latitude !== null && { Latitude: input.Latitude })), (input.Longitude !== undefined && input.Longitude !== null && { Longitude: input.Longitude }));
47794};
47795var serializeAws_restJson1GPSPointDimension = function (input, context) {
47796 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Coordinates !== undefined &&
47797 input.Coordinates !== null && { Coordinates: serializeAws_restJson1GPSCoordinates(input.Coordinates, context) })), (input.RangeInKilometers !== undefined &&
47798 input.RangeInKilometers !== null && { RangeInKilometers: input.RangeInKilometers }));
47799};
47800var serializeAws_restJson1HoldoutActivity = function (input, context) {
47801 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.Percentage !== undefined && input.Percentage !== null && { Percentage: input.Percentage }));
47802};
47803var serializeAws_restJson1ImportJobRequest = function (input, context) {
47804 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DefineSegment !== undefined && input.DefineSegment !== null && { DefineSegment: input.DefineSegment })), (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.RegisterEndpoints !== undefined &&
47805 input.RegisterEndpoints !== null && { RegisterEndpoints: input.RegisterEndpoints })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.S3Url !== undefined && input.S3Url !== null && { S3Url: input.S3Url })), (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId })), (input.SegmentName !== undefined && input.SegmentName !== null && { SegmentName: input.SegmentName }));
47806};
47807var serializeAws_restJson1JourneyCustomMessage = function (input, context) {
47808 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
47809};
47810var serializeAws_restJson1JourneyEmailMessage = function (input, context) {
47811 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.FromAddress !== undefined && input.FromAddress !== null && { FromAddress: input.FromAddress }));
47812};
47813var serializeAws_restJson1JourneyLimits = function (input, context) {
47814 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DailyCap !== undefined && input.DailyCap !== null && { DailyCap: input.DailyCap })), (input.EndpointReentryCap !== undefined &&
47815 input.EndpointReentryCap !== null && { EndpointReentryCap: input.EndpointReentryCap })), (input.MessagesPerSecond !== undefined &&
47816 input.MessagesPerSecond !== null && { MessagesPerSecond: input.MessagesPerSecond }));
47817};
47818var serializeAws_restJson1JourneyPushMessage = function (input, context) {
47819 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.TimeToLive !== undefined && input.TimeToLive !== null && { TimeToLive: input.TimeToLive }));
47820};
47821var serializeAws_restJson1JourneySchedule = function (input, context) {
47822 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined &&
47823 input.EndTime !== null && { EndTime: input.EndTime.toISOString().split(".")[0] + "Z" })), (input.StartTime !== undefined &&
47824 input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
47825};
47826var serializeAws_restJson1JourneySMSMessage = function (input, context) {
47827 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.SenderId !== undefined && input.SenderId !== null && { SenderId: input.SenderId }));
47828};
47829var serializeAws_restJson1JourneyStateRequest = function (input, context) {
47830 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.State !== undefined && input.State !== null && { State: input.State }));
47831};
47832var serializeAws_restJson1ListOf__EndpointTypesElement = function (input, context) {
47833 return input
47834 .filter(function (e) { return e != null; })
47835 .map(function (entry) {
47836 if (entry === null) {
47837 return null;
47838 }
47839 return entry;
47840 });
47841};
47842var serializeAws_restJson1ListOf__string = function (input, context) {
47843 return input
47844 .filter(function (e) { return e != null; })
47845 .map(function (entry) {
47846 if (entry === null) {
47847 return null;
47848 }
47849 return entry;
47850 });
47851};
47852var serializeAws_restJson1ListOfEndpointBatchItem = function (input, context) {
47853 return input
47854 .filter(function (e) { return e != null; })
47855 .map(function (entry) {
47856 if (entry === null) {
47857 return null;
47858 }
47859 return serializeAws_restJson1EndpointBatchItem(entry, context);
47860 });
47861};
47862var serializeAws_restJson1ListOfMultiConditionalBranch = function (input, context) {
47863 return input
47864 .filter(function (e) { return e != null; })
47865 .map(function (entry) {
47866 if (entry === null) {
47867 return null;
47868 }
47869 return serializeAws_restJson1MultiConditionalBranch(entry, context);
47870 });
47871};
47872var serializeAws_restJson1ListOfRandomSplitEntry = function (input, context) {
47873 return input
47874 .filter(function (e) { return e != null; })
47875 .map(function (entry) {
47876 if (entry === null) {
47877 return null;
47878 }
47879 return serializeAws_restJson1RandomSplitEntry(entry, context);
47880 });
47881};
47882var serializeAws_restJson1ListOfSegmentDimensions = function (input, context) {
47883 return input
47884 .filter(function (e) { return e != null; })
47885 .map(function (entry) {
47886 if (entry === null) {
47887 return null;
47888 }
47889 return serializeAws_restJson1SegmentDimensions(entry, context);
47890 });
47891};
47892var serializeAws_restJson1ListOfSegmentGroup = function (input, context) {
47893 return input
47894 .filter(function (e) { return e != null; })
47895 .map(function (entry) {
47896 if (entry === null) {
47897 return null;
47898 }
47899 return serializeAws_restJson1SegmentGroup(entry, context);
47900 });
47901};
47902var serializeAws_restJson1ListOfSegmentReference = function (input, context) {
47903 return input
47904 .filter(function (e) { return e != null; })
47905 .map(function (entry) {
47906 if (entry === null) {
47907 return null;
47908 }
47909 return serializeAws_restJson1SegmentReference(entry, context);
47910 });
47911};
47912var serializeAws_restJson1ListOfSimpleCondition = function (input, context) {
47913 return input
47914 .filter(function (e) { return e != null; })
47915 .map(function (entry) {
47916 if (entry === null) {
47917 return null;
47918 }
47919 return serializeAws_restJson1SimpleCondition(entry, context);
47920 });
47921};
47922var serializeAws_restJson1ListOfWriteTreatmentResource = function (input, context) {
47923 return input
47924 .filter(function (e) { return e != null; })
47925 .map(function (entry) {
47926 if (entry === null) {
47927 return null;
47928 }
47929 return serializeAws_restJson1WriteTreatmentResource(entry, context);
47930 });
47931};
47932var serializeAws_restJson1MapOf__double = function (input, context) {
47933 return Object.entries(input).reduce(function (acc, _a) {
47934 var _b;
47935 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47936 if (value === null) {
47937 return acc;
47938 }
47939 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
47940 }, {});
47941};
47942var serializeAws_restJson1MapOf__string = function (input, context) {
47943 return Object.entries(input).reduce(function (acc, _a) {
47944 var _b;
47945 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47946 if (value === null) {
47947 return acc;
47948 }
47949 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
47950 }, {});
47951};
47952var serializeAws_restJson1MapOfActivity = function (input, context) {
47953 return Object.entries(input).reduce(function (acc, _a) {
47954 var _b;
47955 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47956 if (value === null) {
47957 return acc;
47958 }
47959 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Activity(value, context), _b));
47960 }, {});
47961};
47962var serializeAws_restJson1MapOfAddressConfiguration = function (input, context) {
47963 return Object.entries(input).reduce(function (acc, _a) {
47964 var _b;
47965 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47966 if (value === null) {
47967 return acc;
47968 }
47969 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1AddressConfiguration(value, context), _b));
47970 }, {});
47971};
47972var serializeAws_restJson1MapOfAttributeDimension = function (input, context) {
47973 return Object.entries(input).reduce(function (acc, _a) {
47974 var _b;
47975 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47976 if (value === null) {
47977 return acc;
47978 }
47979 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1AttributeDimension(value, context), _b));
47980 }, {});
47981};
47982var serializeAws_restJson1MapOfEndpointSendConfiguration = function (input, context) {
47983 return Object.entries(input).reduce(function (acc, _a) {
47984 var _b;
47985 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47986 if (value === null) {
47987 return acc;
47988 }
47989 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1EndpointSendConfiguration(value, context), _b));
47990 }, {});
47991};
47992var serializeAws_restJson1MapOfEvent = function (input, context) {
47993 return Object.entries(input).reduce(function (acc, _a) {
47994 var _b;
47995 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
47996 if (value === null) {
47997 return acc;
47998 }
47999 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Event(value, context), _b));
48000 }, {});
48001};
48002var serializeAws_restJson1MapOfEventsBatch = function (input, context) {
48003 return Object.entries(input).reduce(function (acc, _a) {
48004 var _b;
48005 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
48006 if (value === null) {
48007 return acc;
48008 }
48009 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1EventsBatch(value, context), _b));
48010 }, {});
48011};
48012var serializeAws_restJson1MapOfListOf__string = function (input, context) {
48013 return Object.entries(input).reduce(function (acc, _a) {
48014 var _b;
48015 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
48016 if (value === null) {
48017 return acc;
48018 }
48019 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ListOf__string(value, context), _b));
48020 }, {});
48021};
48022var serializeAws_restJson1MapOfMetricDimension = function (input, context) {
48023 return Object.entries(input).reduce(function (acc, _a) {
48024 var _b;
48025 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
48026 if (value === null) {
48027 return acc;
48028 }
48029 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = serializeAws_restJson1MetricDimension(value, context), _b));
48030 }, {});
48031};
48032var serializeAws_restJson1Message = function (input, context) {
48033 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.ImageIconUrl !== undefined && input.ImageIconUrl !== null && { ImageIconUrl: input.ImageIconUrl })), (input.ImageSmallIconUrl !== undefined &&
48034 input.ImageSmallIconUrl !== null && { ImageSmallIconUrl: input.ImageSmallIconUrl })), (input.ImageUrl !== undefined && input.ImageUrl !== null && { ImageUrl: input.ImageUrl })), (input.JsonBody !== undefined && input.JsonBody !== null && { JsonBody: input.JsonBody })), (input.MediaUrl !== undefined && input.MediaUrl !== null && { MediaUrl: input.MediaUrl })), (input.RawContent !== undefined && input.RawContent !== null && { RawContent: input.RawContent })), (input.SilentPush !== undefined && input.SilentPush !== null && { SilentPush: input.SilentPush })), (input.TimeToLive !== undefined && input.TimeToLive !== null && { TimeToLive: input.TimeToLive })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.Url !== undefined && input.Url !== null && { Url: input.Url }));
48035};
48036var serializeAws_restJson1MessageConfiguration = function (input, context) {
48037 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ADMMessage !== undefined &&
48038 input.ADMMessage !== null && { ADMMessage: serializeAws_restJson1Message(input.ADMMessage, context) })), (input.APNSMessage !== undefined &&
48039 input.APNSMessage !== null && { APNSMessage: serializeAws_restJson1Message(input.APNSMessage, context) })), (input.BaiduMessage !== undefined &&
48040 input.BaiduMessage !== null && { BaiduMessage: serializeAws_restJson1Message(input.BaiduMessage, context) })), (input.CustomMessage !== undefined &&
48041 input.CustomMessage !== null && {
48042 CustomMessage: serializeAws_restJson1CampaignCustomMessage(input.CustomMessage, context),
48043 })), (input.DefaultMessage !== undefined &&
48044 input.DefaultMessage !== null && {
48045 DefaultMessage: serializeAws_restJson1Message(input.DefaultMessage, context),
48046 })), (input.EmailMessage !== undefined &&
48047 input.EmailMessage !== null && {
48048 EmailMessage: serializeAws_restJson1CampaignEmailMessage(input.EmailMessage, context),
48049 })), (input.GCMMessage !== undefined &&
48050 input.GCMMessage !== null && { GCMMessage: serializeAws_restJson1Message(input.GCMMessage, context) })), (input.SMSMessage !== undefined &&
48051 input.SMSMessage !== null && { SMSMessage: serializeAws_restJson1CampaignSmsMessage(input.SMSMessage, context) }));
48052};
48053var serializeAws_restJson1MessageRequest = function (input, context) {
48054 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Addresses !== undefined &&
48055 input.Addresses !== null && {
48056 Addresses: serializeAws_restJson1MapOfAddressConfiguration(input.Addresses, context),
48057 })), (input.Context !== undefined &&
48058 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.Endpoints !== undefined &&
48059 input.Endpoints !== null && {
48060 Endpoints: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Endpoints, context),
48061 })), (input.MessageConfiguration !== undefined &&
48062 input.MessageConfiguration !== null && {
48063 MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context),
48064 })), (input.TemplateConfiguration !== undefined &&
48065 input.TemplateConfiguration !== null && {
48066 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48067 })), (input.TraceId !== undefined && input.TraceId !== null && { TraceId: input.TraceId }));
48068};
48069var serializeAws_restJson1MetricDimension = function (input, context) {
48070 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ComparisonOperator !== undefined &&
48071 input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
48072};
48073var serializeAws_restJson1MultiConditionalBranch = function (input, context) {
48074 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Condition !== undefined &&
48075 input.Condition !== null && { Condition: serializeAws_restJson1SimpleCondition(input.Condition, context) })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity }));
48076};
48077var serializeAws_restJson1MultiConditionalSplitActivity = function (input, context) {
48078 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Branches !== undefined &&
48079 input.Branches !== null && {
48080 Branches: serializeAws_restJson1ListOfMultiConditionalBranch(input.Branches, context),
48081 })), (input.DefaultActivity !== undefined &&
48082 input.DefaultActivity !== null && { DefaultActivity: input.DefaultActivity })), (input.EvaluationWaitTime !== undefined &&
48083 input.EvaluationWaitTime !== null && {
48084 EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context),
48085 }));
48086};
48087var serializeAws_restJson1NumberValidateRequest = function (input, context) {
48088 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.IsoCountryCode !== undefined &&
48089 input.IsoCountryCode !== null && { IsoCountryCode: input.IsoCountryCode })), (input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }));
48090};
48091var serializeAws_restJson1PublicEndpoint = function (input, context) {
48092 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Address !== undefined && input.Address !== null && { Address: input.Address })), (input.Attributes !== undefined &&
48093 input.Attributes !== null && {
48094 Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
48095 })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.Demographic !== undefined &&
48096 input.Demographic !== null && {
48097 Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
48098 })), (input.EffectiveDate !== undefined && input.EffectiveDate !== null && { EffectiveDate: input.EffectiveDate })), (input.EndpointStatus !== undefined &&
48099 input.EndpointStatus !== null && { EndpointStatus: input.EndpointStatus })), (input.Location !== undefined &&
48100 input.Location !== null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) })), (input.Metrics !== undefined &&
48101 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) })), (input.OptOut !== undefined && input.OptOut !== null && { OptOut: input.OptOut })), (input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId })), (input.User !== undefined &&
48102 input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }));
48103};
48104var serializeAws_restJson1PushMessageActivity = function (input, context) {
48105 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageConfig !== undefined &&
48106 input.MessageConfig !== null && {
48107 MessageConfig: serializeAws_restJson1JourneyPushMessage(input.MessageConfig, context),
48108 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
48109 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
48110};
48111var serializeAws_restJson1PushNotificationTemplateRequest = function (input, context) {
48112 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.ADM !== undefined &&
48113 input.ADM !== null && { ADM: serializeAws_restJson1AndroidPushNotificationTemplate(input.ADM, context) })), (input.APNS !== undefined &&
48114 input.APNS !== null && { APNS: serializeAws_restJson1APNSPushNotificationTemplate(input.APNS, context) })), (input.Baidu !== undefined &&
48115 input.Baidu !== null && { Baidu: serializeAws_restJson1AndroidPushNotificationTemplate(input.Baidu, context) })), (input.Default !== undefined &&
48116 input.Default !== null && {
48117 Default: serializeAws_restJson1DefaultPushNotificationTemplate(input.Default, context),
48118 })), (input.DefaultSubstitutions !== undefined &&
48119 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.GCM !== undefined &&
48120 input.GCM !== null && { GCM: serializeAws_restJson1AndroidPushNotificationTemplate(input.GCM, context) })), (input.RecommenderId !== undefined && input.RecommenderId !== null && { RecommenderId: input.RecommenderId })), (input.TemplateDescription !== undefined &&
48121 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.tags !== undefined &&
48122 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48123};
48124var serializeAws_restJson1QuietTime = function (input, context) {
48125 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.End !== undefined && input.End !== null && { End: input.End })), (input.Start !== undefined && input.Start !== null && { Start: input.Start }));
48126};
48127var serializeAws_restJson1RandomSplitActivity = function (input, context) {
48128 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Branches !== undefined &&
48129 input.Branches !== null && { Branches: serializeAws_restJson1ListOfRandomSplitEntry(input.Branches, context) }));
48130};
48131var serializeAws_restJson1RandomSplitEntry = function (input, context) {
48132 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.Percentage !== undefined && input.Percentage !== null && { Percentage: input.Percentage }));
48133};
48134var serializeAws_restJson1RawEmail = function (input, context) {
48135 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Data !== undefined && input.Data !== null && { Data: context.base64Encoder(input.Data) }));
48136};
48137var serializeAws_restJson1RecencyDimension = function (input, context) {
48138 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration })), (input.RecencyType !== undefined && input.RecencyType !== null && { RecencyType: input.RecencyType }));
48139};
48140var serializeAws_restJson1Schedule = function (input, context) {
48141 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EndTime !== undefined && input.EndTime !== null && { EndTime: input.EndTime })), (input.EventFilter !== undefined &&
48142 input.EventFilter !== null && {
48143 EventFilter: serializeAws_restJson1CampaignEventFilter(input.EventFilter, context),
48144 })), (input.Frequency !== undefined && input.Frequency !== null && { Frequency: input.Frequency })), (input.IsLocalTime !== undefined && input.IsLocalTime !== null && { IsLocalTime: input.IsLocalTime })), (input.QuietTime !== undefined &&
48145 input.QuietTime !== null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.StartTime !== undefined && input.StartTime !== null && { StartTime: input.StartTime })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
48146};
48147var serializeAws_restJson1SegmentBehaviors = function (input, context) {
48148 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Recency !== undefined &&
48149 input.Recency !== null && { Recency: serializeAws_restJson1RecencyDimension(input.Recency, context) }));
48150};
48151var serializeAws_restJson1SegmentCondition = function (input, context) {
48152 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId }));
48153};
48154var serializeAws_restJson1SegmentDemographics = function (input, context) {
48155 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AppVersion !== undefined &&
48156 input.AppVersion !== null && { AppVersion: serializeAws_restJson1SetDimension(input.AppVersion, context) })), (input.Channel !== undefined &&
48157 input.Channel !== null && { Channel: serializeAws_restJson1SetDimension(input.Channel, context) })), (input.DeviceType !== undefined &&
48158 input.DeviceType !== null && { DeviceType: serializeAws_restJson1SetDimension(input.DeviceType, context) })), (input.Make !== undefined &&
48159 input.Make !== null && { Make: serializeAws_restJson1SetDimension(input.Make, context) })), (input.Model !== undefined &&
48160 input.Model !== null && { Model: serializeAws_restJson1SetDimension(input.Model, context) })), (input.Platform !== undefined &&
48161 input.Platform !== null && { Platform: serializeAws_restJson1SetDimension(input.Platform, context) }));
48162};
48163var serializeAws_restJson1SegmentDimensions = function (input, context) {
48164 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined &&
48165 input.Attributes !== null && {
48166 Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context),
48167 })), (input.Behavior !== undefined &&
48168 input.Behavior !== null && { Behavior: serializeAws_restJson1SegmentBehaviors(input.Behavior, context) })), (input.Demographic !== undefined &&
48169 input.Demographic !== null && {
48170 Demographic: serializeAws_restJson1SegmentDemographics(input.Demographic, context),
48171 })), (input.Location !== undefined &&
48172 input.Location !== null && { Location: serializeAws_restJson1SegmentLocation(input.Location, context) })), (input.Metrics !== undefined &&
48173 input.Metrics !== null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) })), (input.UserAttributes !== undefined &&
48174 input.UserAttributes !== null && {
48175 UserAttributes: serializeAws_restJson1MapOfAttributeDimension(input.UserAttributes, context),
48176 }));
48177};
48178var serializeAws_restJson1SegmentGroup = function (input, context) {
48179 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
48180 input.Dimensions !== null && {
48181 Dimensions: serializeAws_restJson1ListOfSegmentDimensions(input.Dimensions, context),
48182 })), (input.SourceSegments !== undefined &&
48183 input.SourceSegments !== null && {
48184 SourceSegments: serializeAws_restJson1ListOfSegmentReference(input.SourceSegments, context),
48185 })), (input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
48186};
48187var serializeAws_restJson1SegmentGroupList = function (input, context) {
48188 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Groups !== undefined &&
48189 input.Groups !== null && { Groups: serializeAws_restJson1ListOfSegmentGroup(input.Groups, context) })), (input.Include !== undefined && input.Include !== null && { Include: input.Include }));
48190};
48191var serializeAws_restJson1SegmentLocation = function (input, context) {
48192 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Country !== undefined &&
48193 input.Country !== null && { Country: serializeAws_restJson1SetDimension(input.Country, context) })), (input.GPSPoint !== undefined &&
48194 input.GPSPoint !== null && { GPSPoint: serializeAws_restJson1GPSPointDimension(input.GPSPoint, context) }));
48195};
48196var serializeAws_restJson1SegmentReference = function (input, context) {
48197 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
48198};
48199var serializeAws_restJson1SendUsersMessageRequest = function (input, context) {
48200 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Context !== undefined &&
48201 input.Context !== null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) })), (input.MessageConfiguration !== undefined &&
48202 input.MessageConfiguration !== null && {
48203 MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context),
48204 })), (input.TemplateConfiguration !== undefined &&
48205 input.TemplateConfiguration !== null && {
48206 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48207 })), (input.TraceId !== undefined && input.TraceId !== null && { TraceId: input.TraceId })), (input.Users !== undefined &&
48208 input.Users !== null && { Users: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Users, context) }));
48209};
48210var serializeAws_restJson1Session = function (input, context) {
48211 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Duration !== undefined && input.Duration !== null && { Duration: input.Duration })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.StartTimestamp !== undefined &&
48212 input.StartTimestamp !== null && { StartTimestamp: input.StartTimestamp })), (input.StopTimestamp !== undefined && input.StopTimestamp !== null && { StopTimestamp: input.StopTimestamp }));
48213};
48214var serializeAws_restJson1SetDimension = function (input, context) {
48215 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DimensionType !== undefined && input.DimensionType !== null && { DimensionType: input.DimensionType })), (input.Values !== undefined &&
48216 input.Values !== null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }));
48217};
48218var serializeAws_restJson1SimpleCondition = function (input, context) {
48219 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EventCondition !== undefined &&
48220 input.EventCondition !== null && {
48221 EventCondition: serializeAws_restJson1EventCondition(input.EventCondition, context),
48222 })), (input.SegmentCondition !== undefined &&
48223 input.SegmentCondition !== null && {
48224 SegmentCondition: serializeAws_restJson1SegmentCondition(input.SegmentCondition, context),
48225 })), (input.SegmentDimensions !== undefined &&
48226 input.SegmentDimensions !== null && {
48227 segmentDimensions: serializeAws_restJson1SegmentDimensions(input.SegmentDimensions, context),
48228 }));
48229};
48230var serializeAws_restJson1SimpleEmail = function (input, context) {
48231 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.HtmlPart !== undefined &&
48232 input.HtmlPart !== null && { HtmlPart: serializeAws_restJson1SimpleEmailPart(input.HtmlPart, context) })), (input.Subject !== undefined &&
48233 input.Subject !== null && { Subject: serializeAws_restJson1SimpleEmailPart(input.Subject, context) })), (input.TextPart !== undefined &&
48234 input.TextPart !== null && { TextPart: serializeAws_restJson1SimpleEmailPart(input.TextPart, context) }));
48235};
48236var serializeAws_restJson1SimpleEmailPart = function (input, context) {
48237 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Charset !== undefined && input.Charset !== null && { Charset: input.Charset })), (input.Data !== undefined && input.Data !== null && { Data: input.Data }));
48238};
48239var serializeAws_restJson1SMSChannelRequest = function (input, context) {
48240 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.SenderId !== undefined && input.SenderId !== null && { SenderId: input.SenderId })), (input.ShortCode !== undefined && input.ShortCode !== null && { ShortCode: input.ShortCode }));
48241};
48242var serializeAws_restJson1SMSMessage = function (input, context) {
48243 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.Keyword !== undefined && input.Keyword !== null && { Keyword: input.Keyword })), (input.MediaUrl !== undefined && input.MediaUrl !== null && { MediaUrl: input.MediaUrl })), (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.OriginationNumber !== undefined &&
48244 input.OriginationNumber !== null && { OriginationNumber: input.OriginationNumber })), (input.SenderId !== undefined && input.SenderId !== null && { SenderId: input.SenderId })), (input.Substitutions !== undefined &&
48245 input.Substitutions !== null && {
48246 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
48247 }));
48248};
48249var serializeAws_restJson1SMSMessageActivity = function (input, context) {
48250 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.MessageConfig !== undefined &&
48251 input.MessageConfig !== null && {
48252 MessageConfig: serializeAws_restJson1JourneySMSMessage(input.MessageConfig, context),
48253 })), (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.TemplateName !== undefined && input.TemplateName !== null && { TemplateName: input.TemplateName })), (input.TemplateVersion !== undefined &&
48254 input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }));
48255};
48256var serializeAws_restJson1SMSTemplateRequest = function (input, context) {
48257 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.DefaultSubstitutions !== undefined &&
48258 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.RecommenderId !== undefined && input.RecommenderId !== null && { RecommenderId: input.RecommenderId })), (input.TemplateDescription !== undefined &&
48259 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.tags !== undefined &&
48260 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48261};
48262var serializeAws_restJson1StartCondition = function (input, context) {
48263 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EventStartCondition !== undefined &&
48264 input.EventStartCondition !== null && {
48265 EventStartCondition: serializeAws_restJson1EventStartCondition(input.EventStartCondition, context),
48266 })), (input.SegmentStartCondition !== undefined &&
48267 input.SegmentStartCondition !== null && {
48268 SegmentStartCondition: serializeAws_restJson1SegmentCondition(input.SegmentStartCondition, context),
48269 }));
48270};
48271var serializeAws_restJson1TagsModel = function (input, context) {
48272 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.tags !== undefined &&
48273 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48274};
48275var serializeAws_restJson1Template = function (input, context) {
48276 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
48277};
48278var serializeAws_restJson1TemplateActiveVersionRequest = function (input, context) {
48279 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
48280};
48281var serializeAws_restJson1TemplateConfiguration = function (input, context) {
48282 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.EmailTemplate !== undefined &&
48283 input.EmailTemplate !== null && { EmailTemplate: serializeAws_restJson1Template(input.EmailTemplate, context) })), (input.PushTemplate !== undefined &&
48284 input.PushTemplate !== null && { PushTemplate: serializeAws_restJson1Template(input.PushTemplate, context) })), (input.SMSTemplate !== undefined &&
48285 input.SMSTemplate !== null && { SMSTemplate: serializeAws_restJson1Template(input.SMSTemplate, context) })), (input.VoiceTemplate !== undefined &&
48286 input.VoiceTemplate !== null && { VoiceTemplate: serializeAws_restJson1Template(input.VoiceTemplate, context) }));
48287};
48288var serializeAws_restJson1UpdateAttributesRequest = function (input, context) {
48289 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Blacklist !== undefined &&
48290 input.Blacklist !== null && { Blacklist: serializeAws_restJson1ListOf__string(input.Blacklist, context) }));
48291};
48292var serializeAws_restJson1UpdateRecommenderConfigurationShape = function (input, context) {
48293 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Attributes !== undefined &&
48294 input.Attributes !== null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RecommendationProviderIdType !== undefined &&
48295 input.RecommendationProviderIdType !== null && {
48296 RecommendationProviderIdType: input.RecommendationProviderIdType,
48297 })), (input.RecommendationProviderRoleArn !== undefined &&
48298 input.RecommendationProviderRoleArn !== null && {
48299 RecommendationProviderRoleArn: input.RecommendationProviderRoleArn,
48300 })), (input.RecommendationProviderUri !== undefined &&
48301 input.RecommendationProviderUri !== null && { RecommendationProviderUri: input.RecommendationProviderUri })), (input.RecommendationTransformerUri !== undefined &&
48302 input.RecommendationTransformerUri !== null && {
48303 RecommendationTransformerUri: input.RecommendationTransformerUri,
48304 })), (input.RecommendationsDisplayName !== undefined &&
48305 input.RecommendationsDisplayName !== null && { RecommendationsDisplayName: input.RecommendationsDisplayName })), (input.RecommendationsPerMessage !== undefined &&
48306 input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }));
48307};
48308var serializeAws_restJson1VoiceChannelRequest = function (input, context) {
48309 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
48310};
48311var serializeAws_restJson1VoiceMessage = function (input, context) {
48312 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.OriginationNumber !== undefined &&
48313 input.OriginationNumber !== null && { OriginationNumber: input.OriginationNumber })), (input.Substitutions !== undefined &&
48314 input.Substitutions !== null && {
48315 Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
48316 })), (input.VoiceId !== undefined && input.VoiceId !== null && { VoiceId: input.VoiceId }));
48317};
48318var serializeAws_restJson1VoiceTemplateRequest = function (input, context) {
48319 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Body !== undefined && input.Body !== null && { Body: input.Body })), (input.DefaultSubstitutions !== undefined &&
48320 input.DefaultSubstitutions !== null && { DefaultSubstitutions: input.DefaultSubstitutions })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.TemplateDescription !== undefined &&
48321 input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription })), (input.VoiceId !== undefined && input.VoiceId !== null && { VoiceId: input.VoiceId })), (input.tags !== undefined &&
48322 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48323};
48324var serializeAws_restJson1WaitActivity = function (input, context) {
48325 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity })), (input.WaitTime !== undefined &&
48326 input.WaitTime !== null && { WaitTime: serializeAws_restJson1WaitTime(input.WaitTime, context) }));
48327};
48328var serializeAws_restJson1WaitTime = function (input, context) {
48329 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.WaitFor !== undefined && input.WaitFor !== null && { WaitFor: input.WaitFor })), (input.WaitUntil !== undefined && input.WaitUntil !== null && { WaitUntil: input.WaitUntil }));
48330};
48331var serializeAws_restJson1WriteApplicationSettingsRequest = function (input, context) {
48332 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CampaignHook !== undefined &&
48333 input.CampaignHook !== null && { CampaignHook: serializeAws_restJson1CampaignHook(input.CampaignHook, context) })), (input.CloudWatchMetricsEnabled !== undefined &&
48334 input.CloudWatchMetricsEnabled !== null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled })), (input.EventTaggingEnabled !== undefined &&
48335 input.EventTaggingEnabled !== null && { EventTaggingEnabled: input.EventTaggingEnabled })), (input.Limits !== undefined &&
48336 input.Limits !== null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) })), (input.QuietTime !== undefined &&
48337 input.QuietTime !== null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) }));
48338};
48339var serializeAws_restJson1WriteCampaignRequest = function (input, context) {
48340 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.AdditionalTreatments !== undefined &&
48341 input.AdditionalTreatments !== null && {
48342 AdditionalTreatments: serializeAws_restJson1ListOfWriteTreatmentResource(input.AdditionalTreatments, context),
48343 })), (input.CustomDeliveryConfiguration !== undefined &&
48344 input.CustomDeliveryConfiguration !== null && {
48345 CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context),
48346 })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.HoldoutPercent !== undefined &&
48347 input.HoldoutPercent !== null && { HoldoutPercent: input.HoldoutPercent })), (input.Hook !== undefined &&
48348 input.Hook !== null && { Hook: serializeAws_restJson1CampaignHook(input.Hook, context) })), (input.IsPaused !== undefined && input.IsPaused !== null && { IsPaused: input.IsPaused })), (input.Limits !== undefined &&
48349 input.Limits !== null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) })), (input.MessageConfiguration !== undefined &&
48350 input.MessageConfiguration !== null && {
48351 MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context),
48352 })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Schedule !== undefined &&
48353 input.Schedule !== null && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) })), (input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId })), (input.SegmentVersion !== undefined &&
48354 input.SegmentVersion !== null && { SegmentVersion: input.SegmentVersion })), (input.TemplateConfiguration !== undefined &&
48355 input.TemplateConfiguration !== null && {
48356 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48357 })), (input.TreatmentDescription !== undefined &&
48358 input.TreatmentDescription !== null && { TreatmentDescription: input.TreatmentDescription })), (input.TreatmentName !== undefined && input.TreatmentName !== null && { TreatmentName: input.TreatmentName })), (input.tags !== undefined &&
48359 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48360};
48361var serializeAws_restJson1WriteEventStream = function (input, context) {
48362 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.DestinationStreamArn !== undefined &&
48363 input.DestinationStreamArn !== null && { DestinationStreamArn: input.DestinationStreamArn })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
48364};
48365var serializeAws_restJson1WriteJourneyRequest = function (input, context) {
48366 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Activities !== undefined &&
48367 input.Activities !== null && { Activities: serializeAws_restJson1MapOfActivity(input.Activities, context) })), (input.CreationDate !== undefined && input.CreationDate !== null && { CreationDate: input.CreationDate })), (input.LastModifiedDate !== undefined &&
48368 input.LastModifiedDate !== null && { LastModifiedDate: input.LastModifiedDate })), (input.Limits !== undefined &&
48369 input.Limits !== null && { Limits: serializeAws_restJson1JourneyLimits(input.Limits, context) })), (input.LocalTime !== undefined && input.LocalTime !== null && { LocalTime: input.LocalTime })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.QuietTime !== undefined &&
48370 input.QuietTime !== null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.RefreshFrequency !== undefined &&
48371 input.RefreshFrequency !== null && { RefreshFrequency: input.RefreshFrequency })), (input.Schedule !== undefined &&
48372 input.Schedule !== null && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) })), (input.StartActivity !== undefined && input.StartActivity !== null && { StartActivity: input.StartActivity })), (input.StartCondition !== undefined &&
48373 input.StartCondition !== null && {
48374 StartCondition: serializeAws_restJson1StartCondition(input.StartCondition, context),
48375 })), (input.State !== undefined && input.State !== null && { State: input.State }));
48376};
48377var serializeAws_restJson1WriteSegmentRequest = function (input, context) {
48378 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.Dimensions !== undefined &&
48379 input.Dimensions !== null && { Dimensions: serializeAws_restJson1SegmentDimensions(input.Dimensions, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SegmentGroups !== undefined &&
48380 input.SegmentGroups !== null && {
48381 SegmentGroups: serializeAws_restJson1SegmentGroupList(input.SegmentGroups, context),
48382 })), (input.tags !== undefined &&
48383 input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }));
48384};
48385var serializeAws_restJson1WriteTreatmentResource = function (input, context) {
48386 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (input.CustomDeliveryConfiguration !== undefined &&
48387 input.CustomDeliveryConfiguration !== null && {
48388 CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context),
48389 })), (input.MessageConfiguration !== undefined &&
48390 input.MessageConfiguration !== null && {
48391 MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context),
48392 })), (input.Schedule !== undefined &&
48393 input.Schedule !== null && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) })), (input.SizePercent !== undefined && input.SizePercent !== null && { SizePercent: input.SizePercent })), (input.TemplateConfiguration !== undefined &&
48394 input.TemplateConfiguration !== null && {
48395 TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
48396 })), (input.TreatmentDescription !== undefined &&
48397 input.TreatmentDescription !== null && { TreatmentDescription: input.TreatmentDescription })), (input.TreatmentName !== undefined && input.TreatmentName !== null && { TreatmentName: input.TreatmentName }));
48398};
48399var deserializeAws_restJson1ActivitiesResponse = function (output, context) {
48400 return {
48401 Item: output.Item !== undefined && output.Item !== null
48402 ? deserializeAws_restJson1ListOfActivityResponse(output.Item, context)
48403 : undefined,
48404 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48405 };
48406};
48407var deserializeAws_restJson1Activity = function (output, context) {
48408 return {
48409 CUSTOM: output.CUSTOM !== undefined && output.CUSTOM !== null
48410 ? deserializeAws_restJson1CustomMessageActivity(output.CUSTOM, context)
48411 : undefined,
48412 ConditionalSplit: output.ConditionalSplit !== undefined && output.ConditionalSplit !== null
48413 ? deserializeAws_restJson1ConditionalSplitActivity(output.ConditionalSplit, context)
48414 : undefined,
48415 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
48416 EMAIL: output.EMAIL !== undefined && output.EMAIL !== null
48417 ? deserializeAws_restJson1EmailMessageActivity(output.EMAIL, context)
48418 : undefined,
48419 Holdout: output.Holdout !== undefined && output.Holdout !== null
48420 ? deserializeAws_restJson1HoldoutActivity(output.Holdout, context)
48421 : undefined,
48422 MultiCondition: output.MultiCondition !== undefined && output.MultiCondition !== null
48423 ? deserializeAws_restJson1MultiConditionalSplitActivity(output.MultiCondition, context)
48424 : undefined,
48425 PUSH: output.PUSH !== undefined && output.PUSH !== null
48426 ? deserializeAws_restJson1PushMessageActivity(output.PUSH, context)
48427 : undefined,
48428 RandomSplit: output.RandomSplit !== undefined && output.RandomSplit !== null
48429 ? deserializeAws_restJson1RandomSplitActivity(output.RandomSplit, context)
48430 : undefined,
48431 SMS: output.SMS !== undefined && output.SMS !== null
48432 ? deserializeAws_restJson1SMSMessageActivity(output.SMS, context)
48433 : undefined,
48434 Wait: output.Wait !== undefined && output.Wait !== null
48435 ? deserializeAws_restJson1WaitActivity(output.Wait, context)
48436 : undefined,
48437 };
48438};
48439var deserializeAws_restJson1ActivityResponse = function (output, context) {
48440 return {
48441 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48442 CampaignId: output.CampaignId !== undefined && output.CampaignId !== null ? output.CampaignId : undefined,
48443 End: output.End !== undefined && output.End !== null ? output.End : undefined,
48444 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48445 Result: output.Result !== undefined && output.Result !== null ? output.Result : undefined,
48446 ScheduledStart: output.ScheduledStart !== undefined && output.ScheduledStart !== null ? output.ScheduledStart : undefined,
48447 Start: output.Start !== undefined && output.Start !== null ? output.Start : undefined,
48448 State: output.State !== undefined && output.State !== null ? output.State : undefined,
48449 SuccessfulEndpointCount: output.SuccessfulEndpointCount !== undefined && output.SuccessfulEndpointCount !== null
48450 ? output.SuccessfulEndpointCount
48451 : undefined,
48452 TimezonesCompletedCount: output.TimezonesCompletedCount !== undefined && output.TimezonesCompletedCount !== null
48453 ? output.TimezonesCompletedCount
48454 : undefined,
48455 TimezonesTotalCount: output.TimezonesTotalCount !== undefined && output.TimezonesTotalCount !== null
48456 ? output.TimezonesTotalCount
48457 : undefined,
48458 TotalEndpointCount: output.TotalEndpointCount !== undefined && output.TotalEndpointCount !== null
48459 ? output.TotalEndpointCount
48460 : undefined,
48461 TreatmentId: output.TreatmentId !== undefined && output.TreatmentId !== null ? output.TreatmentId : undefined,
48462 };
48463};
48464var deserializeAws_restJson1ADMChannelResponse = function (output, context) {
48465 return {
48466 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48467 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48468 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48469 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48470 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48471 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48472 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48473 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48474 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48475 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48476 };
48477};
48478var deserializeAws_restJson1AndroidPushNotificationTemplate = function (output, context) {
48479 return {
48480 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
48481 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48482 ImageIconUrl: output.ImageIconUrl !== undefined && output.ImageIconUrl !== null ? output.ImageIconUrl : undefined,
48483 ImageUrl: output.ImageUrl !== undefined && output.ImageUrl !== null ? output.ImageUrl : undefined,
48484 RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined,
48485 SmallImageIconUrl: output.SmallImageIconUrl !== undefined && output.SmallImageIconUrl !== null
48486 ? output.SmallImageIconUrl
48487 : undefined,
48488 Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined,
48489 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48490 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
48491 };
48492};
48493var deserializeAws_restJson1APNSChannelResponse = function (output, context) {
48494 return {
48495 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48496 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48497 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48498 ? output.DefaultAuthenticationMethod
48499 : undefined,
48500 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48501 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48502 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48503 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48504 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48505 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48506 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48507 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48508 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48509 };
48510};
48511var deserializeAws_restJson1APNSPushNotificationTemplate = function (output, context) {
48512 return {
48513 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
48514 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48515 MediaUrl: output.MediaUrl !== undefined && output.MediaUrl !== null ? output.MediaUrl : undefined,
48516 RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined,
48517 Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined,
48518 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48519 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
48520 };
48521};
48522var deserializeAws_restJson1APNSSandboxChannelResponse = function (output, context) {
48523 return {
48524 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48525 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48526 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48527 ? output.DefaultAuthenticationMethod
48528 : undefined,
48529 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48530 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48531 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48532 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48533 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48534 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48535 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48536 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48537 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48538 };
48539};
48540var deserializeAws_restJson1APNSVoipChannelResponse = function (output, context) {
48541 return {
48542 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48543 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48544 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48545 ? output.DefaultAuthenticationMethod
48546 : undefined,
48547 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48548 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48549 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48550 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48551 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48552 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48553 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48554 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48555 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48556 };
48557};
48558var deserializeAws_restJson1APNSVoipSandboxChannelResponse = function (output, context) {
48559 return {
48560 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48561 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48562 DefaultAuthenticationMethod: output.DefaultAuthenticationMethod !== undefined && output.DefaultAuthenticationMethod !== null
48563 ? output.DefaultAuthenticationMethod
48564 : undefined,
48565 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48566 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48567 HasTokenKey: output.HasTokenKey !== undefined && output.HasTokenKey !== null ? output.HasTokenKey : undefined,
48568 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48569 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48570 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48571 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48572 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48573 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48574 };
48575};
48576var deserializeAws_restJson1ApplicationDateRangeKpiResponse = function (output, context) {
48577 return {
48578 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48579 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
48580 KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined,
48581 KpiResult: output.KpiResult !== undefined && output.KpiResult !== null
48582 ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
48583 : undefined,
48584 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48585 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
48586 };
48587};
48588var deserializeAws_restJson1ApplicationResponse = function (output, context) {
48589 return {
48590 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48591 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48592 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
48593 tags: output.tags !== undefined && output.tags !== null
48594 ? deserializeAws_restJson1MapOf__string(output.tags, context)
48595 : undefined,
48596 };
48597};
48598var deserializeAws_restJson1ApplicationSettingsResource = function (output, context) {
48599 return {
48600 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48601 CampaignHook: output.CampaignHook !== undefined && output.CampaignHook !== null
48602 ? deserializeAws_restJson1CampaignHook(output.CampaignHook, context)
48603 : undefined,
48604 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48605 Limits: output.Limits !== undefined && output.Limits !== null
48606 ? deserializeAws_restJson1CampaignLimits(output.Limits, context)
48607 : undefined,
48608 QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
48609 ? deserializeAws_restJson1QuietTime(output.QuietTime, context)
48610 : undefined,
48611 };
48612};
48613var deserializeAws_restJson1ApplicationsResponse = function (output, context) {
48614 return {
48615 Item: output.Item !== undefined && output.Item !== null
48616 ? deserializeAws_restJson1ListOfApplicationResponse(output.Item, context)
48617 : undefined,
48618 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48619 };
48620};
48621var deserializeAws_restJson1AttributeDimension = function (output, context) {
48622 return {
48623 AttributeType: output.AttributeType !== undefined && output.AttributeType !== null ? output.AttributeType : undefined,
48624 Values: output.Values !== undefined && output.Values !== null
48625 ? deserializeAws_restJson1ListOf__string(output.Values, context)
48626 : undefined,
48627 };
48628};
48629var deserializeAws_restJson1AttributesResource = function (output, context) {
48630 return {
48631 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48632 AttributeType: output.AttributeType !== undefined && output.AttributeType !== null ? output.AttributeType : undefined,
48633 Attributes: output.Attributes !== undefined && output.Attributes !== null
48634 ? deserializeAws_restJson1ListOf__string(output.Attributes, context)
48635 : undefined,
48636 };
48637};
48638var deserializeAws_restJson1BaiduChannelResponse = function (output, context) {
48639 return {
48640 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48641 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48642 Credential: output.Credential !== undefined && output.Credential !== null ? output.Credential : undefined,
48643 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48644 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48645 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48646 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48647 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48648 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48649 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48650 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48651 };
48652};
48653var deserializeAws_restJson1BaseKpiResult = function (output, context) {
48654 return {
48655 Rows: output.Rows !== undefined && output.Rows !== null
48656 ? deserializeAws_restJson1ListOfResultRow(output.Rows, context)
48657 : undefined,
48658 };
48659};
48660var deserializeAws_restJson1CampaignCustomMessage = function (output, context) {
48661 return {
48662 Data: output.Data !== undefined && output.Data !== null ? output.Data : undefined,
48663 };
48664};
48665var deserializeAws_restJson1CampaignDateRangeKpiResponse = function (output, context) {
48666 return {
48667 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48668 CampaignId: output.CampaignId !== undefined && output.CampaignId !== null ? output.CampaignId : undefined,
48669 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
48670 KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined,
48671 KpiResult: output.KpiResult !== undefined && output.KpiResult !== null
48672 ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
48673 : undefined,
48674 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48675 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
48676 };
48677};
48678var deserializeAws_restJson1CampaignEmailMessage = function (output, context) {
48679 return {
48680 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48681 FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined,
48682 HtmlBody: output.HtmlBody !== undefined && output.HtmlBody !== null ? output.HtmlBody : undefined,
48683 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48684 };
48685};
48686var deserializeAws_restJson1CampaignEventFilter = function (output, context) {
48687 return {
48688 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
48689 ? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
48690 : undefined,
48691 FilterType: output.FilterType !== undefined && output.FilterType !== null ? output.FilterType : undefined,
48692 };
48693};
48694var deserializeAws_restJson1CampaignHook = function (output, context) {
48695 return {
48696 LambdaFunctionName: output.LambdaFunctionName !== undefined && output.LambdaFunctionName !== null
48697 ? output.LambdaFunctionName
48698 : undefined,
48699 Mode: output.Mode !== undefined && output.Mode !== null ? output.Mode : undefined,
48700 WebUrl: output.WebUrl !== undefined && output.WebUrl !== null ? output.WebUrl : undefined,
48701 };
48702};
48703var deserializeAws_restJson1CampaignLimits = function (output, context) {
48704 return {
48705 Daily: output.Daily !== undefined && output.Daily !== null ? output.Daily : undefined,
48706 MaximumDuration: output.MaximumDuration !== undefined && output.MaximumDuration !== null ? output.MaximumDuration : undefined,
48707 MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null
48708 ? output.MessagesPerSecond
48709 : undefined,
48710 Total: output.Total !== undefined && output.Total !== null ? output.Total : undefined,
48711 };
48712};
48713var deserializeAws_restJson1CampaignResponse = function (output, context) {
48714 return {
48715 AdditionalTreatments: output.AdditionalTreatments !== undefined && output.AdditionalTreatments !== null
48716 ? deserializeAws_restJson1ListOfTreatmentResource(output.AdditionalTreatments, context)
48717 : undefined,
48718 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48719 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48720 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48721 CustomDeliveryConfiguration: output.CustomDeliveryConfiguration !== undefined && output.CustomDeliveryConfiguration !== null
48722 ? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context)
48723 : undefined,
48724 DefaultState: output.DefaultState !== undefined && output.DefaultState !== null
48725 ? deserializeAws_restJson1CampaignState(output.DefaultState, context)
48726 : undefined,
48727 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
48728 HoldoutPercent: output.HoldoutPercent !== undefined && output.HoldoutPercent !== null ? output.HoldoutPercent : undefined,
48729 Hook: output.Hook !== undefined && output.Hook !== null
48730 ? deserializeAws_restJson1CampaignHook(output.Hook, context)
48731 : undefined,
48732 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48733 IsPaused: output.IsPaused !== undefined && output.IsPaused !== null ? output.IsPaused : undefined,
48734 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48735 Limits: output.Limits !== undefined && output.Limits !== null
48736 ? deserializeAws_restJson1CampaignLimits(output.Limits, context)
48737 : undefined,
48738 MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null
48739 ? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context)
48740 : undefined,
48741 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
48742 Schedule: output.Schedule !== undefined && output.Schedule !== null
48743 ? deserializeAws_restJson1Schedule(output.Schedule, context)
48744 : undefined,
48745 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
48746 SegmentVersion: output.SegmentVersion !== undefined && output.SegmentVersion !== null ? output.SegmentVersion : undefined,
48747 State: output.State !== undefined && output.State !== null
48748 ? deserializeAws_restJson1CampaignState(output.State, context)
48749 : undefined,
48750 TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null
48751 ? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context)
48752 : undefined,
48753 TreatmentDescription: output.TreatmentDescription !== undefined && output.TreatmentDescription !== null
48754 ? output.TreatmentDescription
48755 : undefined,
48756 TreatmentName: output.TreatmentName !== undefined && output.TreatmentName !== null ? output.TreatmentName : undefined,
48757 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48758 tags: output.tags !== undefined && output.tags !== null
48759 ? deserializeAws_restJson1MapOf__string(output.tags, context)
48760 : undefined,
48761 };
48762};
48763var deserializeAws_restJson1CampaignSmsMessage = function (output, context) {
48764 return {
48765 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48766 MessageType: output.MessageType !== undefined && output.MessageType !== null ? output.MessageType : undefined,
48767 SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined,
48768 };
48769};
48770var deserializeAws_restJson1CampaignsResponse = function (output, context) {
48771 return {
48772 Item: output.Item !== undefined && output.Item !== null
48773 ? deserializeAws_restJson1ListOfCampaignResponse(output.Item, context)
48774 : undefined,
48775 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
48776 };
48777};
48778var deserializeAws_restJson1CampaignState = function (output, context) {
48779 return {
48780 CampaignStatus: output.CampaignStatus !== undefined && output.CampaignStatus !== null ? output.CampaignStatus : undefined,
48781 };
48782};
48783var deserializeAws_restJson1ChannelResponse = function (output, context) {
48784 return {
48785 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48786 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48787 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48788 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48789 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48790 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48791 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48792 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48793 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48794 };
48795};
48796var deserializeAws_restJson1ChannelsResponse = function (output, context) {
48797 return {
48798 Channels: output.Channels !== undefined && output.Channels !== null
48799 ? deserializeAws_restJson1MapOfChannelResponse(output.Channels, context)
48800 : undefined,
48801 };
48802};
48803var deserializeAws_restJson1Condition = function (output, context) {
48804 return {
48805 Conditions: output.Conditions !== undefined && output.Conditions !== null
48806 ? deserializeAws_restJson1ListOfSimpleCondition(output.Conditions, context)
48807 : undefined,
48808 Operator: output.Operator !== undefined && output.Operator !== null ? output.Operator : undefined,
48809 };
48810};
48811var deserializeAws_restJson1ConditionalSplitActivity = function (output, context) {
48812 return {
48813 Condition: output.Condition !== undefined && output.Condition !== null
48814 ? deserializeAws_restJson1Condition(output.Condition, context)
48815 : undefined,
48816 EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null
48817 ? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context)
48818 : undefined,
48819 FalseActivity: output.FalseActivity !== undefined && output.FalseActivity !== null ? output.FalseActivity : undefined,
48820 TrueActivity: output.TrueActivity !== undefined && output.TrueActivity !== null ? output.TrueActivity : undefined,
48821 };
48822};
48823var deserializeAws_restJson1CreateTemplateMessageBody = function (output, context) {
48824 return {
48825 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48826 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
48827 RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined,
48828 };
48829};
48830var deserializeAws_restJson1CustomDeliveryConfiguration = function (output, context) {
48831 return {
48832 DeliveryUri: output.DeliveryUri !== undefined && output.DeliveryUri !== null ? output.DeliveryUri : undefined,
48833 EndpointTypes: output.EndpointTypes !== undefined && output.EndpointTypes !== null
48834 ? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context)
48835 : undefined,
48836 };
48837};
48838var deserializeAws_restJson1CustomMessageActivity = function (output, context) {
48839 return {
48840 DeliveryUri: output.DeliveryUri !== undefined && output.DeliveryUri !== null ? output.DeliveryUri : undefined,
48841 EndpointTypes: output.EndpointTypes !== undefined && output.EndpointTypes !== null
48842 ? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context)
48843 : undefined,
48844 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
48845 ? deserializeAws_restJson1JourneyCustomMessage(output.MessageConfig, context)
48846 : undefined,
48847 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
48848 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
48849 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
48850 };
48851};
48852var deserializeAws_restJson1DefaultPushNotificationTemplate = function (output, context) {
48853 return {
48854 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
48855 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
48856 Sound: output.Sound !== undefined && output.Sound !== null ? output.Sound : undefined,
48857 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
48858 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
48859 };
48860};
48861var deserializeAws_restJson1EmailChannelResponse = function (output, context) {
48862 return {
48863 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48864 ConfigurationSet: output.ConfigurationSet !== undefined && output.ConfigurationSet !== null ? output.ConfigurationSet : undefined,
48865 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48866 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
48867 FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined,
48868 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
48869 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48870 Identity: output.Identity !== undefined && output.Identity !== null ? output.Identity : undefined,
48871 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
48872 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
48873 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48874 MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null
48875 ? output.MessagesPerSecond
48876 : undefined,
48877 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48878 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
48879 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48880 };
48881};
48882var deserializeAws_restJson1EmailMessageActivity = function (output, context) {
48883 return {
48884 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
48885 ? deserializeAws_restJson1JourneyEmailMessage(output.MessageConfig, context)
48886 : undefined,
48887 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
48888 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
48889 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
48890 };
48891};
48892var deserializeAws_restJson1EmailTemplateResponse = function (output, context) {
48893 return {
48894 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
48895 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48896 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
48897 ? output.DefaultSubstitutions
48898 : undefined,
48899 HtmlPart: output.HtmlPart !== undefined && output.HtmlPart !== null ? output.HtmlPart : undefined,
48900 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
48901 RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined,
48902 Subject: output.Subject !== undefined && output.Subject !== null ? output.Subject : undefined,
48903 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
48904 ? output.TemplateDescription
48905 : undefined,
48906 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
48907 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
48908 TextPart: output.TextPart !== undefined && output.TextPart !== null ? output.TextPart : undefined,
48909 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
48910 tags: output.tags !== undefined && output.tags !== null
48911 ? deserializeAws_restJson1MapOf__string(output.tags, context)
48912 : undefined,
48913 };
48914};
48915var deserializeAws_restJson1EndpointDemographic = function (output, context) {
48916 return {
48917 AppVersion: output.AppVersion !== undefined && output.AppVersion !== null ? output.AppVersion : undefined,
48918 Locale: output.Locale !== undefined && output.Locale !== null ? output.Locale : undefined,
48919 Make: output.Make !== undefined && output.Make !== null ? output.Make : undefined,
48920 Model: output.Model !== undefined && output.Model !== null ? output.Model : undefined,
48921 ModelVersion: output.ModelVersion !== undefined && output.ModelVersion !== null ? output.ModelVersion : undefined,
48922 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
48923 PlatformVersion: output.PlatformVersion !== undefined && output.PlatformVersion !== null ? output.PlatformVersion : undefined,
48924 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
48925 };
48926};
48927var deserializeAws_restJson1EndpointItemResponse = function (output, context) {
48928 return {
48929 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
48930 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
48931 };
48932};
48933var deserializeAws_restJson1EndpointLocation = function (output, context) {
48934 return {
48935 City: output.City !== undefined && output.City !== null ? output.City : undefined,
48936 Country: output.Country !== undefined && output.Country !== null ? output.Country : undefined,
48937 Latitude: output.Latitude !== undefined && output.Latitude !== null ? output.Latitude : undefined,
48938 Longitude: output.Longitude !== undefined && output.Longitude !== null ? output.Longitude : undefined,
48939 PostalCode: output.PostalCode !== undefined && output.PostalCode !== null ? output.PostalCode : undefined,
48940 Region: output.Region !== undefined && output.Region !== null ? output.Region : undefined,
48941 };
48942};
48943var deserializeAws_restJson1EndpointMessageResult = function (output, context) {
48944 return {
48945 Address: output.Address !== undefined && output.Address !== null ? output.Address : undefined,
48946 DeliveryStatus: output.DeliveryStatus !== undefined && output.DeliveryStatus !== null ? output.DeliveryStatus : undefined,
48947 MessageId: output.MessageId !== undefined && output.MessageId !== null ? output.MessageId : undefined,
48948 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
48949 StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined,
48950 UpdatedToken: output.UpdatedToken !== undefined && output.UpdatedToken !== null ? output.UpdatedToken : undefined,
48951 };
48952};
48953var deserializeAws_restJson1EndpointResponse = function (output, context) {
48954 return {
48955 Address: output.Address !== undefined && output.Address !== null ? output.Address : undefined,
48956 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
48957 Attributes: output.Attributes !== undefined && output.Attributes !== null
48958 ? deserializeAws_restJson1MapOfListOf__string(output.Attributes, context)
48959 : undefined,
48960 ChannelType: output.ChannelType !== undefined && output.ChannelType !== null ? output.ChannelType : undefined,
48961 CohortId: output.CohortId !== undefined && output.CohortId !== null ? output.CohortId : undefined,
48962 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
48963 Demographic: output.Demographic !== undefined && output.Demographic !== null
48964 ? deserializeAws_restJson1EndpointDemographic(output.Demographic, context)
48965 : undefined,
48966 EffectiveDate: output.EffectiveDate !== undefined && output.EffectiveDate !== null ? output.EffectiveDate : undefined,
48967 EndpointStatus: output.EndpointStatus !== undefined && output.EndpointStatus !== null ? output.EndpointStatus : undefined,
48968 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
48969 Location: output.Location !== undefined && output.Location !== null
48970 ? deserializeAws_restJson1EndpointLocation(output.Location, context)
48971 : undefined,
48972 Metrics: output.Metrics !== undefined && output.Metrics !== null
48973 ? deserializeAws_restJson1MapOf__double(output.Metrics, context)
48974 : undefined,
48975 OptOut: output.OptOut !== undefined && output.OptOut !== null ? output.OptOut : undefined,
48976 RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined,
48977 User: output.User !== undefined && output.User !== null
48978 ? deserializeAws_restJson1EndpointUser(output.User, context)
48979 : undefined,
48980 };
48981};
48982var deserializeAws_restJson1EndpointsResponse = function (output, context) {
48983 return {
48984 Item: output.Item !== undefined && output.Item !== null
48985 ? deserializeAws_restJson1ListOfEndpointResponse(output.Item, context)
48986 : undefined,
48987 };
48988};
48989var deserializeAws_restJson1EndpointUser = function (output, context) {
48990 return {
48991 UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
48992 ? deserializeAws_restJson1MapOfListOf__string(output.UserAttributes, context)
48993 : undefined,
48994 UserId: output.UserId !== undefined && output.UserId !== null ? output.UserId : undefined,
48995 };
48996};
48997var deserializeAws_restJson1EventCondition = function (output, context) {
48998 return {
48999 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
49000 ? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
49001 : undefined,
49002 MessageActivity: output.MessageActivity !== undefined && output.MessageActivity !== null ? output.MessageActivity : undefined,
49003 };
49004};
49005var deserializeAws_restJson1EventDimensions = function (output, context) {
49006 return {
49007 Attributes: output.Attributes !== undefined && output.Attributes !== null
49008 ? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context)
49009 : undefined,
49010 EventType: output.EventType !== undefined && output.EventType !== null
49011 ? deserializeAws_restJson1SetDimension(output.EventType, context)
49012 : undefined,
49013 Metrics: output.Metrics !== undefined && output.Metrics !== null
49014 ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context)
49015 : undefined,
49016 };
49017};
49018var deserializeAws_restJson1EventFilter = function (output, context) {
49019 return {
49020 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
49021 ? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
49022 : undefined,
49023 FilterType: output.FilterType !== undefined && output.FilterType !== null ? output.FilterType : undefined,
49024 };
49025};
49026var deserializeAws_restJson1EventItemResponse = function (output, context) {
49027 return {
49028 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
49029 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
49030 };
49031};
49032var deserializeAws_restJson1EventsResponse = function (output, context) {
49033 return {
49034 Results: output.Results !== undefined && output.Results !== null
49035 ? deserializeAws_restJson1MapOfItemResponse(output.Results, context)
49036 : undefined,
49037 };
49038};
49039var deserializeAws_restJson1EventStartCondition = function (output, context) {
49040 return {
49041 EventFilter: output.EventFilter !== undefined && output.EventFilter !== null
49042 ? deserializeAws_restJson1EventFilter(output.EventFilter, context)
49043 : undefined,
49044 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49045 };
49046};
49047var deserializeAws_restJson1EventStream = function (output, context) {
49048 return {
49049 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49050 DestinationStreamArn: output.DestinationStreamArn !== undefined && output.DestinationStreamArn !== null
49051 ? output.DestinationStreamArn
49052 : undefined,
49053 ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined,
49054 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49055 LastUpdatedBy: output.LastUpdatedBy !== undefined && output.LastUpdatedBy !== null ? output.LastUpdatedBy : undefined,
49056 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49057 };
49058};
49059var deserializeAws_restJson1ExportJobResource = function (output, context) {
49060 return {
49061 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49062 S3UrlPrefix: output.S3UrlPrefix !== undefined && output.S3UrlPrefix !== null ? output.S3UrlPrefix : undefined,
49063 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49064 SegmentVersion: output.SegmentVersion !== undefined && output.SegmentVersion !== null ? output.SegmentVersion : undefined,
49065 };
49066};
49067var deserializeAws_restJson1ExportJobResponse = function (output, context) {
49068 return {
49069 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49070 CompletedPieces: output.CompletedPieces !== undefined && output.CompletedPieces !== null ? output.CompletedPieces : undefined,
49071 CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? output.CompletionDate : undefined,
49072 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49073 Definition: output.Definition !== undefined && output.Definition !== null
49074 ? deserializeAws_restJson1ExportJobResource(output.Definition, context)
49075 : undefined,
49076 FailedPieces: output.FailedPieces !== undefined && output.FailedPieces !== null ? output.FailedPieces : undefined,
49077 Failures: output.Failures !== undefined && output.Failures !== null
49078 ? deserializeAws_restJson1ListOf__string(output.Failures, context)
49079 : undefined,
49080 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49081 JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined,
49082 TotalFailures: output.TotalFailures !== undefined && output.TotalFailures !== null ? output.TotalFailures : undefined,
49083 TotalPieces: output.TotalPieces !== undefined && output.TotalPieces !== null ? output.TotalPieces : undefined,
49084 TotalProcessed: output.TotalProcessed !== undefined && output.TotalProcessed !== null ? output.TotalProcessed : undefined,
49085 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49086 };
49087};
49088var deserializeAws_restJson1ExportJobsResponse = function (output, context) {
49089 return {
49090 Item: output.Item !== undefined && output.Item !== null
49091 ? deserializeAws_restJson1ListOfExportJobResponse(output.Item, context)
49092 : undefined,
49093 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49094 };
49095};
49096var deserializeAws_restJson1GCMChannelResponse = function (output, context) {
49097 return {
49098 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49099 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49100 Credential: output.Credential !== undefined && output.Credential !== null ? output.Credential : undefined,
49101 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
49102 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
49103 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49104 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
49105 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
49106 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49107 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
49108 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
49109 };
49110};
49111var deserializeAws_restJson1GPSCoordinates = function (output, context) {
49112 return {
49113 Latitude: output.Latitude !== undefined && output.Latitude !== null ? output.Latitude : undefined,
49114 Longitude: output.Longitude !== undefined && output.Longitude !== null ? output.Longitude : undefined,
49115 };
49116};
49117var deserializeAws_restJson1GPSPointDimension = function (output, context) {
49118 return {
49119 Coordinates: output.Coordinates !== undefined && output.Coordinates !== null
49120 ? deserializeAws_restJson1GPSCoordinates(output.Coordinates, context)
49121 : undefined,
49122 RangeInKilometers: output.RangeInKilometers !== undefined && output.RangeInKilometers !== null
49123 ? output.RangeInKilometers
49124 : undefined,
49125 };
49126};
49127var deserializeAws_restJson1HoldoutActivity = function (output, context) {
49128 return {
49129 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49130 Percentage: output.Percentage !== undefined && output.Percentage !== null ? output.Percentage : undefined,
49131 };
49132};
49133var deserializeAws_restJson1ImportJobResource = function (output, context) {
49134 return {
49135 DefineSegment: output.DefineSegment !== undefined && output.DefineSegment !== null ? output.DefineSegment : undefined,
49136 ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined,
49137 Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined,
49138 RegisterEndpoints: output.RegisterEndpoints !== undefined && output.RegisterEndpoints !== null
49139 ? output.RegisterEndpoints
49140 : undefined,
49141 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
49142 S3Url: output.S3Url !== undefined && output.S3Url !== null ? output.S3Url : undefined,
49143 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49144 SegmentName: output.SegmentName !== undefined && output.SegmentName !== null ? output.SegmentName : undefined,
49145 };
49146};
49147var deserializeAws_restJson1ImportJobResponse = function (output, context) {
49148 return {
49149 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49150 CompletedPieces: output.CompletedPieces !== undefined && output.CompletedPieces !== null ? output.CompletedPieces : undefined,
49151 CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null ? output.CompletionDate : undefined,
49152 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49153 Definition: output.Definition !== undefined && output.Definition !== null
49154 ? deserializeAws_restJson1ImportJobResource(output.Definition, context)
49155 : undefined,
49156 FailedPieces: output.FailedPieces !== undefined && output.FailedPieces !== null ? output.FailedPieces : undefined,
49157 Failures: output.Failures !== undefined && output.Failures !== null
49158 ? deserializeAws_restJson1ListOf__string(output.Failures, context)
49159 : undefined,
49160 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49161 JobStatus: output.JobStatus !== undefined && output.JobStatus !== null ? output.JobStatus : undefined,
49162 TotalFailures: output.TotalFailures !== undefined && output.TotalFailures !== null ? output.TotalFailures : undefined,
49163 TotalPieces: output.TotalPieces !== undefined && output.TotalPieces !== null ? output.TotalPieces : undefined,
49164 TotalProcessed: output.TotalProcessed !== undefined && output.TotalProcessed !== null ? output.TotalProcessed : undefined,
49165 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49166 };
49167};
49168var deserializeAws_restJson1ImportJobsResponse = function (output, context) {
49169 return {
49170 Item: output.Item !== undefined && output.Item !== null
49171 ? deserializeAws_restJson1ListOfImportJobResponse(output.Item, context)
49172 : undefined,
49173 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49174 };
49175};
49176var deserializeAws_restJson1ItemResponse = function (output, context) {
49177 return {
49178 EndpointItemResponse: output.EndpointItemResponse !== undefined && output.EndpointItemResponse !== null
49179 ? deserializeAws_restJson1EndpointItemResponse(output.EndpointItemResponse, context)
49180 : undefined,
49181 EventsItemResponse: output.EventsItemResponse !== undefined && output.EventsItemResponse !== null
49182 ? deserializeAws_restJson1MapOfEventItemResponse(output.EventsItemResponse, context)
49183 : undefined,
49184 };
49185};
49186var deserializeAws_restJson1JourneyCustomMessage = function (output, context) {
49187 return {
49188 Data: output.Data !== undefined && output.Data !== null ? output.Data : undefined,
49189 };
49190};
49191var deserializeAws_restJson1JourneyDateRangeKpiResponse = function (output, context) {
49192 return {
49193 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49194 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
49195 JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined,
49196 KpiName: output.KpiName !== undefined && output.KpiName !== null ? output.KpiName : undefined,
49197 KpiResult: output.KpiResult !== undefined && output.KpiResult !== null
49198 ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
49199 : undefined,
49200 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49201 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
49202 };
49203};
49204var deserializeAws_restJson1JourneyEmailMessage = function (output, context) {
49205 return {
49206 FromAddress: output.FromAddress !== undefined && output.FromAddress !== null ? output.FromAddress : undefined,
49207 };
49208};
49209var deserializeAws_restJson1JourneyExecutionActivityMetricsResponse = function (output, context) {
49210 return {
49211 ActivityType: output.ActivityType !== undefined && output.ActivityType !== null ? output.ActivityType : undefined,
49212 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49213 JourneyActivityId: output.JourneyActivityId !== undefined && output.JourneyActivityId !== null
49214 ? output.JourneyActivityId
49215 : undefined,
49216 JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined,
49217 LastEvaluatedTime: output.LastEvaluatedTime !== undefined && output.LastEvaluatedTime !== null
49218 ? output.LastEvaluatedTime
49219 : undefined,
49220 Metrics: output.Metrics !== undefined && output.Metrics !== null
49221 ? deserializeAws_restJson1MapOf__string(output.Metrics, context)
49222 : undefined,
49223 };
49224};
49225var deserializeAws_restJson1JourneyExecutionMetricsResponse = function (output, context) {
49226 return {
49227 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49228 JourneyId: output.JourneyId !== undefined && output.JourneyId !== null ? output.JourneyId : undefined,
49229 LastEvaluatedTime: output.LastEvaluatedTime !== undefined && output.LastEvaluatedTime !== null
49230 ? output.LastEvaluatedTime
49231 : undefined,
49232 Metrics: output.Metrics !== undefined && output.Metrics !== null
49233 ? deserializeAws_restJson1MapOf__string(output.Metrics, context)
49234 : undefined,
49235 };
49236};
49237var deserializeAws_restJson1JourneyLimits = function (output, context) {
49238 return {
49239 DailyCap: output.DailyCap !== undefined && output.DailyCap !== null ? output.DailyCap : undefined,
49240 EndpointReentryCap: output.EndpointReentryCap !== undefined && output.EndpointReentryCap !== null
49241 ? output.EndpointReentryCap
49242 : undefined,
49243 MessagesPerSecond: output.MessagesPerSecond !== undefined && output.MessagesPerSecond !== null
49244 ? output.MessagesPerSecond
49245 : undefined,
49246 };
49247};
49248var deserializeAws_restJson1JourneyPushMessage = function (output, context) {
49249 return {
49250 TimeToLive: output.TimeToLive !== undefined && output.TimeToLive !== null ? output.TimeToLive : undefined,
49251 };
49252};
49253var deserializeAws_restJson1JourneyResponse = function (output, context) {
49254 return {
49255 Activities: output.Activities !== undefined && output.Activities !== null
49256 ? deserializeAws_restJson1MapOfActivity(output.Activities, context)
49257 : undefined,
49258 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49259 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49260 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49261 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49262 Limits: output.Limits !== undefined && output.Limits !== null
49263 ? deserializeAws_restJson1JourneyLimits(output.Limits, context)
49264 : undefined,
49265 LocalTime: output.LocalTime !== undefined && output.LocalTime !== null ? output.LocalTime : undefined,
49266 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
49267 QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
49268 ? deserializeAws_restJson1QuietTime(output.QuietTime, context)
49269 : undefined,
49270 RefreshFrequency: output.RefreshFrequency !== undefined && output.RefreshFrequency !== null ? output.RefreshFrequency : undefined,
49271 Schedule: output.Schedule !== undefined && output.Schedule !== null
49272 ? deserializeAws_restJson1JourneySchedule(output.Schedule, context)
49273 : undefined,
49274 StartActivity: output.StartActivity !== undefined && output.StartActivity !== null ? output.StartActivity : undefined,
49275 StartCondition: output.StartCondition !== undefined && output.StartCondition !== null
49276 ? deserializeAws_restJson1StartCondition(output.StartCondition, context)
49277 : undefined,
49278 State: output.State !== undefined && output.State !== null ? output.State : undefined,
49279 tags: output.tags !== undefined && output.tags !== null
49280 ? deserializeAws_restJson1MapOf__string(output.tags, context)
49281 : undefined,
49282 };
49283};
49284var deserializeAws_restJson1JourneySchedule = function (output, context) {
49285 return {
49286 EndTime: output.EndTime !== undefined && output.EndTime !== null ? new Date(output.EndTime) : undefined,
49287 StartTime: output.StartTime !== undefined && output.StartTime !== null ? new Date(output.StartTime) : undefined,
49288 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
49289 };
49290};
49291var deserializeAws_restJson1JourneySMSMessage = function (output, context) {
49292 return {
49293 MessageType: output.MessageType !== undefined && output.MessageType !== null ? output.MessageType : undefined,
49294 SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined,
49295 };
49296};
49297var deserializeAws_restJson1JourneysResponse = function (output, context) {
49298 return {
49299 Item: output.Item !== undefined && output.Item !== null
49300 ? deserializeAws_restJson1ListOfJourneyResponse(output.Item, context)
49301 : undefined,
49302 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49303 };
49304};
49305var deserializeAws_restJson1ListOf__EndpointTypesElement = function (output, context) {
49306 return (output || [])
49307 .filter(function (e) { return e != null; })
49308 .map(function (entry) {
49309 if (entry === null) {
49310 return null;
49311 }
49312 return entry;
49313 });
49314};
49315var deserializeAws_restJson1ListOf__string = function (output, context) {
49316 return (output || [])
49317 .filter(function (e) { return e != null; })
49318 .map(function (entry) {
49319 if (entry === null) {
49320 return null;
49321 }
49322 return entry;
49323 });
49324};
49325var deserializeAws_restJson1ListOfActivityResponse = function (output, context) {
49326 return (output || [])
49327 .filter(function (e) { return e != null; })
49328 .map(function (entry) {
49329 if (entry === null) {
49330 return null;
49331 }
49332 return deserializeAws_restJson1ActivityResponse(entry, context);
49333 });
49334};
49335var deserializeAws_restJson1ListOfApplicationResponse = function (output, context) {
49336 return (output || [])
49337 .filter(function (e) { return e != null; })
49338 .map(function (entry) {
49339 if (entry === null) {
49340 return null;
49341 }
49342 return deserializeAws_restJson1ApplicationResponse(entry, context);
49343 });
49344};
49345var deserializeAws_restJson1ListOfCampaignResponse = function (output, context) {
49346 return (output || [])
49347 .filter(function (e) { return e != null; })
49348 .map(function (entry) {
49349 if (entry === null) {
49350 return null;
49351 }
49352 return deserializeAws_restJson1CampaignResponse(entry, context);
49353 });
49354};
49355var deserializeAws_restJson1ListOfEndpointResponse = function (output, context) {
49356 return (output || [])
49357 .filter(function (e) { return e != null; })
49358 .map(function (entry) {
49359 if (entry === null) {
49360 return null;
49361 }
49362 return deserializeAws_restJson1EndpointResponse(entry, context);
49363 });
49364};
49365var deserializeAws_restJson1ListOfExportJobResponse = function (output, context) {
49366 return (output || [])
49367 .filter(function (e) { return e != null; })
49368 .map(function (entry) {
49369 if (entry === null) {
49370 return null;
49371 }
49372 return deserializeAws_restJson1ExportJobResponse(entry, context);
49373 });
49374};
49375var deserializeAws_restJson1ListOfImportJobResponse = function (output, context) {
49376 return (output || [])
49377 .filter(function (e) { return e != null; })
49378 .map(function (entry) {
49379 if (entry === null) {
49380 return null;
49381 }
49382 return deserializeAws_restJson1ImportJobResponse(entry, context);
49383 });
49384};
49385var deserializeAws_restJson1ListOfJourneyResponse = function (output, context) {
49386 return (output || [])
49387 .filter(function (e) { return e != null; })
49388 .map(function (entry) {
49389 if (entry === null) {
49390 return null;
49391 }
49392 return deserializeAws_restJson1JourneyResponse(entry, context);
49393 });
49394};
49395var deserializeAws_restJson1ListOfMultiConditionalBranch = function (output, context) {
49396 return (output || [])
49397 .filter(function (e) { return e != null; })
49398 .map(function (entry) {
49399 if (entry === null) {
49400 return null;
49401 }
49402 return deserializeAws_restJson1MultiConditionalBranch(entry, context);
49403 });
49404};
49405var deserializeAws_restJson1ListOfRandomSplitEntry = function (output, context) {
49406 return (output || [])
49407 .filter(function (e) { return e != null; })
49408 .map(function (entry) {
49409 if (entry === null) {
49410 return null;
49411 }
49412 return deserializeAws_restJson1RandomSplitEntry(entry, context);
49413 });
49414};
49415var deserializeAws_restJson1ListOfRecommenderConfigurationResponse = function (output, context) {
49416 return (output || [])
49417 .filter(function (e) { return e != null; })
49418 .map(function (entry) {
49419 if (entry === null) {
49420 return null;
49421 }
49422 return deserializeAws_restJson1RecommenderConfigurationResponse(entry, context);
49423 });
49424};
49425var deserializeAws_restJson1ListOfResultRow = function (output, context) {
49426 return (output || [])
49427 .filter(function (e) { return e != null; })
49428 .map(function (entry) {
49429 if (entry === null) {
49430 return null;
49431 }
49432 return deserializeAws_restJson1ResultRow(entry, context);
49433 });
49434};
49435var deserializeAws_restJson1ListOfResultRowValue = function (output, context) {
49436 return (output || [])
49437 .filter(function (e) { return e != null; })
49438 .map(function (entry) {
49439 if (entry === null) {
49440 return null;
49441 }
49442 return deserializeAws_restJson1ResultRowValue(entry, context);
49443 });
49444};
49445var deserializeAws_restJson1ListOfSegmentDimensions = function (output, context) {
49446 return (output || [])
49447 .filter(function (e) { return e != null; })
49448 .map(function (entry) {
49449 if (entry === null) {
49450 return null;
49451 }
49452 return deserializeAws_restJson1SegmentDimensions(entry, context);
49453 });
49454};
49455var deserializeAws_restJson1ListOfSegmentGroup = function (output, context) {
49456 return (output || [])
49457 .filter(function (e) { return e != null; })
49458 .map(function (entry) {
49459 if (entry === null) {
49460 return null;
49461 }
49462 return deserializeAws_restJson1SegmentGroup(entry, context);
49463 });
49464};
49465var deserializeAws_restJson1ListOfSegmentReference = function (output, context) {
49466 return (output || [])
49467 .filter(function (e) { return e != null; })
49468 .map(function (entry) {
49469 if (entry === null) {
49470 return null;
49471 }
49472 return deserializeAws_restJson1SegmentReference(entry, context);
49473 });
49474};
49475var deserializeAws_restJson1ListOfSegmentResponse = function (output, context) {
49476 return (output || [])
49477 .filter(function (e) { return e != null; })
49478 .map(function (entry) {
49479 if (entry === null) {
49480 return null;
49481 }
49482 return deserializeAws_restJson1SegmentResponse(entry, context);
49483 });
49484};
49485var deserializeAws_restJson1ListOfSimpleCondition = function (output, context) {
49486 return (output || [])
49487 .filter(function (e) { return e != null; })
49488 .map(function (entry) {
49489 if (entry === null) {
49490 return null;
49491 }
49492 return deserializeAws_restJson1SimpleCondition(entry, context);
49493 });
49494};
49495var deserializeAws_restJson1ListOfTemplateResponse = function (output, context) {
49496 return (output || [])
49497 .filter(function (e) { return e != null; })
49498 .map(function (entry) {
49499 if (entry === null) {
49500 return null;
49501 }
49502 return deserializeAws_restJson1TemplateResponse(entry, context);
49503 });
49504};
49505var deserializeAws_restJson1ListOfTemplateVersionResponse = function (output, context) {
49506 return (output || [])
49507 .filter(function (e) { return e != null; })
49508 .map(function (entry) {
49509 if (entry === null) {
49510 return null;
49511 }
49512 return deserializeAws_restJson1TemplateVersionResponse(entry, context);
49513 });
49514};
49515var deserializeAws_restJson1ListOfTreatmentResource = function (output, context) {
49516 return (output || [])
49517 .filter(function (e) { return e != null; })
49518 .map(function (entry) {
49519 if (entry === null) {
49520 return null;
49521 }
49522 return deserializeAws_restJson1TreatmentResource(entry, context);
49523 });
49524};
49525var deserializeAws_restJson1ListRecommenderConfigurationsResponse = function (output, context) {
49526 return {
49527 Item: output.Item !== undefined && output.Item !== null
49528 ? deserializeAws_restJson1ListOfRecommenderConfigurationResponse(output.Item, context)
49529 : undefined,
49530 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
49531 };
49532};
49533var deserializeAws_restJson1MapOf__double = function (output, context) {
49534 return Object.entries(output).reduce(function (acc, _a) {
49535 var _b;
49536 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49537 if (value === null) {
49538 return acc;
49539 }
49540 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
49541 }, {});
49542};
49543var deserializeAws_restJson1MapOf__integer = function (output, context) {
49544 return Object.entries(output).reduce(function (acc, _a) {
49545 var _b;
49546 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49547 if (value === null) {
49548 return acc;
49549 }
49550 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
49551 }, {});
49552};
49553var deserializeAws_restJson1MapOf__string = function (output, context) {
49554 return Object.entries(output).reduce(function (acc, _a) {
49555 var _b;
49556 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49557 if (value === null) {
49558 return acc;
49559 }
49560 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = value, _b));
49561 }, {});
49562};
49563var deserializeAws_restJson1MapOfActivity = function (output, context) {
49564 return Object.entries(output).reduce(function (acc, _a) {
49565 var _b;
49566 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49567 if (value === null) {
49568 return acc;
49569 }
49570 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1Activity(value, context), _b));
49571 }, {});
49572};
49573var deserializeAws_restJson1MapOfAttributeDimension = function (output, context) {
49574 return Object.entries(output).reduce(function (acc, _a) {
49575 var _b;
49576 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49577 if (value === null) {
49578 return acc;
49579 }
49580 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1AttributeDimension(value, context), _b));
49581 }, {});
49582};
49583var deserializeAws_restJson1MapOfChannelResponse = function (output, context) {
49584 return Object.entries(output).reduce(function (acc, _a) {
49585 var _b;
49586 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49587 if (value === null) {
49588 return acc;
49589 }
49590 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ChannelResponse(value, context), _b));
49591 }, {});
49592};
49593var deserializeAws_restJson1MapOfEndpointMessageResult = function (output, context) {
49594 return Object.entries(output).reduce(function (acc, _a) {
49595 var _b;
49596 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49597 if (value === null) {
49598 return acc;
49599 }
49600 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1EndpointMessageResult(value, context), _b));
49601 }, {});
49602};
49603var deserializeAws_restJson1MapOfEventItemResponse = function (output, context) {
49604 return Object.entries(output).reduce(function (acc, _a) {
49605 var _b;
49606 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49607 if (value === null) {
49608 return acc;
49609 }
49610 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1EventItemResponse(value, context), _b));
49611 }, {});
49612};
49613var deserializeAws_restJson1MapOfItemResponse = function (output, context) {
49614 return Object.entries(output).reduce(function (acc, _a) {
49615 var _b;
49616 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49617 if (value === null) {
49618 return acc;
49619 }
49620 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ItemResponse(value, context), _b));
49621 }, {});
49622};
49623var deserializeAws_restJson1MapOfListOf__string = function (output, context) {
49624 return Object.entries(output).reduce(function (acc, _a) {
49625 var _b;
49626 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49627 if (value === null) {
49628 return acc;
49629 }
49630 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ListOf__string(value, context), _b));
49631 }, {});
49632};
49633var deserializeAws_restJson1MapOfMapOfEndpointMessageResult = function (output, context) {
49634 return Object.entries(output).reduce(function (acc, _a) {
49635 var _b;
49636 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49637 if (value === null) {
49638 return acc;
49639 }
49640 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MapOfEndpointMessageResult(value, context), _b));
49641 }, {});
49642};
49643var deserializeAws_restJson1MapOfMessageResult = function (output, context) {
49644 return Object.entries(output).reduce(function (acc, _a) {
49645 var _b;
49646 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49647 if (value === null) {
49648 return acc;
49649 }
49650 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MessageResult(value, context), _b));
49651 }, {});
49652};
49653var deserializeAws_restJson1MapOfMetricDimension = function (output, context) {
49654 return Object.entries(output).reduce(function (acc, _a) {
49655 var _b;
49656 var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), key = _c[0], value = _c[1];
49657 if (value === null) {
49658 return acc;
49659 }
49660 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1MetricDimension(value, context), _b));
49661 }, {});
49662};
49663var deserializeAws_restJson1Message = function (output, context) {
49664 return {
49665 Action: output.Action !== undefined && output.Action !== null ? output.Action : undefined,
49666 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
49667 ImageIconUrl: output.ImageIconUrl !== undefined && output.ImageIconUrl !== null ? output.ImageIconUrl : undefined,
49668 ImageSmallIconUrl: output.ImageSmallIconUrl !== undefined && output.ImageSmallIconUrl !== null
49669 ? output.ImageSmallIconUrl
49670 : undefined,
49671 ImageUrl: output.ImageUrl !== undefined && output.ImageUrl !== null ? output.ImageUrl : undefined,
49672 JsonBody: output.JsonBody !== undefined && output.JsonBody !== null ? output.JsonBody : undefined,
49673 MediaUrl: output.MediaUrl !== undefined && output.MediaUrl !== null ? output.MediaUrl : undefined,
49674 RawContent: output.RawContent !== undefined && output.RawContent !== null ? output.RawContent : undefined,
49675 SilentPush: output.SilentPush !== undefined && output.SilentPush !== null ? output.SilentPush : undefined,
49676 TimeToLive: output.TimeToLive !== undefined && output.TimeToLive !== null ? output.TimeToLive : undefined,
49677 Title: output.Title !== undefined && output.Title !== null ? output.Title : undefined,
49678 Url: output.Url !== undefined && output.Url !== null ? output.Url : undefined,
49679 };
49680};
49681var deserializeAws_restJson1MessageBody = function (output, context) {
49682 return {
49683 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
49684 RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined,
49685 };
49686};
49687var deserializeAws_restJson1MessageConfiguration = function (output, context) {
49688 return {
49689 ADMMessage: output.ADMMessage !== undefined && output.ADMMessage !== null
49690 ? deserializeAws_restJson1Message(output.ADMMessage, context)
49691 : undefined,
49692 APNSMessage: output.APNSMessage !== undefined && output.APNSMessage !== null
49693 ? deserializeAws_restJson1Message(output.APNSMessage, context)
49694 : undefined,
49695 BaiduMessage: output.BaiduMessage !== undefined && output.BaiduMessage !== null
49696 ? deserializeAws_restJson1Message(output.BaiduMessage, context)
49697 : undefined,
49698 CustomMessage: output.CustomMessage !== undefined && output.CustomMessage !== null
49699 ? deserializeAws_restJson1CampaignCustomMessage(output.CustomMessage, context)
49700 : undefined,
49701 DefaultMessage: output.DefaultMessage !== undefined && output.DefaultMessage !== null
49702 ? deserializeAws_restJson1Message(output.DefaultMessage, context)
49703 : undefined,
49704 EmailMessage: output.EmailMessage !== undefined && output.EmailMessage !== null
49705 ? deserializeAws_restJson1CampaignEmailMessage(output.EmailMessage, context)
49706 : undefined,
49707 GCMMessage: output.GCMMessage !== undefined && output.GCMMessage !== null
49708 ? deserializeAws_restJson1Message(output.GCMMessage, context)
49709 : undefined,
49710 SMSMessage: output.SMSMessage !== undefined && output.SMSMessage !== null
49711 ? deserializeAws_restJson1CampaignSmsMessage(output.SMSMessage, context)
49712 : undefined,
49713 };
49714};
49715var deserializeAws_restJson1MessageResponse = function (output, context) {
49716 return {
49717 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
49718 EndpointResult: output.EndpointResult !== undefined && output.EndpointResult !== null
49719 ? deserializeAws_restJson1MapOfEndpointMessageResult(output.EndpointResult, context)
49720 : undefined,
49721 RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined,
49722 Result: output.Result !== undefined && output.Result !== null
49723 ? deserializeAws_restJson1MapOfMessageResult(output.Result, context)
49724 : undefined,
49725 };
49726};
49727var deserializeAws_restJson1MessageResult = function (output, context) {
49728 return {
49729 DeliveryStatus: output.DeliveryStatus !== undefined && output.DeliveryStatus !== null ? output.DeliveryStatus : undefined,
49730 MessageId: output.MessageId !== undefined && output.MessageId !== null ? output.MessageId : undefined,
49731 StatusCode: output.StatusCode !== undefined && output.StatusCode !== null ? output.StatusCode : undefined,
49732 StatusMessage: output.StatusMessage !== undefined && output.StatusMessage !== null ? output.StatusMessage : undefined,
49733 UpdatedToken: output.UpdatedToken !== undefined && output.UpdatedToken !== null ? output.UpdatedToken : undefined,
49734 };
49735};
49736var deserializeAws_restJson1MetricDimension = function (output, context) {
49737 return {
49738 ComparisonOperator: output.ComparisonOperator !== undefined && output.ComparisonOperator !== null
49739 ? output.ComparisonOperator
49740 : undefined,
49741 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
49742 };
49743};
49744var deserializeAws_restJson1MultiConditionalBranch = function (output, context) {
49745 return {
49746 Condition: output.Condition !== undefined && output.Condition !== null
49747 ? deserializeAws_restJson1SimpleCondition(output.Condition, context)
49748 : undefined,
49749 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49750 };
49751};
49752var deserializeAws_restJson1MultiConditionalSplitActivity = function (output, context) {
49753 return {
49754 Branches: output.Branches !== undefined && output.Branches !== null
49755 ? deserializeAws_restJson1ListOfMultiConditionalBranch(output.Branches, context)
49756 : undefined,
49757 DefaultActivity: output.DefaultActivity !== undefined && output.DefaultActivity !== null ? output.DefaultActivity : undefined,
49758 EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null
49759 ? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context)
49760 : undefined,
49761 };
49762};
49763var deserializeAws_restJson1NumberValidateResponse = function (output, context) {
49764 return {
49765 Carrier: output.Carrier !== undefined && output.Carrier !== null ? output.Carrier : undefined,
49766 City: output.City !== undefined && output.City !== null ? output.City : undefined,
49767 CleansedPhoneNumberE164: output.CleansedPhoneNumberE164 !== undefined && output.CleansedPhoneNumberE164 !== null
49768 ? output.CleansedPhoneNumberE164
49769 : undefined,
49770 CleansedPhoneNumberNational: output.CleansedPhoneNumberNational !== undefined && output.CleansedPhoneNumberNational !== null
49771 ? output.CleansedPhoneNumberNational
49772 : undefined,
49773 Country: output.Country !== undefined && output.Country !== null ? output.Country : undefined,
49774 CountryCodeIso2: output.CountryCodeIso2 !== undefined && output.CountryCodeIso2 !== null ? output.CountryCodeIso2 : undefined,
49775 CountryCodeNumeric: output.CountryCodeNumeric !== undefined && output.CountryCodeNumeric !== null
49776 ? output.CountryCodeNumeric
49777 : undefined,
49778 County: output.County !== undefined && output.County !== null ? output.County : undefined,
49779 OriginalCountryCodeIso2: output.OriginalCountryCodeIso2 !== undefined && output.OriginalCountryCodeIso2 !== null
49780 ? output.OriginalCountryCodeIso2
49781 : undefined,
49782 OriginalPhoneNumber: output.OriginalPhoneNumber !== undefined && output.OriginalPhoneNumber !== null
49783 ? output.OriginalPhoneNumber
49784 : undefined,
49785 PhoneType: output.PhoneType !== undefined && output.PhoneType !== null ? output.PhoneType : undefined,
49786 PhoneTypeCode: output.PhoneTypeCode !== undefined && output.PhoneTypeCode !== null ? output.PhoneTypeCode : undefined,
49787 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
49788 ZipCode: output.ZipCode !== undefined && output.ZipCode !== null ? output.ZipCode : undefined,
49789 };
49790};
49791var deserializeAws_restJson1PushMessageActivity = function (output, context) {
49792 return {
49793 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
49794 ? deserializeAws_restJson1JourneyPushMessage(output.MessageConfig, context)
49795 : undefined,
49796 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49797 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
49798 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
49799 };
49800};
49801var deserializeAws_restJson1PushNotificationTemplateResponse = function (output, context) {
49802 return {
49803 ADM: output.ADM !== undefined && output.ADM !== null
49804 ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.ADM, context)
49805 : undefined,
49806 APNS: output.APNS !== undefined && output.APNS !== null
49807 ? deserializeAws_restJson1APNSPushNotificationTemplate(output.APNS, context)
49808 : undefined,
49809 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
49810 Baidu: output.Baidu !== undefined && output.Baidu !== null
49811 ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.Baidu, context)
49812 : undefined,
49813 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49814 Default: output.Default !== undefined && output.Default !== null
49815 ? deserializeAws_restJson1DefaultPushNotificationTemplate(output.Default, context)
49816 : undefined,
49817 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
49818 ? output.DefaultSubstitutions
49819 : undefined,
49820 GCM: output.GCM !== undefined && output.GCM !== null
49821 ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.GCM, context)
49822 : undefined,
49823 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49824 RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined,
49825 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
49826 ? output.TemplateDescription
49827 : undefined,
49828 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
49829 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
49830 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
49831 tags: output.tags !== undefined && output.tags !== null
49832 ? deserializeAws_restJson1MapOf__string(output.tags, context)
49833 : undefined,
49834 };
49835};
49836var deserializeAws_restJson1QuietTime = function (output, context) {
49837 return {
49838 End: output.End !== undefined && output.End !== null ? output.End : undefined,
49839 Start: output.Start !== undefined && output.Start !== null ? output.Start : undefined,
49840 };
49841};
49842var deserializeAws_restJson1RandomSplitActivity = function (output, context) {
49843 return {
49844 Branches: output.Branches !== undefined && output.Branches !== null
49845 ? deserializeAws_restJson1ListOfRandomSplitEntry(output.Branches, context)
49846 : undefined,
49847 };
49848};
49849var deserializeAws_restJson1RandomSplitEntry = function (output, context) {
49850 return {
49851 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
49852 Percentage: output.Percentage !== undefined && output.Percentage !== null ? output.Percentage : undefined,
49853 };
49854};
49855var deserializeAws_restJson1RecencyDimension = function (output, context) {
49856 return {
49857 Duration: output.Duration !== undefined && output.Duration !== null ? output.Duration : undefined,
49858 RecencyType: output.RecencyType !== undefined && output.RecencyType !== null ? output.RecencyType : undefined,
49859 };
49860};
49861var deserializeAws_restJson1RecommenderConfigurationResponse = function (output, context) {
49862 return {
49863 Attributes: output.Attributes !== undefined && output.Attributes !== null
49864 ? deserializeAws_restJson1MapOf__string(output.Attributes, context)
49865 : undefined,
49866 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
49867 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
49868 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
49869 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
49870 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
49871 RecommendationProviderIdType: output.RecommendationProviderIdType !== undefined && output.RecommendationProviderIdType !== null
49872 ? output.RecommendationProviderIdType
49873 : undefined,
49874 RecommendationProviderRoleArn: output.RecommendationProviderRoleArn !== undefined && output.RecommendationProviderRoleArn !== null
49875 ? output.RecommendationProviderRoleArn
49876 : undefined,
49877 RecommendationProviderUri: output.RecommendationProviderUri !== undefined && output.RecommendationProviderUri !== null
49878 ? output.RecommendationProviderUri
49879 : undefined,
49880 RecommendationTransformerUri: output.RecommendationTransformerUri !== undefined && output.RecommendationTransformerUri !== null
49881 ? output.RecommendationTransformerUri
49882 : undefined,
49883 RecommendationsDisplayName: output.RecommendationsDisplayName !== undefined && output.RecommendationsDisplayName !== null
49884 ? output.RecommendationsDisplayName
49885 : undefined,
49886 RecommendationsPerMessage: output.RecommendationsPerMessage !== undefined && output.RecommendationsPerMessage !== null
49887 ? output.RecommendationsPerMessage
49888 : undefined,
49889 };
49890};
49891var deserializeAws_restJson1ResultRow = function (output, context) {
49892 return {
49893 GroupedBys: output.GroupedBys !== undefined && output.GroupedBys !== null
49894 ? deserializeAws_restJson1ListOfResultRowValue(output.GroupedBys, context)
49895 : undefined,
49896 Values: output.Values !== undefined && output.Values !== null
49897 ? deserializeAws_restJson1ListOfResultRowValue(output.Values, context)
49898 : undefined,
49899 };
49900};
49901var deserializeAws_restJson1ResultRowValue = function (output, context) {
49902 return {
49903 Key: output.Key !== undefined && output.Key !== null ? output.Key : undefined,
49904 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49905 Value: output.Value !== undefined && output.Value !== null ? output.Value : undefined,
49906 };
49907};
49908var deserializeAws_restJson1Schedule = function (output, context) {
49909 return {
49910 EndTime: output.EndTime !== undefined && output.EndTime !== null ? output.EndTime : undefined,
49911 EventFilter: output.EventFilter !== undefined && output.EventFilter !== null
49912 ? deserializeAws_restJson1CampaignEventFilter(output.EventFilter, context)
49913 : undefined,
49914 Frequency: output.Frequency !== undefined && output.Frequency !== null ? output.Frequency : undefined,
49915 IsLocalTime: output.IsLocalTime !== undefined && output.IsLocalTime !== null ? output.IsLocalTime : undefined,
49916 QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
49917 ? deserializeAws_restJson1QuietTime(output.QuietTime, context)
49918 : undefined,
49919 StartTime: output.StartTime !== undefined && output.StartTime !== null ? output.StartTime : undefined,
49920 Timezone: output.Timezone !== undefined && output.Timezone !== null ? output.Timezone : undefined,
49921 };
49922};
49923var deserializeAws_restJson1SegmentBehaviors = function (output, context) {
49924 return {
49925 Recency: output.Recency !== undefined && output.Recency !== null
49926 ? deserializeAws_restJson1RecencyDimension(output.Recency, context)
49927 : undefined,
49928 };
49929};
49930var deserializeAws_restJson1SegmentCondition = function (output, context) {
49931 return {
49932 SegmentId: output.SegmentId !== undefined && output.SegmentId !== null ? output.SegmentId : undefined,
49933 };
49934};
49935var deserializeAws_restJson1SegmentDemographics = function (output, context) {
49936 return {
49937 AppVersion: output.AppVersion !== undefined && output.AppVersion !== null
49938 ? deserializeAws_restJson1SetDimension(output.AppVersion, context)
49939 : undefined,
49940 Channel: output.Channel !== undefined && output.Channel !== null
49941 ? deserializeAws_restJson1SetDimension(output.Channel, context)
49942 : undefined,
49943 DeviceType: output.DeviceType !== undefined && output.DeviceType !== null
49944 ? deserializeAws_restJson1SetDimension(output.DeviceType, context)
49945 : undefined,
49946 Make: output.Make !== undefined && output.Make !== null
49947 ? deserializeAws_restJson1SetDimension(output.Make, context)
49948 : undefined,
49949 Model: output.Model !== undefined && output.Model !== null
49950 ? deserializeAws_restJson1SetDimension(output.Model, context)
49951 : undefined,
49952 Platform: output.Platform !== undefined && output.Platform !== null
49953 ? deserializeAws_restJson1SetDimension(output.Platform, context)
49954 : undefined,
49955 };
49956};
49957var deserializeAws_restJson1SegmentDimensions = function (output, context) {
49958 return {
49959 Attributes: output.Attributes !== undefined && output.Attributes !== null
49960 ? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context)
49961 : undefined,
49962 Behavior: output.Behavior !== undefined && output.Behavior !== null
49963 ? deserializeAws_restJson1SegmentBehaviors(output.Behavior, context)
49964 : undefined,
49965 Demographic: output.Demographic !== undefined && output.Demographic !== null
49966 ? deserializeAws_restJson1SegmentDemographics(output.Demographic, context)
49967 : undefined,
49968 Location: output.Location !== undefined && output.Location !== null
49969 ? deserializeAws_restJson1SegmentLocation(output.Location, context)
49970 : undefined,
49971 Metrics: output.Metrics !== undefined && output.Metrics !== null
49972 ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context)
49973 : undefined,
49974 UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
49975 ? deserializeAws_restJson1MapOfAttributeDimension(output.UserAttributes, context)
49976 : undefined,
49977 };
49978};
49979var deserializeAws_restJson1SegmentGroup = function (output, context) {
49980 return {
49981 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
49982 ? deserializeAws_restJson1ListOfSegmentDimensions(output.Dimensions, context)
49983 : undefined,
49984 SourceSegments: output.SourceSegments !== undefined && output.SourceSegments !== null
49985 ? deserializeAws_restJson1ListOfSegmentReference(output.SourceSegments, context)
49986 : undefined,
49987 SourceType: output.SourceType !== undefined && output.SourceType !== null ? output.SourceType : undefined,
49988 Type: output.Type !== undefined && output.Type !== null ? output.Type : undefined,
49989 };
49990};
49991var deserializeAws_restJson1SegmentGroupList = function (output, context) {
49992 return {
49993 Groups: output.Groups !== undefined && output.Groups !== null
49994 ? deserializeAws_restJson1ListOfSegmentGroup(output.Groups, context)
49995 : undefined,
49996 Include: output.Include !== undefined && output.Include !== null ? output.Include : undefined,
49997 };
49998};
49999var deserializeAws_restJson1SegmentImportResource = function (output, context) {
50000 return {
50001 ChannelCounts: output.ChannelCounts !== undefined && output.ChannelCounts !== null
50002 ? deserializeAws_restJson1MapOf__integer(output.ChannelCounts, context)
50003 : undefined,
50004 ExternalId: output.ExternalId !== undefined && output.ExternalId !== null ? output.ExternalId : undefined,
50005 Format: output.Format !== undefined && output.Format !== null ? output.Format : undefined,
50006 RoleArn: output.RoleArn !== undefined && output.RoleArn !== null ? output.RoleArn : undefined,
50007 S3Url: output.S3Url !== undefined && output.S3Url !== null ? output.S3Url : undefined,
50008 Size: output.Size !== undefined && output.Size !== null ? output.Size : undefined,
50009 };
50010};
50011var deserializeAws_restJson1SegmentLocation = function (output, context) {
50012 return {
50013 Country: output.Country !== undefined && output.Country !== null
50014 ? deserializeAws_restJson1SetDimension(output.Country, context)
50015 : undefined,
50016 GPSPoint: output.GPSPoint !== undefined && output.GPSPoint !== null
50017 ? deserializeAws_restJson1GPSPointDimension(output.GPSPoint, context)
50018 : undefined,
50019 };
50020};
50021var deserializeAws_restJson1SegmentReference = function (output, context) {
50022 return {
50023 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50024 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50025 };
50026};
50027var deserializeAws_restJson1SegmentResponse = function (output, context) {
50028 return {
50029 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50030 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50031 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50032 Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
50033 ? deserializeAws_restJson1SegmentDimensions(output.Dimensions, context)
50034 : undefined,
50035 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50036 ImportDefinition: output.ImportDefinition !== undefined && output.ImportDefinition !== null
50037 ? deserializeAws_restJson1SegmentImportResource(output.ImportDefinition, context)
50038 : undefined,
50039 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50040 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
50041 SegmentGroups: output.SegmentGroups !== undefined && output.SegmentGroups !== null
50042 ? deserializeAws_restJson1SegmentGroupList(output.SegmentGroups, context)
50043 : undefined,
50044 SegmentType: output.SegmentType !== undefined && output.SegmentType !== null ? output.SegmentType : undefined,
50045 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50046 tags: output.tags !== undefined && output.tags !== null
50047 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50048 : undefined,
50049 };
50050};
50051var deserializeAws_restJson1SegmentsResponse = function (output, context) {
50052 return {
50053 Item: output.Item !== undefined && output.Item !== null
50054 ? deserializeAws_restJson1ListOfSegmentResponse(output.Item, context)
50055 : undefined,
50056 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
50057 };
50058};
50059var deserializeAws_restJson1SendUsersMessageResponse = function (output, context) {
50060 return {
50061 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50062 RequestId: output.RequestId !== undefined && output.RequestId !== null ? output.RequestId : undefined,
50063 Result: output.Result !== undefined && output.Result !== null
50064 ? deserializeAws_restJson1MapOfMapOfEndpointMessageResult(output.Result, context)
50065 : undefined,
50066 };
50067};
50068var deserializeAws_restJson1SetDimension = function (output, context) {
50069 return {
50070 DimensionType: output.DimensionType !== undefined && output.DimensionType !== null ? output.DimensionType : undefined,
50071 Values: output.Values !== undefined && output.Values !== null
50072 ? deserializeAws_restJson1ListOf__string(output.Values, context)
50073 : undefined,
50074 };
50075};
50076var deserializeAws_restJson1SimpleCondition = function (output, context) {
50077 return {
50078 EventCondition: output.EventCondition !== undefined && output.EventCondition !== null
50079 ? deserializeAws_restJson1EventCondition(output.EventCondition, context)
50080 : undefined,
50081 SegmentCondition: output.SegmentCondition !== undefined && output.SegmentCondition !== null
50082 ? deserializeAws_restJson1SegmentCondition(output.SegmentCondition, context)
50083 : undefined,
50084 SegmentDimensions: output.segmentDimensions !== undefined && output.segmentDimensions !== null
50085 ? deserializeAws_restJson1SegmentDimensions(output.segmentDimensions, context)
50086 : undefined,
50087 };
50088};
50089var deserializeAws_restJson1SMSChannelResponse = function (output, context) {
50090 return {
50091 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50092 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50093 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
50094 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
50095 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50096 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
50097 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
50098 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50099 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
50100 PromotionalMessagesPerSecond: output.PromotionalMessagesPerSecond !== undefined && output.PromotionalMessagesPerSecond !== null
50101 ? output.PromotionalMessagesPerSecond
50102 : undefined,
50103 SenderId: output.SenderId !== undefined && output.SenderId !== null ? output.SenderId : undefined,
50104 ShortCode: output.ShortCode !== undefined && output.ShortCode !== null ? output.ShortCode : undefined,
50105 TransactionalMessagesPerSecond: output.TransactionalMessagesPerSecond !== undefined && output.TransactionalMessagesPerSecond !== null
50106 ? output.TransactionalMessagesPerSecond
50107 : undefined,
50108 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50109 };
50110};
50111var deserializeAws_restJson1SMSMessageActivity = function (output, context) {
50112 return {
50113 MessageConfig: output.MessageConfig !== undefined && output.MessageConfig !== null
50114 ? deserializeAws_restJson1JourneySMSMessage(output.MessageConfig, context)
50115 : undefined,
50116 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
50117 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50118 TemplateVersion: output.TemplateVersion !== undefined && output.TemplateVersion !== null ? output.TemplateVersion : undefined,
50119 };
50120};
50121var deserializeAws_restJson1SMSTemplateResponse = function (output, context) {
50122 return {
50123 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50124 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
50125 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50126 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50127 ? output.DefaultSubstitutions
50128 : undefined,
50129 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50130 RecommenderId: output.RecommenderId !== undefined && output.RecommenderId !== null ? output.RecommenderId : undefined,
50131 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50132 ? output.TemplateDescription
50133 : undefined,
50134 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50135 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50136 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50137 tags: output.tags !== undefined && output.tags !== null
50138 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50139 : undefined,
50140 };
50141};
50142var deserializeAws_restJson1StartCondition = function (output, context) {
50143 return {
50144 Description: output.Description !== undefined && output.Description !== null ? output.Description : undefined,
50145 EventStartCondition: output.EventStartCondition !== undefined && output.EventStartCondition !== null
50146 ? deserializeAws_restJson1EventStartCondition(output.EventStartCondition, context)
50147 : undefined,
50148 SegmentStartCondition: output.SegmentStartCondition !== undefined && output.SegmentStartCondition !== null
50149 ? deserializeAws_restJson1SegmentCondition(output.SegmentStartCondition, context)
50150 : undefined,
50151 };
50152};
50153var deserializeAws_restJson1TagsModel = function (output, context) {
50154 return {
50155 tags: output.tags !== undefined && output.tags !== null
50156 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50157 : undefined,
50158 };
50159};
50160var deserializeAws_restJson1Template = function (output, context) {
50161 return {
50162 Name: output.Name !== undefined && output.Name !== null ? output.Name : undefined,
50163 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50164 };
50165};
50166var deserializeAws_restJson1TemplateConfiguration = function (output, context) {
50167 return {
50168 EmailTemplate: output.EmailTemplate !== undefined && output.EmailTemplate !== null
50169 ? deserializeAws_restJson1Template(output.EmailTemplate, context)
50170 : undefined,
50171 PushTemplate: output.PushTemplate !== undefined && output.PushTemplate !== null
50172 ? deserializeAws_restJson1Template(output.PushTemplate, context)
50173 : undefined,
50174 SMSTemplate: output.SMSTemplate !== undefined && output.SMSTemplate !== null
50175 ? deserializeAws_restJson1Template(output.SMSTemplate, context)
50176 : undefined,
50177 VoiceTemplate: output.VoiceTemplate !== undefined && output.VoiceTemplate !== null
50178 ? deserializeAws_restJson1Template(output.VoiceTemplate, context)
50179 : undefined,
50180 };
50181};
50182var deserializeAws_restJson1TemplateResponse = function (output, context) {
50183 return {
50184 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50185 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50186 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50187 ? output.DefaultSubstitutions
50188 : undefined,
50189 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50190 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50191 ? output.TemplateDescription
50192 : undefined,
50193 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50194 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50195 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50196 tags: output.tags !== undefined && output.tags !== null
50197 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50198 : undefined,
50199 };
50200};
50201var deserializeAws_restJson1TemplatesResponse = function (output, context) {
50202 return {
50203 Item: output.Item !== undefined && output.Item !== null
50204 ? deserializeAws_restJson1ListOfTemplateResponse(output.Item, context)
50205 : undefined,
50206 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
50207 };
50208};
50209var deserializeAws_restJson1TemplateVersionResponse = function (output, context) {
50210 return {
50211 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50212 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50213 ? output.DefaultSubstitutions
50214 : undefined,
50215 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50216 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50217 ? output.TemplateDescription
50218 : undefined,
50219 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50220 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50221 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50222 };
50223};
50224var deserializeAws_restJson1TemplateVersionsResponse = function (output, context) {
50225 return {
50226 Item: output.Item !== undefined && output.Item !== null
50227 ? deserializeAws_restJson1ListOfTemplateVersionResponse(output.Item, context)
50228 : undefined,
50229 Message: output.Message !== undefined && output.Message !== null ? output.Message : undefined,
50230 NextToken: output.NextToken !== undefined && output.NextToken !== null ? output.NextToken : undefined,
50231 RequestID: output.RequestID !== undefined && output.RequestID !== null ? output.RequestID : undefined,
50232 };
50233};
50234var deserializeAws_restJson1TreatmentResource = function (output, context) {
50235 return {
50236 CustomDeliveryConfiguration: output.CustomDeliveryConfiguration !== undefined && output.CustomDeliveryConfiguration !== null
50237 ? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context)
50238 : undefined,
50239 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50240 MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null
50241 ? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context)
50242 : undefined,
50243 Schedule: output.Schedule !== undefined && output.Schedule !== null
50244 ? deserializeAws_restJson1Schedule(output.Schedule, context)
50245 : undefined,
50246 SizePercent: output.SizePercent !== undefined && output.SizePercent !== null ? output.SizePercent : undefined,
50247 State: output.State !== undefined && output.State !== null
50248 ? deserializeAws_restJson1CampaignState(output.State, context)
50249 : undefined,
50250 TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null
50251 ? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context)
50252 : undefined,
50253 TreatmentDescription: output.TreatmentDescription !== undefined && output.TreatmentDescription !== null
50254 ? output.TreatmentDescription
50255 : undefined,
50256 TreatmentName: output.TreatmentName !== undefined && output.TreatmentName !== null ? output.TreatmentName : undefined,
50257 };
50258};
50259var deserializeAws_restJson1VoiceChannelResponse = function (output, context) {
50260 return {
50261 ApplicationId: output.ApplicationId !== undefined && output.ApplicationId !== null ? output.ApplicationId : undefined,
50262 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50263 Enabled: output.Enabled !== undefined && output.Enabled !== null ? output.Enabled : undefined,
50264 HasCredential: output.HasCredential !== undefined && output.HasCredential !== null ? output.HasCredential : undefined,
50265 Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
50266 IsArchived: output.IsArchived !== undefined && output.IsArchived !== null ? output.IsArchived : undefined,
50267 LastModifiedBy: output.LastModifiedBy !== undefined && output.LastModifiedBy !== null ? output.LastModifiedBy : undefined,
50268 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50269 Platform: output.Platform !== undefined && output.Platform !== null ? output.Platform : undefined,
50270 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50271 };
50272};
50273var deserializeAws_restJson1VoiceTemplateResponse = function (output, context) {
50274 return {
50275 Arn: output.Arn !== undefined && output.Arn !== null ? output.Arn : undefined,
50276 Body: output.Body !== undefined && output.Body !== null ? output.Body : undefined,
50277 CreationDate: output.CreationDate !== undefined && output.CreationDate !== null ? output.CreationDate : undefined,
50278 DefaultSubstitutions: output.DefaultSubstitutions !== undefined && output.DefaultSubstitutions !== null
50279 ? output.DefaultSubstitutions
50280 : undefined,
50281 LanguageCode: output.LanguageCode !== undefined && output.LanguageCode !== null ? output.LanguageCode : undefined,
50282 LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null ? output.LastModifiedDate : undefined,
50283 TemplateDescription: output.TemplateDescription !== undefined && output.TemplateDescription !== null
50284 ? output.TemplateDescription
50285 : undefined,
50286 TemplateName: output.TemplateName !== undefined && output.TemplateName !== null ? output.TemplateName : undefined,
50287 TemplateType: output.TemplateType !== undefined && output.TemplateType !== null ? output.TemplateType : undefined,
50288 Version: output.Version !== undefined && output.Version !== null ? output.Version : undefined,
50289 VoiceId: output.VoiceId !== undefined && output.VoiceId !== null ? output.VoiceId : undefined,
50290 tags: output.tags !== undefined && output.tags !== null
50291 ? deserializeAws_restJson1MapOf__string(output.tags, context)
50292 : undefined,
50293 };
50294};
50295var deserializeAws_restJson1WaitActivity = function (output, context) {
50296 return {
50297 NextActivity: output.NextActivity !== undefined && output.NextActivity !== null ? output.NextActivity : undefined,
50298 WaitTime: output.WaitTime !== undefined && output.WaitTime !== null
50299 ? deserializeAws_restJson1WaitTime(output.WaitTime, context)
50300 : undefined,
50301 };
50302};
50303var deserializeAws_restJson1WaitTime = function (output, context) {
50304 return {
50305 WaitFor: output.WaitFor !== undefined && output.WaitFor !== null ? output.WaitFor : undefined,
50306 WaitUntil: output.WaitUntil !== undefined && output.WaitUntil !== null ? output.WaitUntil : undefined,
50307 };
50308};
50309var deserializeMetadata = function (output) {
50310 var _a;
50311 return ({
50312 httpStatusCode: output.statusCode,
50313 requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
50314 extendedRequestId: output.headers["x-amz-id-2"],
50315 cfId: output.headers["x-amz-cf-id"],
50316 });
50317};
50318// Collect low-level response body stream to Uint8Array.
50319var collectBody = function (streamBody, context) {
50320 if (streamBody === void 0) { streamBody = new Uint8Array(); }
50321 if (streamBody instanceof Uint8Array) {
50322 return Promise.resolve(streamBody);
50323 }
50324 return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
50325};
50326// Encode Uint8Array data into string with utf-8.
50327var collectBodyString = function (streamBody, context) {
50328 return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
50329};
50330var isSerializableHeaderValue = function (value) {
50331 return value !== undefined &&
50332 value !== null &&
50333 value !== "" &&
50334 (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
50335 (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
50336};
50337var parseBody = function (streamBody, context) {
50338 return collectBodyString(streamBody, context).then(function (encoded) {
50339 if (encoded.length) {
50340 return JSON.parse(encoded);
50341 }
50342 return {};
50343 });
50344};
50345/**
50346 * Load an error code for the aws.rest-json-1.1 protocol.
50347 */
50348var loadRestJsonErrorCode = function (output, data) {
50349 var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
50350 var sanitizeErrorCode = function (rawValue) {
50351 var cleanValue = rawValue;
50352 if (cleanValue.indexOf(":") >= 0) {
50353 cleanValue = cleanValue.split(":")[0];
50354 }
50355 if (cleanValue.indexOf("#") >= 0) {
50356 cleanValue = cleanValue.split("#")[1];
50357 }
50358 return cleanValue;
50359 };
50360 var headerKey = findKey(output.headers, "x-amzn-errortype");
50361 if (headerKey !== undefined) {
50362 return sanitizeErrorCode(output.headers[headerKey]);
50363 }
50364 if (data.code !== undefined) {
50365 return sanitizeErrorCode(data.code);
50366 }
50367 if (data["__type"] !== undefined) {
50368 return sanitizeErrorCode(data["__type"]);
50369 }
50370 return "";
50371};
50372//# sourceMappingURL=Aws_restJson1.js.map
50373
50374/***/ }),
50375
50376/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.browser.js":
50377/*!***********************************************************************************************!*\
50378 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.browser.js ***!
50379 \***********************************************************************************************/
50380/*! exports provided: ClientDefaultValues */
50381/***/ (function(module, __webpack_exports__, __webpack_require__) {
50382
50383"use strict";
50384__webpack_require__.r(__webpack_exports__);
50385/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientDefaultValues", function() { return ClientDefaultValues; });
50386/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js");
50387/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./package.json */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/package.json");
50388var _package_json__WEBPACK_IMPORTED_MODULE_1___namespace = /*#__PURE__*/__webpack_require__.t(/*! ./package.json */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/package.json", 1);
50389/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-crypto/sha256-browser */ "../../node_modules/@aws-crypto/sha256-browser/build/index.js");
50390/* harmony import */ var _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__);
50391/* harmony import */ var _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/fetch-http-handler */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js");
50392/* harmony import */ var _aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-sdk/invalid-dependency */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/index.js");
50393/* harmony import */ var _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-sdk/middleware-retry */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js");
50394/* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js");
50395/* harmony import */ var _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @aws-sdk/util-body-length-browser */ "../../node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js");
50396/* harmony import */ var _aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-sdk/util-user-agent-browser */ "../../node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js");
50397/* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
50398/* harmony import */ var _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./runtimeConfig.shared */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.shared.js");
50399
50400
50401
50402
50403
50404
50405
50406
50407
50408
50409
50410/**
50411 * @internal
50412 */
50413var ClientDefaultValues = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"]), { runtime: "browser", base64Decoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__["fromBase64"], base64Encoder: _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_6__["toBase64"], bodyLengthChecker: _aws_sdk_util_body_length_browser__WEBPACK_IMPORTED_MODULE_7__["calculateBodyLength"], credentialDefaultProvider: function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }, defaultUserAgentProvider: Object(_aws_sdk_util_user_agent_browser__WEBPACK_IMPORTED_MODULE_8__["defaultUserAgent"])({
50414 serviceId: _runtimeConfig_shared__WEBPACK_IMPORTED_MODULE_10__["ClientSharedValues"].serviceId,
50415 clientVersion: _package_json__WEBPACK_IMPORTED_MODULE_1__.version,
50416 }), maxAttempts: _aws_sdk_middleware_retry__WEBPACK_IMPORTED_MODULE_5__["DEFAULT_MAX_ATTEMPTS"], region: Object(_aws_sdk_invalid_dependency__WEBPACK_IMPORTED_MODULE_4__["invalidProvider"])("Region is missing"), requestHandler: new _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["FetchHttpHandler"](), sha256: _aws_crypto_sha256_browser__WEBPACK_IMPORTED_MODULE_2__["Sha256"], streamCollector: _aws_sdk_fetch_http_handler__WEBPACK_IMPORTED_MODULE_3__["streamCollector"], utf8Decoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__["fromUtf8"], utf8Encoder: _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_9__["toUtf8"] });
50417//# sourceMappingURL=runtimeConfig.browser.js.map
50418
50419/***/ }),
50420
50421/***/ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.shared.js":
50422/*!**********************************************************************************************!*\
50423 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/dist/es/runtimeConfig.shared.js ***!
50424 \**********************************************************************************************/
50425/*! exports provided: ClientSharedValues */
50426/***/ (function(module, __webpack_exports__, __webpack_require__) {
50427
50428"use strict";
50429__webpack_require__.r(__webpack_exports__);
50430/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClientSharedValues", function() { return ClientSharedValues; });
50431/* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/endpoints.js");
50432/* harmony import */ var _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/url-parser */ "../../node_modules/@aws-sdk/url-parser/dist/es/index.js");
50433
50434
50435/**
50436 * @internal
50437 */
50438var ClientSharedValues = {
50439 apiVersion: "2016-12-01",
50440 disableHostPrefix: false,
50441 logger: {},
50442 regionInfoProvider: _endpoints__WEBPACK_IMPORTED_MODULE_0__["defaultRegionInfoProvider"],
50443 serviceId: "Pinpoint",
50444 urlParser: _aws_sdk_url_parser__WEBPACK_IMPORTED_MODULE_1__["parseUrl"],
50445};
50446//# sourceMappingURL=runtimeConfig.shared.js.map
50447
50448/***/ }),
50449
50450/***/ "../../node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js":
50451/*!**********************************************************************************************!*\
50452 !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js ***!
50453 \**********************************************************************************************/
50454/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
50455/***/ (function(module, __webpack_exports__, __webpack_require__) {
50456
50457"use strict";
50458__webpack_require__.r(__webpack_exports__);
50459/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
50460/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
50461/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
50462/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
50463/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
50464/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
50465/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
50466/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
50467/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
50468/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
50469/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
50470/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
50471/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
50472/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
50473/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
50474/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
50475/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
50476/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
50477/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
50478/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
50479/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
50480/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
50481/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
50482/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
50483/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
50484/******************************************************************************
50485Copyright (c) Microsoft Corporation.
50486
50487Permission to use, copy, modify, and/or distribute this software for any
50488purpose with or without fee is hereby granted.
50489
50490THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
50491REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
50492AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
50493INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50494LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
50495OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
50496PERFORMANCE OF THIS SOFTWARE.
50497***************************************************************************** */
50498/* global Reflect, Promise */
50499
50500var extendStatics = function(d, b) {
50501 extendStatics = Object.setPrototypeOf ||
50502 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50503 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
50504 return extendStatics(d, b);
50505};
50506
50507function __extends(d, b) {
50508 if (typeof b !== "function" && b !== null)
50509 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
50510 extendStatics(d, b);
50511 function __() { this.constructor = d; }
50512 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
50513}
50514
50515var __assign = function() {
50516 __assign = Object.assign || function __assign(t) {
50517 for (var s, i = 1, n = arguments.length; i < n; i++) {
50518 s = arguments[i];
50519 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50520 }
50521 return t;
50522 }
50523 return __assign.apply(this, arguments);
50524}
50525
50526function __rest(s, e) {
50527 var t = {};
50528 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50529 t[p] = s[p];
50530 if (s != null && typeof Object.getOwnPropertySymbols === "function")
50531 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
50532 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
50533 t[p[i]] = s[p[i]];
50534 }
50535 return t;
50536}
50537
50538function __decorate(decorators, target, key, desc) {
50539 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
50540 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
50541 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;
50542 return c > 3 && r && Object.defineProperty(target, key, r), r;
50543}
50544
50545function __param(paramIndex, decorator) {
50546 return function (target, key) { decorator(target, key, paramIndex); }
50547}
50548
50549function __metadata(metadataKey, metadataValue) {
50550 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
50551}
50552
50553function __awaiter(thisArg, _arguments, P, generator) {
50554 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
50555 return new (P || (P = Promise))(function (resolve, reject) {
50556 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
50557 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
50558 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
50559 step((generator = generator.apply(thisArg, _arguments || [])).next());
50560 });
50561}
50562
50563function __generator(thisArg, body) {
50564 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50565 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
50566 function verb(n) { return function (v) { return step([n, v]); }; }
50567 function step(op) {
50568 if (f) throw new TypeError("Generator is already executing.");
50569 while (_) try {
50570 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;
50571 if (y = 0, t) op = [op[0] & 2, t.value];
50572 switch (op[0]) {
50573 case 0: case 1: t = op; break;
50574 case 4: _.label++; return { value: op[1], done: false };
50575 case 5: _.label++; y = op[1]; op = [0]; continue;
50576 case 7: op = _.ops.pop(); _.trys.pop(); continue;
50577 default:
50578 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50579 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
50580 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
50581 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
50582 if (t[2]) _.ops.pop();
50583 _.trys.pop(); continue;
50584 }
50585 op = body.call(thisArg, _);
50586 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50587 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50588 }
50589}
50590
50591var __createBinding = Object.create ? (function(o, m, k, k2) {
50592 if (k2 === undefined) k2 = k;
50593 var desc = Object.getOwnPropertyDescriptor(m, k);
50594 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
50595 desc = { enumerable: true, get: function() { return m[k]; } };
50596 }
50597 Object.defineProperty(o, k2, desc);
50598}) : (function(o, m, k, k2) {
50599 if (k2 === undefined) k2 = k;
50600 o[k2] = m[k];
50601});
50602
50603function __exportStar(m, o) {
50604 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
50605}
50606
50607function __values(o) {
50608 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
50609 if (m) return m.call(o);
50610 if (o && typeof o.length === "number") return {
50611 next: function () {
50612 if (o && i >= o.length) o = void 0;
50613 return { value: o && o[i++], done: !o };
50614 }
50615 };
50616 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
50617}
50618
50619function __read(o, n) {
50620 var m = typeof Symbol === "function" && o[Symbol.iterator];
50621 if (!m) return o;
50622 var i = m.call(o), r, ar = [], e;
50623 try {
50624 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
50625 }
50626 catch (error) { e = { error: error }; }
50627 finally {
50628 try {
50629 if (r && !r.done && (m = i["return"])) m.call(i);
50630 }
50631 finally { if (e) throw e.error; }
50632 }
50633 return ar;
50634}
50635
50636/** @deprecated */
50637function __spread() {
50638 for (var ar = [], i = 0; i < arguments.length; i++)
50639 ar = ar.concat(__read(arguments[i]));
50640 return ar;
50641}
50642
50643/** @deprecated */
50644function __spreadArrays() {
50645 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
50646 for (var r = Array(s), k = 0, i = 0; i < il; i++)
50647 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
50648 r[k] = a[j];
50649 return r;
50650}
50651
50652function __spreadArray(to, from, pack) {
50653 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
50654 if (ar || !(i in from)) {
50655 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
50656 ar[i] = from[i];
50657 }
50658 }
50659 return to.concat(ar || Array.prototype.slice.call(from));
50660}
50661
50662function __await(v) {
50663 return this instanceof __await ? (this.v = v, this) : new __await(v);
50664}
50665
50666function __asyncGenerator(thisArg, _arguments, generator) {
50667 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
50668 var g = generator.apply(thisArg, _arguments || []), i, q = [];
50669 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
50670 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); }); }; }
50671 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
50672 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
50673 function fulfill(value) { resume("next", value); }
50674 function reject(value) { resume("throw", value); }
50675 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
50676}
50677
50678function __asyncDelegator(o) {
50679 var i, p;
50680 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
50681 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; }
50682}
50683
50684function __asyncValues(o) {
50685 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
50686 var m = o[Symbol.asyncIterator], i;
50687 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);
50688 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); }); }; }
50689 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
50690}
50691
50692function __makeTemplateObject(cooked, raw) {
50693 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
50694 return cooked;
50695};
50696
50697var __setModuleDefault = Object.create ? (function(o, v) {
50698 Object.defineProperty(o, "default", { enumerable: true, value: v });
50699}) : function(o, v) {
50700 o["default"] = v;
50701};
50702
50703function __importStar(mod) {
50704 if (mod && mod.__esModule) return mod;
50705 var result = {};
50706 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
50707 __setModuleDefault(result, mod);
50708 return result;
50709}
50710
50711function __importDefault(mod) {
50712 return (mod && mod.__esModule) ? mod : { default: mod };
50713}
50714
50715function __classPrivateFieldGet(receiver, state, kind, f) {
50716 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
50717 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");
50718 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
50719}
50720
50721function __classPrivateFieldSet(receiver, state, value, kind, f) {
50722 if (kind === "m") throw new TypeError("Private method is not writable");
50723 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
50724 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");
50725 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
50726}
50727
50728function __classPrivateFieldIn(state, receiver) {
50729 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
50730 return typeof state === "function" ? receiver === state : state.has(receiver);
50731}
50732
50733
50734/***/ }),
50735
50736/***/ "../../node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js":
50737/*!*****************************************************************************************!*\
50738 !*** /root/amplify-js/node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js ***!
50739 \*****************************************************************************************/
50740/*! exports provided: resolveEndpointsConfig */
50741/***/ (function(module, __webpack_exports__, __webpack_require__) {
50742
50743"use strict";
50744__webpack_require__.r(__webpack_exports__);
50745/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveEndpointsConfig", function() { return resolveEndpointsConfig; });
50746/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
50747
50748var resolveEndpointsConfig = function (input) {
50749 var _a;
50750 return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, endpoint: input.endpoint ? normalizeEndpoint(input) : function () { return getEndPointFromRegion(input); }, isCustomEndpoint: input.endpoint ? true : false }));
50751};
50752var normalizeEndpoint = function (input) {
50753 var endpoint = input.endpoint, urlParser = input.urlParser;
50754 if (typeof endpoint === "string") {
50755 var promisified_1 = Promise.resolve(urlParser(endpoint));
50756 return function () { return promisified_1; };
50757 }
50758 else if (typeof endpoint === "object") {
50759 var promisified_2 = Promise.resolve(endpoint);
50760 return function () { return promisified_2; };
50761 }
50762 return endpoint;
50763};
50764var getEndPointFromRegion = function (input) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
50765 var _a, tls, region, dnsHostRegex, hostname;
50766 var _b;
50767 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
50768 switch (_c.label) {
50769 case 0:
50770 _a = input.tls, tls = _a === void 0 ? true : _a;
50771 return [4 /*yield*/, input.region()];
50772 case 1:
50773 region = _c.sent();
50774 dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
50775 if (!dnsHostRegex.test(region)) {
50776 throw new Error("Invalid region in client config");
50777 }
50778 return [4 /*yield*/, input.regionInfoProvider(region)];
50779 case 2:
50780 hostname = ((_b = (_c.sent())) !== null && _b !== void 0 ? _b : {}).hostname;
50781 if (!hostname) {
50782 throw new Error("Cannot resolve hostname from client config");
50783 }
50784 return [2 /*return*/, input.urlParser((tls ? "https:" : "http:") + "//" + hostname)];
50785 }
50786 });
50787}); };
50788//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW5kcG9pbnRzQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0VuZHBvaW50c0NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBeUJBLE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biBpbiBjbGllbnQgY29uZmlnXCIpO1xuICB9XG5cbiAgY29uc3QgeyBob3N0bmFtZSB9ID0gKGF3YWl0IGlucHV0LnJlZ2lvbkluZm9Qcm92aWRlcihyZWdpb24pKSA/PyB7fTtcbiAgaWYgKCFob3N0bmFtZSkge1xuICAgIHRocm93IG5ldyBFcnJvcihcIkNhbm5vdCByZXNvbHZlIGhvc3RuYW1lIGZyb20gY2xpZW50IGNvbmZpZ1wiKTtcbiAgfVxuXG4gIHJldHVybiBpbnB1dC51cmxQYXJzZXIoYCR7dGxzID8gXCJodHRwczpcIiA6IFwiaHR0cDpcIn0vLyR7aG9zdG5hbWV9YCk7XG59O1xuIl19
50789
50790/***/ }),
50791
50792/***/ "../../node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js":
50793/*!**************************************************************************************!*\
50794 !*** /root/amplify-js/node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js ***!
50795 \**************************************************************************************/
50796/*! exports provided: REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig */
50797/***/ (function(module, __webpack_exports__, __webpack_require__) {
50798
50799"use strict";
50800__webpack_require__.r(__webpack_exports__);
50801/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REGION_ENV_NAME", function() { return REGION_ENV_NAME; });
50802/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REGION_INI_NAME", function() { return REGION_INI_NAME; });
50803/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_OPTIONS", function() { return NODE_REGION_CONFIG_OPTIONS; });
50804/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_FILE_OPTIONS", function() { return NODE_REGION_CONFIG_FILE_OPTIONS; });
50805/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveRegionConfig", function() { return resolveRegionConfig; });
50806/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
50807
50808var REGION_ENV_NAME = "AWS_REGION";
50809var REGION_INI_NAME = "region";
50810var NODE_REGION_CONFIG_OPTIONS = {
50811 environmentVariableSelector: function (env) { return env[REGION_ENV_NAME]; },
50812 configFileSelector: function (profile) { return profile[REGION_INI_NAME]; },
50813 default: function () {
50814 throw new Error("Region is missing");
50815 },
50816};
50817var NODE_REGION_CONFIG_FILE_OPTIONS = {
50818 preferredFile: "credentials",
50819};
50820var resolveRegionConfig = function (input) {
50821 if (!input.region) {
50822 throw new Error("Region is missing");
50823 }
50824 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { region: normalizeRegion(input.region) });
50825};
50826var normalizeRegion = function (region) {
50827 if (typeof region === "string") {
50828 var promisified_1 = Promise.resolve(region);
50829 return function () { return promisified_1; };
50830 }
50831 return region;
50832};
50833//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVnaW9uQ29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL1JlZ2lvbkNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBR0EsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLFlBQVksQ0FBQztBQUM1QyxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcsUUFBUSxDQUFDO0FBRXhDLE1BQU0sQ0FBQyxJQUFNLDBCQUEwQixHQUFrQztJQUN2RSwyQkFBMkIsRUFBRSxVQUFDLEdBQUcsSUFBSyxPQUFBLEdBQUcsQ0FBQyxlQUFlLENBQUMsRUFBcEIsQ0FBb0I7SUFDMUQsa0JBQWtCLEVBQUUsVUFBQyxPQUFPLElBQUssT0FBQSxPQUFPLENBQUMsZUFBZSxDQUFDLEVBQXhCLENBQXd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Z2lvbikge1xuICAgIHRocm93IG5ldyBFcnJvcihcIlJlZ2lvbiBpcyBtaXNzaW5nXCIpO1xuICB9XG4gIHJldHVybiB7XG4gICAgLi4uaW5wdXQsXG4gICAgcmVnaW9uOiBub3JtYWxpemVSZWdpb24oaW5wdXQucmVnaW9uISksXG4gIH07XG59O1xuXG5jb25zdCBub3JtYWxpemVSZWdpb24gPSAocmVnaW9uOiBzdHJpbmcgfCBQcm92aWRlcjxzdHJpbmc+KTogUHJvdmlkZXI8c3RyaW5nPiA9PiB7XG4gIGlmICh0eXBlb2YgcmVnaW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUocmVnaW9uKTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH1cbiAgcmV0dXJuIHJlZ2lvbiBhcyBQcm92aWRlcjxzdHJpbmc+O1xufTtcbiJdfQ==
50834
50835/***/ }),
50836
50837/***/ "../../node_modules/@aws-sdk/config-resolver/dist/es/index.js":
50838/*!*******************************************************************************!*\
50839 !*** /root/amplify-js/node_modules/@aws-sdk/config-resolver/dist/es/index.js ***!
50840 \*******************************************************************************/
50841/*! exports provided: resolveEndpointsConfig, REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig */
50842/***/ (function(module, __webpack_exports__, __webpack_require__) {
50843
50844"use strict";
50845__webpack_require__.r(__webpack_exports__);
50846/* harmony import */ var _EndpointsConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EndpointsConfig */ "../../node_modules/@aws-sdk/config-resolver/dist/es/EndpointsConfig.js");
50847/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveEndpointsConfig", function() { return _EndpointsConfig__WEBPACK_IMPORTED_MODULE_0__["resolveEndpointsConfig"]; });
50848
50849/* harmony import */ var _RegionConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RegionConfig */ "../../node_modules/@aws-sdk/config-resolver/dist/es/RegionConfig.js");
50850/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "REGION_ENV_NAME", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["REGION_ENV_NAME"]; });
50851
50852/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "REGION_INI_NAME", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["REGION_INI_NAME"]; });
50853
50854/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_OPTIONS", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["NODE_REGION_CONFIG_OPTIONS"]; });
50855
50856/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_REGION_CONFIG_FILE_OPTIONS", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["NODE_REGION_CONFIG_FILE_OPTIONS"]; });
50857
50858/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveRegionConfig", function() { return _RegionConfig__WEBPACK_IMPORTED_MODULE_1__["resolveRegionConfig"]; });
50859
50860
50861
50862//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vRW5kcG9pbnRzQ29uZmlnXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9SZWdpb25Db25maWdcIjtcbiJdfQ==
50863
50864/***/ }),
50865
50866/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js":
50867/*!******************************************************************************************************!*\
50868 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js ***!
50869 \******************************************************************************************************/
50870/*! exports provided: EventStreamMarshaller */
50871/***/ (function(module, __webpack_exports__, __webpack_require__) {
50872
50873"use strict";
50874__webpack_require__.r(__webpack_exports__);
50875/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; });
50876/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/crc32 */ "../../node_modules/@aws-crypto/crc32/build/index.js");
50877/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__);
50878/* harmony import */ var _HeaderMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HeaderMarshaller */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js");
50879/* harmony import */ var _splitMessage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./splitMessage */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js");
50880
50881
50882
50883/**
50884 * A marshaller that can convert binary-packed event stream messages into
50885 * JavaScript objects and back again into their binary format.
50886 */
50887var EventStreamMarshaller = /** @class */ (function () {
50888 function EventStreamMarshaller(toUtf8, fromUtf8) {
50889 this.headerMarshaller = new _HeaderMarshaller__WEBPACK_IMPORTED_MODULE_1__["HeaderMarshaller"](toUtf8, fromUtf8);
50890 }
50891 /**
50892 * Convert a structured JavaScript object with tagged headers into a binary
50893 * event stream message.
50894 */
50895 EventStreamMarshaller.prototype.marshall = function (_a) {
50896 var rawHeaders = _a.headers, body = _a.body;
50897 var headers = this.headerMarshaller.format(rawHeaders);
50898 var length = headers.byteLength + body.byteLength + 16;
50899 var out = new Uint8Array(length);
50900 var view = new DataView(out.buffer, out.byteOffset, out.byteLength);
50901 var checksum = new _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__["Crc32"]();
50902 // Format message
50903 view.setUint32(0, length, false);
50904 view.setUint32(4, headers.byteLength, false);
50905 view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
50906 out.set(headers, 12);
50907 out.set(body, headers.byteLength + 12);
50908 // Write trailing message checksum
50909 view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
50910 return out;
50911 };
50912 /**
50913 * Convert a binary event stream message into a JavaScript object with an
50914 * opaque, binary body and tagged, parsed headers.
50915 */
50916 EventStreamMarshaller.prototype.unmarshall = function (message) {
50917 var _a = Object(_splitMessage__WEBPACK_IMPORTED_MODULE_2__["splitMessage"])(message), headers = _a.headers, body = _a.body;
50918 return { headers: this.headerMarshaller.parse(headers), body: body };
50919 };
50920 /**
50921 * Convert a structured JavaScript object with tagged headers into a binary
50922 * event stream message header.
50923 */
50924 EventStreamMarshaller.prototype.formatHeaders = function (rawHeaders) {
50925 return this.headerMarshaller.format(rawHeaders);
50926 };
50927 return EventStreamMarshaller;
50928}());
50929
50930//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFJMUMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDOzs7R0FHRztBQUNIO0lBR0UsK0JBQVksTUFBZSxFQUFFLFFBQWlCO1FBQz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pZXcpOiBNZXNzYWdlIHtcbiAgICBjb25zdCB7IGhlYWRlcnMsIGJvZHkgfSA9IHNwbGl0TWVzc2FnZShtZXNzYWdlKTtcblxuICAgIHJldHVybiB7IGhlYWRlcnM6IHRoaXMuaGVhZGVyTWFyc2hhbGxlci5wYXJzZShoZWFkZXJzKSwgYm9keSB9O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYSBzdHJ1Y3R1cmVkIEphdmFTY3JpcHQgb2JqZWN0IHdpdGggdGFnZ2VkIGhlYWRlcnMgaW50byBhIGJpbmFyeVxuICAgKiBldmVudCBzdHJlYW0gbWVzc2FnZSBoZWFkZXIuXG4gICAqL1xuICBmb3JtYXRIZWFkZXJzKHJhd0hlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzKTogVWludDhBcnJheSB7XG4gICAgcmV0dXJuIHRoaXMuaGVhZGVyTWFyc2hhbGxlci5mb3JtYXQocmF3SGVhZGVycyk7XG4gIH1cbn1cbiJdfQ==
50931
50932/***/ }),
50933
50934/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js":
50935/*!*************************************************************************************************!*\
50936 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/HeaderMarshaller.js ***!
50937 \*************************************************************************************************/
50938/*! exports provided: HeaderMarshaller */
50939/***/ (function(module, __webpack_exports__, __webpack_require__) {
50940
50941"use strict";
50942__webpack_require__.r(__webpack_exports__);
50943/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderMarshaller", function() { return HeaderMarshaller; });
50944/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
50945/* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "../../node_modules/@aws-sdk/eventstream-marshaller/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js");
50946/* harmony import */ var _Int64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Int64 */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js");
50947
50948
50949
50950/**
50951 * @internal
50952 */
50953var HeaderMarshaller = /** @class */ (function () {
50954 function HeaderMarshaller(toUtf8, fromUtf8) {
50955 this.toUtf8 = toUtf8;
50956 this.fromUtf8 = fromUtf8;
50957 }
50958 HeaderMarshaller.prototype.format = function (headers) {
50959 var e_1, _a, e_2, _b;
50960 var chunks = [];
50961 try {
50962 for (var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _d = _c.next(); !_d.done; _d = _c.next()) {
50963 var headerName = _d.value;
50964 var bytes = this.fromUtf8(headerName);
50965 chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
50966 }
50967 }
50968 catch (e_1_1) { e_1 = { error: e_1_1 }; }
50969 finally {
50970 try {
50971 if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
50972 }
50973 finally { if (e_1) throw e_1.error; }
50974 }
50975 var out = new Uint8Array(chunks.reduce(function (carry, bytes) { return carry + bytes.byteLength; }, 0));
50976 var position = 0;
50977 try {
50978 for (var chunks_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(chunks), chunks_1_1 = chunks_1.next(); !chunks_1_1.done; chunks_1_1 = chunks_1.next()) {
50979 var chunk = chunks_1_1.value;
50980 out.set(chunk, position);
50981 position += chunk.byteLength;
50982 }
50983 }
50984 catch (e_2_1) { e_2 = { error: e_2_1 }; }
50985 finally {
50986 try {
50987 if (chunks_1_1 && !chunks_1_1.done && (_b = chunks_1.return)) _b.call(chunks_1);
50988 }
50989 finally { if (e_2) throw e_2.error; }
50990 }
50991 return out;
50992 };
50993 HeaderMarshaller.prototype.formatHeaderValue = function (header) {
50994 switch (header.type) {
50995 case "boolean":
50996 return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);
50997 case "byte":
50998 return Uint8Array.from([2 /* byte */, header.value]);
50999 case "short":
51000 var shortView = new DataView(new ArrayBuffer(3));
51001 shortView.setUint8(0, 3 /* short */);
51002 shortView.setInt16(1, header.value, false);
51003 return new Uint8Array(shortView.buffer);
51004 case "integer":
51005 var intView = new DataView(new ArrayBuffer(5));
51006 intView.setUint8(0, 4 /* integer */);
51007 intView.setInt32(1, header.value, false);
51008 return new Uint8Array(intView.buffer);
51009 case "long":
51010 var longBytes = new Uint8Array(9);
51011 longBytes[0] = 5 /* long */;
51012 longBytes.set(header.value.bytes, 1);
51013 return longBytes;
51014 case "binary":
51015 var binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
51016 binView.setUint8(0, 6 /* byteArray */);
51017 binView.setUint16(1, header.value.byteLength, false);
51018 var binBytes = new Uint8Array(binView.buffer);
51019 binBytes.set(header.value, 3);
51020 return binBytes;
51021 case "string":
51022 var utf8Bytes = this.fromUtf8(header.value);
51023 var strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
51024 strView.setUint8(0, 7 /* string */);
51025 strView.setUint16(1, utf8Bytes.byteLength, false);
51026 var strBytes = new Uint8Array(strView.buffer);
51027 strBytes.set(utf8Bytes, 3);
51028 return strBytes;
51029 case "timestamp":
51030 var tsBytes = new Uint8Array(9);
51031 tsBytes[0] = 8 /* timestamp */;
51032 tsBytes.set(_Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"].fromNumber(header.value.valueOf()).bytes, 1);
51033 return tsBytes;
51034 case "uuid":
51035 if (!UUID_PATTERN.test(header.value)) {
51036 throw new Error("Invalid UUID received: " + header.value);
51037 }
51038 var uuidBytes = new Uint8Array(17);
51039 uuidBytes[0] = 9 /* uuid */;
51040 uuidBytes.set(Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["fromHex"])(header.value.replace(/\-/g, "")), 1);
51041 return uuidBytes;
51042 }
51043 };
51044 HeaderMarshaller.prototype.parse = function (headers) {
51045 var out = {};
51046 var position = 0;
51047 while (position < headers.byteLength) {
51048 var nameLength = headers.getUint8(position++);
51049 var name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
51050 position += nameLength;
51051 switch (headers.getUint8(position++)) {
51052 case 0 /* boolTrue */:
51053 out[name] = {
51054 type: BOOLEAN_TAG,
51055 value: true,
51056 };
51057 break;
51058 case 1 /* boolFalse */:
51059 out[name] = {
51060 type: BOOLEAN_TAG,
51061 value: false,
51062 };
51063 break;
51064 case 2 /* byte */:
51065 out[name] = {
51066 type: BYTE_TAG,
51067 value: headers.getInt8(position++),
51068 };
51069 break;
51070 case 3 /* short */:
51071 out[name] = {
51072 type: SHORT_TAG,
51073 value: headers.getInt16(position, false),
51074 };
51075 position += 2;
51076 break;
51077 case 4 /* integer */:
51078 out[name] = {
51079 type: INT_TAG,
51080 value: headers.getInt32(position, false),
51081 };
51082 position += 4;
51083 break;
51084 case 5 /* long */:
51085 out[name] = {
51086 type: LONG_TAG,
51087 value: new _Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"](new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
51088 };
51089 position += 8;
51090 break;
51091 case 6 /* byteArray */:
51092 var binaryLength = headers.getUint16(position, false);
51093 position += 2;
51094 out[name] = {
51095 type: BINARY_TAG,
51096 value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength),
51097 };
51098 position += binaryLength;
51099 break;
51100 case 7 /* string */:
51101 var stringLength = headers.getUint16(position, false);
51102 position += 2;
51103 out[name] = {
51104 type: STRING_TAG,
51105 value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)),
51106 };
51107 position += stringLength;
51108 break;
51109 case 8 /* timestamp */:
51110 out[name] = {
51111 type: TIMESTAMP_TAG,
51112 value: new Date(new _Int64__WEBPACK_IMPORTED_MODULE_2__["Int64"](new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
51113 };
51114 position += 8;
51115 break;
51116 case 9 /* uuid */:
51117 var uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
51118 position += 16;
51119 out[name] = {
51120 type: UUID_TAG,
51121 value: Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(0, 4)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(4, 6)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(6, 8)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(8, 10)) + "-" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(uuidBytes.subarray(10)),
51122 };
51123 break;
51124 default:
51125 throw new Error("Unrecognized header type tag");
51126 }
51127 }
51128 return out;
51129 };
51130 return HeaderMarshaller;
51131}());
51132
51133var HEADER_VALUE_TYPE;
51134(function (HEADER_VALUE_TYPE) {
51135 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue";
51136 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse";
51137 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte";
51138 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short";
51139 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer";
51140 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long";
51141 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray";
51142 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string";
51143 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp";
51144 HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid";
51145})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
51146var BOOLEAN_TAG = "boolean";
51147var BYTE_TAG = "byte";
51148var SHORT_TAG = "short";
51149var INT_TAG = "integer";
51150var LONG_TAG = "long";
51151var BINARY_TAG = "binary";
51152var STRING_TAG = "string";
51153var TIMESTAMP_TAG = "timestamp";
51154var UUID_TAG = "uuid";
51155var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
51156//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyTWFyc2hhbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9IZWFkZXJNYXJzaGFsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRTVELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFFaEM7O0dBRUc7QUFDSDtJQUNFLDBCQUE2QixNQUFlLEVBQW1CLFFBQWlCO1FBQW5ELFdBQU0sR0FBTixNQUFNLENBQVM7UUFBbUIsYUFBUSxHQUFSLFFBQVEsQ0FBUztJQUFHLENBQUM7SUFFcEYsaUNBQU0sR0FBTixVQUFPLE9BQXVCOztRQUM1QixJQUFNLE1BQU0sR0FBc0IsRUFBRSxDQUFDOztZQUVyQyxLQUF5QixJQUFBLEtBQUEsU0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO2dCQUExQyxJQUFNLFVBQVUsV0FBQTtnQkFDbkIsSUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQztnQk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HZhbHVlOiBoZWFkZXJzLmdldEludDgocG9zaXRpb24rKyksXG4gICAgICAgICAgfTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5zaG9ydDpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBTSE9SVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQxNihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5pbnRlZ2VyOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IElOVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQzMihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gNDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5sb25nOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IExPTkdfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IG5ldyBJbnQ2NChuZXcgVWludDhBcnJheShoZWFkZXJzLmJ1ZmZlciwgaGVhZGVycy5ieXRlT2Zmc2V0ICsgcG9zaXRpb24sIDgpKSxcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IDg7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZUFycmF5OlxuICAgICAgICAgIGNvbnN0IGJpbmFyeUxlbmd0aCA9IGhlYWRlcnMuZ2V0VWludDE2KHBvc2l0aW9uLCBmYWxzZSk7XG4gICAgICAgICAg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wiO1xuY29uc3QgQllURV9UQUcgPSBcImJ5dGVcIjtcbmNvbnN0IFNIT1JUX1RBRyA9IFwic2hvcnRcIjtcbmNvbnN0IElOVF9UQUcgPSBcImludGVnZXJcIjtcbmNvbnN0IExPTkdfVEFHID0gXCJsb25nXCI7XG5jb25zdCBCSU5BUllfVEFHID0gXCJiaW5hcnlcIjtcbmNvbnN0IFNUUklOR19UQUcgPSBcInN0cmluZ1wiO1xuY29uc3QgVElNRVNUQU1QX1RBRyA9IFwidGltZXN0YW1wXCI7XG5jb25zdCBVVUlEX1RBRyA9IFwidXVpZFwiO1xuXG5jb25zdCBVVUlEX1BBVFRFUk4gPSAvXlthLWYwLTldezh9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezEyfSQvO1xuIl19
51157
51158/***/ }),
51159
51160/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js":
51161/*!**************************************************************************************!*\
51162 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js ***!
51163 \**************************************************************************************/
51164/*! exports provided: Int64 */
51165/***/ (function(module, __webpack_exports__, __webpack_require__) {
51166
51167"use strict";
51168__webpack_require__.r(__webpack_exports__);
51169/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Int64", function() { return Int64; });
51170/* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "../../node_modules/@aws-sdk/eventstream-marshaller/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js");
51171
51172/**
51173 * A lossless representation of a signed, 64-bit integer. Instances of this
51174 * class may be used in arithmetic expressions as if they were numeric
51175 * primitives, but the binary representation will be preserved unchanged as the
51176 * `bytes` property of the object. The bytes should be encoded as big-endian,
51177 * two's complement integers.
51178 */
51179var Int64 = /** @class */ (function () {
51180 function Int64(bytes) {
51181 this.bytes = bytes;
51182 if (bytes.byteLength !== 8) {
51183 throw new Error("Int64 buffers must be exactly 8 bytes");
51184 }
51185 }
51186 Int64.fromNumber = function (number) {
51187 if (number > 9223372036854775807 || number < -9223372036854775808) {
51188 throw new Error(number + " is too large (or, if negative, too small) to represent as an Int64");
51189 }
51190 var bytes = new Uint8Array(8);
51191 for (var i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
51192 bytes[i] = remaining;
51193 }
51194 if (number < 0) {
51195 negate(bytes);
51196 }
51197 return new Int64(bytes);
51198 };
51199 /**
51200 * Called implicitly by infix arithmetic operators.
51201 */
51202 Int64.prototype.valueOf = function () {
51203 var bytes = this.bytes.slice(0);
51204 var negative = bytes[0] & 128;
51205 if (negative) {
51206 negate(bytes);
51207 }
51208 return parseInt(Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_0__["toHex"])(bytes), 16) * (negative ? -1 : 1);
51209 };
51210 Int64.prototype.toString = function () {
51211 return String(this.valueOf());
51212 };
51213 return Int64;
51214}());
51215
51216function negate(bytes) {
51217 for (var i = 0; i < 8; i++) {
51218 bytes[i] ^= 0xff;
51219 }
51220 for (var i = 7; i > -1; i--) {
51221 bytes[i]++;
51222 if (bytes[i] !== 0)
51223 break;
51224 }
51225}
51226//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW50NjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvSW50NjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBSW5EOzs7Ozs7R0FNRztBQUNIO0lBQ0UsZUFBcUIsS0FBaUI7UUFBakIsVUFBSyxHQUFMLEtBQUssQ0FBWTtRQUNwQyxJQUFJLEtBQUssQ0FBQyxVQUFVLEtBQUssQ0FBQyxFQUFFO1lBQzFCLE1BQU0sSUFBSSxLQUFLLENBQU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ICYmIHJlbWFpbmluZyA+IDA7IGktLSwgcmVtYWluaW5nIC89IDI1Nikge1xuICAgICAgYnl0ZXNbaV0gPSByZW1haW5pbmc7XG4gICAgfVxuXG4gICAgaWYgKG51bWJlciA8IDApIHtcbiAgICAgIG5lZ2F0ZShieXRlcyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG5ldyBJbnQ2NChieXRlcyk7XG4gIH1cblxuICAvKipcbiAgICogQ2FsbGVkIGltcGxpY2l0bHkgYnkgaW5maXggYXJpdGhtZXRpYyBvcGVyYXRvcnMuXG4gICAqL1xuICB2YWx1ZU9mKCk6IG51bWJlciB7XG4gICAgY29uc3QgYnl0ZXMgPSB0aGlzLmJ5dGVzLnNsaWNlKDApO1xuICAgIGNvbnN0IG5lZ2F0aXZlID0gYnl0ZXNbMF0gJiAwYjEwMDAwMDAwO1xuICAgIGlmIChuZWdhdGl2ZSkge1xuICAgICAgbmVnYXRlKGJ5dGVzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcGFyc2VJbnQodG9IZXgoYnl0ZXMpLCAxNikgKiAobmVnYXRpdmUgPyAtMSA6IDEpO1xuICB9XG5cbiAgdG9TdHJpbmcoKSB7XG4gICAgcmV0dXJuIFN0cmluZyh0aGlzLnZhbHVlT2YoKSk7XG4gIH1cbn1cblxuZnVuY3Rpb24gbmVnYXRlKGJ5dGVzOiBVaW50OEFycmF5KTogdm9pZCB7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgODsgaSsrKSB7XG4gICAgYnl0ZXNbaV0gXj0gMHhmZjtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSA3OyBpID4gLTE7IGktLSkge1xuICAgIGJ5dGVzW2ldKys7XG4gICAgaWYgKGJ5dGVzW2ldICE9PSAwKSBicmVhaztcbiAgfVxufVxuIl19
51227
51228/***/ }),
51229
51230/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Message.js":
51231/*!****************************************************************************************!*\
51232 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/Message.js ***!
51233 \****************************************************************************************/
51234/*! no exports provided */
51235/***/ (function(module, __webpack_exports__, __webpack_require__) {
51236
51237"use strict";
51238__webpack_require__.r(__webpack_exports__);
51239
51240//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9NZXNzYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbnQ2NCB9IGZyb20gXCIuL0ludDY0XCI7XG5cbi8qKlxuICogQW4gZXZlbnQgc3RyZWFtIG1lc3NhZ2UuIFRoZSBoZWFkZXJzIGFuZCBib2R5IHByb3BlcnRpZXMgd2lsbCBhbHdheXMgYmVcbiAqIGRlZmluZWQsIHdpdGggZW1wdHkgaGVhZGVycyByZXByZXNlbnRlZCBhcyBhbiBvYmplY3Qgd2l0aCBubyBrZXlzIGFuZCBhblxuICogZW1wdHkgYm9keSByZXByZXNlbnRlZCBhcyBhIHplcm8tbGVuZ3RoIFVpbnQ4QXJyYXkuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgTWVzc2FnZSB7XG4gIGhlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzO1xuICBib2R5OiBVaW50OEFycmF5O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE1lc3NhZ2VIZWFkZXJzIHtcbiAgW25hbWU6IHN0cmluZ106IE1lc3NhZ2VIZWFkZXJWYWx1ZTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBCb29sZWFuSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcImJvb2xlYW5cIjtcbiAgdmFsdWU6IGJvb2xlYW47XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQnl0ZUhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJieXRlXCI7XG4gIHZ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BIZWFkZXJWYWx1ZVxuICB8IFV1aWRIZWFkZXJWYWx1ZTtcbiJdfQ==
51241
51242/***/ }),
51243
51244/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js":
51245/*!**************************************************************************************!*\
51246 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js ***!
51247 \**************************************************************************************/
51248/*! exports provided: EventStreamMarshaller, Int64 */
51249/***/ (function(module, __webpack_exports__, __webpack_require__) {
51250
51251"use strict";
51252__webpack_require__.r(__webpack_exports__);
51253/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/EventStreamMarshaller.js");
51254/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"]; });
51255
51256/* harmony import */ var _Int64__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Int64 */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Int64.js");
51257/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Int64", function() { return _Int64__WEBPACK_IMPORTED_MODULE_1__["Int64"]; });
51258
51259/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Message */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/Message.js");
51260/* empty/unused harmony star reexport */
51261
51262
51263//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLFdBQVcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtTWFyc2hhbGxlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vSW50NjRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL01lc3NhZ2VcIjtcbiJdfQ==
51264
51265/***/ }),
51266
51267/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js":
51268/*!*********************************************************************************************!*\
51269 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/dist/es/splitMessage.js ***!
51270 \*********************************************************************************************/
51271/*! exports provided: splitMessage */
51272/***/ (function(module, __webpack_exports__, __webpack_require__) {
51273
51274"use strict";
51275__webpack_require__.r(__webpack_exports__);
51276/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitMessage", function() { return splitMessage; });
51277/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-crypto/crc32 */ "../../node_modules/@aws-crypto/crc32/build/index.js");
51278/* harmony import */ var _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__);
51279
51280// All prelude components are unsigned, 32-bit integers
51281var PRELUDE_MEMBER_LENGTH = 4;
51282// The prelude consists of two components
51283var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
51284// Checksums are always CRC32 hashes.
51285var CHECKSUM_LENGTH = 4;
51286// Messages must include a full prelude, a prelude checksum, and a message checksum
51287var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
51288/**
51289 * @internal
51290 */
51291function splitMessage(_a) {
51292 var byteLength = _a.byteLength, byteOffset = _a.byteOffset, buffer = _a.buffer;
51293 if (byteLength < MINIMUM_MESSAGE_LENGTH) {
51294 throw new Error("Provided message too short to accommodate event stream message overhead");
51295 }
51296 var view = new DataView(buffer, byteOffset, byteLength);
51297 var messageLength = view.getUint32(0, false);
51298 if (byteLength !== messageLength) {
51299 throw new Error("Reported message length does not match received message length");
51300 }
51301 var headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
51302 var expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
51303 var expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
51304 var checksummer = new _aws_crypto_crc32__WEBPACK_IMPORTED_MODULE_0__["Crc32"]().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
51305 if (expectedPreludeChecksum !== checksummer.digest()) {
51306 throw new Error("The prelude checksum specified in the message (" + expectedPreludeChecksum + ") does not match the calculated CRC32 checksum (" + checksummer.digest() + ")");
51307 }
51308 checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
51309 if (expectedMessageChecksum !== checksummer.digest()) {
51310 throw new Error("The message checksum (" + checksummer.digest() + ") did not match the expected value of " + expectedMessageChecksum);
51311 }
51312 return {
51313 headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
51314 body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)),
51315 };
51316}
51317//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXRNZXNzYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NwbGl0TWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFMUMsdURBQXVEO0FBQ3ZELElBQU0scUJBQXFCLEdBQUcsQ0FBQyxDQUFDO0FBQ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iBjaGVja3N1bSAoJHtjaGVja3N1bW1lci5kaWdlc3QoKX0pYFxuICAgICk7XG4gIH1cblxuICBjaGVja3N1bW1lci51cGRhdGUoXG4gICAgbmV3IFVpbnQ4QXJyYXkoYnVmZmVyLCBieXRlT2Zmc2V0ICsgUFJFTFVERV9MRU5HVEgsIGJ5dGVMZW5ndGggLSAoUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEgpKVxuICApO1xuICBpZiAoZXhwZWN0ZWRNZXNzYWdlQ2hlY2tzdW0gIT09IGNoZWNrc3VtbWVyLmRpZ2VzdCgpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgYFRoZSBtZXNzYWdlIGNoZWNrc3VtICgke2NoZWNrc3VtbWVyLmRpZ2VzdCgpfSkgZGlkIG5vdCBtYXRjaCB0aGUgZXhwZWN0ZWQgdmFsdWUgb2YgJHtleHBlY3RlZE1lc3NhZ2VDaGVja3N1bX1gXG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiB7XG4gICAgaGVhZGVyczogbmV3IERhdGFWaWV3KGJ1ZmZlciwgYnl0ZU9mZnNldCArIFBSRUxVREVfTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RILCBoZWFkZXJMZW5ndGgpLFxuICAgIGJvZHk6IG5ldyBVaW50OEFycmF5KFxuICAgICAgYnVmZmVyLFxuICAgICAgYnl0ZU9mZnNldCArIFBSRUxVREVfTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RIICsgaGVhZGVyTGVuZ3RoLFxuICAgICAgbWVzc2FnZUxlbmd0aCAtIGhlYWRlckxlbmd0aCAtIChQUkVMVURFX0xFTkdUSCArIENIRUNLU1VNX0xFTkdUSCArIENIRUNLU1VNX0xFTkdUSClcbiAgICApLFxuICB9O1xufVxuIl19
51318
51319/***/ }),
51320
51321/***/ "../../node_modules/@aws-sdk/eventstream-marshaller/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js":
51322/*!******************************************************************************************************************************!*\
51323 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-marshaller/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js ***!
51324 \******************************************************************************************************************************/
51325/*! exports provided: fromHex, toHex */
51326/***/ (function(module, __webpack_exports__, __webpack_require__) {
51327
51328"use strict";
51329__webpack_require__.r(__webpack_exports__);
51330/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromHex", function() { return fromHex; });
51331/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHex", function() { return toHex; });
51332var SHORT_TO_HEX = {};
51333var HEX_TO_SHORT = {};
51334for (var i = 0; i < 256; i++) {
51335 var encodedByte = i.toString(16).toLowerCase();
51336 if (encodedByte.length === 1) {
51337 encodedByte = "0" + encodedByte;
51338 }
51339 SHORT_TO_HEX[i] = encodedByte;
51340 HEX_TO_SHORT[encodedByte] = i;
51341}
51342/**
51343 * Converts a hexadecimal encoded string to a Uint8Array of bytes.
51344 *
51345 * @param encoded The hexadecimal encoded string
51346 */
51347function fromHex(encoded) {
51348 if (encoded.length % 2 !== 0) {
51349 throw new Error("Hex encoded strings must have an even number length");
51350 }
51351 var out = new Uint8Array(encoded.length / 2);
51352 for (var i = 0; i < encoded.length; i += 2) {
51353 var encodedByte = encoded.substr(i, 2).toLowerCase();
51354 if (encodedByte in HEX_TO_SHORT) {
51355 out[i / 2] = HEX_TO_SHORT[encodedByte];
51356 }
51357 else {
51358 throw new Error("Cannot decode unrecognized sequence " + encodedByte + " as hexadecimal");
51359 }
51360 }
51361 return out;
51362}
51363/**
51364 * Converts a Uint8Array of binary data to a hexadecimal encoded string.
51365 *
51366 * @param bytes The binary data to encode
51367 */
51368function toHex(bytes) {
51369 var out = "";
51370 for (var i = 0; i < bytes.byteLength; i++) {
51371 out += SHORT_TO_HEX[bytes[i]];
51372 }
51373 return out;
51374}
51375//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290I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WFsIGVuY29kZWQgc3RyaW5nLlxuICpcbiAqIEBwYXJhbSBieXRlcyBUaGUgYmluYXJ5IGRhdGEgdG8gZW5jb2RlXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0b0hleChieXRlczogVWludDhBcnJheSk6IHN0cmluZyB7XG4gIGxldCBvdXQgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGJ5dGVzLmJ5dGVMZW5ndGg7IGkrKykge1xuICAgIG91dCArPSBTSE9SVF9UT19IRVhbYnl0ZXNbaV1dO1xuICB9XG5cbiAgcmV0dXJuIG91dDtcbn1cbiJdfQ==
51376
51377/***/ }),
51378
51379/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js":
51380/*!*********************************************************************************************************!*\
51381 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js ***!
51382 \*********************************************************************************************************/
51383/*! exports provided: EventStreamMarshaller */
51384/***/ (function(module, __webpack_exports__, __webpack_require__) {
51385
51386"use strict";
51387__webpack_require__.r(__webpack_exports__);
51388/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; });
51389/* harmony import */ var _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/eventstream-marshaller */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js");
51390/* harmony import */ var _aws_sdk_eventstream_serde_universal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/eventstream-serde-universal */ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/index.js");
51391/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js");
51392
51393
51394
51395/**
51396 * Utility class used to serialize and deserialize event streams in
51397 * browsers and ReactNative.
51398 *
51399 * In browsers where ReadableStream API is available:
51400 * * deserialize from ReadableStream to an async iterable of output structure
51401 * * serialize from async iterable of input structure to ReadableStream
51402 * In ReactNative where only async iterable API is available:
51403 * * deserialize from async iterable of binaries to async iterable of output structure
51404 * * serialize from async iterable of input structure to async iterable of binaries
51405 *
51406 * We use ReadableStream API in browsers because of the consistency with other
51407 * streaming operations, where ReadableStream API is used to denote streaming data.
51408 * Whereas in ReactNative, ReadableStream API is not available, we use async iterable
51409 * for streaming data although it has lower throughput.
51410 */
51411var EventStreamMarshaller = /** @class */ (function () {
51412 function EventStreamMarshaller(_a) {
51413 var utf8Encoder = _a.utf8Encoder, utf8Decoder = _a.utf8Decoder;
51414 this.eventMarshaller = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](utf8Encoder, utf8Decoder);
51415 this.universalMarshaller = new _aws_sdk_eventstream_serde_universal__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]({
51416 utf8Decoder: utf8Decoder,
51417 utf8Encoder: utf8Encoder,
51418 });
51419 }
51420 EventStreamMarshaller.prototype.deserialize = function (body, deserializer) {
51421 var bodyIterable = isReadableStream(body) ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["readableStreamtoIterable"])(body) : body;
51422 return this.universalMarshaller.deserialize(bodyIterable, deserializer);
51423 };
51424 /**
51425 * Generate a stream that serialize events into stream of binary chunks;
51426 *
51427 * Caveat is that streaming request payload doesn't work on browser with native
51428 * xhr or fetch handler currently because they don't support upload streaming.
51429 * reference:
51430 * * https://bugs.chromium.org/p/chromium/issues/detail?id=688906
51431 * * https://bugzilla.mozilla.org/show_bug.cgi?id=1387483
51432 *
51433 */
51434 EventStreamMarshaller.prototype.serialize = function (input, serializer) {
51435 var serialziedIterable = this.universalMarshaller.serialize(input, serializer);
51436 return typeof ReadableStream === "function" ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["iterableToReadableStream"])(serialziedIterable) : serialziedIterable;
51437 };
51438 return EventStreamMarshaller;
51439}());
51440
51441var isReadableStream = function (body) {
51442 return typeof ReadableStream === "function" && body instanceof ReadableStream;
51443};
51444//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUscUJBQXFCLElBQUksZUFBZSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDM0YsT0FBTyxFQUFFLHFCQUFxQixJQUFJLDhCQUE4QixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFHL0csT0FBTyxFQUFFLHdCQUF3QixFQUFFLHdCQUF3QixFQUFFLE1BQU0sU0FBUyxDQUFDO0FBUzdFOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNIO0lBR0UsK0JBQVksRUFBMEQ7WUFBeEQsV0FBVyxpQkFBQSxFQUFFLFdBQVcsaUJBQUE7UUFDcEMsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLGVBQWUsQ0FBQyxXQUFXLEVBQUUsV0FBVyxDQUFDLENBQUM7UUFDckUsSUFBSSxDQUFDLG1CQUFtQixHQUFHLElBQUksOEJBQThCLENBQUM7WUFDNUQsV0FBVyxhQUFBO1lBQ1gsV0FBVyxhQUFBO1NBQ1osQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUVELDJDQUFXLEdBQVgsVUFDRSxJQUE0RCxFQUM1RCxZQUFpRTtRQUVqRSxJQUFNLFlBQVksR0FBRyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsd0JBQXdCLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUNwR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XJhYmxlPFQ+LCBzZXJpYWxpemVyOiAoZXZlbnQ6IFQpID0+IE1lc3NhZ2UpOiBSZWFkYWJsZVN0cmVhbSB8IEFzeW5jSXRlcmFibGU8VWludDhBcnJheT4ge1xuICAgIGNvbnN0IHNlcmlhbHppZWRJdGVyYWJsZSA9IHRoaXMudW5pdmVyc2FsTWFyc2hhbGxlci5zZXJpYWxpemUoaW5wdXQsIHNlcmlhbGl6ZXIpO1xuICAgIHJldHVybiB0eXBlb2YgUmVhZGFibGVTdHJlYW0gPT09IFwiZnVuY3Rpb25cIiA/IGl0ZXJhYmxlVG9SZWFkYWJsZVN0cmVhbShzZXJpYWx6aWVkSXRlcmFibGUpIDogc2VyaWFsemllZEl0ZXJhYmxlO1xuICB9XG59XG5cbmNvbnN0IGlzUmVhZGFibGVTdHJlYW0gPSAoYm9keTogYW55KTogYm9keSBpcyBSZWFkYWJsZVN0cmVhbSA9PlxuICB0eXBlb2YgUmVhZGFibGVTdHJlYW0gPT09IFwiZnVuY3Rpb25cIiAmJiBib2R5IGluc3RhbmNlb2YgUmVhZGFibGVTdHJlYW07XG4iXX0=
51445
51446/***/ }),
51447
51448/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/index.js":
51449/*!*****************************************************************************************!*\
51450 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/index.js ***!
51451 \*****************************************************************************************/
51452/*! exports provided: eventStreamSerdeProvider, EventStreamMarshaller, readableStreamtoIterable, iterableToReadableStream */
51453/***/ (function(module, __webpack_exports__, __webpack_require__) {
51454
51455"use strict";
51456__webpack_require__.r(__webpack_exports__);
51457/* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./provider */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/provider.js");
51458/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return _provider__WEBPACK_IMPORTED_MODULE_0__["eventStreamSerdeProvider"]; });
51459
51460/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js");
51461/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]; });
51462
51463/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js");
51464/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "readableStreamtoIterable", function() { return _utils__WEBPACK_IMPORTED_MODULE_2__["readableStreamtoIterable"]; });
51465
51466/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "iterableToReadableStream", function() { return _utils__WEBPACK_IMPORTED_MODULE_2__["iterableToReadableStream"]; });
51467
51468
51469
51470
51471//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9FdmVudFN0cmVhbU1hcnNoYWxsZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG4iXX0=
51472
51473/***/ }),
51474
51475/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/provider.js":
51476/*!********************************************************************************************!*\
51477 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/provider.js ***!
51478 \********************************************************************************************/
51479/*! exports provided: eventStreamSerdeProvider */
51480/***/ (function(module, __webpack_exports__, __webpack_require__) {
51481
51482"use strict";
51483__webpack_require__.r(__webpack_exports__);
51484/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return eventStreamSerdeProvider; });
51485/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/EventStreamMarshaller.js");
51486
51487/** browser event stream serde utils provider */
51488var eventStreamSerdeProvider = function (options) { return new _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](options); };
51489//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFaEUsZ0RBQWdEO0FBQ2hELE1BQU0sQ0FBQyxJQUFNLHdCQUF3QixHQUE2QixVQUFDLE9BSWxFLElBQUssT0FBQSxJQUFJLHFCQUFxQixDQUFDLE9BQU8sQ0FBQyxFQUFsQyxDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciwgRXZlbnRTaWduZXIsIEV2ZW50U3RyZWFtU2VyZGVQcm92aWRlciwgUHJvdmlkZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIH0gZnJvbSBcIi4vRXZlbnRTdHJlYW1NYXJzaGFsbGVyXCI7XG5cbi8qKiBicm93c2VyIGV2ZW50IHN0cmVhbSBzZXJkZSB1dGlscyBwcm92aWRlciAqL1xuZXhwb3J0IGNvbnN0IGV2ZW50U3RyZWFtU2VyZGVQcm92aWRlcjogRXZlbnRTdHJlYW1TZXJkZVByb3ZpZGVyID0gKG9wdGlvbnM6IHtcbiAgdXRmOEVuY29kZXI6IEVuY29kZXI7XG4gIHV0ZjhEZWNvZGVyOiBEZWNvZGVyO1xuICBldmVudFNpZ25lcjogRXZlbnRTaWduZXIgfCBQcm92aWRlcjxFdmVudFNpZ25lcj47XG59KSA9PiBuZXcgRXZlbnRTdHJlYW1NYXJzaGFsbGVyKG9wdGlvbnMpO1xuIl19
51490
51491/***/ }),
51492
51493/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js":
51494/*!*****************************************************************************************!*\
51495 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/dist/es/utils.js ***!
51496 \*****************************************************************************************/
51497/*! exports provided: readableStreamtoIterable, iterableToReadableStream */
51498/***/ (function(module, __webpack_exports__, __webpack_require__) {
51499
51500"use strict";
51501__webpack_require__.r(__webpack_exports__);
51502/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readableStreamtoIterable", function() { return readableStreamtoIterable; });
51503/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iterableToReadableStream", function() { return iterableToReadableStream; });
51504/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51505
51506/**
51507 * A util function converting ReadableStream into an async iterable.
51508 * Reference: https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate
51509 */
51510var readableStreamtoIterable = function (readableStream) {
51511 var _a;
51512 return (_a = {},
51513 _a[Symbol.asyncIterator] = function () {
51514 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51515 var reader, _a, done, value;
51516 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51517 switch (_b.label) {
51518 case 0:
51519 reader = readableStream.getReader();
51520 _b.label = 1;
51521 case 1:
51522 _b.trys.push([1, , 9, 10]);
51523 _b.label = 2;
51524 case 2:
51525 if (false) {}
51526 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(reader.read())];
51527 case 3:
51528 _a = _b.sent(), done = _a.done, value = _a.value;
51529 if (!done) return [3 /*break*/, 5];
51530 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)];
51531 case 4: return [2 /*return*/, _b.sent()];
51532 case 5: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(value)];
51533 case 6: return [4 /*yield*/, _b.sent()];
51534 case 7:
51535 _b.sent();
51536 return [3 /*break*/, 2];
51537 case 8: return [3 /*break*/, 10];
51538 case 9:
51539 reader.releaseLock();
51540 return [7 /*endfinally*/];
51541 case 10: return [2 /*return*/];
51542 }
51543 });
51544 });
51545 },
51546 _a);
51547};
51548/**
51549 * A util function converting async iterable to a ReadableStream.
51550 */
51551var iterableToReadableStream = function (asyncIterable) {
51552 var iterator = asyncIterable[Symbol.asyncIterator]();
51553 return new ReadableStream({
51554 pull: function (controller) {
51555 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
51556 var _a, done, value;
51557 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51558 switch (_b.label) {
51559 case 0: return [4 /*yield*/, iterator.next()];
51560 case 1:
51561 _a = _b.sent(), done = _a.done, value = _a.value;
51562 if (done) {
51563 return [2 /*return*/, controller.close()];
51564 }
51565 controller.enqueue(value);
51566 return [2 /*return*/];
51567 }
51568 });
51569 });
51570 },
51571 });
51572};
51573//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6W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l0ZXJhYmxlOiBBc3luY0l0ZXJhYmxlPFQ+KTogUmVhZGFibGVTdHJlYW08VD4gPT4ge1xuICBjb25zdCBpdGVyYXRvciA9IGFzeW5jSXRlcmFibGVbU3ltYm9sLmFzeW5jSXRlcmF0b3JdKCk7XG4gIHJldHVybiBuZXcgUmVhZGFibGVTdHJlYW0oe1xuICAgIGFzeW5jIHB1bGwoY29udHJvbGxlcikge1xuICAgICAgY29uc3QgeyBkb25lLCB2YWx1ZSB9ID0gYXdhaXQgaXRlcmF0b3IubmV4dCgpO1xuICAgICAgaWYgKGRvbmUpIHtcbiAgICAgICAgcmV0dXJuIGNvbnRyb2xsZXIuY2xvc2UoKTtcbiAgICAgIH1cbiAgICAgIGNvbnRyb2xsZXIuZW5xdWV1ZSh2YWx1ZSk7XG4gICAgfSxcbiAgfSk7XG59O1xuIl19
51574
51575/***/ }),
51576
51577/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js":
51578/*!***********************************************************************************************************************************************************!*\
51579 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js ***!
51580 \***********************************************************************************************************************************************************/
51581/*! exports provided: EventStreamMarshaller */
51582/***/ (function(module, __webpack_exports__, __webpack_require__) {
51583
51584"use strict";
51585__webpack_require__.r(__webpack_exports__);
51586/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return EventStreamMarshaller; });
51587/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51588/* harmony import */ var _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/eventstream-marshaller */ "../../node_modules/@aws-sdk/eventstream-marshaller/dist/es/index.js");
51589/* harmony import */ var _getChunkedStream__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getChunkedStream */ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getChunkedStream.js");
51590/* harmony import */ var _getUnmarshalledStream__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getUnmarshalledStream */ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getUnmarshalledStream.js");
51591
51592
51593
51594
51595var EventStreamMarshaller = /** @class */ (function () {
51596 function EventStreamMarshaller(_a) {
51597 var utf8Encoder = _a.utf8Encoder, utf8Decoder = _a.utf8Decoder;
51598 this.eventMarshaller = new _aws_sdk_eventstream_marshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"](utf8Encoder, utf8Decoder);
51599 this.utfEncoder = utf8Encoder;
51600 }
51601 EventStreamMarshaller.prototype.deserialize = function (body, deserializer) {
51602 var chunkedStream = Object(_getChunkedStream__WEBPACK_IMPORTED_MODULE_2__["getChunkedStream"])(body);
51603 var unmarshalledStream = Object(_getUnmarshalledStream__WEBPACK_IMPORTED_MODULE_3__["getUnmarshalledStream"])(chunkedStream, {
51604 eventMarshaller: this.eventMarshaller,
51605 deserializer: deserializer,
51606 toUtf8: this.utfEncoder,
51607 });
51608 return unmarshalledStream;
51609 };
51610 EventStreamMarshaller.prototype.serialize = function (input, serializer) {
51611 var _a;
51612 // eslint-disable-next-line @typescript-eslint/no-this-alias
51613 var self = this;
51614 var serializedIterator = function () {
51615 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51616 var input_1, input_1_1, chunk, payloadBuf, e_1_1;
51617 var e_1, _a;
51618 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51619 switch (_b.label) {
51620 case 0:
51621 _b.trys.push([0, 7, 8, 13]);
51622 input_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncValues"])(input);
51623 _b.label = 1;
51624 case 1: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(input_1.next())];
51625 case 2:
51626 if (!(input_1_1 = _b.sent(), !input_1_1.done)) return [3 /*break*/, 6];
51627 chunk = input_1_1.value;
51628 payloadBuf = self.eventMarshaller.marshall(serializer(chunk));
51629 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(payloadBuf)];
51630 case 3: return [4 /*yield*/, _b.sent()];
51631 case 4:
51632 _b.sent();
51633 _b.label = 5;
51634 case 5: return [3 /*break*/, 1];
51635 case 6: return [3 /*break*/, 13];
51636 case 7:
51637 e_1_1 = _b.sent();
51638 e_1 = { error: e_1_1 };
51639 return [3 /*break*/, 13];
51640 case 8:
51641 _b.trys.push([8, , 11, 12]);
51642 if (!(input_1_1 && !input_1_1.done && (_a = input_1.return))) return [3 /*break*/, 10];
51643 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(_a.call(input_1))];
51644 case 9:
51645 _b.sent();
51646 _b.label = 10;
51647 case 10: return [3 /*break*/, 12];
51648 case 11:
51649 if (e_1) throw e_1.error;
51650 return [7 /*endfinally*/];
51651 case 12: return [7 /*endfinally*/];
51652 case 13: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(new Uint8Array(0))];
51653 case 14:
51654 // Ending frame
51655 return [4 /*yield*/, _b.sent()];
51656 case 15:
51657 // Ending frame
51658 _b.sent();
51659 return [2 /*return*/];
51660 }
51661 });
51662 });
51663 };
51664 return _a = {},
51665 _a[Symbol.asyncIterator] = serializedIterator,
51666 _a;
51667 };
51668 return EventStreamMarshaller;
51669}());
51670
51671//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V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IHVubWFyc2hhbGxlZFN0cmVhbTtcbiAgfVxuXG4gIHNlcmlhbGl6ZTxUPihpbnB1dDogQXN5bmNJdGVyYWJsZTxUPiwgc2VyaWFsaXplcjogKGV2ZW50OiBUKSA9PiBNZXNzYWdlKTogQXN5bmNJdGVyYWJsZTxVaW50OEFycmF5PiB7XG4gICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby10aGlzLWFsaWFzXG4gICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgY29uc3Qgc2VyaWFsaXplZEl0ZXJhdG9yID0gYXN5bmMgZnVuY3Rpb24qICgpIHtcbiAgICAgIGZvciBhd2FpdCAoY29uc3QgY2h1bmsgb2YgaW5wdXQpIHtcbiAgICAgICAgY29uc3QgcGF5bG9hZEJ1ZiA9IHNlbGYuZXZlbnRNYXJzaGFsbGVyLm1hcnNoYWxsKHNlcmlhbGl6ZXIoY2h1bmspKTtcbiAgICAgICAgeWllbGQgcGF5bG9hZEJ1ZjtcbiAgICAgIH1cbiAgICAgIC8vIEVuZGluZyBmcmFtZVxuICAgICAgeWllbGQgbmV3IFVpbnQ4QXJyYXkoMCk7XG4gICAgfTtcbiAgICByZXR1cm4ge1xuICAgICAgW1N5bWJvbC5hc3luY0l0ZXJhdG9yXTogc2VyaWFsaXplZEl0ZXJhdG9yLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
51672
51673/***/ }),
51674
51675/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getChunkedStream.js":
51676/*!******************************************************************************************************************************************************!*\
51677 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getChunkedStream.js ***!
51678 \******************************************************************************************************************************************************/
51679/*! exports provided: getChunkedStream */
51680/***/ (function(module, __webpack_exports__, __webpack_require__) {
51681
51682"use strict";
51683__webpack_require__.r(__webpack_exports__);
51684/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getChunkedStream", function() { return getChunkedStream; });
51685/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51686
51687function getChunkedStream(source) {
51688 var _a;
51689 var currentMessageTotalLength = 0;
51690 var currentMessagePendingLength = 0;
51691 var currentMessage = null;
51692 var messageLengthBuffer = null;
51693 var allocateMessage = function (size) {
51694 if (typeof size !== "number") {
51695 throw new Error("Attempted to allocate an event message where size was not a number: " + size);
51696 }
51697 currentMessageTotalLength = size;
51698 currentMessagePendingLength = 4;
51699 currentMessage = new Uint8Array(size);
51700 var currentMessageView = new DataView(currentMessage.buffer);
51701 currentMessageView.setUint32(0, size, false); //set big-endian Uint32 to 0~3 bytes
51702 };
51703 var iterator = function () {
51704 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51705 var sourceIterator, _a, value, done, chunkLength, currentOffset, bytesRemaining, numBytesForTotal, numBytesToWrite;
51706 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
51707 switch (_b.label) {
51708 case 0:
51709 sourceIterator = source[Symbol.asyncIterator]();
51710 _b.label = 1;
51711 case 1:
51712 if (false) {}
51713 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(sourceIterator.next())];
51714 case 2:
51715 _a = _b.sent(), value = _a.value, done = _a.done;
51716 if (!done) return [3 /*break*/, 10];
51717 if (!!currentMessageTotalLength) return [3 /*break*/, 4];
51718 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)];
51719 case 3: return [2 /*return*/, _b.sent()];
51720 case 4:
51721 if (!(currentMessageTotalLength === currentMessagePendingLength)) return [3 /*break*/, 7];
51722 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(currentMessage)];
51723 case 5: return [4 /*yield*/, _b.sent()];
51724 case 6:
51725 _b.sent();
51726 return [3 /*break*/, 8];
51727 case 7: throw new Error("Truncated event message received.");
51728 case 8: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(void 0)];
51729 case 9: return [2 /*return*/, _b.sent()];
51730 case 10:
51731 chunkLength = value.length;
51732 currentOffset = 0;
51733 _b.label = 11;
51734 case 11:
51735 if (!(currentOffset < chunkLength)) return [3 /*break*/, 15];
51736 // create new message if necessary
51737 if (!currentMessage) {
51738 bytesRemaining = chunkLength - currentOffset;
51739 // prevent edge case where total length spans 2 chunks
51740 if (!messageLengthBuffer) {
51741 messageLengthBuffer = new Uint8Array(4);
51742 }
51743 numBytesForTotal = Math.min(4 - currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer
51744 bytesRemaining // bytes left in chunk
51745 );
51746 messageLengthBuffer.set(
51747 // @ts-ignore error TS2532: Object is possibly 'undefined' for value
51748 value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength);
51749 currentMessagePendingLength += numBytesForTotal;
51750 currentOffset += numBytesForTotal;
51751 if (currentMessagePendingLength < 4) {
51752 // not enough information to create the current message
51753 return [3 /*break*/, 15];
51754 }
51755 allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
51756 messageLengthBuffer = null;
51757 }
51758 numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, // number of bytes left to complete message
51759 chunkLength - currentOffset // number of bytes left in the original chunk
51760 );
51761 currentMessage.set(
51762 // @ts-ignore error TS2532: Object is possibly 'undefined' for value
51763 value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength);
51764 currentMessagePendingLength += numBytesToWrite;
51765 currentOffset += numBytesToWrite;
51766 if (!(currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength)) return [3 /*break*/, 14];
51767 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(currentMessage)];
51768 case 12:
51769 // push out the message
51770 return [4 /*yield*/, _b.sent()];
51771 case 13:
51772 // push out the message
51773 _b.sent();
51774 // cleanup
51775 currentMessage = null;
51776 currentMessageTotalLength = 0;
51777 currentMessagePendingLength = 0;
51778 _b.label = 14;
51779 case 14: return [3 /*break*/, 11];
51780 case 15: return [3 /*break*/, 1];
51781 case 16: return [2 /*return*/];
51782 }
51783 });
51784 });
51785 };
51786 return _a = {},
51787 _a[Symbol.asyncIterator] = iterator,
51788 _a;
51789}
51790//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2h1bmtlZFN0cmVhbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nZXRDaHVua2VkU3RyZWFtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxNQUFNLFVBQVUsZ0JBQWdCLENBQUMsTUFBaUM7O0lBQ2hFLElBQUkseUJBQXlCLEdBQUcsQ0FBQyxDQUFDO0lBQ2xDLElBQUksMkJBQTJCLEdBQUcsQ0FBQyxDQUFDO0lBQ3BDLElBQUksY0FBYyxHQUFzQixJQUFJLENBQUM7SUFDN0MsSUFBSSxtQkFBbUIsR0FBc0IsSUFBSSxDQUFDO0lBQ2xELElBQU0sZUFBZSxHQUFHLFVBQUMsSUFBWTtRQUNuQyxJQUFJLE9BQU8sSUFBSSxLQUFLLFFBQVEsRUFBRTtZQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLHNFQUFzRSxHQUFHLElBQUksQ0FBQyxDQUFDO1NBQ2hHO1FBQ0QseUJBQXlCLEdBQUcsSUFBSSxDQUFDO1FBQ2pDLDJCQUEyQixHQUFHLENBQUMsQ0FBQztRQUNoQyxjQUFjLEdBQUcsSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDdEMsSUFBTSxrQkFBa0IsR0FBRyxJQUFJLFFBQVEsQ0FBQyxjQUFjLENBQUMsTUF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/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getUnmarshalledStream.js":
51795/*!***********************************************************************************************************************************************************!*\
51796 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/getUnmarshalledStream.js ***!
51797 \***********************************************************************************************************************************************************/
51798/*! exports provided: getUnmarshalledStream */
51799/***/ (function(module, __webpack_exports__, __webpack_require__) {
51800
51801"use strict";
51802__webpack_require__.r(__webpack_exports__);
51803/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUnmarshalledStream", function() { return getUnmarshalledStream; });
51804/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51805
51806function getUnmarshalledStream(source, options) {
51807 var _a;
51808 return _a = {},
51809 _a[Symbol.asyncIterator] = function () {
51810 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncGenerator"])(this, arguments, function () {
51811 var source_1, source_1_1, chunk, message, messageType, unmodeledError, code, exception, deserializedException, error, event, deserialized, e_1_1;
51812 var _a, _b;
51813 var e_1, _c;
51814 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) {
51815 switch (_d.label) {
51816 case 0:
51817 _d.trys.push([0, 12, 13, 18]);
51818 source_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__asyncValues"])(source);
51819 _d.label = 1;
51820 case 1: return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(source_1.next())];
51821 case 2:
51822 if (!(source_1_1 = _d.sent(), !source_1_1.done)) return [3 /*break*/, 11];
51823 chunk = source_1_1.value;
51824 message = options.eventMarshaller.unmarshall(chunk);
51825 messageType = message.headers[":message-type"].value;
51826 if (!(messageType === "error")) return [3 /*break*/, 3];
51827 unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
51828 unmodeledError.name = message.headers[":error-code"].value;
51829 throw unmodeledError;
51830 case 3:
51831 if (!(messageType === "exception")) return [3 /*break*/, 5];
51832 code = message.headers[":exception-type"].value;
51833 exception = (_a = {}, _a[code] = message, _a);
51834 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(options.deserializer(exception))];
51835 case 4:
51836 deserializedException = _d.sent();
51837 if (deserializedException.$unknown) {
51838 error = new Error(options.toUtf8(message.body));
51839 error.name = code;
51840 throw error;
51841 }
51842 throw deserializedException[code];
51843 case 5:
51844 if (!(messageType === "event")) return [3 /*break*/, 9];
51845 event = (_b = {},
51846 _b[message.headers[":event-type"].value] = message,
51847 _b);
51848 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(options.deserializer(event))];
51849 case 6:
51850 deserialized = _d.sent();
51851 if (deserialized.$unknown)
51852 return [3 /*break*/, 10];
51853 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(deserialized)];
51854 case 7: return [4 /*yield*/, _d.sent()];
51855 case 8:
51856 _d.sent();
51857 return [3 /*break*/, 10];
51858 case 9: throw Error("Unrecognizable event type: " + message.headers[":event-type"].value);
51859 case 10: return [3 /*break*/, 1];
51860 case 11: return [3 /*break*/, 18];
51861 case 12:
51862 e_1_1 = _d.sent();
51863 e_1 = { error: e_1_1 };
51864 return [3 /*break*/, 18];
51865 case 13:
51866 _d.trys.push([13, , 16, 17]);
51867 if (!(source_1_1 && !source_1_1.done && (_c = source_1.return))) return [3 /*break*/, 15];
51868 return [4 /*yield*/, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__await"])(_c.call(source_1))];
51869 case 14:
51870 _d.sent();
51871 _d.label = 15;
51872 case 15: return [3 /*break*/, 17];
51873 case 16:
51874 if (e_1) throw e_1.error;
51875 return [7 /*endfinally*/];
51876 case 17: return [7 /*endfinally*/];
51877 case 18: return [2 /*return*/];
51878 }
51879 });
51880 });
51881 },
51882 _a;
51883}
51884//# source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GVycm9yID0gbmV3IEVycm9yKG9wdGlvbnMudG9VdGY4KG1lc3NhZ2UuYm9keSkpO1xuICAgICAgICAgICAgZXJyb3IubmFtZSA9IGNvZGU7XG4gICAgICAgICAgICB0aHJvdyBlcnJvcjtcbiAgICAgICAgICB9XG4gICAgICAgICAgdGhyb3cgZGVzZXJpYWxpemVkRXhjZXB0aW9uW2NvZGVdO1xuICAgICAgICB9IGVsc2UgaWYgKG1lc3NhZ2VUeXBlID09PSBcImV2ZW50XCIpIHtcbiAgICAgICAgICBjb25zdCBldmVudCA9IHtcbiAgICAgICAgICAgIFttZXNzYWdlLmhlYWRlcnNbXCI6ZXZlbnQtdHlwZVwiXS52YWx1ZSBhcyBzdHJpbmddOiBtZXNzYWdlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgY29uc3QgZGVzZXJpYWxpemVkID0gYXdhaXQgb3B0aW9ucy5kZXNlcmlhbGl6ZXIoZXZlbnQpO1xuICAgICAgICAgIGlmIChkZXNlcmlhbGl6ZWQuJHVua25vd24pIGNvbnRpbnVlO1xuICAgICAgICAgIHlpZWxkIGRlc2VyaWFsaXplZDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aHJvdyBFcnJvcihgVW5yZWNvZ25pemFibGUgZXZlbnQgdHlwZTogJHttZXNzYWdlLmhlYWRlcnNbXCI6ZXZlbnQtdHlwZVwiXS52YWx1ZX1gKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG4gIH07XG59XG4iXX0=
51885
51886/***/ }),
51887
51888/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/index.js":
51889/*!*******************************************************************************************************************************************!*\
51890 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/index.js ***!
51891 \*******************************************************************************************************************************************/
51892/*! exports provided: eventStreamSerdeProvider, EventStreamMarshaller */
51893/***/ (function(module, __webpack_exports__, __webpack_require__) {
51894
51895"use strict";
51896__webpack_require__.r(__webpack_exports__);
51897/* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./provider */ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/provider.js");
51898/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return _provider__WEBPACK_IMPORTED_MODULE_0__["eventStreamSerdeProvider"]; });
51899
51900/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js");
51901/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventStreamMarshaller", function() { return _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_1__["EventStreamMarshaller"]; });
51902
51903
51904
51905//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9FdmVudFN0cmVhbU1hcnNoYWxsZXJcIjtcbiJdfQ==
51906
51907/***/ }),
51908
51909/***/ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/provider.js":
51910/*!**********************************************************************************************************************************************!*\
51911 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/provider.js ***!
51912 \**********************************************************************************************************************************************/
51913/*! exports provided: eventStreamSerdeProvider */
51914/***/ (function(module, __webpack_exports__, __webpack_require__) {
51915
51916"use strict";
51917__webpack_require__.r(__webpack_exports__);
51918/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eventStreamSerdeProvider", function() { return eventStreamSerdeProvider; });
51919/* harmony import */ var _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamMarshaller */ "../../node_modules/@aws-sdk/eventstream-serde-browser/node_modules/@aws-sdk/eventstream-serde-universal/dist/es/EventStreamMarshaller.js");
51920
51921/** NodeJS event stream utils provider */
51922var eventStreamSerdeProvider = function (options) { return new _EventStreamMarshaller__WEBPACK_IMPORTED_MODULE_0__["EventStreamMarshaller"](options); };
51923//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFaEUseUNBQXlDO0FBQ3pDLE1BQU0sQ0FBQyxJQUFNLHdCQUF3QixHQUE2QixVQUFDLE9BSWxFLElBQUssT0FBQSxJQUFJLHFCQUFxQixDQUFDLE9BQU8sQ0FBQyxFQUFsQyxDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGVjb2RlciwgRW5jb2RlciwgRXZlbnRTaWduZXIsIEV2ZW50U3RyZWFtU2VyZGVQcm92aWRlciwgUHJvdmlkZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgRXZlbnRTdHJlYW1NYXJzaGFsbGVyIH0gZnJvbSBcIi4vRXZlbnRTdHJlYW1NYXJzaGFsbGVyXCI7XG5cbi8qKiBOb2RlSlMgZXZlbnQgc3RyZWFtIHV0aWxzIHByb3ZpZGVyICovXG5leHBvcnQgY29uc3QgZXZlbnRTdHJlYW1TZXJkZVByb3ZpZGVyOiBFdmVudFN0cmVhbVNlcmRlUHJvdmlkZXIgPSAob3B0aW9uczoge1xuICB1dGY4RW5jb2RlcjogRW5jb2RlcjtcbiAgdXRmOERlY29kZXI6IERlY29kZXI7XG4gIGV2ZW50U2lnbmVyOiBFdmVudFNpZ25lciB8IFByb3ZpZGVyPEV2ZW50U2lnbmVyPjtcbn0pID0+IG5ldyBFdmVudFN0cmVhbU1hcnNoYWxsZXIob3B0aW9ucyk7XG4iXX0=
51924
51925/***/ }),
51926
51927/***/ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/EventStreamSerdeConfig.js":
51928/*!******************************************************************************************************************!*\
51929 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/EventStreamSerdeConfig.js ***!
51930 \******************************************************************************************************************/
51931/*! exports provided: resolveEventStreamSerdeConfig */
51932/***/ (function(module, __webpack_exports__, __webpack_require__) {
51933
51934"use strict";
51935__webpack_require__.r(__webpack_exports__);
51936/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveEventStreamSerdeConfig", function() { return resolveEventStreamSerdeConfig; });
51937/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51938
51939var resolveEventStreamSerdeConfig = function (input) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { eventStreamMarshaller: input.eventStreamSerdeProvider(input) })); };
51940//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1TZXJkZUNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3Ny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944/***/ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/index.js":
51945/*!*************************************************************************************************!*\
51946 !*** /root/amplify-js/node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/index.js ***!
51947 \*************************************************************************************************/
51948/*! exports provided: resolveEventStreamSerdeConfig */
51949/***/ (function(module, __webpack_exports__, __webpack_require__) {
51950
51951"use strict";
51952__webpack_require__.r(__webpack_exports__);
51953/* harmony import */ var _EventStreamSerdeConfig__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventStreamSerdeConfig */ "../../node_modules/@aws-sdk/eventstream-serde-config-resolver/dist/es/EventStreamSerdeConfig.js");
51954/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveEventStreamSerdeConfig", function() { return _EventStreamSerdeConfig__WEBPACK_IMPORTED_MODULE_0__["resolveEventStreamSerdeConfig"]; });
51955
51956
51957//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtU2VyZGVDb25maWdcIjtcbiJdfQ==
51958
51959/***/ }),
51960
51961/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/fetch-http-handler.js":
51962/*!***********************************************************************************************!*\
51963 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/fetch-http-handler.js ***!
51964 \***********************************************************************************************/
51965/*! exports provided: FetchHttpHandler */
51966/***/ (function(module, __webpack_exports__, __webpack_require__) {
51967
51968"use strict";
51969__webpack_require__.r(__webpack_exports__);
51970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FetchHttpHandler", function() { return FetchHttpHandler; });
51971/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
51972/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
51973/* harmony import */ var _aws_sdk_querystring_builder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/querystring-builder */ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/querystring-builder/dist/es/index.js");
51974/* harmony import */ var _request_timeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./request-timeout */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/request-timeout.js");
51975
51976
51977
51978
51979var FetchHttpHandler = /** @class */ (function () {
51980 function FetchHttpHandler(_a) {
51981 var _b = _a === void 0 ? {} : _a, requestTimeout = _b.requestTimeout;
51982 this.requestTimeout = requestTimeout;
51983 }
51984 FetchHttpHandler.prototype.destroy = function () {
51985 // Do nothing. TLS and HTTP/2 connection pooling is handled by the browser.
51986 };
51987 FetchHttpHandler.prototype.handle = function (request, _a) {
51988 var _b = _a === void 0 ? {} : _a, abortSignal = _b.abortSignal;
51989 var requestTimeoutInMs = this.requestTimeout;
51990 // if the request was already aborted, prevent doing extra work
51991 if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
51992 var abortError = new Error("Request aborted");
51993 abortError.name = "AbortError";
51994 return Promise.reject(abortError);
51995 }
51996 var path = request.path;
51997 if (request.query) {
51998 var queryString = Object(_aws_sdk_querystring_builder__WEBPACK_IMPORTED_MODULE_2__["buildQueryString"])(request.query);
51999 if (queryString) {
52000 path += "?" + queryString;
52001 }
52002 }
52003 var port = request.port, method = request.method;
52004 var url = request.protocol + "//" + request.hostname + (port ? ":" + port : "") + path;
52005 // Request constructor doesn't allow GET/HEAD request with body
52006 // ref: https://github.com/whatwg/fetch/issues/551
52007 var body = method === "GET" || method === "HEAD" ? undefined : request.body;
52008 var requestOptions = {
52009 body: body,
52010 headers: new Headers(request.headers),
52011 method: method,
52012 };
52013 // some browsers support abort signal
52014 if (typeof AbortController !== "undefined") {
52015 requestOptions["signal"] = abortSignal;
52016 }
52017 var fetchRequest = new Request(url, requestOptions);
52018 var raceOfPromises = [
52019 fetch(fetchRequest).then(function (response) {
52020 var e_1, _a;
52021 var fetchHeaders = response.headers;
52022 var transformedHeaders = {};
52023 try {
52024 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(fetchHeaders.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {
52025 var pair = _c.value;
52026 transformedHeaders[pair[0]] = pair[1];
52027 }
52028 }
52029 catch (e_1_1) { e_1 = { error: e_1_1 }; }
52030 finally {
52031 try {
52032 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
52033 }
52034 finally { if (e_1) throw e_1.error; }
52035 }
52036 var hasReadableStream = response.body !== undefined;
52037 // Return the response with buffered body
52038 if (!hasReadableStream) {
52039 return response.blob().then(function (body) { return ({
52040 response: new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpResponse"]({
52041 headers: transformedHeaders,
52042 statusCode: response.status,
52043 body: body,
52044 }),
52045 }); });
52046 }
52047 // Return the response with streaming body
52048 return {
52049 response: new _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpResponse"]({
52050 headers: transformedHeaders,
52051 statusCode: response.status,
52052 body: response.body,
52053 }),
52054 };
52055 }),
52056 Object(_request_timeout__WEBPACK_IMPORTED_MODULE_3__["requestTimeout"])(requestTimeoutInMs),
52057 ];
52058 if (abortSignal) {
52059 raceOfPromises.push(new Promise(function (resolve, reject) {
52060 abortSignal.onabort = function () {
52061 var abortError = new Error("Request aborted");
52062 abortError.name = "AbortError";
52063 reject(abortError);
52064 };
52065 }));
52066 }
52067 return Promise.race(raceOfPromises);
52068 };
52069 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0+ICh7XG4gICAgICAgICAgICByZXNwb25zZTogbmV3IEh0dHBSZXNwb25zZSh7XG4gICAgICAgICAgICAgIGhlYWRlcnM6IHRyYW5zZm9ybWVkSGVhZGVycyxcbiAgICAgICAgICAgICAgc3RhdHVzQ29kZTogcmVzcG9uc2Uuc3RhdHVzLFxuICAgICAgICAgICAgICBib2R5LFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSkpO1xuICAgICAgICB9XG4gICAgICAgIC8vIFJldHVybiB0aGUgcmVzcG9uc2Ugd2l0aCBzdHJlYW1pbmcgYm9keVxuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgIHJlc3BvbnNlOiBuZXcgSHR0cFJlc3BvbnNlKHtcbiAgICAgICAgICAgIGhlYWRlcnM6IHRyYW5zZm9ybWVkSGVhZGVycyxcbiAgICAgICAgICAgIHN0YXR1c0NvZGU6IHJlc3BvbnNlLnN0YXR1cyxcbiAgICAgICAgICAgIGJvZHk6IHJlc3BvbnNlLmJvZHksXG4gICAgICAgICAgfSksXG4gICAgICAgIH07XG4gICAgICB9KSxcbiAgICAgIHJlcXVlc3RUaW1lb3V0KHJlcXVlc3RUaW1lb3V0SW5NcyksXG4gICAgXTtcbiAgICBpZiAoYWJvcnRTaWduYWwpIHtcbiAgICAgIHJhY2VPZlByb21pc2VzLnB1c2goXG4gICAgICAgIG5ldyBQcm9taXNlPG5ldmVyPigocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgYWJvcnRTaWduYWwub25hYm9ydCA9ICgpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGFib3J0RXJyb3IgPSBuZXcgRXJyb3IoXCJSZXF1ZXN0IGFib3J0ZWRcIik7XG4gICAgICAgICAgICBhYm9ydEVycm9yLm5hbWUgPSBcIkFib3J0RXJyb3JcIjtcbiAgICAgICAgICAgIHJlamVjdChhYm9ydEVycm9yKTtcbiAgICAgICAgICB9O1xuICAgICAgICB9KVxuICAgICAgKTtcbiAgICB9XG4gICAgcmV0dXJuIFByb21pc2UucmFjZShyYWNlT2ZQcm9taXNlcyk7XG4gIH1cbn1cbiJdfQ==
52073
52074/***/ }),
52075
52076/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js":
52077/*!**********************************************************************************!*\
52078 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/index.js ***!
52079 \**********************************************************************************/
52080/*! exports provided: FetchHttpHandler, streamCollector */
52081/***/ (function(module, __webpack_exports__, __webpack_require__) {
52082
52083"use strict";
52084__webpack_require__.r(__webpack_exports__);
52085/* harmony import */ var _fetch_http_handler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fetch-http-handler */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/fetch-http-handler.js");
52086/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FetchHttpHandler", function() { return _fetch_http_handler__WEBPACK_IMPORTED_MODULE_0__["FetchHttpHandler"]; });
52087
52088/* harmony import */ var _stream_collector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stream-collector */ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/stream-collector.js");
52089/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "streamCollector", function() { return _stream_collector__WEBPACK_IMPORTED_MODULE_1__["streamCollector"]; });
52090
52091
52092
52093//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZmV0Y2gtaHR0cC1oYW5kbGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zdHJlYW0tY29sbGVjdG9yXCI7XG4iXX0=
52094
52095/***/ }),
52096
52097/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/request-timeout.js":
52098/*!********************************************************************************************!*\
52099 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/request-timeout.js ***!
52100 \********************************************************************************************/
52101/*! exports provided: requestTimeout */
52102/***/ (function(module, __webpack_exports__, __webpack_require__) {
52103
52104"use strict";
52105__webpack_require__.r(__webpack_exports__);
52106/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requestTimeout", function() { return requestTimeout; });
52107function requestTimeout(timeoutInMs) {
52108 if (timeoutInMs === void 0) { timeoutInMs = 0; }
52109 return new Promise(function (resolve, reject) {
52110 if (timeoutInMs) {
52111 setTimeout(function () {
52112 var timeoutError = new Error("Request did not complete within " + timeoutInMs + " ms");
52113 timeoutError.name = "TimeoutError";
52114 reject(timeoutError);
52115 }, timeoutInMs);
52116 }
52117 });
52118}
52119//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC10aW1lb3V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JlcXVlc3QtdGltZW91dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsY0FBYyxDQUFDLFdBQWU7SUFBZiw0QkFBQSxFQUFBLGVBQWU7SUFDNUMsT0FBTyxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQ2pDLElBQUksV0FBVyxFQUFFO1lBQ2YsVUFBVSxDQUFDO2dCQUNULElBQU0sWUFBWSxHQUFHLElBQUksS0FBSyxDQUFDLHFDQUFtQyxXQUFXLFFBQUssQ0FBQyxDQUFDO2dCQUNwRixZQUFZLENBQUMsSUFBSSxHQUFHLGNBQWMsQ0FBQztnQkFDbkMsTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFDO1lBQ3ZCLENBQUMsRUFBRSxXQUFXLENBQUMsQ0FBQztTQUNqQjtJQUNILENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiByZXF1ZXN0VGltZW91dCh0aW1lb3V0SW5NcyA9IDApOiBQcm9taXNlPG5ldmVyPiB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgaWYgKHRpbWVvdXRJbk1zKSB7XG4gICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgY29uc3QgdGltZW91dEVycm9yID0gbmV3IEVycm9yKGBSZXF1ZXN0IGRpZCBub3QgY29tcGxldGUgd2l0aGluICR7dGltZW91dEluTXN9IG1zYCk7XG4gICAgICAgIHRpbWVvdXRFcnJvci5uYW1lID0gXCJUaW1lb3V0RXJyb3JcIjtcbiAgICAgICAgcmVqZWN0KHRpbWVvdXRFcnJvcik7XG4gICAgICB9LCB0aW1lb3V0SW5Ncyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==
52120
52121/***/ }),
52122
52123/***/ "../../node_modules/@aws-sdk/fetch-http-handler/dist/es/stream-collector.js":
52124/*!*********************************************************************************************!*\
52125 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/dist/es/stream-collector.js ***!
52126 \*********************************************************************************************/
52127/*! exports provided: streamCollector */
52128/***/ (function(module, __webpack_exports__, __webpack_require__) {
52129
52130"use strict";
52131__webpack_require__.r(__webpack_exports__);
52132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "streamCollector", function() { return streamCollector; });
52133/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52134/* harmony import */ var _aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-base64-browser */ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js");
52135
52136
52137//reference: https://snack.expo.io/r1JCSWRGU
52138var streamCollector = function (stream) {
52139 if (typeof Blob === "function" && stream instanceof Blob) {
52140 return collectBlob(stream);
52141 }
52142 return collectStream(stream);
52143};
52144function collectBlob(blob) {
52145 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52146 var base64, arrayBuffer;
52147 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52148 switch (_a.label) {
52149 case 0: return [4 /*yield*/, readToBase64(blob)];
52150 case 1:
52151 base64 = _a.sent();
52152 arrayBuffer = Object(_aws_sdk_util_base64_browser__WEBPACK_IMPORTED_MODULE_1__["fromBase64"])(base64);
52153 return [2 /*return*/, new Uint8Array(arrayBuffer)];
52154 }
52155 });
52156 });
52157}
52158function collectStream(stream) {
52159 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52160 var res, reader, isDone, _a, done, value, prior;
52161 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52162 switch (_b.label) {
52163 case 0:
52164 res = new Uint8Array(0);
52165 reader = stream.getReader();
52166 isDone = false;
52167 _b.label = 1;
52168 case 1:
52169 if (!!isDone) return [3 /*break*/, 3];
52170 return [4 /*yield*/, reader.read()];
52171 case 2:
52172 _a = _b.sent(), done = _a.done, value = _a.value;
52173 if (value) {
52174 prior = res;
52175 res = new Uint8Array(prior.length + value.length);
52176 res.set(prior);
52177 res.set(value, prior.length);
52178 }
52179 isDone = done;
52180 return [3 /*break*/, 1];
52181 case 3: return [2 /*return*/, res];
52182 }
52183 });
52184 });
52185}
52186function readToBase64(blob) {
52187 return new Promise(function (resolve, reject) {
52188 var reader = new FileReader();
52189 reader.onloadend = function () {
52190 var _a;
52191 // reference: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
52192 // response from readAsDataURL is always prepended with "data:*/*;base64,"
52193 if (reader.readyState !== 2) {
52194 return reject(new Error("Reader aborted too early"));
52195 }
52196 var result = ((_a = reader.result) !== null && _a !== void 0 ? _a : "");
52197 // Response can include only 'data:' for empty blob, return empty string in this case.
52198 // Otherwise, return the string after ','
52199 var commaIndex = result.indexOf(",");
52200 var dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
52201 resolve(result.substring(dataOffset));
52202 };
52203 reader.onabort = function () { return reject(new Error("Read aborted")); };
52204 reader.onerror = function () { return reject(reader.error); };
52205 // reader.readAsArrayBuffer is not always available
52206 reader.readAsDataURL(blob);
52207 });
52208}
52209//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyZWFtLWNvbGxlY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHJlYW0tY29sbGVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFMUQsNENBQTRDO0FBQzVDLE1BQU0sQ0FBQyxJQUFNLGVBQWUsR0FBb0IsVUFBQyxNQUE2QjtJQUM1RSxJQUFJLE9BQU8sSUFBSSxLQUFLLFVBQVUsSUFBSSxNQUFNLFlBQVksSUFBSSxFQUFFO1FBQ3hELE9BQU8sV0FBVyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0tBQzVCO0lBRUQsT0FBTyxhQUFhLENBQUMsTUFBd0IsQ0FBQyxDQUFDO0FBQ2pELENBQUMsQ0FBQztBQUVGLFNBQWUsV0FBVyxDQUFDLElBQVU7Ozs7O3dCQUNwQixxQkFBTSxZQUFZLENBQUMsSUFBSSxDQUFDLEVBQUE7O29CQUFqQyxNQUFNLEdBQUcsU0FBd0I7b0JBQ2pDLFdBQVcsR0FBRyxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUM7b0JBQ3ZDLHNCQUFPLEl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iAgICAgIGNvbnN0IGNvbW1hSW5kZXggPSByZXN1bHQuaW5kZXhPZihcIixcIik7XG4gICAgICBjb25zdCBkYXRhT2Zmc2V0ID0gY29tbWFJbmRleCA+IC0xID8gY29tbWFJbmRleCArIDEgOiByZXN1bHQubGVuZ3RoO1xuICAgICAgcmVzb2x2ZShyZXN1bHQuc3Vic3RyaW5nKGRhdGFPZmZzZXQpKTtcbiAgICB9O1xuICAgIHJlYWRlci5vbmFib3J0ID0gKCkgPT4gcmVqZWN0KG5ldyBFcnJvcihcIlJlYWQgYWJvcnRlZFwiKSk7XG4gICAgcmVhZGVyLm9uZXJyb3IgPSAoKSA9PiByZWplY3QocmVhZGVyLmVycm9yKTtcbiAgICAvLyByZWFkZXIucmVhZEFzQXJyYXlCdWZmZXIgaXMgbm90IGFsd2F5cyBhdmFpbGFibGVcbiAgICByZWFkZXIucmVhZEFzRGF0YVVSTChibG9iKTtcbiAgfSk7XG59XG4iXX0=
52210
52211/***/ }),
52212
52213/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/querystring-builder/dist/es/index.js":
52214/*!****************************************************************************************************************************!*\
52215 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/querystring-builder/dist/es/index.js ***!
52216 \****************************************************************************************************************************/
52217/*! exports provided: buildQueryString */
52218/***/ (function(module, __webpack_exports__, __webpack_require__) {
52219
52220"use strict";
52221__webpack_require__.r(__webpack_exports__);
52222/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buildQueryString", function() { return buildQueryString; });
52223/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52224/* harmony import */ var _aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-uri-escape */ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js");
52225
52226
52227function buildQueryString(query) {
52228 var e_1, _a;
52229 var parts = [];
52230 try {
52231 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(query).sort()), _c = _b.next(); !_c.done; _c = _b.next()) {
52232 var key = _c.value;
52233 var value = query[key];
52234 key = Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(key);
52235 if (Array.isArray(value)) {
52236 for (var i = 0, iLen = value.length; i < iLen; i++) {
52237 parts.push(key + "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value[i]));
52238 }
52239 }
52240 else {
52241 var qsEntry = key;
52242 if (value || typeof value === "string") {
52243 qsEntry += "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value);
52244 }
52245 parts.push(qsEntry);
52246 }
52247 }
52248 }
52249 catch (e_1_1) { e_1 = { error: e_1_1 }; }
52250 finally {
52251 try {
52252 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
52253 }
52254 finally { if (e_1) throw e_1.error; }
52255 }
52256 return parts.join("&");
52257}
52258//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVyRCxNQUFNLFVBQVUsZ0JBQWdCLENBQUMsS0FBd0I7O0lBQ3ZELElBQU0sS0FBSyxHQUFhLEVBQUUsQ0FBQzs7UUFDM0IsS0FBZ0IsSUFBQSxLQUFBLFNBQUEsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxJQUFJLEVBQUUsQ0FBQSxnQkFBQSw0QkFBRTtZQUF0QyxJQUFJ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cmFtZXRlckJhZyk6IHN0cmluZyB7XG4gIGNvbnN0IHBhcnRzOiBzdHJpbmdbXSA9IFtdO1xuICBmb3IgKGxldCBrZXkgb2YgT2JqZWN0LmtleXMocXVlcnkpLnNvcnQoKSkge1xuICAgIGNvbnN0IHZhbHVlID0gcXVlcnlba2V5XTtcbiAgICBrZXkgPSBlc2NhcGVVcmkoa2V5KTtcbiAgICBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgIGZvciAobGV0IGkgPSAwLCBpTGVuID0gdmFsdWUubGVuZ3RoOyBpIDwgaUxlbjsgaSsrKSB7XG4gICAgICAgIHBhcnRzLnB1c2goYCR7a2V5fT0ke2VzY2FwZVVyaSh2YWx1ZVtpXSl9YCk7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGxldCBxc0VudHJ5ID0ga2V5O1xuICAgICAgaWYgKHZhbHVlIHx8IHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICBxc0VudHJ5ICs9IGA9JHtlc2NhcGVVcmkodmFsdWUpfWA7XG4gICAgICB9XG4gICAgICBwYXJ0cy5wdXNoKHFzRW50cnkpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBwYXJ0cy5qb2luKFwiJlwiKTtcbn1cbiJdfQ==
52259
52260/***/ }),
52261
52262/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js":
52263/*!**********************************************************************************************************************************!*\
52264 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js ***!
52265 \**********************************************************************************************************************************/
52266/*! exports provided: escapeUriPath */
52267/***/ (function(module, __webpack_exports__, __webpack_require__) {
52268
52269"use strict";
52270__webpack_require__.r(__webpack_exports__);
52271/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return escapeUriPath; });
52272/* harmony import */ var _escape_uri__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-uri */ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js");
52273
52274var escapeUriPath = function (uri) { return uri.split("/").map(_escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]).join("/"); };
52275//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS1wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2VzY2FwZS11cmktcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXpDLE1BQU0sQ0FBQyxJQUFNLGFBQWEsR0FBRyxVQUFDLEdBQVcsSUFBYSxPQUFBLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBdkMsQ0FBdUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGVzY2FwZVVyaSB9IGZyb20gXCIuL2VzY2FwZS11cmlcIjtcblxuZXhwb3J0IGNvbnN0IGVzY2FwZVVyaVBhdGggPSAodXJpOiBzdHJpbmcpOiBzdHJpbmcgPT4gdXJpLnNwbGl0KFwiL1wiKS5tYXAoZXNjYXBlVXJpKS5qb2luKFwiL1wiKTtcbiJdfQ==
52276
52277/***/ }),
52278
52279/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js":
52280/*!*****************************************************************************************************************************!*\
52281 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js ***!
52282 \*****************************************************************************************************************************/
52283/*! exports provided: escapeUri */
52284/***/ (function(module, __webpack_exports__, __webpack_require__) {
52285
52286"use strict";
52287__webpack_require__.r(__webpack_exports__);
52288/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return escapeUri; });
52289var escapeUri = function (uri) {
52290 // AWS percent-encodes some extra non-standard characters in a URI
52291 return encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
52292};
52293var hexEncode = function (c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); };
52294//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lc2NhcGUtdXJpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxJQUFNLFNBQVMsR0FBRyxVQUFDLEdBQVc7SUFDbkMsa0VBQWtFO0lBQ2xFLE9BQUEsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQVUsRUFBRSxTQUFTLENBQUM7QUFBdEQsQ0FBc0QsQ0FBQztBQUV6RCxJQUFNLFNBQVMsR0FBRyxVQUFDLENBQVMsSUFBSyxPQUFBLE1BQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsV0FBVyxFQUFJLEVBQWhELENBQWdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgZXNjYXBlVXJpID0gKHVyaTogc3RyaW5nKTogc3RyaW5nID0+XG4gIC8vIEFXUyBwZXJjZW50LWVuY29kZXMgc29tZSBleHRyYSBub24tc3RhbmRhcmQgY2hhcmFjdGVycyBpbiBhIFVSSVxuICBlbmNvZGVVUklDb21wb25lbnQodXJpKS5yZXBsYWNlKC9bIScoKSpdL2csIGhleEVuY29kZSk7XG5cbmNvbnN0IGhleEVuY29kZSA9IChjOiBzdHJpbmcpID0+IGAlJHtjLmNoYXJDb2RlQXQoMCkudG9TdHJpbmcoMTYpLnRvVXBwZXJDYXNlKCl9YDtcbiJdfQ==
52295
52296/***/ }),
52297
52298/***/ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js":
52299/*!************************************************************************************************************************!*\
52300 !*** /root/amplify-js/node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js ***!
52301 \************************************************************************************************************************/
52302/*! exports provided: escapeUri, escapeUriPath */
52303/***/ (function(module, __webpack_exports__, __webpack_require__) {
52304
52305"use strict";
52306__webpack_require__.r(__webpack_exports__);
52307/* harmony import */ var _escape_uri__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-uri */ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js");
52308/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return _escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]; });
52309
52310/* harmony import */ var _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./escape-uri-path */ "../../node_modules/@aws-sdk/fetch-http-handler/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js");
52311/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__["escapeUriPath"]; });
52312
52313
52314
52315//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmktcGF0aFwiO1xuIl19
52316
52317/***/ }),
52318
52319/***/ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/index.js":
52320/*!**********************************************************************************!*\
52321 !*** /root/amplify-js/node_modules/@aws-sdk/invalid-dependency/dist/es/index.js ***!
52322 \**********************************************************************************/
52323/*! exports provided: invalidFunction, invalidProvider */
52324/***/ (function(module, __webpack_exports__, __webpack_require__) {
52325
52326"use strict";
52327__webpack_require__.r(__webpack_exports__);
52328/* harmony import */ var _invalidFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./invalidFunction */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidFunction.js");
52329/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "invalidFunction", function() { return _invalidFunction__WEBPACK_IMPORTED_MODULE_0__["invalidFunction"]; });
52330
52331/* harmony import */ var _invalidProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./invalidProvider */ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidProvider.js");
52332/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "invalidProvider", function() { return _invalidProvider__WEBPACK_IMPORTED_MODULE_1__["invalidProvider"]; });
52333
52334
52335
52336//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vaW52YWxpZEZ1bmN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9pbnZhbGlkUHJvdmlkZXJcIjtcbiJdfQ==
52337
52338/***/ }),
52339
52340/***/ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidFunction.js":
52341/*!********************************************************************************************!*\
52342 !*** /root/amplify-js/node_modules/@aws-sdk/invalid-dependency/dist/es/invalidFunction.js ***!
52343 \********************************************************************************************/
52344/*! exports provided: invalidFunction */
52345/***/ (function(module, __webpack_exports__, __webpack_require__) {
52346
52347"use strict";
52348__webpack_require__.r(__webpack_exports__);
52349/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invalidFunction", function() { return invalidFunction; });
52350var invalidFunction = function (message) { return function () {
52351 throw new Error(message);
52352}; };
52353//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZEZ1bmN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludmFsaWRGdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQUcsVUFBQyxPQUFlLElBQUssT0FBQTtJQUNsRCxNQUFNLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0FBQzNCLENBQUMsRUFGbUQsQ0FFbkQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBpbnZhbGlkRnVuY3Rpb24gPSAobWVzc2FnZTogc3RyaW5nKSA9PiAoKSA9PiB7XG4gIHRocm93IG5ldyBFcnJvcihtZXNzYWdlKTtcbn07XG4iXX0=
52354
52355/***/ }),
52356
52357/***/ "../../node_modules/@aws-sdk/invalid-dependency/dist/es/invalidProvider.js":
52358/*!********************************************************************************************!*\
52359 !*** /root/amplify-js/node_modules/@aws-sdk/invalid-dependency/dist/es/invalidProvider.js ***!
52360 \********************************************************************************************/
52361/*! exports provided: invalidProvider */
52362/***/ (function(module, __webpack_exports__, __webpack_require__) {
52363
52364"use strict";
52365__webpack_require__.r(__webpack_exports__);
52366/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invalidProvider", function() { return invalidProvider; });
52367var invalidProvider = function (message) { return function () { return Promise.reject(message); }; };
52368//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZFByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludmFsaWRQcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLENBQUMsSUFBTSxlQUFlLEdBQXVDLFVBQUMsT0FBZSxJQUFLLE9BQUEsY0FBTSxPQUFBLE9BQU8sQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLEVBQXZCLENBQXVCLEVBQTdCLENBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm92aWRlciB9IGZyb20gXCJAYXdzLXNkay90eXBlc1wiO1xuZXhwb3J0IGNvbnN0IGludmFsaWRQcm92aWRlcjogKG1lc3NhZ2U6IHN0cmluZykgPT4gUHJvdmlkZXI8YW55PiA9IChtZXNzYWdlOiBzdHJpbmcpID0+ICgpID0+IFByb21pc2UucmVqZWN0KG1lc3NhZ2UpO1xuIl19
52369
52370/***/ }),
52371
52372/***/ "../../node_modules/@aws-sdk/middleware-content-length/dist/es/index.js":
52373/*!*****************************************************************************************!*\
52374 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-content-length/dist/es/index.js ***!
52375 \*****************************************************************************************/
52376/*! exports provided: contentLengthMiddleware, contentLengthMiddlewareOptions, getContentLengthPlugin */
52377/***/ (function(module, __webpack_exports__, __webpack_require__) {
52378
52379"use strict";
52380__webpack_require__.r(__webpack_exports__);
52381/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contentLengthMiddleware", function() { return contentLengthMiddleware; });
52382/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contentLengthMiddlewareOptions", function() { return contentLengthMiddlewareOptions; });
52383/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContentLengthPlugin", function() { return getContentLengthPlugin; });
52384/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52385/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
52386
52387
52388var CONTENT_LENGTH_HEADER = "content-length";
52389function contentLengthMiddleware(bodyLengthChecker) {
52390 var _this = this;
52391 return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
52392 var request, body, headers, length;
52393 var _a;
52394 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52395 request = args.request;
52396 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52397 body = request.body, headers = request.headers;
52398 if (body &&
52399 Object.keys(headers)
52400 .map(function (str) { return str.toLowerCase(); })
52401 .indexOf(CONTENT_LENGTH_HEADER) === -1) {
52402 length = bodyLengthChecker(body);
52403 if (length !== undefined) {
52404 request.headers = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request.headers), (_a = {}, _a[CONTENT_LENGTH_HEADER] = String(length), _a));
52405 }
52406 }
52407 }
52408 return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))];
52409 });
52410 }); }; };
52411}
52412var contentLengthMiddlewareOptions = {
52413 step: "build",
52414 tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"],
52415 name: "contentLengthMiddleware",
52416 override: true,
52417};
52418var getContentLengthPlugin = function (options) { return ({
52419 applyToStack: function (clientStack) {
52420 clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
52421 },
52422}); };
52423//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVlyRCxJQUFNLHFCQUFxQixHQUFHLGdCQUFnQixDQUFDO0FBRS9DLE1BQU0sVUFBVSx1QkFBdUIsQ0FBQyxpQkFBdUM7SUFBL0UsaUJBNEJDO0lBM0JDLE9BQU8sVUFBZ0MsSUFBK0IsSUFBZ0MsT0FBQSxVQUNwRyxJQUFnQzs7OztZQUUxQixPQUFPLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQztZQUM3QixJQUFJLFdBQVcsQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEVBQUU7Z0JBQzNCLElBQUksR0FBYyxPQUFPLEtBQXJCLEVBQUUsT0FBTyxHQUFLLE9BQU8sUUFBWixDQUFhO2dCQUNsQyxJQUNFLElBQUk7b0JBQ0osTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7eUJBQ2pCLEdBQUcsQ0FBQyxVQUFDLEdBQUcsSUFBSyxPQUFBLEdBQUcsQ0FBQyxXQUFXLEVBQUUsRUFBakIsQ0FBaUIsQ0FBQzt5QkFDL0IsT0FBTyxDQUFDLHFCQUFxQixDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQ3hDO29CQUNNLE1BQU0sR0FBRyxpQkFBaUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztvQkFDdkMsSUF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1ZXN0LmhlYWRlcnMgPSB7XG4gICAgICAgICAgICAuLi5yZXF1ZXN0LmhlYWRlcnMsXG4gICAgICAgICAgICBbQ09OVEVOVF9MRU5HVEhfSEVBREVSXTogU3RyaW5nKGxlbmd0aCksXG4gICAgICAgICAgfTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBuZXh0KHtcbiAgICAgIC4uLmFyZ3MsXG4gICAgICByZXF1ZXN0LFxuICAgIH0pO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgY29udGVudExlbmd0aE1pZGRsZXdhcmVPcHRpb25zOiBCdWlsZEhhbmRsZXJPcHRpb25zID0ge1xuICBzdGVwOiBcImJ1aWxkXCIsXG4gIHRhZ3M6IFtcIlNFVF9DT05URU5UX0xFTkdUSFwiLCBcIkNPTlRFTlRfTEVOR1RIXCJdLFxuICBuYW1lOiBcImNvbnRlbnRMZW5ndGhNaWRkbGV3YXJlXCIsXG4gIG92ZXJyaWRlOiB0cnVlLFxufTtcblxuZXhwb3J0IGNvbnN0IGdldENvbnRlbnRMZW5ndGhQbHVnaW4gPSAob3B0aW9uczogeyBib2R5TGVuZ3RoQ2hlY2tlcjogQm9keUxlbmd0aENhbGN1bGF0b3IgfSk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoY29udGVudExlbmd0aE1pZGRsZXdhcmUob3B0aW9ucy5ib2R5TGVuZ3RoQ2hlY2tlciksIGNvbnRlbnRMZW5ndGhNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
52424
52425/***/ }),
52426
52427/***/ "../../node_modules/@aws-sdk/middleware-host-header/dist/es/index.js":
52428/*!**************************************************************************************!*\
52429 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-host-header/dist/es/index.js ***!
52430 \**************************************************************************************/
52431/*! exports provided: resolveHostHeaderConfig, hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin */
52432/***/ (function(module, __webpack_exports__, __webpack_require__) {
52433
52434"use strict";
52435__webpack_require__.r(__webpack_exports__);
52436/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveHostHeaderConfig", function() { return resolveHostHeaderConfig; });
52437/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostHeaderMiddleware", function() { return hostHeaderMiddleware; });
52438/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostHeaderMiddlewareOptions", function() { return hostHeaderMiddlewareOptions; });
52439/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHostHeaderPlugin", function() { return getHostHeaderPlugin; });
52440/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52441/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
52442
52443
52444function resolveHostHeaderConfig(input) {
52445 return input;
52446}
52447var hostHeaderMiddleware = function (options) { return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
52448 var request, _a, handlerProtocol;
52449 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52450 if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(args.request))
52451 return [2 /*return*/, next(args)];
52452 request = args.request;
52453 _a = (options.requestHandler.metadata || {}).handlerProtocol, handlerProtocol = _a === void 0 ? "" : _a;
52454 //For H2 request, remove 'host' header and use ':authority' header instead
52455 //reference: https://nodejs.org/dist/latest-v13.x/docs/api/errors.html#ERR_HTTP2_INVALID_CONNECTION_HEADERS
52456 if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
52457 delete request.headers["host"];
52458 request.headers[":authority"] = "";
52459 //non-H2 request and 'host' header is not set, set the 'host' header to request's hostname.
52460 }
52461 else if (!request.headers["host"]) {
52462 request.headers["host"] = request.hostname;
52463 }
52464 return [2 /*return*/, next(args)];
52465 });
52466}); }; }; };
52467var hostHeaderMiddlewareOptions = {
52468 name: "hostHeaderMiddleware",
52469 step: "build",
52470 priority: "low",
52471 tags: ["HOST"],
52472 override: true,
52473};
52474var getHostHeaderPlugin = function (options) { return ({
52475 applyToStack: function (clientStack) {
52476 clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
52477 },
52478}); };
52479//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVVyRCxNQUFNLFVBQVUsdUJBQXVCLENBQ3JDLEtBQXFEO0lBRXJELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQUVELE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLFVBQ2xDLE9BQWlDLElBQ0UsT0FBQSxVQUFDLElBQUksSUFBSyxPQUFBLFVBQU8sSUFBSTs7O1FBQ3hELElBQUksQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7WUFBRSxzQkFBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUM7UUFDckQsT0FBTyxHQUFLLElBQUksUUFBVCxDQUFVO1FBQ2pCLEtBQXlCLENBQUEsT0FBTyxDQUFDLGNBQWMsQ0FBQyxRQUFRLElBQUksRUFBRSxDQUFBLGdCQUExQyxFQUFwQixlQUFlLG1CQUFHLEVBQUUsS0FBQSxDQUEyQztR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GVhZGVyTWlkZGxld2FyZVwiLFxuICBzdGVwOiBcImJ1aWxkXCIsXG4gIHByaW9yaXR5OiBcImxvd1wiLFxuICB0YWdzOiBbXCJIT1NUXCJdLFxuICBvdmVycmlkZTogdHJ1ZSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRIb3N0SGVhZGVyUGx1Z2luID0gKG9wdGlvbnM6IEhvc3RIZWFkZXJSZXNvbHZlZENvbmZpZyk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQoaG9zdEhlYWRlck1pZGRsZXdhcmUob3B0aW9ucyksIGhvc3RIZWFkZXJNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
52480
52481/***/ }),
52482
52483/***/ "../../node_modules/@aws-sdk/middleware-logger/dist/es/index.js":
52484/*!*********************************************************************************!*\
52485 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-logger/dist/es/index.js ***!
52486 \*********************************************************************************/
52487/*! exports provided: loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin */
52488/***/ (function(module, __webpack_exports__, __webpack_require__) {
52489
52490"use strict";
52491__webpack_require__.r(__webpack_exports__);
52492/* harmony import */ var _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loggerMiddleware */ "../../node_modules/@aws-sdk/middleware-logger/dist/es/loggerMiddleware.js");
52493/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loggerMiddleware", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__["loggerMiddleware"]; });
52494
52495/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "loggerMiddlewareOptions", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__["loggerMiddlewareOptions"]; });
52496
52497/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLoggerPlugin", function() { return _loggerMiddleware__WEBPACK_IMPORTED_MODULE_0__["getLoggerPlugin"]; });
52498
52499
52500//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2xvZ2dlck1pZGRsZXdhcmVcIjtcbiJdfQ==
52501
52502/***/ }),
52503
52504/***/ "../../node_modules/@aws-sdk/middleware-logger/dist/es/loggerMiddleware.js":
52505/*!********************************************************************************************!*\
52506 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-logger/dist/es/loggerMiddleware.js ***!
52507 \********************************************************************************************/
52508/*! exports provided: loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin */
52509/***/ (function(module, __webpack_exports__, __webpack_require__) {
52510
52511"use strict";
52512__webpack_require__.r(__webpack_exports__);
52513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loggerMiddleware", function() { return loggerMiddleware; });
52514/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loggerMiddlewareOptions", function() { return loggerMiddlewareOptions; });
52515/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLoggerPlugin", function() { return getLoggerPlugin; });
52516/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52517
52518var loggerMiddleware = function () { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
52519 var clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog, response, _a, $metadata, outputWithoutMetadata;
52520 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52521 switch (_b.label) {
52522 case 0:
52523 clientName = context.clientName, commandName = context.commandName, inputFilterSensitiveLog = context.inputFilterSensitiveLog, logger = context.logger, outputFilterSensitiveLog = context.outputFilterSensitiveLog;
52524 return [4 /*yield*/, next(args)];
52525 case 1:
52526 response = _b.sent();
52527 if (!logger) {
52528 return [2 /*return*/, response];
52529 }
52530 if (typeof logger.info === "function") {
52531 _a = response.output, $metadata = _a.$metadata, outputWithoutMetadata = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["$metadata"]);
52532 logger.info({
52533 clientName: clientName,
52534 commandName: commandName,
52535 input: inputFilterSensitiveLog(args.input),
52536 output: outputFilterSensitiveLog(outputWithoutMetadata),
52537 metadata: $metadata,
52538 });
52539 }
52540 return [2 /*return*/, response];
52541 }
52542 });
52543}); }; }; };
52544var loggerMiddlewareOptions = {
52545 name: "loggerMiddleware",
52546 tags: ["LOGGER"],
52547 step: "initialize",
52548 override: true,
52549};
52550// eslint-disable-next-line @typescript-eslint/no-unused-vars
52551var getLoggerPlugin = function (options) { return ({
52552 applyToStack: function (clientStack) {
52553 clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
52554 },
52555}); };
52556//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dnZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFZQSxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyxjQUFNLE9BQUEsVUFDcEMsSUFBb0MsRUFDcEMsT0FBZ0MsSUFDRyxPQUFBLFVBQ25DLElBQXFDOzs7OztnQkFFN0IsVUFBVSxHQUE2RSxPQUFPLFdBQXBGLEVBQUUsV0FBVyxHQUFnRSxPQUFPLFlBQXZFLEVBQUUsdUJBQXVCLEdBQ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PiA9PiAoe1xuICBhcHBseVRvU3RhY2s6IChjbGllbnRTdGFjaykgPT4ge1xuICAgIGNsaWVudFN0YWNrLmFkZChsb2dnZXJNaWRkbGV3YXJlKCksIGxvZ2dlck1pZGRsZXdhcmVPcHRpb25zKTtcbiAgfSxcbn0pO1xuIl19
52557
52558/***/ }),
52559
52560/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js":
52561/*!*****************************************************************************************!*\
52562 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js ***!
52563 \*****************************************************************************************/
52564/*! exports provided: ENV_MAX_ATTEMPTS, CONFIG_MAX_ATTEMPTS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, ENV_RETRY_MODE, CONFIG_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS */
52565/***/ (function(module, __webpack_exports__, __webpack_require__) {
52566
52567"use strict";
52568__webpack_require__.r(__webpack_exports__);
52569/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENV_MAX_ATTEMPTS", function() { return ENV_MAX_ATTEMPTS; });
52570/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFIG_MAX_ATTEMPTS", function() { return CONFIG_MAX_ATTEMPTS; });
52571/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_MAX_ATTEMPT_CONFIG_OPTIONS", function() { return NODE_MAX_ATTEMPT_CONFIG_OPTIONS; });
52572/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveRetryConfig", function() { return resolveRetryConfig; });
52573/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENV_RETRY_MODE", function() { return ENV_RETRY_MODE; });
52574/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CONFIG_RETRY_MODE", function() { return CONFIG_RETRY_MODE; });
52575/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NODE_RETRY_MODE_CONFIG_OPTIONS", function() { return NODE_RETRY_MODE_CONFIG_OPTIONS; });
52576/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52577/* harmony import */ var _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultStrategy */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js");
52578
52579
52580var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
52581var CONFIG_MAX_ATTEMPTS = "max_attempts";
52582var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
52583 environmentVariableSelector: function (env) {
52584 var value = env[ENV_MAX_ATTEMPTS];
52585 if (!value)
52586 return undefined;
52587 var maxAttempt = parseInt(value);
52588 if (Number.isNaN(maxAttempt)) {
52589 throw new Error("Environment variable " + ENV_MAX_ATTEMPTS + " mast be a number, got \"" + value + "\"");
52590 }
52591 return maxAttempt;
52592 },
52593 configFileSelector: function (profile) {
52594 var value = profile[CONFIG_MAX_ATTEMPTS];
52595 if (!value)
52596 return undefined;
52597 var maxAttempt = parseInt(value);
52598 if (Number.isNaN(maxAttempt)) {
52599 throw new Error("Shared config file entry " + CONFIG_MAX_ATTEMPTS + " mast be a number, got \"" + value + "\"");
52600 }
52601 return maxAttempt;
52602 },
52603 default: _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"],
52604};
52605var resolveRetryConfig = function (input) {
52606 var maxAttempts = normalizeMaxAttempts(input.maxAttempts);
52607 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { maxAttempts: maxAttempts, retryStrategy: input.retryStrategy || new _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["StandardRetryStrategy"](maxAttempts) });
52608};
52609var normalizeMaxAttempts = function (maxAttempts) {
52610 if (maxAttempts === void 0) { maxAttempts = _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_MAX_ATTEMPTS"]; }
52611 if (typeof maxAttempts === "number") {
52612 var promisified_1 = Promise.resolve(maxAttempts);
52613 return function () { return promisified_1; };
52614 }
52615 return maxAttempts;
52616};
52617var ENV_RETRY_MODE = "AWS_RETRY_MODE";
52618var CONFIG_RETRY_MODE = "retry_mode";
52619var NODE_RETRY_MODE_CONFIG_OPTIONS = {
52620 environmentVariableSelector: function (env) { return env[ENV_RETRY_MODE]; },
52621 configFileSelector: function (profile) { return profile[CONFIG_RETRY_MODE]; },
52622 default: _defaultStrategy__WEBPACK_IMPORTED_MODULE_1__["DEFAULT_RETRY_MODE"],
52623};
52624//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxrQkFBa0IsRUFBRSxxQkFBcUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRXBHLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLGtCQUFrQixDQUFDO0FBQ25ELE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLGNBQWMsQ0FBQztBQUVsRCxNQUFNLENBQUMsSUFBTSwrQkFBK0IsR0FBa0M7SUFDNUUsMkJBQTJCLEVBQUUsVUFBQyxHQUFHO1FBQy9CLElBQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ3BDLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxTQUFTLENBQUM7UUFDN0IsSUFBTSxVQUFVLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25DLElBQUksTUFBTSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMs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blxuY29uc3Qgbm9ybWFsaXplTWF4QXR0ZW1wdHMgPSAobWF4QXR0ZW1wdHM6IG51bWJlciB8IFByb3ZpZGVyPG51bWJlcj4gPSBERUZBVUxUX01BWF9BVFRFTVBUUyk6IFByb3ZpZGVyPG51bWJlcj4gPT4ge1xuICBpZiAodHlwZW9mIG1heEF0dGVtcHRzID09PSBcIm51bWJlclwiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUobWF4QXR0ZW1wdHMpO1xuICAgIHJldHVybiAoKSA9PiBwcm9taXNpZmllZDtcbiAgfVxuICByZXR1cm4gbWF4QXR0ZW1wdHM7XG59O1xuXG5leHBvcnQgY29uc3QgRU5WX1JFVFJZX01PREUgPSBcIkFXU19SRVRSWV9NT0RFXCI7XG5leHBvcnQgY29uc3QgQ09ORklHX1JFVFJZX01PREUgPSBcInJldHJ5X21vZGVcIjtcblxuZXhwb3J0IGNvbnN0IE5PREVfUkVUUllfTU9ERV9DT05GSUdfT1BUSU9OUzogTG9hZGVkQ29uZmlnU2VsZWN0b3JzPHN0cmluZz4gPSB7XG4gIGVudmlyb25tZW50VmFyaWFibGVTZWxlY3RvcjogKGVudikgPT4gZW52W0VOVl9SRVRSWV9NT0RFXSxcbiAgY29uZmlnRmlsZVNlbGVjdG9yOiAocHJvZmlsZSkgPT4gcHJvZmlsZVtDT05GSUdfUkVUUllfTU9ERV0sXG4gIGRlZmF1bHQ6IERFRkFVTFRfUkVUUllfTU9ERSxcbn07XG4iXX0=
52625
52626/***/ }),
52627
52628/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js":
52629/*!************************************************************************************!*\
52630 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/constants.js ***!
52631 \************************************************************************************/
52632/*! exports provided: DEFAULT_RETRY_DELAY_BASE, MAXIMUM_RETRY_DELAY, THROTTLING_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, RETRY_COST, TIMEOUT_RETRY_COST, NO_RETRY_INCREMENT, INVOCATION_ID_HEADER, REQUEST_HEADER */
52633/***/ (function(module, __webpack_exports__, __webpack_require__) {
52634
52635"use strict";
52636__webpack_require__.r(__webpack_exports__);
52637/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_DELAY_BASE", function() { return DEFAULT_RETRY_DELAY_BASE; });
52638/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAXIMUM_RETRY_DELAY", function() { return MAXIMUM_RETRY_DELAY; });
52639/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THROTTLING_RETRY_DELAY_BASE", function() { return THROTTLING_RETRY_DELAY_BASE; });
52640/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INITIAL_RETRY_TOKENS", function() { return INITIAL_RETRY_TOKENS; });
52641/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RETRY_COST", function() { return RETRY_COST; });
52642/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TIMEOUT_RETRY_COST", function() { return TIMEOUT_RETRY_COST; });
52643/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_RETRY_INCREMENT", function() { return NO_RETRY_INCREMENT; });
52644/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INVOCATION_ID_HEADER", function() { return INVOCATION_ID_HEADER; });
52645/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "REQUEST_HEADER", function() { return REQUEST_HEADER; });
52646/**
52647 * The base number of milliseconds to use in calculating a suitable cool-down
52648 * time when a retryable error is encountered.
52649 */
52650var DEFAULT_RETRY_DELAY_BASE = 100;
52651/**
52652 * The maximum amount of time (in milliseconds) that will be used as a delay
52653 * between retry attempts.
52654 */
52655var MAXIMUM_RETRY_DELAY = 20 * 1000;
52656/**
52657 * The retry delay base (in milliseconds) to use when a throttling error is
52658 * encountered.
52659 */
52660var THROTTLING_RETRY_DELAY_BASE = 500;
52661/**
52662 * Initial number of retry tokens in Retry Quota
52663 */
52664var INITIAL_RETRY_TOKENS = 500;
52665/**
52666 * The total amount of retry tokens to be decremented from retry token balance.
52667 */
52668var RETRY_COST = 5;
52669/**
52670 * The total amount of retry tokens to be decremented from retry token balance
52671 * when a throttling error is encountered.
52672 */
52673var TIMEOUT_RETRY_COST = 10;
52674/**
52675 * The total amount of retry token to be incremented from retry token balance
52676 * if an SDK operation invocation succeeds without requiring a retry request.
52677 */
52678var NO_RETRY_INCREMENT = 1;
52679/**
52680 * Header name for SDK invocation ID
52681 */
52682var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
52683/**
52684 * Header name for request retry information.
52685 */
52686var REQUEST_HEADER = "amz-sdk-request";
52687//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSx3QkFBd0IsR0FBRyxHQUFHLENBQUM7QUFFNUM7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsRUFBRSxHQUFHLElBQUksQ0FBQztBQUU3Qzs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSwyQkFBMkIsR0FBRyxHQUFHLENBQUM7QUFFL0M7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxHQUFHLENBQUM7QUFFeEM7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxVQUFVLEdBQUcsQ0FBQyxDQUFDO0FBRTVCOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxJQUFNLGtCQUFrQixHQUFHLEVBQUUsQ0FBQztBQUVyQzs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxrQkFBa0IsR0FBRyxDQUFDLENBQUM7QUFFcE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b2tlbiBiYWxhbmNlLlxuICovXG5leHBvcnQgY29uc3QgUkVUUllfQ09TVCA9IDU7XG5cbi8qKlxuICogVGhlIHRvdGFsIGFtb3VudCBvZiByZXRyeSB0b2tlbnMgdG8gYmUgZGVjcmVtZW50ZWQgZnJvbSByZXRyeSB0b2tlbiBiYWxhbmNlXG4gKiB3aGVuIGEgdGhyb3R0bGluZyBlcnJvciBpcyBlbmNvdW50ZXJlZC5cbiAqL1xuZXhwb3J0IGNvbnN0IFRJTUVPVVRfUkVUUllfQ09TVCA9IDEwO1xuXG4vKipcbiAqIFRoZSB0b3RhbCBhbW91bnQgb2YgcmV0cnkgdG9rZW4gdG8gYmUgaW5jcmVtZW50ZWQgZnJvbSByZXRyeSB0b2tlbiBiYWxhbmNlXG4gKiBpZiBhbiBTREsgb3BlcmF0aW9uIGludm9jYXRpb24gc3VjY2VlZHMgd2l0aG91dCByZXF1aXJpbmcgYSByZXRyeSByZXF1ZXN0LlxuICovXG5leHBvcnQgY29uc3QgTk9fUkVUUllfSU5DUkVNRU5UID0gMTtcblxuLyoqXG4gKiBIZWFkZXIgbmFtZSBmb3IgU0RLIGludm9jYXRpb24gSURcbiAqL1xuZXhwb3J0IGNvbnN0IElOVk9DQVRJT05fSURfSEVBREVSID0gXCJhbXotc2RrLWludm9jYXRpb24taWRcIjtcblxuLyoqXG4gKiBIZWFkZXIgbmFtZSBmb3IgcmVxdWVzdCByZXRyeSBpbmZvcm1hdGlvbi5cbiAqL1xuZXhwb3J0IGNvbnN0IFJFUVVFU1RfSEVBREVSID0gXCJhbXotc2RrLXJlcXVlc3RcIjtcbiJdfQ==
52688
52689/***/ }),
52690
52691/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js":
52692/*!********************************************************************************************!*\
52693 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js ***!
52694 \********************************************************************************************/
52695/*! exports provided: getDefaultRetryQuota */
52696/***/ (function(module, __webpack_exports__, __webpack_require__) {
52697
52698"use strict";
52699__webpack_require__.r(__webpack_exports__);
52700/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultRetryQuota", function() { return getDefaultRetryQuota; });
52701/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52702
52703var getDefaultRetryQuota = function (initialRetryTokens) {
52704 var MAX_CAPACITY = initialRetryTokens;
52705 var availableCapacity = initialRetryTokens;
52706 var getCapacityAmount = function (error) { return (error.name === "TimeoutError" ? _constants__WEBPACK_IMPORTED_MODULE_0__["TIMEOUT_RETRY_COST"] : _constants__WEBPACK_IMPORTED_MODULE_0__["RETRY_COST"]); };
52707 var hasRetryTokens = function (error) { return getCapacityAmount(error) <= availableCapacity; };
52708 var retrieveRetryTokens = function (error) {
52709 if (!hasRetryTokens(error)) {
52710 // retryStrategy should stop retrying, and return last error
52711 throw new Error("No retry token available");
52712 }
52713 var capacityAmount = getCapacityAmount(error);
52714 availableCapacity -= capacityAmount;
52715 return capacityAmount;
52716 };
52717 var releaseRetryTokens = function (capacityReleaseAmount) {
52718 availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : _constants__WEBPACK_IMPORTED_MODULE_0__["NO_RETRY_INCREMENT"];
52719 availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);
52720 };
52721 return Object.freeze({
52722 hasRetryTokens: hasRetryTokens,
52723 retrieveRetryTokens: retrieveRetryTokens,
52724 releaseRetryTokens: releaseRetryTokens,
52725 });
52726};
52727//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFJldHJ5UXVvdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVmYXVsdFJldHJ5UXVvdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT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ikgPT4ge1xuICAgIGlmICghaGFzUmV0cnlUb2tlbnMoZXJyb3IpKSB7XG4gICAgICAvLyByZXRyeVN0cmF0ZWd5IHNob3VsZCBzdG9wIHJldHJ5aW5nLCBhbmQgcmV0dXJuIGxhc3QgZXJyb3JcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIk5vIHJldHJ5IHRva2VuIGF2YWlsYWJsZVwiKTtcbiAgICB9XG4gICAgY29uc3QgY2FwYWNpdHlBbW91bnQgPSBnZXRDYXBhY2l0eUFtb3VudChlcnJvcik7XG4gICAgYXZhaWxhYmxlQ2FwYWNpdHkgLT0gY2FwYWNpdHlBbW91bnQ7XG4gICAgcmV0dXJuIGNhcGFjaXR5QW1vdW50O1xuICB9O1xuXG4gIGNvbnN0IHJlbGVhc2VSZXRyeVRva2VucyA9IChjYXBhY2l0eVJlbGVhc2VBbW91bnQ/OiBudW1iZXIpID0+IHtcbiAgICBhdmFpbGFibGVDYXBhY2l0eSArPSBjYXBhY2l0eVJlbGVhc2VBbW91bnQgPz8gTk9fUkVUUllfSU5DUkVNRU5UO1xuICAgIGF2YWlsYWJsZUNhcGFjaXR5ID0gTWF0aC5taW4oYXZhaWxhYmxlQ2FwYWNpdHksIE1BWF9DQVBBQ0lUWSk7XG4gIH07XG5cbiAgcmV0dXJuIE9iamVjdC5mcmVlemUoe1xuICAgIGhhc1JldHJ5VG9rZW5zLFxuICAgIHJldHJpZXZlUmV0cnlUb2tlbnMsXG4gICAgcmVsZWFzZVJldHJ5VG9rZW5zLFxuICB9KTtcbn07XG4iXX0=
52728
52729/***/ }),
52730
52731/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js":
52732/*!******************************************************************************************!*\
52733 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js ***!
52734 \******************************************************************************************/
52735/*! exports provided: DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, StandardRetryStrategy */
52736/***/ (function(module, __webpack_exports__, __webpack_require__) {
52737
52738"use strict";
52739__webpack_require__.r(__webpack_exports__);
52740/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MAX_ATTEMPTS", function() { return DEFAULT_MAX_ATTEMPTS; });
52741/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_MODE", function() { return DEFAULT_RETRY_MODE; });
52742/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandardRetryStrategy", function() { return StandardRetryStrategy; });
52743/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52744/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
52745/* harmony import */ var _aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/service-error-classification */ "../../node_modules/@aws-sdk/service-error-classification/dist/es/index.js");
52746/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
52747/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
52748/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52749/* harmony import */ var _defaultRetryQuota__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./defaultRetryQuota */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultRetryQuota.js");
52750/* harmony import */ var _delayDecider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./delayDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js");
52751/* harmony import */ var _retryDecider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./retryDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js");
52752
52753
52754
52755
52756
52757
52758
52759
52760/**
52761 * The default value for how many HTTP requests an SDK should make for a
52762 * single SDK operation invocation before giving up
52763 */
52764var DEFAULT_MAX_ATTEMPTS = 3;
52765/**
52766 * The default retry algorithm to use.
52767 */
52768var DEFAULT_RETRY_MODE = "standard";
52769var StandardRetryStrategy = /** @class */ (function () {
52770 function StandardRetryStrategy(maxAttemptsProvider, options) {
52771 var _a, _b, _c;
52772 this.maxAttemptsProvider = maxAttemptsProvider;
52773 this.mode = DEFAULT_RETRY_MODE;
52774 this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : _retryDecider__WEBPACK_IMPORTED_MODULE_7__["defaultRetryDecider"];
52775 this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : _delayDecider__WEBPACK_IMPORTED_MODULE_6__["defaultDelayDecider"];
52776 this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : Object(_defaultRetryQuota__WEBPACK_IMPORTED_MODULE_5__["getDefaultRetryQuota"])(_constants__WEBPACK_IMPORTED_MODULE_4__["INITIAL_RETRY_TOKENS"]);
52777 }
52778 StandardRetryStrategy.prototype.shouldRetry = function (error, attempts, maxAttempts) {
52779 return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
52780 };
52781 StandardRetryStrategy.prototype.getMaxAttempts = function () {
52782 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52783 var maxAttempts, error_1;
52784 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52785 switch (_a.label) {
52786 case 0:
52787 _a.trys.push([0, 2, , 3]);
52788 return [4 /*yield*/, this.maxAttemptsProvider()];
52789 case 1:
52790 maxAttempts = _a.sent();
52791 return [3 /*break*/, 3];
52792 case 2:
52793 error_1 = _a.sent();
52794 maxAttempts = DEFAULT_MAX_ATTEMPTS;
52795 return [3 /*break*/, 3];
52796 case 3: return [2 /*return*/, maxAttempts];
52797 }
52798 });
52799 });
52800 };
52801 StandardRetryStrategy.prototype.retry = function (next, args) {
52802 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
52803 var retryTokenAmount, attempts, totalDelay, maxAttempts, request, _loop_1, this_1, state_1;
52804 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52805 switch (_a.label) {
52806 case 0:
52807 attempts = 0;
52808 totalDelay = 0;
52809 return [4 /*yield*/, this.getMaxAttempts()];
52810 case 1:
52811 maxAttempts = _a.sent();
52812 request = args.request;
52813 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52814 request.headers[_constants__WEBPACK_IMPORTED_MODULE_4__["INVOCATION_ID_HEADER"]] = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v4"])();
52815 }
52816 _loop_1 = function () {
52817 var _a, response, output, err_1, delay_1;
52818 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
52819 switch (_b.label) {
52820 case 0:
52821 _b.trys.push([0, 2, , 5]);
52822 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52823 request.headers[_constants__WEBPACK_IMPORTED_MODULE_4__["REQUEST_HEADER"]] = "attempt=" + (attempts + 1) + "; max=" + maxAttempts;
52824 }
52825 return [4 /*yield*/, next(args)];
52826 case 1:
52827 _a = _b.sent(), response = _a.response, output = _a.output;
52828 this_1.retryQuota.releaseRetryTokens(retryTokenAmount);
52829 output.$metadata.attempts = attempts + 1;
52830 output.$metadata.totalRetryDelay = totalDelay;
52831 return [2 /*return*/, { value: { response: response, output: output } }];
52832 case 2:
52833 err_1 = _b.sent();
52834 attempts++;
52835 if (!this_1.shouldRetry(err_1, attempts, maxAttempts)) return [3 /*break*/, 4];
52836 retryTokenAmount = this_1.retryQuota.retrieveRetryTokens(err_1);
52837 delay_1 = this_1.delayDecider(Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_2__["isThrottlingError"])(err_1) ? _constants__WEBPACK_IMPORTED_MODULE_4__["THROTTLING_RETRY_DELAY_BASE"] : _constants__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_RETRY_DELAY_BASE"], attempts);
52838 totalDelay += delay_1;
52839 return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, delay_1); })];
52840 case 3:
52841 _b.sent();
52842 return [2 /*return*/, "continue"];
52843 case 4:
52844 if (!err_1.$metadata) {
52845 err_1.$metadata = {};
52846 }
52847 err_1.$metadata.attempts = attempts;
52848 err_1.$metadata.totalRetryDelay = totalDelay;
52849 throw err_1;
52850 case 5: return [2 /*return*/];
52851 }
52852 });
52853 };
52854 this_1 = this;
52855 _a.label = 2;
52856 case 2:
52857 if (false) {}
52858 return [5 /*yield**/, _loop_1()];
52859 case 3:
52860 state_1 = _a.sent();
52861 if (typeof state_1 === "object")
52862 return [2 /*return*/, state_1.value];
52863 return [3 /*break*/, 2];
52864 case 4: return [2 /*return*/];
52865 }
52866 });
52867 });
52868 };
52869 return StandardRetryStrategy;
52870}());
52871
52872//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdFN0cmF0ZWd5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlZmF1bHRTdHJhdGVneS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVDQUF1QyxDQU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ICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghZXJyLiRtZXRhZGF0YSkge1xuICAgICAgICAgIGVyci4kbWV0YWRhdGEgPSB7fTtcbiAgICAgICAgfVxuXG4gICAgICAgIGVyci4kbWV0YWRhdGEuYXR0ZW1wdHMgPSBhdHRlbXB0cztcbiAgICAgICAgZXJyLiRtZXRhZGF0YS50b3RhbFJldHJ5RGVsYXkgPSB0b3RhbERlbGF5O1xuICAgICAgICB0aHJvdyBlcnI7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=
52873
52874/***/ }),
52875
52876/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js":
52877/*!***************************************************************************************!*\
52878 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js ***!
52879 \***************************************************************************************/
52880/*! exports provided: defaultDelayDecider */
52881/***/ (function(module, __webpack_exports__, __webpack_require__) {
52882
52883"use strict";
52884__webpack_require__.r(__webpack_exports__);
52885/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultDelayDecider", function() { return defaultDelayDecider; });
52886/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52887
52888/**
52889 * Calculate a capped, fully-jittered exponential backoff time.
52890 */
52891var defaultDelayDecider = function (delayBase, attempts) {
52892 return Math.floor(Math.min(_constants__WEBPACK_IMPORTED_MODULE_0__["MAXIMUM_RETRY_DELAY"], Math.random() * Math.pow(2, attempts) * delayBase));
52893};
52894//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsYXlEZWNpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlbGF5RGVjaWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFbEQ7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxtQkFBbUIsR0FBRyxVQUFDLFNBQWlCLEVBQUUsUUFBZ0I7SUFDckUsT0FBQSxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsbUJBQW1CLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLFNBQUEsQ0FBQyxFQUFJLFFBQVEsQ0FBQSxHQUFHLFNBQVMsQ0FBQyxDQUFDO0FBQXBGLENBQW9GLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBNQVhJTVVNX1JFVFJZX0RFTEFZIH0gZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5cbi8qKlxuICogQ2FsY3VsYXRlIGEgY2FwcGVkLCBmdWxseS1qaXR0ZXJlZCBleHBvbmVudGlhbCBiYWNrb2ZmIHRpbWUuXG4gKi9cbmV4cG9ydCBjb25zdCBkZWZhdWx0RGVsYXlEZWNpZGVyID0gKGRlbGF5QmFzZTogbnVtYmVyLCBhdHRlbXB0czogbnVtYmVyKSA9PlxuICBNYXRoLmZsb29yKE1hdGgubWluKE1BWElNVU1fUkVUUllfREVMQVksIE1hdGgucmFuZG9tKCkgKiAyICoqIGF0dGVtcHRzICogZGVsYXlCYXNlKSk7XG4iXX0=
52895
52896/***/ }),
52897
52898/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/index.js":
52899/*!********************************************************************************!*\
52900 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/index.js ***!
52901 \********************************************************************************/
52902/*! exports provided: retryMiddleware, retryMiddlewareOptions, getRetryPlugin, omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions, getOmitRetryHeadersPlugin, DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, StandardRetryStrategy, ENV_MAX_ATTEMPTS, CONFIG_MAX_ATTEMPTS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, ENV_RETRY_MODE, CONFIG_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, defaultDelayDecider, defaultRetryDecider */
52903/***/ (function(module, __webpack_exports__, __webpack_require__) {
52904
52905"use strict";
52906__webpack_require__.r(__webpack_exports__);
52907/* harmony import */ var _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./retryMiddleware */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryMiddleware.js");
52908/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryMiddleware", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["retryMiddleware"]; });
52909
52910/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryMiddlewareOptions", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["retryMiddlewareOptions"]; });
52911
52912/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getRetryPlugin", function() { return _retryMiddleware__WEBPACK_IMPORTED_MODULE_0__["getRetryPlugin"]; });
52913
52914/* harmony import */ var _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./omitRetryHeadersMiddleware */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/omitRetryHeadersMiddleware.js");
52915/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddleware", function() { return _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__["omitRetryHeadersMiddleware"]; });
52916
52917/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddlewareOptions", function() { return _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__["omitRetryHeadersMiddlewareOptions"]; });
52918
52919/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getOmitRetryHeadersPlugin", function() { return _omitRetryHeadersMiddleware__WEBPACK_IMPORTED_MODULE_1__["getOmitRetryHeadersPlugin"]; });
52920
52921/* harmony import */ var _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./defaultStrategy */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/defaultStrategy.js");
52922/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MAX_ATTEMPTS", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_MAX_ATTEMPTS"]; });
52923
52924/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RETRY_MODE", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_RETRY_MODE"]; });
52925
52926/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StandardRetryStrategy", function() { return _defaultStrategy__WEBPACK_IMPORTED_MODULE_2__["StandardRetryStrategy"]; });
52927
52928/* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configurations */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/configurations.js");
52929/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ENV_MAX_ATTEMPTS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["ENV_MAX_ATTEMPTS"]; });
52930
52931/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONFIG_MAX_ATTEMPTS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["CONFIG_MAX_ATTEMPTS"]; });
52932
52933/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_MAX_ATTEMPT_CONFIG_OPTIONS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["NODE_MAX_ATTEMPT_CONFIG_OPTIONS"]; });
52934
52935/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveRetryConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["resolveRetryConfig"]; });
52936
52937/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ENV_RETRY_MODE", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["ENV_RETRY_MODE"]; });
52938
52939/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CONFIG_RETRY_MODE", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["CONFIG_RETRY_MODE"]; });
52940
52941/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NODE_RETRY_MODE_CONFIG_OPTIONS", function() { return _configurations__WEBPACK_IMPORTED_MODULE_3__["NODE_RETRY_MODE_CONFIG_OPTIONS"]; });
52942
52943/* harmony import */ var _delayDecider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./delayDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/delayDecider.js");
52944/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultDelayDecider", function() { return _delayDecider__WEBPACK_IMPORTED_MODULE_4__["defaultDelayDecider"]; });
52945
52946/* harmony import */ var _retryDecider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./retryDecider */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js");
52947/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultRetryDecider", function() { return _retryDecider__WEBPACK_IMPORTED_MODULE_5__["defaultRetryDecider"]; });
52948
52949
52950
52951
52952
52953
52954
52955//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9yZXRyeU1pZGRsZXdhcmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL29taXRSZXRyeUhlYWRlcnNNaWRkbGV3YXJlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWZhdWx0U3RyYXRlZ3lcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWxheURlY2lkZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3JldHJ5RGVjaWRlclwiO1xuIl19
52956
52957/***/ }),
52958
52959/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/omitRetryHeadersMiddleware.js":
52960/*!*****************************************************************************************************!*\
52961 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/omitRetryHeadersMiddleware.js ***!
52962 \*****************************************************************************************************/
52963/*! exports provided: omitRetryHeadersMiddleware, omitRetryHeadersMiddlewareOptions, getOmitRetryHeadersPlugin */
52964/***/ (function(module, __webpack_exports__, __webpack_require__) {
52965
52966"use strict";
52967__webpack_require__.r(__webpack_exports__);
52968/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddleware", function() { return omitRetryHeadersMiddleware; });
52969/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "omitRetryHeadersMiddlewareOptions", function() { return omitRetryHeadersMiddlewareOptions; });
52970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOmitRetryHeadersPlugin", function() { return getOmitRetryHeadersPlugin; });
52971/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
52972/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
52973/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-retry/dist/es/constants.js");
52974
52975
52976
52977var omitRetryHeadersMiddleware = function () { return function (next) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
52978 var request;
52979 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
52980 request = args.request;
52981 if (_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request)) {
52982 delete request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["INVOCATION_ID_HEADER"]];
52983 delete request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["REQUEST_HEADER"]];
52984 }
52985 return [2 /*return*/, next(args)];
52986 });
52987}); }; }; };
52988var omitRetryHeadersMiddlewareOptions = {
52989 name: "omitRetryHeadersMiddleware",
52990 tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"],
52991 relation: "before",
52992 toMiddleware: "awsAuthMiddleware",
52993 override: true,
52994};
52995var getOmitRetryHeadersPlugin = function (options) { return ({
52996 applyToStack: function (clientStack) {
52997 clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
52998 },
52999}); };
53000//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib21pdFJldHJ5SGVhZGVyc01pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb21pdFJldHJ5SGVhZGVyc01pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQVVyRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsY0FBYyxFQUFFLE1BQU0sY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Fwib21pdFJldHJ5SGVhZGVyc01pZGRsZXdhcmVcIixcbiAgdGFnczogW1wiUkVUUllcIiwgXCJIRUFERVJTXCIsIFwiT01JVF9SRVRSWV9IRUFERVJTXCJdLFxuICByZWxhdGlvbjogXCJiZWZvcmVcIixcbiAgdG9NaWRkbGV3YXJlOiBcImF3c0F1dGhNaWRkbGV3YXJlXCIsXG4gIG92ZXJyaWRlOiB0cnVlLFxufTtcblxuZXhwb3J0IGNvbnN0IGdldE9taXRSZXRyeUhlYWRlcnNQbHVnaW4gPSAob3B0aW9uczogdW5rbm93bik6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGRSZWxhdGl2ZVRvKG9taXRSZXRyeUhlYWRlcnNNaWRkbGV3YXJlKCksIG9taXRSZXRyeUhlYWRlcnNNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
53001
53002/***/ }),
53003
53004/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js":
53005/*!***************************************************************************************!*\
53006 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/retryDecider.js ***!
53007 \***************************************************************************************/
53008/*! exports provided: defaultRetryDecider */
53009/***/ (function(module, __webpack_exports__, __webpack_require__) {
53010
53011"use strict";
53012__webpack_require__.r(__webpack_exports__);
53013/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultRetryDecider", function() { return defaultRetryDecider; });
53014/* harmony import */ var _aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/service-error-classification */ "../../node_modules/@aws-sdk/service-error-classification/dist/es/index.js");
53015
53016var defaultRetryDecider = function (error) {
53017 if (!error) {
53018 return false;
53019 }
53020 return Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isRetryableByTrait"])(error) || Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isClockSkewError"])(error) || Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isThrottlingError"])(error) || Object(_aws_sdk_service_error_classification__WEBPACK_IMPORTED_MODULE_0__["isTransientError"])(error);
53021};
53022//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlEZWNpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5RGVjaWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsZ0JBQWdCLEVBQ2hCLGtCQUFrQixFQUNsQixpQkFBaUIsRUFDakIsZ0JBQWdCLEdBQ2pCLE1BQU0sdUNBQXVDLENBQUM7QUFHL0MsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsVUFBQyxLQUFlO0lBQ2pELElBQUksQ0FBQyxLQUFLLEVBQUU7UUFDVixPQUFPLEtBQUssQ0FBQztLQUNkO0lBRUQsT0FBTyxrQkFBa0IsQ0FBQyxLQUFLLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsSUFBSSxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsSUFBSSxnQkFBZ0IsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNySCxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBpc0Nsb2NrU2tld0Vycm9yLFxuICBpc1JldHJ5YWJsZUJ5VHJhaXQsXG4gIGlzVGhyb3R0bGluZ0Vycm9yLFxuICBpc1RyYW5zaWVudEVycm9yLFxufSBmcm9tIFwiQGF3cy1zZGsvc2VydmljZS1lcnJvci1jbGFzc2lmaWNhdGlvblwiO1xuaW1wb3J0IHsgU2RrRXJyb3IgfSBmcm9tIFwiQGF3cy1zZGsvc21pdGh5LWNsaWVudFwiO1xuXG5leHBvcnQgY29uc3QgZGVmYXVsdFJldHJ5RGVjaWRlciA9IChlcnJvcjogU2RrRXJyb3IpID0+IHtcbiAgaWYgKCFlcnJvcikge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIHJldHVybiBpc1JldHJ5YWJsZUJ5VHJhaXQoZXJyb3IpIHx8IGlzQ2xvY2tTa2V3RXJyb3IoZXJyb3IpIHx8IGlzVGhyb3R0bGluZ0Vycm9yKGVycm9yKSB8fCBpc1RyYW5zaWVudEVycm9yKGVycm9yKTtcbn07XG4iXX0=
53023
53024/***/ }),
53025
53026/***/ "../../node_modules/@aws-sdk/middleware-retry/dist/es/retryMiddleware.js":
53027/*!******************************************************************************************!*\
53028 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-retry/dist/es/retryMiddleware.js ***!
53029 \******************************************************************************************/
53030/*! exports provided: retryMiddleware, retryMiddlewareOptions, getRetryPlugin */
53031/***/ (function(module, __webpack_exports__, __webpack_require__) {
53032
53033"use strict";
53034__webpack_require__.r(__webpack_exports__);
53035/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryMiddleware", function() { return retryMiddleware; });
53036/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryMiddlewareOptions", function() { return retryMiddlewareOptions; });
53037/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRetryPlugin", function() { return getRetryPlugin; });
53038/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53039
53040var retryMiddleware = function (options) { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
53041 var _a;
53042 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
53043 if ((_a = options === null || options === void 0 ? void 0 : options.retryStrategy) === null || _a === void 0 ? void 0 : _a.mode)
53044 context.userAgent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])((context.userAgent || []), [["cfg/retry-mode", options.retryStrategy.mode]]);
53045 return [2 /*return*/, options.retryStrategy.retry(next, args)];
53046 });
53047}); }; }; };
53048var retryMiddlewareOptions = {
53049 name: "retryMiddleware",
53050 tags: ["RETRY"],
53051 step: "finalizeRequest",
53052 priority: "high",
53053 override: true,
53054};
53055var getRetryPlugin = function (options) { return ({
53056 applyToStack: function (clientStack) {
53057 clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
53058 },
53059}); };
53060//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlNaWRkbGV3YXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5TWlkZGxld2FyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBYUEsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLFVBQUMsT0FBNEIsSUFBSyxPQUFBLFVBQy9ELElBQWtDLEVBQ2xDLE9BQWdDLElBQ0MsT0FBQSxVQUNqQyxJQUFtQzs7O1FBRW5DLFVBQUksT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLGFBQWEsMENBQUUsSUFBSTtZQUM5QixPQUFPLENBQUMsU0FBUyxZQUFPLENBQUMsT0FBTyxDQUFDLFNBQVMsSUFBSSxFQUFFLENBQUMsR0FBRSxDQUFDLGdCQUFnQixFQUFFLE9BQU8sQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLEVBQUMsQ0FBQztRQUNyRyxzQkFBTyxPQUFPLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLEVBQUM7O0tBQ2hELEVBTmtDLENBTWxDLEVBVGdFLENBU2hFLENBQUM7QUFFRixNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBcUQ7SUFDdEYsSUFBSSxFQUFFLGlCQUFpQjtJQUN2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ializerMiddleware.js":
53065/*!*************************************************************************************************!*\
53066 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js ***!
53067 \*************************************************************************************************/
53068/*! exports provided: deserializerMiddleware */
53069/***/ (function(module, __webpack_exports__, __webpack_require__) {
53070
53071"use strict";
53072__webpack_require__.r(__webpack_exports__);
53073/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddleware", function() { return deserializerMiddleware; });
53074/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53075
53076var deserializerMiddleware = function (options, deserializer) { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
53077 var response, parsed;
53078 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53079 switch (_a.label) {
53080 case 0: return [4 /*yield*/, next(args)];
53081 case 1:
53082 response = (_a.sent()).response;
53083 return [4 /*yield*/, deserializer(response, options)];
53084 case 2:
53085 parsed = _a.sent();
53086 return [2 /*return*/, {
53087 response: response,
53088 output: parsed,
53089 }];
53090 }
53091 });
53092}); }; }; };
53093//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyTWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZXNlcmlhbGl6ZXJNaWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFTQSxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRyxVQUNwQyxPQUFxQixFQUNyQixZQUEwRCxJQUNqQixPQUFBLFVBQ3pDLElBQXVDLEVBQ3ZDLE9BQWdDLElBQ00sT0FBQSxVQUN0QyxJQUF3Qzs7OztvQkFFbkIscUJBQU0sSUFBSSxDQUFDL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V0PiA9PiBhc3luYyAoXG4gIGFyZ3M6IERlc2VyaWFsaXplSGFuZGxlckFyZ3VtZW50czxJbnB1dD5cbik6IFByb21pc2U8RGVzZXJpYWxpemVIYW5kbGVyT3V0cHV0PE91dHB1dD4+ID0+IHtcbiAgY29uc3QgeyByZXNwb25zZSB9ID0gYXdhaXQgbmV4dChhcmdzKTtcbiAgY29uc3QgcGFyc2VkID0gYXdhaXQgZGVzZXJpYWxpemVyKHJlc3BvbnNlLCBvcHRpb25zKTtcbiAgcmV0dXJuIHtcbiAgICByZXNwb25zZSxcbiAgICBvdXRwdXQ6IHBhcnNlZCBhcyBPdXRwdXQsXG4gIH07XG59O1xuIl19
53094
53095/***/ }),
53096
53097/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/index.js":
53098/*!********************************************************************************!*\
53099 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/index.js ***!
53100 \********************************************************************************/
53101/*! exports provided: deserializerMiddleware, serializerMiddleware, deserializerMiddlewareOption, serializerMiddlewareOption, getSerdePlugin */
53102/***/ (function(module, __webpack_exports__, __webpack_require__) {
53103
53104"use strict";
53105__webpack_require__.r(__webpack_exports__);
53106/* harmony import */ var _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./deserializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js");
53107/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddleware", function() { return _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__["deserializerMiddleware"]; });
53108
53109/* harmony import */ var _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./serializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js");
53110/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "serializerMiddleware", function() { return _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__["serializerMiddleware"]; });
53111
53112/* harmony import */ var _serdePlugin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./serdePlugin */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js");
53113/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddlewareOption", function() { return _serdePlugin__WEBPACK_IMPORTED_MODULE_2__["deserializerMiddlewareOption"]; });
53114
53115/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "serializerMiddlewareOption", function() { return _serdePlugin__WEBPACK_IMPORTED_MODULE_2__["serializerMiddlewareOption"]; });
53116
53117/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSerdePlugin", function() { return _serdePlugin__WEBPACK_IMPORTED_MODULE_2__["getSerdePlugin"]; });
53118
53119
53120
53121
53122//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZGVzZXJpYWxpemVyTWlkZGxld2FyZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2VyaWFsaXplck1pZGRsZXdhcmVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcmRlUGx1Z2luXCI7XG4iXX0=
53123
53124/***/ }),
53125
53126/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js":
53127/*!**************************************************************************************!*\
53128 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/serdePlugin.js ***!
53129 \**************************************************************************************/
53130/*! exports provided: deserializerMiddlewareOption, serializerMiddlewareOption, getSerdePlugin */
53131/***/ (function(module, __webpack_exports__, __webpack_require__) {
53132
53133"use strict";
53134__webpack_require__.r(__webpack_exports__);
53135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deserializerMiddlewareOption", function() { return deserializerMiddlewareOption; });
53136/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializerMiddlewareOption", function() { return serializerMiddlewareOption; });
53137/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSerdePlugin", function() { return getSerdePlugin; });
53138/* harmony import */ var _deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./deserializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/deserializerMiddleware.js");
53139/* harmony import */ var _serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./serializerMiddleware */ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js");
53140
53141
53142var deserializerMiddlewareOption = {
53143 name: "deserializerMiddleware",
53144 step: "deserialize",
53145 tags: ["DESERIALIZER"],
53146 override: true,
53147};
53148var serializerMiddlewareOption = {
53149 name: "serializerMiddleware",
53150 step: "serialize",
53151 tags: ["SERIALIZER"],
53152 override: true,
53153};
53154function getSerdePlugin(config, serializer, deserializer) {
53155 return {
53156 applyToStack: function (commandStack) {
53157 commandStack.add(Object(_deserializerMiddleware__WEBPACK_IMPORTED_MODULE_0__["deserializerMiddleware"])(config, deserializer), deserializerMiddlewareOption);
53158 commandStack.add(Object(_serializerMiddleware__WEBPACK_IMPORTED_MODULE_1__["serializerMiddleware"])(config, serializer), serializerMiddlewareOption);
53159 },
53160 };
53161}
53162//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyZGVQbHVnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyZGVQbHVnaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV0EsT0FBTyxFQUFFL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PixcbiAgZGVzZXJpYWxpemVyOiBSZXNwb25zZURlc2VyaWFsaXplcjxPdXRwdXRUeXBlLCBhbnksIFNlckRlQ29udGV4dD5cbik6IFBsdWdnYWJsZTxJbnB1dFR5cGUsIE91dHB1dFR5cGU+IHtcbiAgcmV0dXJuIHtcbiAgICBhcHBseVRvU3RhY2s6IChjb21tYW5kU3RhY2s6IE1pZGRsZXdhcmVTdGFjazxJbnB1dFR5cGUsIE91dHB1dFR5cGU+KSA9PiB7XG4gICAgICBjb21tYW5kU3RhY2suYWRkKGRlc2VyaWFsaXplck1pZGRsZXdhcmUoY29uZmlnLCBkZXNlcmlhbGl6ZXIpLCBkZXNlcmlhbGl6ZXJNaWRkbGV3YXJlT3B0aW9uKTtcbiAgICAgIGNvbW1hbmRTdGFjay5hZGQoc2VyaWFsaXplck1pZGRsZXdhcmUoY29uZmlnLCBzZXJpYWxpemVyKSwgc2VyaWFsaXplck1pZGRsZXdhcmVPcHRpb24pO1xuICAgIH0sXG4gIH07XG59XG4iXX0=
53163
53164/***/ }),
53165
53166/***/ "../../node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js":
53167/*!***********************************************************************************************!*\
53168 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-serde/dist/es/serializerMiddleware.js ***!
53169 \***********************************************************************************************/
53170/*! exports provided: serializerMiddleware */
53171/***/ (function(module, __webpack_exports__, __webpack_require__) {
53172
53173"use strict";
53174__webpack_require__.r(__webpack_exports__);
53175/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializerMiddleware", function() { return serializerMiddleware; });
53176/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53177
53178var serializerMiddleware = function (options, serializer) { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
53179 var request;
53180 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53181 switch (_a.label) {
53182 case 0: return [4 /*yield*/, serializer(args.input, options)];
53183 case 1:
53184 request = _a.sent();
53185 return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))];
53186 }
53187 });
53188}); }; }; };
53189//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplck1pZGRsZXdhcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VyaWFsaXplck1pZGRsZXdhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQVVBLE1BQU0sQ0FBQyxJQUFNLG9CQUFvQixHQUFHLFVBQ2xDLE9BQXFCLEVBQ3JCLFVBQWdELElBQ1QsT0FBQSxVQUN2QyxJQUFxQyxFQUNyQyxPQUFnQyxJQUNJLE9BQUEsVUFDcEMsSUFBc0M7Ozs7b0JBRXRCLHFCQUFNLFVBQVUsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxFQUFBOztnQkFBL0MsT0FBTyxHQUFHLFNBQXFDO2dCQUNyRCxzQkFBTyxJQUFJLHVCQUNOLElBQUksS0FDUCxPQUFPLFNBQUEsSUFDUCxFQUFDOzs7S0FDSixFQVJxQyxDQVFyQyxFQVh3QyxDQVd4QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRW5kcG9pbnRCZWFyZXIsXG4gIEhhbmRsZXJFeGVjdXRpb25Db250ZXh0LFxuICBSZXF1ZXN0U2VyaWFsaXplcixcbiAgU2VyaWFsaXplSGFuZGxlcixcbiAgU2VyaWFsaXplSGFuZGxlckFyZ3VtZW50cyxcbiAgU2VyaWFsaXplSGFuZGxlck91dHB1dCxcbiAgU2VyaWFsaXplTWlkZGxld2FyZSxcbn0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5cbmV4cG9ydCBjb25zdCBzZXJpYWxpemVyTWlkZGxld2FyZSA9IDxJbnB1dCBleHRlbmRzIG9iamVjdCwgT3V0cHV0IGV4dGVuZHMgb2JqZWN0LCBSdW50aW1lVXRpbHMgZXh0ZW5kcyBFbmRwb2ludEJlYXJlcj4oXG4gIG9wdGlvbnM6IFJ1bnRpbWVVdGlscyxcbiAgc2VyaWFsaXplcjogUmVxdWVzdFNlcmlhbGl6ZXI8YW55LCBSdW50aW1lVXRpbHM+XG4pOiBTZXJpYWxpemVNaWRkbGV3YXJlPElucHV0LCBPdXRwdXQ+ID0+IChcbiAgbmV4dDogU2VyaWFsaXplSGFuZGxlcjxJbnB1dCwgT3V0cHV0PixcbiAgY29udGV4dDogSGFuZGxlckV4ZWN1dGlvbkNvbnRleHRcbik6IFNlcmlhbGl6ZUhhbmRsZXI8SW5wdXQsIE91dHB1dD4gPT4gYXN5bmMgKFxuICBhcmdzOiBTZXJpYWxpemVIYW5kbGVyQXJndW1lbnRzPElucHV0PlxuKTogUHJvbWlzZTxTZXJpYWxpemVIYW5kbGVyT3V0cHV0PE91dHB1dD4+ID0+IHtcbiAgY29uc3QgcmVxdWVzdCA9IGF3YWl0IHNlcmlhbGl6ZXIoYXJncy5pbnB1dCwgb3B0aW9ucyk7XG4gIHJldHVybiBuZXh0KHtcbiAgICAuLi5hcmdzLFxuICAgIHJlcXVlc3QsXG4gIH0pO1xufTtcbiJdfQ==
53190
53191/***/ }),
53192
53193/***/ "../../node_modules/@aws-sdk/middleware-signing/dist/es/configurations.js":
53194/*!*******************************************************************************************!*\
53195 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/dist/es/configurations.js ***!
53196 \*******************************************************************************************/
53197/*! exports provided: resolveAwsAuthConfig */
53198/***/ (function(module, __webpack_exports__, __webpack_require__) {
53199
53200"use strict";
53201__webpack_require__.r(__webpack_exports__);
53202/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveAwsAuthConfig", function() { return resolveAwsAuthConfig; });
53203/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53204/* harmony import */ var _aws_sdk_signature_v4__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/signature-v4 */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/index.js");
53205
53206
53207function resolveAwsAuthConfig(input) {
53208 var _this = this;
53209 var credentials = input.credentials || input.credentialDefaultProvider(input);
53210 var normalizedCreds = normalizeProvider(credentials);
53211 var _a = input.signingEscapePath, signingEscapePath = _a === void 0 ? true : _a, _b = input.systemClockOffset, systemClockOffset = _b === void 0 ? input.systemClockOffset || 0 : _b, sha256 = input.sha256;
53212 var signer;
53213 if (input.signer) {
53214 //if signer is supplied by user, normalize it to a function returning a promise for signer.
53215 signer = normalizeProvider(input.signer);
53216 }
53217 else {
53218 //construct a provider inferring signing from region.
53219 signer = function () {
53220 return normalizeProvider(input.region)()
53221 .then(function (region) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53222 switch (_a.label) {
53223 case 0: return [4 /*yield*/, input.regionInfoProvider(region)];
53224 case 1: return [2 /*return*/, [(_a.sent()) || {}, region]];
53225 }
53226 }); }); })
53227 .then(function (_a) {
53228 var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), regionInfo = _b[0], region = _b[1];
53229 var signingRegion = regionInfo.signingRegion, signingService = regionInfo.signingService;
53230 //update client's singing region and signing service config if they are resolved.
53231 //signing region resolving order: user supplied signingRegion -> endpoints.json inferred region -> client region
53232 input.signingRegion = input.signingRegion || signingRegion || region;
53233 //signing name resolving order:
53234 //user supplied signingName -> endpoints.json inferred (credential scope -> model arnNamespace) -> model service id
53235 input.signingName = input.signingName || signingService || input.serviceId;
53236 return new _aws_sdk_signature_v4__WEBPACK_IMPORTED_MODULE_1__["SignatureV4"]({
53237 credentials: normalizedCreds,
53238 region: input.signingRegion,
53239 service: input.signingName,
53240 sha256: sha256,
53241 uriEscapePath: signingEscapePath,
53242 });
53243 });
53244 };
53245 }
53246 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { systemClockOffset: systemClockOffset,
53247 signingEscapePath: signingEscapePath, credentials: normalizedCreds, signer: signer });
53248}
53249function normalizeProvider(input) {
53250 if (typeof input === "object") {
53251 var promisified_1 = Promise.resolve(input);
53252 return function () { return promisified_1; };
53253 }
53254 return input;
53255}
53256//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQTRDcEQsTUFBTSxVQUFVLG9CQUFvQixDQUFJLEtBQWtEO0lBQTFGLGlCQXVDQztJQXRDQyxJQUFNLFdBQVcsR0FBRyxLQUFLLENBQUMsV0FBVyxJQUFJLEtBQUssQ0FBQyx5QkFBeUIsQ0FBQyxLQUFZLENBQUMsQ0FBQztJQUN2RixJQUFNLGVBQWUsR0FBRyxpQkFBaUIsQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUMvQyxJQUFBLEtBQXVGLEtBQUssa0JBQXBFLEVBQXhCLGlCQUFpQixtQkFBRyxJQUFJLEtBQUEsRUFBRSxLQUE2RCxLQUFLLGtCQUFsQixFQUFoRCxpQkFBaUIsbUJBQUcsS0FBSyxDQUFDLGlCQUFpQixJQUFJLENBQUMsS0FBQSxFQUF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IHx8IGlucHV0LnNlcnZpY2VJZDtcblxuICAgICAgICAgIHJldHVybiBuZXcgU2lnbmF0dXJlVjQoe1xuICAgICAgICAgICAgY3JlZGVudGlhbHM6IG5vcm1hbGl6ZWRDcmVkcyxcbiAgICAgICAgICAgIHJlZ2lvbjogaW5wdXQuc2lnbmluZ1JlZ2lvbixcbiAgICAgICAgICAgIHNlcnZpY2U6IGlucHV0LnNpZ25pbmdOYW1lLFxuICAgICAgICAgICAgc2hhMjU2LFxuICAgICAgICAgICAgdXJpRXNjYXBlUGF0aDogc2lnbmluZ0VzY2FwZVBhdGgsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICAuLi5pbnB1dCxcbiAgICBzeXN0ZW1DbG9ja09mZnNldCxcbiAgICBzaWduaW5nRXNjYXBlUGF0aCxcbiAgICBjcmVkZW50aWFsczogbm9ybWFsaXplZENyZWRzLFxuICAgIHNpZ25lcixcbiAgfTtcbn1cblxuZnVuY3Rpb24gbm9ybWFsaXplUHJvdmlkZXI8VD4oaW5wdXQ6IFQgfCBQcm92aWRlcjxUPik6IFByb3ZpZGVyPFQ+IHtcbiAgaWYgKHR5cGVvZiBpbnB1dCA9PT0gXCJvYmplY3RcIikge1xuICAgIGNvbnN0IHByb21pc2lmaWVkID0gUHJvbWlzZS5yZXNvbHZlKGlucHV0KTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH1cbiAgcmV0dXJuIGlucHV0IGFzIFByb3ZpZGVyPFQ+O1xufVxuIl19
53257
53258/***/ }),
53259
53260/***/ "../../node_modules/@aws-sdk/middleware-signing/dist/es/index.js":
53261/*!**********************************************************************************!*\
53262 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/dist/es/index.js ***!
53263 \**********************************************************************************/
53264/*! exports provided: resolveAwsAuthConfig, awsAuthMiddleware, awsAuthMiddlewareOptions, getAwsAuthPlugin */
53265/***/ (function(module, __webpack_exports__, __webpack_require__) {
53266
53267"use strict";
53268__webpack_require__.r(__webpack_exports__);
53269/* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configurations */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/configurations.js");
53270/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveAwsAuthConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_0__["resolveAwsAuthConfig"]; });
53271
53272/* harmony import */ var _middleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./middleware */ "../../node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js");
53273/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddleware", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["awsAuthMiddleware"]; });
53274
53275/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddlewareOptions", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["awsAuthMiddlewareOptions"]; });
53276
53277/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAwsAuthPlugin", function() { return _middleware__WEBPACK_IMPORTED_MODULE_1__["getAwsAuthPlugin"]; });
53278
53279
53280
53281//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NvbmZpZ3VyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9taWRkbGV3YXJlXCI7XG4iXX0=
53282
53283/***/ }),
53284
53285/***/ "../../node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js":
53286/*!***************************************************************************************!*\
53287 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/dist/es/middleware.js ***!
53288 \***************************************************************************************/
53289/*! exports provided: awsAuthMiddleware, awsAuthMiddlewareOptions, getAwsAuthPlugin */
53290/***/ (function(module, __webpack_exports__, __webpack_require__) {
53291
53292"use strict";
53293__webpack_require__.r(__webpack_exports__);
53294/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddleware", function() { return awsAuthMiddleware; });
53295/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "awsAuthMiddlewareOptions", function() { return awsAuthMiddlewareOptions; });
53296/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAwsAuthPlugin", function() { return getAwsAuthPlugin; });
53297/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53298/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
53299
53300
53301var isClockSkewed = function (newServerTime, systemClockOffset) {
53302 return Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - newServerTime) >= 300000;
53303};
53304var getSkewCorrectedDate = function (systemClockOffset) { return new Date(Date.now() + systemClockOffset); };
53305function awsAuthMiddleware(options) {
53306 return function (next, context) {
53307 return function (args) {
53308 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53309 var signer, _a, output, _b, _c, headers, dateHeader, serverTime;
53310 var _d;
53311 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_e) {
53312 switch (_e.label) {
53313 case 0:
53314 if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(args.request))
53315 return [2 /*return*/, next(args)];
53316 if (!(typeof options.signer === "function")) return [3 /*break*/, 2];
53317 return [4 /*yield*/, options.signer()];
53318 case 1:
53319 _a = _e.sent();
53320 return [3 /*break*/, 3];
53321 case 2:
53322 _a = options.signer;
53323 _e.label = 3;
53324 case 3:
53325 signer = _a;
53326 _b = next;
53327 _c = [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args)];
53328 _d = {};
53329 return [4 /*yield*/, signer.sign(args.request, {
53330 signingDate: new Date(Date.now() + options.systemClockOffset),
53331 signingRegion: context["signing_region"],
53332 signingService: context["signing_service"],
53333 })];
53334 case 4: return [4 /*yield*/, _b.apply(void 0, [tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"].apply(void 0, _c.concat([(_d.request = _e.sent(), _d)]))])];
53335 case 5:
53336 output = _e.sent();
53337 headers = output.response.headers;
53338 dateHeader = headers && (headers.date || headers.Date);
53339 if (dateHeader) {
53340 serverTime = Date.parse(dateHeader);
53341 if (isClockSkewed(serverTime, options.systemClockOffset)) {
53342 options.systemClockOffset = serverTime - Date.now();
53343 }
53344 }
53345 return [2 /*return*/, output];
53346 }
53347 });
53348 });
53349 };
53350 };
53351}
53352var awsAuthMiddlewareOptions = {
53353 name: "awsAuthMiddleware",
53354 tags: ["SIGNATURE", "AWSAUTH"],
53355 relation: "after",
53356 toMiddleware: "retryMiddleware",
53357 override: true,
53358};
53359var getAwsAuthPlugin = function (options) { return ({
53360 applyToStack: function (clientStack) {
53361 clientStack.addRelativeTo(awsAuthMiddleware(options), awsAuthMiddlewareOptions);
53362 },
53363}); };
53364//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taWRkbGV3YXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFhckQsSUFBTSxhQUFhLEdBQUcsVUFBQyxh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dGhNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
53365
53366/***/ }),
53367
53368/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/is-array-buffer/dist/es/index.js":
53369/*!************************************************************************************************************************!*\
53370 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/is-array-buffer/dist/es/index.js ***!
53371 \************************************************************************************************************************/
53372/*! exports provided: isArrayBuffer */
53373/***/ (function(module, __webpack_exports__, __webpack_require__) {
53374
53375"use strict";
53376__webpack_require__.r(__webpack_exports__);
53377/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayBuffer", function() { return isArrayBuffer; });
53378var isArrayBuffer = function (arg) {
53379 return (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) ||
53380 Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
53381};
53382//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sYUFBYSxHQUFHLFVBQUMsR0FBUTtJQUNwQyxPQUFBLENBQUMsT0FBTyxXQUFXLEtBQUssVUFBVSxJQUFJLEdBQUcsWUFBWSxXQUFXLENBQUM7UUFDakUsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLHNCQUFzQjtBQUQ5RCxDQUM4RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGlzQXJyYXlCdWZmZXIgPSAoYXJnOiBhbnkpOiBhcmcgaXMgQXJyYXlCdWZmZXIgPT5cbiAgKHR5cGVvZiBBcnJheUJ1ZmZlciA9PT0gXCJmdW5jdGlvblwiICYmIGFyZyBpbnN0YW5jZW9mIEFycmF5QnVmZmVyKSB8fFxuICBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwoYXJnKSA9PT0gXCJbb2JqZWN0IEFycmF5QnVmZmVyXVwiO1xuIl19
53383
53384/***/ }),
53385
53386/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/SignatureV4.js":
53387/*!***************************************************************************************************************************!*\
53388 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/SignatureV4.js ***!
53389 \***************************************************************************************************************************/
53390/*! exports provided: SignatureV4 */
53391/***/ (function(module, __webpack_exports__, __webpack_require__) {
53392
53393"use strict";
53394__webpack_require__.r(__webpack_exports__);
53395/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignatureV4", function() { return SignatureV4; });
53396/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53397/* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js");
53398/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js");
53399/* harmony import */ var _credentialDerivation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./credentialDerivation */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js");
53400/* harmony import */ var _getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getCanonicalHeaders */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalHeaders.js");
53401/* harmony import */ var _getCanonicalQuery__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getCanonicalQuery */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalQuery.js");
53402/* harmony import */ var _getPayloadHash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getPayloadHash */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getPayloadHash.js");
53403/* harmony import */ var _hasHeader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hasHeader */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/hasHeader.js");
53404/* harmony import */ var _moveHeadersToQuery__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./moveHeadersToQuery */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/moveHeadersToQuery.js");
53405/* harmony import */ var _prepareRequest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./prepareRequest */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/prepareRequest.js");
53406/* harmony import */ var _utilDate__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utilDate */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/utilDate.js");
53407
53408
53409
53410
53411
53412
53413
53414
53415
53416
53417
53418var SignatureV4 = /** @class */ (function () {
53419 function SignatureV4(_a) {
53420 var applyChecksum = _a.applyChecksum, credentials = _a.credentials, region = _a.region, service = _a.service, sha256 = _a.sha256, _b = _a.uriEscapePath, uriEscapePath = _b === void 0 ? true : _b;
53421 this.service = service;
53422 this.sha256 = sha256;
53423 this.uriEscapePath = uriEscapePath;
53424 // default to true if applyChecksum isn't set
53425 this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true;
53426 this.regionProvider = normalizeRegionProvider(region);
53427 this.credentialProvider = normalizeCredentialsProvider(credentials);
53428 }
53429 SignatureV4.prototype.presign = function (originalRequest, options) {
53430 if (options === void 0) { options = {}; }
53431 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53432 var _a, signingDate, _b, expiresIn, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, credentials, region, _c, _d, longDate, shortDate, scope, request, canonicalHeaders, _e, _f, _g, _h, _j, _k;
53433 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_l) {
53434 switch (_l.label) {
53435 case 0:
53436 _a = options.signingDate, signingDate = _a === void 0 ? new Date() : _a, _b = options.expiresIn, expiresIn = _b === void 0 ? 3600 : _b, unsignableHeaders = options.unsignableHeaders, unhoistableHeaders = options.unhoistableHeaders, signableHeaders = options.signableHeaders, signingRegion = options.signingRegion, signingService = options.signingService;
53437 return [4 /*yield*/, this.credentialProvider()];
53438 case 1:
53439 credentials = _l.sent();
53440 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2];
53441 _c = signingRegion;
53442 return [3 /*break*/, 4];
53443 case 2: return [4 /*yield*/, this.regionProvider()];
53444 case 3:
53445 _c = (_l.sent());
53446 _l.label = 4;
53447 case 4:
53448 region = _c;
53449 _d = formatDate(signingDate), longDate = _d.longDate, shortDate = _d.shortDate;
53450 if (expiresIn > _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_PRESIGNED_TTL"]) {
53451 return [2 /*return*/, Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future")];
53452 }
53453 scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service);
53454 request = Object(_moveHeadersToQuery__WEBPACK_IMPORTED_MODULE_8__["moveHeadersToQuery"])(Object(_prepareRequest__WEBPACK_IMPORTED_MODULE_9__["prepareRequest"])(originalRequest), { unhoistableHeaders: unhoistableHeaders });
53455 if (credentials.sessionToken) {
53456 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["TOKEN_QUERY_PARAM"]] = credentials.sessionToken;
53457 }
53458 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_QUERY_PARAM"]] = _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"];
53459 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["CREDENTIAL_QUERY_PARAM"]] = credentials.accessKeyId + "/" + scope;
53460 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["AMZ_DATE_QUERY_PARAM"]] = longDate;
53461 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["EXPIRES_QUERY_PARAM"]] = expiresIn.toString(10);
53462 canonicalHeaders = Object(_getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__["getCanonicalHeaders"])(request, unsignableHeaders, signableHeaders);
53463 request.query[_constants__WEBPACK_IMPORTED_MODULE_2__["SIGNED_HEADERS_QUERY_PARAM"]] = getCanonicalHeaderList(canonicalHeaders);
53464 _e = request.query;
53465 _f = _constants__WEBPACK_IMPORTED_MODULE_2__["SIGNATURE_QUERY_PARAM"];
53466 _g = this.getSignature;
53467 _h = [longDate,
53468 scope,
53469 this.getSigningKey(credentials, region, shortDate, signingService)];
53470 _j = this.createCanonicalRequest;
53471 _k = [request, canonicalHeaders];
53472 return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])(originalRequest, this.sha256)];
53473 case 5: return [4 /*yield*/, _g.apply(this, _h.concat([_j.apply(this, _k.concat([_l.sent()]))]))];
53474 case 6:
53475 _e[_f] = _l.sent();
53476 return [2 /*return*/, request];
53477 }
53478 });
53479 });
53480 };
53481 SignatureV4.prototype.sign = function (toSign, options) {
53482 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53483 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53484 if (typeof toSign === "string") {
53485 return [2 /*return*/, this.signString(toSign, options)];
53486 }
53487 else if (toSign.headers && toSign.payload) {
53488 return [2 /*return*/, this.signEvent(toSign, options)];
53489 }
53490 else {
53491 return [2 /*return*/, this.signRequest(toSign, options)];
53492 }
53493 return [2 /*return*/];
53494 });
53495 });
53496 };
53497 SignatureV4.prototype.signEvent = function (_a, _b) {
53498 var headers = _a.headers, payload = _a.payload;
53499 var _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, priorSignature = _b.priorSignature, signingRegion = _b.signingRegion, signingService = _b.signingService;
53500 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53501 var region, _d, _e, shortDate, longDate, scope, hashedPayload, hash, hashedHeaders, _f, stringToSign;
53502 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_g) {
53503 switch (_g.label) {
53504 case 0:
53505 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 1];
53506 _d = signingRegion;
53507 return [3 /*break*/, 3];
53508 case 1: return [4 /*yield*/, this.regionProvider()];
53509 case 2:
53510 _d = (_g.sent());
53511 _g.label = 3;
53512 case 3:
53513 region = _d;
53514 _e = formatDate(signingDate), shortDate = _e.shortDate, longDate = _e.longDate;
53515 scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service);
53516 return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])({ headers: {}, body: payload }, this.sha256)];
53517 case 4:
53518 hashedPayload = _g.sent();
53519 hash = new this.sha256();
53520 hash.update(headers);
53521 _f = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"];
53522 return [4 /*yield*/, hash.digest()];
53523 case 5:
53524 hashedHeaders = _f.apply(void 0, [_g.sent()]);
53525 stringToSign = [
53526 _constants__WEBPACK_IMPORTED_MODULE_2__["EVENT_ALGORITHM_IDENTIFIER"],
53527 longDate,
53528 scope,
53529 priorSignature,
53530 hashedHeaders,
53531 hashedPayload,
53532 ].join("\n");
53533 return [2 /*return*/, this.signString(stringToSign, { signingDate: signingDate, signingRegion: region, signingService: signingService })];
53534 }
53535 });
53536 });
53537 };
53538 SignatureV4.prototype.signString = function (stringToSign, _a) {
53539 var _b = _a === void 0 ? {} : _a, _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, signingRegion = _b.signingRegion, signingService = _b.signingService;
53540 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53541 var credentials, region, _d, shortDate, hash, _e, _f, _g;
53542 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
53543 switch (_h.label) {
53544 case 0: return [4 /*yield*/, this.credentialProvider()];
53545 case 1:
53546 credentials = _h.sent();
53547 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2];
53548 _d = signingRegion;
53549 return [3 /*break*/, 4];
53550 case 2: return [4 /*yield*/, this.regionProvider()];
53551 case 3:
53552 _d = (_h.sent());
53553 _h.label = 4;
53554 case 4:
53555 region = _d;
53556 shortDate = formatDate(signingDate).shortDate;
53557 _f = (_e = this.sha256).bind;
53558 return [4 /*yield*/, this.getSigningKey(credentials, region, shortDate, signingService)];
53559 case 5:
53560 hash = new (_f.apply(_e, [void 0, _h.sent()]))();
53561 hash.update(stringToSign);
53562 _g = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"];
53563 return [4 /*yield*/, hash.digest()];
53564 case 6: return [2 /*return*/, _g.apply(void 0, [_h.sent()])];
53565 }
53566 });
53567 });
53568 };
53569 SignatureV4.prototype.signRequest = function (requestToSign, _a) {
53570 var _b = _a === void 0 ? {} : _a, _c = _b.signingDate, signingDate = _c === void 0 ? new Date() : _c, signableHeaders = _b.signableHeaders, unsignableHeaders = _b.unsignableHeaders, signingRegion = _b.signingRegion, signingService = _b.signingService;
53571 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53572 var credentials, region, _d, request, _e, longDate, shortDate, scope, payloadHash, canonicalHeaders, signature;
53573 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
53574 switch (_f.label) {
53575 case 0: return [4 /*yield*/, this.credentialProvider()];
53576 case 1:
53577 credentials = _f.sent();
53578 if (!(signingRegion !== null && signingRegion !== void 0)) return [3 /*break*/, 2];
53579 _d = signingRegion;
53580 return [3 /*break*/, 4];
53581 case 2: return [4 /*yield*/, this.regionProvider()];
53582 case 3:
53583 _d = (_f.sent());
53584 _f.label = 4;
53585 case 4:
53586 region = _d;
53587 request = Object(_prepareRequest__WEBPACK_IMPORTED_MODULE_9__["prepareRequest"])(requestToSign);
53588 _e = formatDate(signingDate), longDate = _e.longDate, shortDate = _e.shortDate;
53589 scope = Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["createScope"])(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service);
53590 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["AMZ_DATE_HEADER"]] = longDate;
53591 if (credentials.sessionToken) {
53592 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["TOKEN_HEADER"]] = credentials.sessionToken;
53593 }
53594 return [4 /*yield*/, Object(_getPayloadHash__WEBPACK_IMPORTED_MODULE_6__["getPayloadHash"])(request, this.sha256)];
53595 case 5:
53596 payloadHash = _f.sent();
53597 if (!Object(_hasHeader__WEBPACK_IMPORTED_MODULE_7__["hasHeader"])(_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"], request.headers) && this.applyChecksum) {
53598 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["SHA256_HEADER"]] = payloadHash;
53599 }
53600 canonicalHeaders = Object(_getCanonicalHeaders__WEBPACK_IMPORTED_MODULE_4__["getCanonicalHeaders"])(request, unsignableHeaders, signableHeaders);
53601 return [4 /*yield*/, this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash))];
53602 case 6:
53603 signature = _f.sent();
53604 request.headers[_constants__WEBPACK_IMPORTED_MODULE_2__["AUTH_HEADER"]] =
53605 _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"] + " " +
53606 ("Credential=" + credentials.accessKeyId + "/" + scope + ", ") +
53607 ("SignedHeaders=" + getCanonicalHeaderList(canonicalHeaders) + ", ") +
53608 ("Signature=" + signature);
53609 return [2 /*return*/, request];
53610 }
53611 });
53612 });
53613 };
53614 SignatureV4.prototype.createCanonicalRequest = function (request, canonicalHeaders, payloadHash) {
53615 var sortedHeaders = Object.keys(canonicalHeaders).sort();
53616 return request.method + "\n" + this.getCanonicalPath(request) + "\n" + Object(_getCanonicalQuery__WEBPACK_IMPORTED_MODULE_5__["getCanonicalQuery"])(request) + "\n" + sortedHeaders.map(function (name) { return name + ":" + canonicalHeaders[name]; }).join("\n") + "\n\n" + sortedHeaders.join(";") + "\n" + payloadHash;
53617 };
53618 SignatureV4.prototype.createStringToSign = function (longDate, credentialScope, canonicalRequest) {
53619 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53620 var hash, hashedRequest;
53621 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
53622 switch (_a.label) {
53623 case 0:
53624 hash = new this.sha256();
53625 hash.update(canonicalRequest);
53626 return [4 /*yield*/, hash.digest()];
53627 case 1:
53628 hashedRequest = _a.sent();
53629 return [2 /*return*/, _constants__WEBPACK_IMPORTED_MODULE_2__["ALGORITHM_IDENTIFIER"] + "\n" + longDate + "\n" + credentialScope + "\n" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(hashedRequest)];
53630 }
53631 });
53632 });
53633 };
53634 SignatureV4.prototype.getCanonicalPath = function (_a) {
53635 var path = _a.path;
53636 if (this.uriEscapePath) {
53637 var doubleEncoded = encodeURIComponent(path.replace(/^\//, ""));
53638 return "/" + doubleEncoded.replace(/%2F/g, "/");
53639 }
53640 return path;
53641 };
53642 SignatureV4.prototype.getSignature = function (longDate, credentialScope, keyPromise, canonicalRequest) {
53643 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
53644 var stringToSign, hash, _a, _b, _c;
53645 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) {
53646 switch (_d.label) {
53647 case 0: return [4 /*yield*/, this.createStringToSign(longDate, credentialScope, canonicalRequest)];
53648 case 1:
53649 stringToSign = _d.sent();
53650 _b = (_a = this.sha256).bind;
53651 return [4 /*yield*/, keyPromise];
53652 case 2:
53653 hash = new (_b.apply(_a, [void 0, _d.sent()]))();
53654 hash.update(stringToSign);
53655 _c = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"];
53656 return [4 /*yield*/, hash.digest()];
53657 case 3: return [2 /*return*/, _c.apply(void 0, [_d.sent()])];
53658 }
53659 });
53660 });
53661 };
53662 SignatureV4.prototype.getSigningKey = function (credentials, region, shortDate, service) {
53663 return Object(_credentialDerivation__WEBPACK_IMPORTED_MODULE_3__["getSigningKey"])(this.sha256, credentials, shortDate, region, service || this.service);
53664 };
53665 return SignatureV4;
53666}());
53667
53668var formatDate = function (now) {
53669 var longDate = Object(_utilDate__WEBPACK_IMPORTED_MODULE_10__["iso8601"])(now).replace(/[\-:]/g, "");
53670 return {
53671 longDate: longDate,
53672 shortDate: longDate.substr(0, 8),
53673 };
53674};
53675var getCanonicalHeaderList = function (headers) { return Object.keys(headers).sort().join(";"); };
53676var normalizeRegionProvider = function (region) {
53677 if (typeof region === "string") {
53678 var promisified_1 = Promise.resolve(region);
53679 return function () { return promisified_1; };
53680 }
53681 else {
53682 return region;
53683 }
53684};
53685var normalizeCredentialsProvider = function (credentials) {
53686 if (typeof credentials === "object") {
53687 var promisified_2 = Promise.resolve(credentials);
53688 return function () { return promisified_2; };
53689 }
53690 else {
53691 return credentials;
53692 }
53693};
53694//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2lnbmF0dXJlVjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvU2lnbmF0dXJlVjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQWlCQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFbkQsT0FBTyxFQUNMLG9CQUFvQixFQUNwQixxQkFBcUIsRUFDckIsZUFBZSxFQUNmLG9CQUFvQixFQUNwQixXQUFXLEVBQ1gsc0JBQXNCLEVBQ3RCLDBCQUEwQixFQUMxQixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2pCLGFBQWEsRUFDYixxQkFBcUIsRUFDckIsMEJBQTBCLEVBQzFCLFlBQVksRUFDWixpQkFBaUIsR0FDbEIsTUFBTSxhQUFhLENBQUM7QUFDckIsT0FBTyxFQUFFLFdBQVcsRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNwRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUM1RCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN4RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN4QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQs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YWRlckxpc3QgPSAoaGVhZGVyczogb2JqZWN0KTogc3RyaW5nID0+IE9iamVjdC5rZXlzKGhlYWRlcnMpLnNvcnQoKS5qb2luKFwiO1wiKTtcblxuY29uc3Qgbm9ybWFsaXplUmVnaW9uUHJvdmlkZXIgPSAocmVnaW9uOiBzdHJpbmcgfCBQcm92aWRlcjxzdHJpbmc+KTogUHJvdmlkZXI8c3RyaW5nPiA9PiB7XG4gIGlmICh0eXBlb2YgcmVnaW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUocmVnaW9uKTtcbiAgICByZXR1cm4gKCkgPT4gcHJvbWlzaWZpZWQ7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIHJlZ2lvbjtcbiAgfVxufTtcblxuY29uc3Qgbm9ybWFsaXplQ3JlZGVudGlhbHNQcm92aWRlciA9IChjcmVkZW50aWFsczogQ3JlZGVudGlhbHMgfCBQcm92aWRlcjxDcmVkZW50aWFscz4pOiBQcm92aWRlcjxDcmVkZW50aWFscz4gPT4ge1xuICBpZiAodHlwZW9mIGNyZWRlbnRpYWxzID09PSBcIm9iamVjdFwiKSB7XG4gICAgY29uc3QgcHJvbWlzaWZpZWQgPSBQcm9taXNlLnJlc29sdmUoY3JlZGVudGlhbHMpO1xuICAgIHJldHVybiAoKSA9PiBwcm9taXNpZmllZDtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gY3JlZGVudGlhbHM7XG4gIH1cbn07XG4iXX0=
53695
53696/***/ }),
53697
53698/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js":
53699/*!****************************************************************************************************************************!*\
53700 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js ***!
53701 \****************************************************************************************************************************/
53702/*! exports provided: cloneRequest */
53703/***/ (function(module, __webpack_exports__, __webpack_require__) {
53704
53705"use strict";
53706__webpack_require__.r(__webpack_exports__);
53707/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneRequest", function() { return cloneRequest; });
53708/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53709
53710/**
53711 * @internal
53712 */
53713function cloneRequest(_a) {
53714 var headers = _a.headers, query = _a.query, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["headers", "query"]);
53715 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, rest), { headers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, headers), query: query ? cloneQuery(query) : undefined });
53716}
53717function cloneQuery(query) {
53718 return Object.keys(query).reduce(function (carry, paramName) {
53719 var _a;
53720 var param = query[paramName];
53721 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, carry), (_a = {}, _a[paramName] = Array.isArray(param) ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(param) : param, _a));
53722 }, {});
53723}
53724//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvbmVSZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Nsb25lUmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUE7O0dBRUc7QUFDSCxNQUFNLFVBQVUsWUFBWSxDQUFDLEVBQXdDO0lBQXRDLElBQUEsT0FBTyxhQUFBLEVBQUUsS0FBSyxXQUFBLEVBQUssSUFBSSxjQUF6QixvQkFBMkIsQ0FBRjtJQUNwRCw2QkFDSyxJQUFJLEtBQ1AsT0FBTyxlQUFPLE9BQU8sR0FDckIsS0FBSyxF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WVyeSkucmVkdWNlKChjYXJyeTogUXVlcnlQYXJhbWV0ZXJCYWcsIHBhcmFtTmFtZTogc3RyaW5nKSA9PiB7XG4gICAgY29uc3QgcGFyYW0gPSBxdWVyeVtwYXJhbU5hbWVdO1xuICAgIHJldHVybiB7XG4gICAgICAuLi5jYXJyeSxcbiAgICAgIFtwYXJhbU5hbWVdOiBBcnJheS5pc0FycmF5KHBhcmFtKSA/IFsuLi5wYXJhbV0gOiBwYXJhbSxcbiAgICB9O1xuICB9LCB7fSk7XG59XG4iXX0=
53725
53726/***/ }),
53727
53728/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js":
53729/*!*************************************************************************************************************************!*\
53730 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js ***!
53731 \*************************************************************************************************************************/
53732/*! exports provided: ALGORITHM_QUERY_PARAM, CREDENTIAL_QUERY_PARAM, AMZ_DATE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, EXPIRES_QUERY_PARAM, SIGNATURE_QUERY_PARAM, TOKEN_QUERY_PARAM, AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER, GENERATED_HEADERS, SIGNATURE_HEADER, SHA256_HEADER, TOKEN_HEADER, HOST_HEADER, ALWAYS_UNSIGNABLE_HEADERS, PROXY_HEADER_PATTERN, SEC_HEADER_PATTERN, UNSIGNABLE_PATTERNS, ALGORITHM_IDENTIFIER, EVENT_ALGORITHM_IDENTIFIER, UNSIGNED_PAYLOAD, MAX_CACHE_SIZE, KEY_TYPE_IDENTIFIER, MAX_PRESIGNED_TTL */
53733/***/ (function(module, __webpack_exports__, __webpack_require__) {
53734
53735"use strict";
53736__webpack_require__.r(__webpack_exports__);
53737/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_QUERY_PARAM", function() { return ALGORITHM_QUERY_PARAM; });
53738/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREDENTIAL_QUERY_PARAM", function() { return CREDENTIAL_QUERY_PARAM; });
53739/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_QUERY_PARAM", function() { return AMZ_DATE_QUERY_PARAM; });
53740/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNED_HEADERS_QUERY_PARAM", function() { return SIGNED_HEADERS_QUERY_PARAM; });
53741/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXPIRES_QUERY_PARAM", function() { return EXPIRES_QUERY_PARAM; });
53742/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNATURE_QUERY_PARAM", function() { return SIGNATURE_QUERY_PARAM; });
53743/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOKEN_QUERY_PARAM", function() { return TOKEN_QUERY_PARAM; });
53744/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUTH_HEADER", function() { return AUTH_HEADER; });
53745/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMZ_DATE_HEADER", function() { return AMZ_DATE_HEADER; });
53746/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DATE_HEADER", function() { return DATE_HEADER; });
53747/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GENERATED_HEADERS", function() { return GENERATED_HEADERS; });
53748/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIGNATURE_HEADER", function() { return SIGNATURE_HEADER; });
53749/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHA256_HEADER", function() { return SHA256_HEADER; });
53750/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TOKEN_HEADER", function() { return TOKEN_HEADER; });
53751/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOST_HEADER", function() { return HOST_HEADER; });
53752/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALWAYS_UNSIGNABLE_HEADERS", function() { return ALWAYS_UNSIGNABLE_HEADERS; });
53753/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PROXY_HEADER_PATTERN", function() { return PROXY_HEADER_PATTERN; });
53754/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SEC_HEADER_PATTERN", function() { return SEC_HEADER_PATTERN; });
53755/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNABLE_PATTERNS", function() { return UNSIGNABLE_PATTERNS; });
53756/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALGORITHM_IDENTIFIER", function() { return ALGORITHM_IDENTIFIER; });
53757/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EVENT_ALGORITHM_IDENTIFIER", function() { return EVENT_ALGORITHM_IDENTIFIER; });
53758/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSIGNED_PAYLOAD", function() { return UNSIGNED_PAYLOAD; });
53759/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_CACHE_SIZE", function() { return MAX_CACHE_SIZE; });
53760/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY_TYPE_IDENTIFIER", function() { return KEY_TYPE_IDENTIFIER; });
53761/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MAX_PRESIGNED_TTL", function() { return MAX_PRESIGNED_TTL; });
53762var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
53763var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
53764var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
53765var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
53766var EXPIRES_QUERY_PARAM = "X-Amz-Expires";
53767var SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
53768var TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
53769var AUTH_HEADER = "authorization";
53770var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();
53771var DATE_HEADER = "date";
53772var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];
53773var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();
53774var SHA256_HEADER = "x-amz-content-sha256";
53775var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();
53776var HOST_HEADER = "host";
53777var ALWAYS_UNSIGNABLE_HEADERS = {
53778 authorization: true,
53779 "cache-control": true,
53780 connection: true,
53781 expect: true,
53782 from: true,
53783 "keep-alive": true,
53784 "max-forwards": true,
53785 pragma: true,
53786 referer: true,
53787 te: true,
53788 trailer: true,
53789 "transfer-encoding": true,
53790 upgrade: true,
53791 "user-agent": true,
53792 "x-amzn-trace-id": true,
53793};
53794var PROXY_HEADER_PATTERN = /^proxy-/;
53795var SEC_HEADER_PATTERN = /^sec-/;
53796var UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i];
53797var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
53798var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD";
53799var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
53800var MAX_CACHE_SIZE = 50;
53801var KEY_TYPE_IDENTIFIER = "aws4_request";
53802var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
53803//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxxQkFBcUIsR0FBRyxpQkFBaUIsQ0FBQztBQUN2RCxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRyxrQkFBa0IsQ0FBQztBQUN6RCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxZQUFZLENBQUM7QUFDakQsTUFBTSxDQUFDLElBQU0sMEJBQTBCLEdBQUcscUJBQXFCLENBQUM7QUFDaEU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VlcC1hbGl2ZVwiOiB0cnVlLFxuICBcIm1heC1mb3J3YXJkc1wiOiB0cnVlLFxuICBwcmFnbWE6IHRydWUsXG4gIHJlZmVyZXI6IHRydWUsXG4gIHRlOiB0cnVlLFxuICB0cmFpbGVyOiB0cnVlLFxuICBcInRyYW5zZmVyLWVuY29kaW5nXCI6IHRydWUsXG4gIHVwZ3JhZGU6IHRydWUsXG4gIFwidXNlci1hZ2VudFwiOiB0cnVlLFxuICBcIngtYW16bi10cmFjZS1pZFwiOiB0cnVlLFxufTtcblxuZXhwb3J0IGNvbnN0IFBST1hZX0hFQURFUl9QQVRURVJOID0gL15wcm94eS0vO1xuXG5leHBvcnQgY29uc3QgU0VDX0hFQURFUl9QQVRURVJOID0gL15zZWMtLztcblxuZXhwb3J0IGNvbnN0IFVOU0lHTkFCTEVfUEFUVEVSTlMgPSBbL15wcm94eS0vaSwgL15zZWMtL2ldO1xuXG5leHBvcnQgY29uc3QgQUxHT1JJVEhNX0lERU5USUZJRVIgPSBcIkFXUzQtSE1BQy1TSEEyNTZcIjtcblxuZXhwb3J0IGNvbnN0IEVWRU5UX0FMR09SSVRITV9JREVOVElGSUVSID0gXCJBV1M0LUhNQUMtU0hBMjU2LVBBWUxPQURcIjtcblxuZXhwb3J0IGNvbnN0IFVOU0lHTkVEX1BBWUxPQUQgPSBcIlVOU0lHTkVELVBBWUxPQURcIjtcblxuZXhwb3J0IGNvbnN0IE1BWF9DQUNIRV9TSVpFID0gNTA7XG5leHBvcnQgY29uc3QgS0VZX1RZUEVfSURFTlRJRklFUiA9IFwiYXdzNF9yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjb25zdCBNQVhfUFJFU0lHTkVEX1RUTCA9IDYwICogNjAgKiAyNCAqIDc7XG4iXX0=
53804
53805/***/ }),
53806
53807/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js":
53808/*!************************************************************************************************************************************!*\
53809 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js ***!
53810 \************************************************************************************************************************************/
53811/*! exports provided: createScope, getSigningKey, clearCredentialCache */
53812/***/ (function(module, __webpack_exports__, __webpack_require__) {
53813
53814"use strict";
53815__webpack_require__.r(__webpack_exports__);
53816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createScope", function() { return createScope; });
53817/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSigningKey", function() { return getSigningKey; });
53818/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearCredentialCache", function() { return clearCredentialCache; });
53819/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53820/* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js");
53821/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js");
53822
53823
53824
53825var signingKeyCache = {};
53826var cacheQueue = [];
53827/**
53828 * Create a string describing the scope of credentials used to sign a request.
53829 *
53830 * @param shortDate The current calendar date in the form YYYYMMDD.
53831 * @param region The AWS region in which the service resides.
53832 * @param service The service to which the signed request is being sent.
53833 */
53834function createScope(shortDate, region, service) {
53835 return shortDate + "/" + region + "/" + service + "/" + _constants__WEBPACK_IMPORTED_MODULE_2__["KEY_TYPE_IDENTIFIER"];
53836}
53837/**
53838 * Derive a signing key from its composite parts
53839 *
53840 * @param sha256Constructor A constructor function that can instantiate SHA-256
53841 * hash objects.
53842 * @param credentials The credentials with which the request will be
53843 * signed.
53844 * @param shortDate The current calendar date in the form YYYYMMDD.
53845 * @param region The AWS region in which the service resides.
53846 * @param service The service to which the signed request is being
53847 * sent.
53848 */
53849var getSigningKey = function (sha256Constructor, credentials, shortDate, region, service) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
53850 var credsHash, cacheKey, key, _a, _b, signable, e_1_1;
53851 var e_1, _c;
53852 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_d) {
53853 switch (_d.label) {
53854 case 0: return [4 /*yield*/, hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId)];
53855 case 1:
53856 credsHash = _d.sent();
53857 cacheKey = shortDate + ":" + region + ":" + service + ":" + Object(_aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_1__["toHex"])(credsHash) + ":" + credentials.sessionToken;
53858 if (cacheKey in signingKeyCache) {
53859 return [2 /*return*/, signingKeyCache[cacheKey]];
53860 }
53861 cacheQueue.push(cacheKey);
53862 while (cacheQueue.length > _constants__WEBPACK_IMPORTED_MODULE_2__["MAX_CACHE_SIZE"]) {
53863 delete signingKeyCache[cacheQueue.shift()];
53864 }
53865 key = "AWS4" + credentials.secretAccessKey;
53866 _d.label = 2;
53867 case 2:
53868 _d.trys.push([2, 7, 8, 9]);
53869 _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])([shortDate, region, service, _constants__WEBPACK_IMPORTED_MODULE_2__["KEY_TYPE_IDENTIFIER"]]), _b = _a.next();
53870 _d.label = 3;
53871 case 3:
53872 if (!!_b.done) return [3 /*break*/, 6];
53873 signable = _b.value;
53874 return [4 /*yield*/, hmac(sha256Constructor, key, signable)];
53875 case 4:
53876 key = _d.sent();
53877 _d.label = 5;
53878 case 5:
53879 _b = _a.next();
53880 return [3 /*break*/, 3];
53881 case 6: return [3 /*break*/, 9];
53882 case 7:
53883 e_1_1 = _d.sent();
53884 e_1 = { error: e_1_1 };
53885 return [3 /*break*/, 9];
53886 case 8:
53887 try {
53888 if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
53889 }
53890 finally { if (e_1) throw e_1.error; }
53891 return [7 /*endfinally*/];
53892 case 9: return [2 /*return*/, (signingKeyCache[cacheKey] = key)];
53893 }
53894 });
53895}); };
53896/**
53897 * @internal
53898 */
53899function clearCredentialCache() {
53900 cacheQueue.length = 0;
53901 Object.keys(signingKeyCache).forEach(function (cacheKey) {
53902 delete signingKeyCache[cacheKey];
53903 });
53904}
53905function hmac(ctor, secret, data) {
53906 var hash = new ctor(secret);
53907 hash.update(data);
53908 return hash.digest();
53909}
53910//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlZGVudGlhbERlcml2YXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY3JlZGVudGlhbERlcml2YXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUVuRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsY0FBYyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRWxFLElBQU0sZUFBZSxHQUFrQyxFQUFFLENBQUM7QUFDMUQsSUFBTSxVQUFVLEdBQWtCLEVBQUUsQ0FBQztBQUVyQzs7Ozs7O0dBTUc7QUFDSCxNQUFNLFVBQVUsV0FBVyxDQUFDLFNBQWlCLEVBQUUsTUFBYyxFQUFFLE9BQWU7SUFDNUUsT0FBVSxTQUFTLFNBQUksTUFBTSxTQUFJLE9BQU8sU0FBSSxtQkFBcUIsQ0FBQztBQUNwRSxDQUFDO0FBRUQ7Ozs7Ozs7Ozs7O0dBV0c7QUFDSCxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQUcsVUFDM0IsaUJBQWtDLEVBQ2xDLFdBQXdCLEVBQ3hCLFNBQWlCLEVBQ2pCLE1BQWMsRUFDZCxPQUFlOzs7OztvQkFFRyxxQkFBTSxJQUFJLENBQUMs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iAgICBrZXkgPSBhd2FpdCBobWFjKHNoYTI1NkNvbnN0cnVjdG9yLCBrZXksIHNpZ25hYmxlKTtcbiAgfVxuICByZXR1cm4gKHNpZ25pbmdLZXlDYWNoZVtjYWNoZUtleV0gPSBrZXkgYXMgVWludDhBcnJheSk7XG59O1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgZnVuY3Rpb24gY2xlYXJDcmVkZW50aWFsQ2FjaGUoKTogdm9pZCB7XG4gIGNhY2hlUXVldWUubGVuZ3RoID0gMDtcbiAgT2JqZWN0LmtleXMoc2lnbmluZ0tleUNhY2hlKS5mb3JFYWNoKChjYWNoZUtleSkgPT4ge1xuICAgIGRlbGV0ZSBzaWduaW5nS2V5Q2FjaGVbY2FjaGVLZXldO1xuICB9KTtcbn1cblxuZnVuY3Rpb24gaG1hYyhjdG9yOiBIYXNoQ29uc3RydWN0b3IsIHNlY3JldDogU291cmNlRGF0YSwgZGF0YTogU291cmNlRGF0YSk6IFByb21pc2U8VWludDhBcnJheT4ge1xuICBjb25zdCBoYXNoID0gbmV3IGN0b3Ioc2VjcmV0KTtcbiAgaGFzaC51cGRhdGUoZGF0YSk7XG4gIHJldHVybiBoYXNoLmRpZ2VzdCgpO1xufVxuIl19
53911
53912/***/ }),
53913
53914/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalHeaders.js":
53915/*!***********************************************************************************************************************************!*\
53916 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalHeaders.js ***!
53917 \***********************************************************************************************************************************/
53918/*! exports provided: getCanonicalHeaders */
53919/***/ (function(module, __webpack_exports__, __webpack_require__) {
53920
53921"use strict";
53922__webpack_require__.r(__webpack_exports__);
53923/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCanonicalHeaders", function() { return getCanonicalHeaders; });
53924/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53925/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js");
53926
53927
53928/**
53929 * @internal
53930 */
53931function getCanonicalHeaders(_a, unsignableHeaders, signableHeaders) {
53932 var e_1, _b;
53933 var headers = _a.headers;
53934 var canonical = {};
53935 try {
53936 for (var _c = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers).sort()), _d = _c.next(); !_d.done; _d = _c.next()) {
53937 var headerName = _d.value;
53938 var canonicalHeaderName = headerName.toLowerCase();
53939 if (canonicalHeaderName in _constants__WEBPACK_IMPORTED_MODULE_1__["ALWAYS_UNSIGNABLE_HEADERS"] || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) ||
53940 _constants__WEBPACK_IMPORTED_MODULE_1__["PROXY_HEADER_PATTERN"].test(canonicalHeaderName) ||
53941 _constants__WEBPACK_IMPORTED_MODULE_1__["SEC_HEADER_PATTERN"].test(canonicalHeaderName)) {
53942 if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) {
53943 continue;
53944 }
53945 }
53946 canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " ");
53947 }
53948 }
53949 catch (e_1_1) { e_1 = { error: e_1_1 }; }
53950 finally {
53951 try {
53952 if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
53953 }
53954 finally { if (e_1) throw e_1.error; }
53955 }
53956 return canonical;
53957}
53958//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2Fub25pY2FsSGVhZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nZXRDYW5vbmljYWxIZWFkZXJzLnRzIl0sIm5h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MgfHwgKHNpZ25hYmxlSGVhZGVycyAmJiAhc2lnbmFibGVIZWFkZXJzLmhhcyhjYW5vbmljYWxIZWFkZXJOYW1lKSkpIHtcbiAgICAgICAgY29udGludWU7XG4gICAgICB9XG4gICAgfVxuXG4gICAgY2Fub25pY2FsW2Nhbm9uaWNhbEhlYWRlck5hbWVdID0gaGVhZGVyc1toZWFkZXJOYW1lXS50cmltKCkucmVwbGFjZSgvXFxzKy9nLCBcIiBcIik7XG4gIH1cblxuICByZXR1cm4gY2Fub25pY2FsO1xufVxuIl19
53959
53960/***/ }),
53961
53962/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalQuery.js":
53963/*!*********************************************************************************************************************************!*\
53964 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getCanonicalQuery.js ***!
53965 \*********************************************************************************************************************************/
53966/*! exports provided: getCanonicalQuery */
53967/***/ (function(module, __webpack_exports__, __webpack_require__) {
53968
53969"use strict";
53970__webpack_require__.r(__webpack_exports__);
53971/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCanonicalQuery", function() { return getCanonicalQuery; });
53972/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
53973/* harmony import */ var _aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/util-uri-escape */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js");
53974/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js");
53975
53976
53977
53978/**
53979 * @internal
53980 */
53981function getCanonicalQuery(_a) {
53982 var e_1, _b;
53983 var _c = _a.query, query = _c === void 0 ? {} : _c;
53984 var keys = [];
53985 var serialized = {};
53986 var _loop_1 = function (key) {
53987 if (key.toLowerCase() === _constants__WEBPACK_IMPORTED_MODULE_2__["SIGNATURE_HEADER"]) {
53988 return "continue";
53989 }
53990 keys.push(key);
53991 var value = query[key];
53992 if (typeof value === "string") {
53993 serialized[key] = Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(key) + "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value);
53994 }
53995 else if (Array.isArray(value)) {
53996 serialized[key] = value
53997 .slice(0)
53998 .sort()
53999 .reduce(function (encoded, value) { return encoded.concat([Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(key) + "=" + Object(_aws_sdk_util_uri_escape__WEBPACK_IMPORTED_MODULE_1__["escapeUri"])(value)]); }, [])
54000 .join("&");
54001 }
54002 };
54003 try {
54004 for (var _d = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(query).sort()), _e = _d.next(); !_e.done; _e = _d.next()) {
54005 var key = _e.value;
54006 _loop_1(key);
54007 }
54008 }
54009 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54010 finally {
54011 try {
54012 if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
54013 }
54014 finally { if (e_1) throw e_1.error; }
54015 }
54016 return keys
54017 .map(function (key) { return serialized[key]; })
54018 .filter(function (serialized) { return serialized; }) // omit any falsy values
54019 .join("&");
54020}
54021//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0Q2Fub25pY2FsUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZ2V0Q2Fub25pY2FsUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQ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G4gICAgICBjb250aW51ZTtcbiAgICB9XG5cbiAgICBrZXlzLnB1c2goa2V5KTtcbiAgICBjb25zdCB2YWx1ZSA9IHF1ZXJ5W2tleV07XG4gICAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgc2VyaWFsaXplZFtrZXldID0gYCR7ZXNjYXBlVXJpKGtleSl9PSR7ZXNjYXBlVXJpKHZhbHVlKX1gO1xuICAgIH0gZWxzZSBpZiAoQXJyYXkuaXNBcnJheSh2YWx1ZSkpIHtcbiAgICAgIHNlcmlhbGl6ZWRba2V5XSA9IHZhbHVlXG4gICAgICAgIC5zbGljZSgwKVxuICAgICAgICAuc29ydCgpXG4gICAgICAgIC5yZWR1Y2UoXG4gICAgICAgICAgKGVuY29kZWQ6IEFycmF5PHN0cmluZz4sIHZhbHVlOiBzdHJpbmcpID0+IGVuY29kZWQuY29uY2F0KFtgJHtlc2NhcGVVcmkoa2V5KX09JHtlc2NhcGVVcmkodmFsdWUpfWBdKSxcbiAgICAgICAgICBbXVxuICAgICAgICApXG4gICAgICAgIC5qb2luKFwiJlwiKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4ga2V5c1xuICAgIC5tYXAoKGtleSkgPT4gc2VyaWFsaXplZFtrZXldKVxuICAgIC5maWx0ZXIoKHNlcmlhbGl6ZWQpID0+IHNlcmlhbGl6ZWQpIC8vIG9taXQgYW55IGZhbHN5IHZhbHVlc1xuICAgIC5qb2luKFwiJlwiKTtcbn1cbiJdfQ==
54022
54023/***/ }),
54024
54025/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getPayloadHash.js":
54026/*!******************************************************************************************************************************!*\
54027 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/getPayloadHash.js ***!
54028 \******************************************************************************************************************************/
54029/*! exports provided: getPayloadHash */
54030/***/ (function(module, __webpack_exports__, __webpack_require__) {
54031
54032"use strict";
54033__webpack_require__.r(__webpack_exports__);
54034/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPayloadHash", function() { return getPayloadHash; });
54035/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54036/* harmony import */ var _aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/is-array-buffer */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/is-array-buffer/dist/es/index.js");
54037/* harmony import */ var _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-hex-encoding */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js");
54038/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js");
54039
54040
54041
54042
54043/**
54044 * @internal
54045 */
54046function getPayloadHash(_a, hashConstructor) {
54047 var headers = _a.headers, body = _a.body;
54048 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
54049 var _b, _c, headerName, hashCtor, _d;
54050 var e_1, _e;
54051 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_f) {
54052 switch (_f.label) {
54053 case 0:
54054 try {
54055 for (_b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _c = _b.next(); !_c.done; _c = _b.next()) {
54056 headerName = _c.value;
54057 if (headerName.toLowerCase() === _constants__WEBPACK_IMPORTED_MODULE_3__["SHA256_HEADER"]) {
54058 return [2 /*return*/, headers[headerName]];
54059 }
54060 }
54061 }
54062 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54063 finally {
54064 try {
54065 if (_c && !_c.done && (_e = _b.return)) _e.call(_b);
54066 }
54067 finally { if (e_1) throw e_1.error; }
54068 }
54069 if (!(body == undefined)) return [3 /*break*/, 1];
54070 return [2 /*return*/, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];
54071 case 1:
54072 if (!(typeof body === "string" || ArrayBuffer.isView(body) || Object(_aws_sdk_is_array_buffer__WEBPACK_IMPORTED_MODULE_1__["isArrayBuffer"])(body))) return [3 /*break*/, 3];
54073 hashCtor = new hashConstructor();
54074 hashCtor.update(body);
54075 _d = _aws_sdk_util_hex_encoding__WEBPACK_IMPORTED_MODULE_2__["toHex"];
54076 return [4 /*yield*/, hashCtor.digest()];
54077 case 2: return [2 /*return*/, _d.apply(void 0, [_f.sent()])];
54078 case 3:
54079 // As any defined body that is not a string or binary data is a stream, this
54080 // body is unsignable. Attempt to send the request with an unsigned payload,
54081 // which may or may not be accepted by the service.
54082 return [2 /*return*/, _constants__WEBPACK_IMPORTED_MODULE_3__["UNSIGNED_PAYLOAD"]];
54083 }
54084 });
54085 });
54086}
54087//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0UGF5bG9hZEhhc2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZ2V0UGF5bG9hZEhhc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFbkQsT0FBTyxFQUFFLGFBQWEsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUU5RDs7R0FFRztBQUNILE1BQU0sVUFBZ0IsY0FBYyxDQUNsQyxFQUE4QixFQUM5QixlQUFnQztRQUQ5QixPQUFPLGFBQUEsRUFBRSxJQUFJLFVBQUE7Ozs7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RhIGlzIGEgc3RyZWFtLCB0aGlzXG4gIC8vIGJvZHkgaXMgdW5zaWduYWJsZS4gQXR0ZW1wdCB0byBzZW5kIHRoZSByZXF1ZXN0IHdpdGggYW4gdW5zaWduZWQgcGF5bG9hZCxcbiAgLy8gd2hpY2ggbWF5IG9yIG1heSBub3QgYmUgYWNjZXB0ZWQgYnkgdGhlIHNlcnZpY2UuXG4gIHJldHVybiBVTlNJR05FRF9QQVlMT0FEO1xufVxuIl19
54088
54089/***/ }),
54090
54091/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/hasHeader.js":
54092/*!*************************************************************************************************************************!*\
54093 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/hasHeader.js ***!
54094 \*************************************************************************************************************************/
54095/*! exports provided: hasHeader */
54096/***/ (function(module, __webpack_exports__, __webpack_require__) {
54097
54098"use strict";
54099__webpack_require__.r(__webpack_exports__);
54100/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasHeader", function() { return hasHeader; });
54101/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54102
54103function hasHeader(soughtHeader, headers) {
54104 var e_1, _a;
54105 soughtHeader = soughtHeader.toLowerCase();
54106 try {
54107 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _c = _b.next(); !_c.done; _c = _b.next()) {
54108 var headerName = _c.value;
54109 if (soughtHeader === headerName.toLowerCase()) {
54110 return true;
54111 }
54112 }
54113 }
54114 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54115 finally {
54116 try {
54117 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
54118 }
54119 finally { if (e_1) throw e_1.error; }
54120 }
54121 return false;
54122}
54123//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFzSGVhZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hhc0hlYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsTUFBTSxVQUFVLFNBQVMsQ0FBQyxZQUFvQixFQUFFLE9BQWtCOztJQUNoRSxZQUFZLEdBQUcsWUFBWSxDQUFDLFdBQVcsRUFBRSxDQUFDOztRQUMxQyxLQUF5QixJQUFBLEtBQUEsU0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO1lBQTFDLElBQU0sVUFBVSxXQUFBO1lBQ25CLElBQUksWUFBWSxLQUFLLFVBQVUsQ0FBQyxXQUFXLEVBQUUsRUFBRTtnQkFDN0MsT0FBTyxJQUFJLENBQUM7YUFDYjtTQUNGOzs7Ozs7Ozs7SUFFRCxPQUFPLEtBQUssQ0FBQztBQUNmLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIZWFkZXJCYWcgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGhhc0hlYWRlcihzb3VnaHRIZWFkZXI6IHN0cmluZywgaGVhZGVyczogSGVhZGVyQmFnKTogYm9vbGVhbiB7XG4gIHNvdWdodEhlYWRlciA9IHNvdWdodEhlYWRlci50b0xvd2VyQ2FzZSgpO1xuICBmb3IgKGNvbnN0IGhlYWRlck5hbWUgb2YgT2JqZWN0LmtleXMoaGVhZGVycykpIHtcbiAgICBpZiAoc291Z2h0SGVhZGVyID09PSBoZWFkZXJOYW1lLnRvTG93ZXJDYXNlKCkpIHtcbiAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBmYWxzZTtcbn1cbiJdfQ==
54124
54125/***/ }),
54126
54127/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/index.js":
54128/*!*********************************************************************************************************************!*\
54129 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/index.js ***!
54130 \*********************************************************************************************************************/
54131/*! exports provided: createScope, getSigningKey, clearCredentialCache, SignatureV4 */
54132/***/ (function(module, __webpack_exports__, __webpack_require__) {
54133
54134"use strict";
54135__webpack_require__.r(__webpack_exports__);
54136/* harmony import */ var _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./credentialDerivation */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/credentialDerivation.js");
54137/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createScope", function() { return _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__["createScope"]; });
54138
54139/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getSigningKey", function() { return _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__["getSigningKey"]; });
54140
54141/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearCredentialCache", function() { return _credentialDerivation__WEBPACK_IMPORTED_MODULE_0__["clearCredentialCache"]; });
54142
54143/* harmony import */ var _SignatureV4__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SignatureV4 */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/SignatureV4.js");
54144/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SignatureV4", function() { return _SignatureV4__WEBPACK_IMPORTED_MODULE_1__["SignatureV4"]; });
54145
54146
54147
54148//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NyZWRlbnRpYWxEZXJpdmF0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9TaWduYXR1cmVWNFwiO1xuIl19
54149
54150/***/ }),
54151
54152/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/moveHeadersToQuery.js":
54153/*!**********************************************************************************************************************************!*\
54154 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/moveHeadersToQuery.js ***!
54155 \**********************************************************************************************************************************/
54156/*! exports provided: moveHeadersToQuery */
54157/***/ (function(module, __webpack_exports__, __webpack_require__) {
54158
54159"use strict";
54160__webpack_require__.r(__webpack_exports__);
54161/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "moveHeadersToQuery", function() { return moveHeadersToQuery; });
54162/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54163/* harmony import */ var _cloneRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cloneRequest */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js");
54164
54165
54166/**
54167 * @internal
54168 */
54169function moveHeadersToQuery(request, options) {
54170 var e_1, _a;
54171 var _b;
54172 if (options === void 0) { options = {}; }
54173 var _c = typeof request.clone === "function" ? request.clone() : Object(_cloneRequest__WEBPACK_IMPORTED_MODULE_1__["cloneRequest"])(request), headers = _c.headers, _d = _c.query, query = _d === void 0 ? {} : _d;
54174 try {
54175 for (var _e = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(headers)), _f = _e.next(); !_f.done; _f = _e.next()) {
54176 var name = _f.value;
54177 var lname = name.toLowerCase();
54178 if (lname.substr(0, 6) === "x-amz-" && !((_b = options.unhoistableHeaders) === null || _b === void 0 ? void 0 : _b.has(lname))) {
54179 query[name] = headers[name];
54180 delete headers[name];
54181 }
54182 }
54183 }
54184 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54185 finally {
54186 try {
54187 if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
54188 }
54189 finally { if (e_1) throw e_1.error; }
54190 }
54191 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, request), { headers: headers,
54192 query: query });
54193}
54194//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW92ZUhlYWRlcnNUb1F1ZXJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21vdmVIZWFkZXJzVG9RdWVyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTlDOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGtCQUFrQixDQUNoQyxPQUFvQixFQUNwQixPQUFrRDs7O0lBQWxELHdCQUFBLEVBQUEsWUFBa0Q7SUFFNUMsSUFBQSxLQUNKLE9BQVEsT0FBZSxDQUFDLEtBQUssS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFFLE9BQWUsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxFQUR6RixPQUFPLGFBQUEsRUFBRSxhQUErQixFQUEvQixLQUFLLG1CQUFHLEVBQXVCLEtBQ2lELENBQUM7O1FBQ2xHLEtBQW1CLElBQUEsS0FBQSxTQUFBLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUEsZ0JBQUEsNEJBQUU7WUFBcEMsSUFBTSxJQUFJLFdBQUE7WUFDYixJQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsV0FBVyxFQUF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N0KTtcbiAgZm9yIChjb25zdCBuYW1lIG9mIE9iamVjdC5rZXlzKGhlYWRlcnMpKSB7XG4gICAgY29uc3QgbG5hbWUgPSBuYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgaWYgKGxuYW1lLnN1YnN0cigwLCA2KSA9PT0gXCJ4LWFtei1cIiAmJiAhb3B0aW9ucy51bmhvaXN0YWJsZUhlYWRlcnM/LmhhcyhsbmFtZSkpIHtcbiAgICAgIHF1ZXJ5W25hbWVdID0gaGVhZGVyc1tuYW1lXTtcbiAgICAgIGRlbGV0ZSBoZWFkZXJzW25hbWVdO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB7XG4gICAgLi4ucmVxdWVzdCxcbiAgICBoZWFkZXJzLFxuICAgIHF1ZXJ5LFxuICB9O1xufVxuIl19
54195
54196/***/ }),
54197
54198/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/prepareRequest.js":
54199/*!******************************************************************************************************************************!*\
54200 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/prepareRequest.js ***!
54201 \******************************************************************************************************************************/
54202/*! exports provided: prepareRequest */
54203/***/ (function(module, __webpack_exports__, __webpack_require__) {
54204
54205"use strict";
54206__webpack_require__.r(__webpack_exports__);
54207/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prepareRequest", function() { return prepareRequest; });
54208/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54209/* harmony import */ var _cloneRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cloneRequest */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/cloneRequest.js");
54210/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/constants.js");
54211
54212
54213
54214/**
54215 * @internal
54216 */
54217function prepareRequest(request) {
54218 var e_1, _a;
54219 // Create a clone of the request object that does not clone the body
54220 request = typeof request.clone === "function" ? request.clone() : Object(_cloneRequest__WEBPACK_IMPORTED_MODULE_1__["cloneRequest"])(request);
54221 try {
54222 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(Object.keys(request.headers)), _c = _b.next(); !_c.done; _c = _b.next()) {
54223 var headerName = _c.value;
54224 if (_constants__WEBPACK_IMPORTED_MODULE_2__["GENERATED_HEADERS"].indexOf(headerName.toLowerCase()) > -1) {
54225 delete request.headers[headerName];
54226 }
54227 }
54228 }
54229 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54230 finally {
54231 try {
54232 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
54233 }
54234 finally { if (e_1) throw e_1.error; }
54235 }
54236 return request;
54237}
54238//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlcGFyZVJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcHJlcGFyZVJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM5QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFaEQ7O0dBRUc7QUFDSCxNQUFNLFVBQVUsY0FBYyxDQUFDLE9BQW9COztJQUNqRCxvRUFBb0U7SUFDcEUsT0FBTyxHQUFHLE9BQVEsT0FBZSxDQUFDLEtBQUssS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFFLE9BQWUsQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxDQUFDOztRQUUxRyxLQUF5QixJQ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AoR0VORVJBVEVEX0hFQURFUlMuaW5kZXhPZihoZWFkZXJOYW1lLnRvTG93ZXJDYXNlKCkpID4gLTEpIHtcbiAgICAgIGRlbGV0ZSByZXF1ZXN0LmhlYWRlcnNbaGVhZGVyTmFtZV07XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJlcXVlc3Q7XG59XG4iXX0=
54239
54240/***/ }),
54241
54242/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/utilDate.js":
54243/*!************************************************************************************************************************!*\
54244 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/signature-v4/dist/es/utilDate.js ***!
54245 \************************************************************************************************************************/
54246/*! exports provided: iso8601, toDate */
54247/***/ (function(module, __webpack_exports__, __webpack_require__) {
54248
54249"use strict";
54250__webpack_require__.r(__webpack_exports__);
54251/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iso8601", function() { return iso8601; });
54252/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toDate", function() { return toDate; });
54253function iso8601(time) {
54254 return toDate(time)
54255 .toISOString()
54256 .replace(/\.\d{3}Z$/, "Z");
54257}
54258function toDate(time) {
54259 if (typeof time === "number") {
54260 return new Date(time * 1000);
54261 }
54262 if (typeof time === "string") {
54263 if (Number(time)) {
54264 return new Date(Number(time) * 1000);
54265 }
54266 return new Date(time);
54267 }
54268 return time;
54269}
54270//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbERhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbERhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLE9BQU8sQ0FBQyxJQUE0QjtJQUNsRCxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUM7U0FDaEIsV0FBVyxFQUFFO1NBQ2IsT0FBTyxDQUFDLFdBQVc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GUodGltZSk7XG4gIH1cblxuICByZXR1cm4gdGltZTtcbn1cbiJdfQ==
54271
54272/***/ }),
54273
54274/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js":
54275/*!**************************************************************************************************************************!*\
54276 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-hex-encoding/dist/es/index.js ***!
54277 \**************************************************************************************************************************/
54278/*! exports provided: fromHex, toHex */
54279/***/ (function(module, __webpack_exports__, __webpack_require__) {
54280
54281"use strict";
54282__webpack_require__.r(__webpack_exports__);
54283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromHex", function() { return fromHex; });
54284/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHex", function() { return toHex; });
54285var SHORT_TO_HEX = {};
54286var HEX_TO_SHORT = {};
54287for (var i = 0; i < 256; i++) {
54288 var encodedByte = i.toString(16).toLowerCase();
54289 if (encodedByte.length === 1) {
54290 encodedByte = "0" + encodedByte;
54291 }
54292 SHORT_TO_HEX[i] = encodedByte;
54293 HEX_TO_SHORT[encodedByte] = i;
54294}
54295/**
54296 * Converts a hexadecimal encoded string to a Uint8Array of bytes.
54297 *
54298 * @param encoded The hexadecimal encoded string
54299 */
54300function fromHex(encoded) {
54301 if (encoded.length % 2 !== 0) {
54302 throw new Error("Hex encoded strings must have an even number length");
54303 }
54304 var out = new Uint8Array(encoded.length / 2);
54305 for (var i = 0; i < encoded.length; i += 2) {
54306 var encodedByte = encoded.substr(i, 2).toLowerCase();
54307 if (encodedByte in HEX_TO_SHORT) {
54308 out[i / 2] = HEX_TO_SHORT[encodedByte];
54309 }
54310 else {
54311 throw new Error("Cannot decode unrecognized sequence " + encodedByte + " as hexadecimal");
54312 }
54313 }
54314 return out;
54315}
54316/**
54317 * Converts a Uint8Array of binary data to a hexadecimal encoded string.
54318 *
54319 * @param bytes The binary data to encode
54320 */
54321function toHex(bytes) {
54322 var out = "";
54323 for (var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gYXMgaGV4YWRlY2ltYWxgKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gb3V0O1xufVxuXG4vKipcbiAqIENvbnZlcnRzIGEgVWludDhBcnJheSBvZiBiaW5hcnkgZGF0YSB0byBhIGhleGFkZWNpbWFsIGVuY29kZWQgc3RyaW5nLlxuICpcbiAqIEBwYXJhbSBieXRlcyBUaGUgYmluYXJ5IGRhdGEgdG8gZW5jb2RlXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0b0hleChieXRlczogVWludDhBcnJheSk6IHN0cmluZyB7XG4gIGxldCBvdXQgPSBcIlwiO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGJ5dGVzLmJ5dGVMZW5ndGg7IGkrKykge1xuICAgIG91dCArPSBTSE9SVF9UT19IRVhbYnl0ZXNbaV1dO1xuICB9XG5cbiAgcmV0dXJuIG91dDtcbn1cbiJdfQ==
54329
54330/***/ }),
54331
54332/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js":
54333/*!**********************************************************************************************************************************!*\
54334 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js ***!
54335 \**********************************************************************************************************************************/
54336/*! exports provided: escapeUriPath */
54337/***/ (function(module, __webpack_exports__, __webpack_require__) {
54338
54339"use strict";
54340__webpack_require__.r(__webpack_exports__);
54341/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return escapeUriPath; });
54342/* harmony import */ var _escape_uri__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-uri */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js");
54343
54344var escapeUriPath = function (uri) { return uri.split("/").map(_escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]).join("/"); };
54345//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS1wYXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2VzY2FwZS11cmktcGF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRXpDLE1BQU0sQ0FBQyxJQUFNLGFBQWEsR0FBRyxVQUFDLEdBQVcsSUFBYSxPQUFBLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBdkMsQ0FBdUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGVzY2FwZVVyaSB9IGZyb20gXCIuL2VzY2FwZS11cmlcIjtcblxuZXhwb3J0IGNvbnN0IGVzY2FwZVVyaVBhdGggPSAodXJpOiBzdHJpbmcpOiBzdHJpbmcgPT4gdXJpLnNwbGl0KFwiL1wiKS5tYXAoZXNjYXBlVXJpKS5qb2luKFwiL1wiKTtcbiJdfQ==
54346
54347/***/ }),
54348
54349/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js":
54350/*!*****************************************************************************************************************************!*\
54351 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js ***!
54352 \*****************************************************************************************************************************/
54353/*! exports provided: escapeUri */
54354/***/ (function(module, __webpack_exports__, __webpack_require__) {
54355
54356"use strict";
54357__webpack_require__.r(__webpack_exports__);
54358/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return escapeUri; });
54359var escapeUri = function (uri) {
54360 // AWS percent-encodes some extra non-standard characters in a URI
54361 return encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
54362};
54363var hexEncode = function (c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); };
54364//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNjYXBlLXVyaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lc2NhcGUtdXJpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxJQUFNLFNBQVMsR0FBRyxVQUFDLEdBQVc7SUFDbkMsa0VBQWtFO0lBQ2xFLE9BQUEsa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQVUsRUFBRSxTQUFTLENBQUM7QUFBdEQsQ0FBc0QsQ0FBQztBQUV6RCxJQUFNLFNBQVMsR0FBRyxVQUFDLENBQVMsSUFBSyxPQUFBLE1BQUksQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsV0FBVyxFQUFJLEVBQWhELENBQWdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgZXNjYXBlVXJpID0gKHVyaTogc3RyaW5nKTogc3RyaW5nID0+XG4gIC8vIEFXUyBwZXJjZW50LWVuY29kZXMgc29tZSBleHRyYSBub24tc3RhbmRhcmQgY2hhcmFjdGVycyBpbiBhIFVSSVxuICBlbmNvZGVVUklDb21wb25lbnQodXJpKS5yZXBsYWNlKC9bIScoKSpdL2csIGhleEVuY29kZSk7XG5cbmNvbnN0IGhleEVuY29kZSA9IChjOiBzdHJpbmcpID0+IGAlJHtjLmNoYXJDb2RlQXQoMCkudG9TdHJpbmcoMTYpLnRvVXBwZXJDYXNlKCl9YDtcbiJdfQ==
54365
54366/***/ }),
54367
54368/***/ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js":
54369/*!************************************************************************************************************************!*\
54370 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/index.js ***!
54371 \************************************************************************************************************************/
54372/*! exports provided: escapeUri, escapeUriPath */
54373/***/ (function(module, __webpack_exports__, __webpack_require__) {
54374
54375"use strict";
54376__webpack_require__.r(__webpack_exports__);
54377/* harmony import */ var _escape_uri__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-uri */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri.js");
54378/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUri", function() { return _escape_uri__WEBPACK_IMPORTED_MODULE_0__["escapeUri"]; });
54379
54380/* harmony import */ var _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./escape-uri-path */ "../../node_modules/@aws-sdk/middleware-signing/node_modules/@aws-sdk/util-uri-escape/dist/es/escape-uri-path.js");
54381/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "escapeUriPath", function() { return _escape_uri_path__WEBPACK_IMPORTED_MODULE_1__["escapeUriPath"]; });
54382
54383
54384
54385//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2VzY2FwZS11cmktcGF0aFwiO1xuIl19
54386
54387/***/ }),
54388
54389/***/ "../../node_modules/@aws-sdk/middleware-stack/dist/es/MiddlewareStack.js":
54390/*!******************************************************************************************!*\
54391 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-stack/dist/es/MiddlewareStack.js ***!
54392 \******************************************************************************************/
54393/*! exports provided: constructStack */
54394/***/ (function(module, __webpack_exports__, __webpack_require__) {
54395
54396"use strict";
54397__webpack_require__.r(__webpack_exports__);
54398/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constructStack", function() { return constructStack; });
54399/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54400
54401var constructStack = function () {
54402 var absoluteEntries = [];
54403 var relativeEntries = [];
54404 var entriesNameSet = new Set();
54405 var sort = function (entries) {
54406 return entries.sort(function (a, b) {
54407 return stepWeights[b.step] - stepWeights[a.step] ||
54408 priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"];
54409 });
54410 };
54411 var removeByName = function (toRemove) {
54412 var isRemoved = false;
54413 var filterCb = function (entry) {
54414 if (entry.name && entry.name === toRemove) {
54415 isRemoved = true;
54416 entriesNameSet.delete(toRemove);
54417 return false;
54418 }
54419 return true;
54420 };
54421 absoluteEntries = absoluteEntries.filter(filterCb);
54422 relativeEntries = relativeEntries.filter(filterCb);
54423 return isRemoved;
54424 };
54425 var removeByReference = function (toRemove) {
54426 var isRemoved = false;
54427 var filterCb = function (entry) {
54428 if (entry.middleware === toRemove) {
54429 isRemoved = true;
54430 if (entry.name)
54431 entriesNameSet.delete(entry.name);
54432 return false;
54433 }
54434 return true;
54435 };
54436 absoluteEntries = absoluteEntries.filter(filterCb);
54437 relativeEntries = relativeEntries.filter(filterCb);
54438 return isRemoved;
54439 };
54440 var cloneTo = function (toStack) {
54441 absoluteEntries.forEach(function (entry) {
54442 //@ts-ignore
54443 toStack.add(entry.middleware, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry));
54444 });
54445 relativeEntries.forEach(function (entry) {
54446 //@ts-ignore
54447 toStack.addRelativeTo(entry.middleware, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry));
54448 });
54449 return toStack;
54450 };
54451 var expandRelativeMiddlewareList = function (from) {
54452 var expandedMiddlewareList = [];
54453 from.before.forEach(function (entry) {
54454 if (entry.before.length === 0 && entry.after.length === 0) {
54455 expandedMiddlewareList.push(entry);
54456 }
54457 else {
54458 expandedMiddlewareList.push.apply(expandedMiddlewareList, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(expandRelativeMiddlewareList(entry)));
54459 }
54460 });
54461 expandedMiddlewareList.push(from);
54462 from.after.reverse().forEach(function (entry) {
54463 if (entry.before.length === 0 && entry.after.length === 0) {
54464 expandedMiddlewareList.push(entry);
54465 }
54466 else {
54467 expandedMiddlewareList.push.apply(expandedMiddlewareList, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(expandRelativeMiddlewareList(entry)));
54468 }
54469 });
54470 return expandedMiddlewareList;
54471 };
54472 /**
54473 * Get a final list of middleware in the order of being executed in the resolved handler.
54474 */
54475 var getMiddlewareList = function () {
54476 var normalizedAbsoluteEntries = [];
54477 var normalizedRelativeEntries = [];
54478 var normalizedEntriesNameMap = {};
54479 absoluteEntries.forEach(function (entry) {
54480 var normalizedEntry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry), { before: [], after: [] });
54481 if (normalizedEntry.name)
54482 normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
54483 normalizedAbsoluteEntries.push(normalizedEntry);
54484 });
54485 relativeEntries.forEach(function (entry) {
54486 var normalizedEntry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, entry), { before: [], after: [] });
54487 if (normalizedEntry.name)
54488 normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
54489 normalizedRelativeEntries.push(normalizedEntry);
54490 });
54491 normalizedRelativeEntries.forEach(function (entry) {
54492 if (entry.toMiddleware) {
54493 var toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
54494 if (toMiddleware === undefined) {
54495 throw new Error(entry.toMiddleware + " is not found when adding " + (entry.name || "anonymous") + " middleware " + entry.relation + " " + entry.toMiddleware);
54496 }
54497 if (entry.relation === "after") {
54498 toMiddleware.after.push(entry);
54499 }
54500 if (entry.relation === "before") {
54501 toMiddleware.before.push(entry);
54502 }
54503 }
54504 });
54505 var mainChain = sort(normalizedAbsoluteEntries)
54506 .map(expandRelativeMiddlewareList)
54507 .reduce(function (wholeList, expendedMiddlewareList) {
54508 // TODO: Replace it with Array.flat();
54509 wholeList.push.apply(wholeList, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(expendedMiddlewareList));
54510 return wholeList;
54511 }, []);
54512 return mainChain.map(function (entry) { return entry.middleware; });
54513 };
54514 var stack = {
54515 add: function (middleware, options) {
54516 if (options === void 0) { options = {}; }
54517 var name = options.name, override = options.override;
54518 var entry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ step: "initialize", priority: "normal", middleware: middleware }, options);
54519 if (name) {
54520 if (entriesNameSet.has(name)) {
54521 if (!override)
54522 throw new Error("Duplicate middleware name '" + name + "'");
54523 var toOverrideIndex = absoluteEntries.findIndex(function (entry) { return entry.name === name; });
54524 var toOverride = absoluteEntries[toOverrideIndex];
54525 if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
54526 throw new Error("\"" + name + "\" middleware with " + toOverride.priority + " priority in " + toOverride.step + " step cannot be " +
54527 ("overridden by same-name middleware with " + entry.priority + " priority in " + entry.step + " step."));
54528 }
54529 absoluteEntries.splice(toOverrideIndex, 1);
54530 }
54531 entriesNameSet.add(name);
54532 }
54533 absoluteEntries.push(entry);
54534 },
54535 addRelativeTo: function (middleware, options) {
54536 var name = options.name, override = options.override;
54537 var entry = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ middleware: middleware }, options);
54538 if (name) {
54539 if (entriesNameSet.has(name)) {
54540 if (!override)
54541 throw new Error("Duplicate middleware name '" + name + "'");
54542 var toOverrideIndex = relativeEntries.findIndex(function (entry) { return entry.name === name; });
54543 var toOverride = relativeEntries[toOverrideIndex];
54544 if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
54545 throw new Error("\"" + name + "\" middleware " + toOverride.relation + " \"" + toOverride.toMiddleware + "\" middleware cannot be overridden " +
54546 ("by same-name middleware " + entry.relation + " \"" + entry.toMiddleware + "\" middleware."));
54547 }
54548 relativeEntries.splice(toOverrideIndex, 1);
54549 }
54550 entriesNameSet.add(name);
54551 }
54552 relativeEntries.push(entry);
54553 },
54554 clone: function () { return cloneTo(constructStack()); },
54555 use: function (plugin) {
54556 plugin.applyToStack(stack);
54557 },
54558 remove: function (toRemove) {
54559 if (typeof toRemove === "string")
54560 return removeByName(toRemove);
54561 else
54562 return removeByReference(toRemove);
54563 },
54564 removeByTag: function (toRemove) {
54565 var isRemoved = false;
54566 var filterCb = function (entry) {
54567 var tags = entry.tags, name = entry.name;
54568 if (tags && tags.includes(toRemove)) {
54569 if (name)
54570 entriesNameSet.delete(name);
54571 isRemoved = true;
54572 return false;
54573 }
54574 return true;
54575 };
54576 absoluteEntries = absoluteEntries.filter(filterCb);
54577 relativeEntries = relativeEntries.filter(filterCb);
54578 return isRemoved;
54579 },
54580 concat: function (from) {
54581 var cloned = cloneTo(constructStack());
54582 cloned.use(from);
54583 return cloned;
54584 },
54585 applyToStack: cloneTo,
54586 resolve: function (handler, context) {
54587 var e_1, _a;
54588 try {
54589 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(getMiddlewareList().reverse()), _c = _b.next(); !_c.done; _c = _b.next()) {
54590 var middleware = _c.value;
54591 handler = middleware(handler, context);
54592 }
54593 }
54594 catch (e_1_1) { e_1 = { error: e_1_1 }; }
54595 finally {
54596 try {
54597 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
54598 }
54599 finally { if (e_1) throw e_1.error; }
54600 }
54601 return handler;
54602 },
54603 };
54604 return stack;
54605};
54606var stepWeights = {
54607 initialize: 5,
54608 serialize: 4,
54609 build: 3,
54610 finalizeRequest: 2,
54611 deserialize: 1,
54612};
54613var priorityWeights = {
54614 high: 3,
54615 normal: 2,
54616 low: 1,
54617};
54618//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlkZGxld2FyZVN0YWNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL01pZGRsZXdhcmVTdGFjay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBZ0JBLE1BQU0sQ0FBQyxJQUFNLGNBQWMsR0FBRztJQUM1QixJQUFJLGVBQWUsR0FBNkMsRUFBRSxDQUFDO0lBQ25FLElBQUksZUFBZSxHQUE2QyxFQUFFLENBQUM7SUFDbkUsSUFBTSxjQUFjLEdBQWdCLElBQUksR0FBRyxFQUFFLENBQUM7SUFFOUMsSUFBTSxJQUFJLEdBQUcsVUFBbUQsT0FBWTtRQUMxRSxPQUFBLE9BQU8sQ0FBQyxJQUFJLENBQ1YsVUFBQyxDQUFDLEVBQUUsQ0FBQztZQUNILE9BQUEsV0FBVyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxXQUFXLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztnQkFDekMsZUFBZSxDQUFDLENBQUMsQ0FBQyxRQUFRLElBQUksUUFBUSxDQUFDLEdBQUcsZUFBZSxDQUFDLENBQUMsQ0FBQyxRQUFRLElBQUksUUFBUSxDQUFDO1FBRGpGLENBQ2lGLENBQ3BGO0lBSkQsQ0FJQyxDQUFDO0lBRUosSUFBTSxZQUFZLEdBQUcsVUFBQyxRQUFnQjtRQUNwQyxJQUFJLFNBQVMsR0FBRyxLQUFLLENBQUM7UUFDdEIsSUFBTSxRQUFRLEdBQUcsVUFBQyxLQUFxQztZQUNyRCxJQUFJLEtBQUssQ0FBQyxJQUFJLElB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XRpYWxpemU6IDUsXG4gIHNlcmlhbGl6ZTogNCxcbiAgYnVpbGQ6IDMsXG4gIGZpbmFsaXplUmVxdWVzdDogMixcbiAgZGVzZXJpYWxpemU6IDEsXG59O1xuXG5jb25zdCBwcmlvcml0eVdlaWdodHM6IHsgW2tleSBpbiBQcmlvcml0eV06IG51bWJlciB9ID0ge1xuICBoaWdoOiAzLFxuICBub3JtYWw6IDIsXG4gIGxvdzogMSxcbn07XG4iXX0=
54619
54620/***/ }),
54621
54622/***/ "../../node_modules/@aws-sdk/middleware-stack/dist/es/index.js":
54623/*!********************************************************************************!*\
54624 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-stack/dist/es/index.js ***!
54625 \********************************************************************************/
54626/*! exports provided: constructStack */
54627/***/ (function(module, __webpack_exports__, __webpack_require__) {
54628
54629"use strict";
54630__webpack_require__.r(__webpack_exports__);
54631/* harmony import */ var _MiddlewareStack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MiddlewareStack */ "../../node_modules/@aws-sdk/middleware-stack/dist/es/MiddlewareStack.js");
54632/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "constructStack", function() { return _MiddlewareStack__WEBPACK_IMPORTED_MODULE_0__["constructStack"]; });
54633
54634
54635//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL01pZGRsZXdhcmVTdGFja1wiO1xuIl19
54636
54637/***/ }),
54638
54639/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js":
54640/*!**********************************************************************************************!*\
54641 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js ***!
54642 \**********************************************************************************************/
54643/*! exports provided: resolveUserAgentConfig */
54644/***/ (function(module, __webpack_exports__, __webpack_require__) {
54645
54646"use strict";
54647__webpack_require__.r(__webpack_exports__);
54648/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveUserAgentConfig", function() { return resolveUserAgentConfig; });
54649/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54650
54651function resolveUserAgentConfig(input) {
54652 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, input), { customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent });
54653}
54654//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlndXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQWdCQSxNQUFNLFVBQVUsc0JBQXNCLENBQ3BDLEtBQW9EO0lBRXBELDZCQUNLLEtBQUssS0FDUixlQUFlLEVBQUUsT0FBTyxLQUFLLENBQUMsZUFBZSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsZUFBZSxJQUM5RztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm92aWRlciwgVXNlckFnZW50IH0gZnJvbSBcIkBhd3Mtc2RrL3R5cGVzXCI7XG5leHBvcnQgaW50ZXJmYWNlIFVzZXJBZ2VudElucHV0Q29uZmlnIHtcbiAgLyoqXG4gICAqIFRoZSBjdXN0b20gdXNlciBhZ2VudCBoZWFkZXIgdGhhdCB3b3VsZCBiZSBhcHBlbmRlZCB0byBkZWZhdWx0IG9uZVxuICAgKi9cbiAgY3VzdG9tVXNlckFnZW50Pzogc3RyaW5nIHwgVXNlckFnZW50O1xufVxuaW50ZXJmYWNlIFByZXZpb3VzbHlSZXNvbHZlZCB7XG4gIGRlZmF1bHRVc2VyQWdlbnRQcm92aWRlcjogUHJvdmlkZXI8VXNlckFnZW50PjtcbiAgcnVudGltZTogc3RyaW5nO1xufVxuZXhwb3J0IGludGVyZmFjZSBVc2VyQWdlbnRSZXNvbHZlZENvbmZpZyB7XG4gIGRlZmF1bHRVc2VyQWdlbnRQcm92aWRlcjogUHJvdmlkZXI8VXNlckFnZW50PjtcbiAgY3VzdG9tVXNlckFnZW50PzogVXNlckFnZW50O1xuICBydW50aW1lOiBzdHJpbmc7XG59XG5leHBvcnQgZnVuY3Rpb24gcmVzb2x2ZVVzZXJBZ2VudENvbmZpZzxUPihcbiAgaW5wdXQ6IFQgJiBQcmV2aW91c2x5UmVzb2x2ZWQgJiBVc2VyQWdlbnRJbnB1dENvbmZpZ1xuKTogVCAmIFVzZXJBZ2VudFJlc29sdmVkQ29uZmlnIHtcbiAgcmV0dXJuIHtcbiAgICAuLi5pbnB1dCxcbiAgICBjdXN0b21Vc2VyQWdlbnQ6IHR5cGVvZiBpbnB1dC5jdXN0b21Vc2VyQWdlbnQgPT09IFwic3RyaW5nXCIgPyBbW2lucHV0LmN1c3RvbVVzZXJBZ2VudF1dIDogaW5wdXQuY3VzdG9tVXNlckFnZW50LFxuICB9O1xufVxuIl19
54655
54656/***/ }),
54657
54658/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/constants.js":
54659/*!*****************************************************************************************!*\
54660 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/constants.js ***!
54661 \*****************************************************************************************/
54662/*! exports provided: USER_AGENT, X_AMZ_USER_AGENT, SPACE, UA_ESCAPE_REGEX */
54663/***/ (function(module, __webpack_exports__, __webpack_require__) {
54664
54665"use strict";
54666__webpack_require__.r(__webpack_exports__);
54667/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USER_AGENT", function() { return USER_AGENT; });
54668/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X_AMZ_USER_AGENT", function() { return X_AMZ_USER_AGENT; });
54669/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPACE", function() { return SPACE; });
54670/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA_ESCAPE_REGEX", function() { return UA_ESCAPE_REGEX; });
54671var USER_AGENT = "user-agent";
54672var X_AMZ_USER_AGENT = "x-amz-user-agent";
54673var SPACE = " ";
54674var UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
54675//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxVQUFVLEdBQUcsWUFBWSxDQUFDO0FBRXZDLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLGtCQUFrQixDQUFDO0FBRW5ELE1BQU0sQ0FBQyxJQUFNLEtBQUssR0FBRyxHQUFHLENBQUM7QUFFekIsTUFBTSxDQUFDLElBQU0sZUFBZSxHQUFHLHdDQUF3QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFVTRVJfQUdFTlQgPSBcInVzZXItYWdlbnRcIjtcblxuZXhwb3J0IGNvbnN0IFhfQU1aX1VTRVJfQUdFTlQgPSBcIngtYW16LXVzZXItYWdlbnRcIjtcblxuZXhwb3J0IGNvbnN0IFNQQUNFID0gXCIgXCI7XG5cbmV4cG9ydCBjb25zdCBVQV9FU0NBUEVfUkVHRVggPSAvW15cXCFcXCNcXCRcXCVcXCZcXCdcXCpcXCtcXC1cXC5cXF5cXF9cXGBcXHxcXH5cXGRcXHddL2c7XG4iXX0=
54676
54677/***/ }),
54678
54679/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js":
54680/*!*************************************************************************************!*\
54681 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/index.js ***!
54682 \*************************************************************************************/
54683/*! exports provided: resolveUserAgentConfig, userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin */
54684/***/ (function(module, __webpack_exports__, __webpack_require__) {
54685
54686"use strict";
54687__webpack_require__.r(__webpack_exports__);
54688/* harmony import */ var _configurations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./configurations */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/configurations.js");
54689/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resolveUserAgentConfig", function() { return _configurations__WEBPACK_IMPORTED_MODULE_0__["resolveUserAgentConfig"]; });
54690
54691/* harmony import */ var _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./user-agent-middleware */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/user-agent-middleware.js");
54692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "userAgentMiddleware", function() { return _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__["userAgentMiddleware"]; });
54693
54694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUserAgentMiddlewareOptions", function() { return _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__["getUserAgentMiddlewareOptions"]; });
54695
54696/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getUserAgentPlugin", function() { return _user_agent_middleware__WEBPACK_IMPORTED_MODULE_1__["getUserAgentPlugin"]; });
54697
54698
54699
54700//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY29uZmlndXJhdGlvbnNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXItYWdlbnQtbWlkZGxld2FyZVwiO1xuIl19
54701
54702/***/ }),
54703
54704/***/ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/user-agent-middleware.js":
54705/*!*****************************************************************************************************!*\
54706 !*** /root/amplify-js/node_modules/@aws-sdk/middleware-user-agent/dist/es/user-agent-middleware.js ***!
54707 \*****************************************************************************************************/
54708/*! exports provided: userAgentMiddleware, getUserAgentMiddlewareOptions, getUserAgentPlugin */
54709/***/ (function(module, __webpack_exports__, __webpack_require__) {
54710
54711"use strict";
54712__webpack_require__.r(__webpack_exports__);
54713/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "userAgentMiddleware", function() { return userAgentMiddleware; });
54714/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentMiddlewareOptions", function() { return getUserAgentMiddlewareOptions; });
54715/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserAgentPlugin", function() { return getUserAgentPlugin; });
54716/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54717/* harmony import */ var _aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/protocol-http */ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js");
54718/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/middleware-user-agent/dist/es/constants.js");
54719
54720
54721
54722/**
54723 * Build user agent header sections from:
54724 * 1. runtime-specific default user agent provider;
54725 * 2. custom user agent from `customUserAgent` client config;
54726 * 3. handler execution context set by internal SDK components;
54727 * The built user agent will be set to `x-amz-user-agent` header for ALL the
54728 * runtimes.
54729 * Please note that any override to the `user-agent` or `x-amz-user-agent` header
54730 * in the HTTP request is discouraged. Please use `customUserAgent` client
54731 * config or middleware setting the `userAgent` context to generate desired user
54732 * agent.
54733 */
54734var userAgentMiddleware = function (options) { return function (next, context) { return function (args) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
54735 var request, headers, userAgent, defaultUserAgent, customUserAgent, normalUAValue;
54736 var _a, _b;
54737 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
54738 switch (_c.label) {
54739 case 0:
54740 request = args.request;
54741 if (!_aws_sdk_protocol_http__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"].isInstance(request))
54742 return [2 /*return*/, next(args)];
54743 headers = request.headers;
54744 userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || [];
54745 return [4 /*yield*/, options.defaultUserAgentProvider()];
54746 case 1:
54747 defaultUserAgent = (_c.sent()).map(escapeUserAgent);
54748 customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || [];
54749 // Set value to AWS-specific user agent header
54750 headers[_constants__WEBPACK_IMPORTED_MODULE_2__["X_AMZ_USER_AGENT"]] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(defaultUserAgent, userAgent, customUserAgent).join(_constants__WEBPACK_IMPORTED_MODULE_2__["SPACE"]);
54751 normalUAValue = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(defaultUserAgent.filter(function (section) { return section.startsWith("aws-sdk-"); }), customUserAgent).join(_constants__WEBPACK_IMPORTED_MODULE_2__["SPACE"]);
54752 if (options.runtime !== "browser" && normalUAValue) {
54753 headers[_constants__WEBPACK_IMPORTED_MODULE_2__["USER_AGENT"]] = headers[_constants__WEBPACK_IMPORTED_MODULE_2__["USER_AGENT"]] ? headers[_constants__WEBPACK_IMPORTED_MODULE_2__["USER_AGENT"]] + " " + normalUAValue : normalUAValue;
54754 }
54755 return [2 /*return*/, next(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, args), { request: request }))];
54756 }
54757 });
54758}); }; }; };
54759/**
54760 * Escape the each pair according to https://tools.ietf.org/html/rfc5234 and join the pair with pattern `name/version`.
54761 * User agent name may include prefix like `md/`, `api/`, `os/` etc., we should not escape the `/` after the prefix.
54762 * @private
54763 */
54764var escapeUserAgent = function (_a) {
54765 var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(_a, 2), name = _b[0], version = _b[1];
54766 var prefixSeparatorIndex = name.indexOf("/");
54767 var prefix = name.substring(0, prefixSeparatorIndex); // If no prefix, prefix is just ""
54768 var uaName = name.substring(prefixSeparatorIndex + 1);
54769 if (prefix === "api") {
54770 uaName = uaName.toLowerCase();
54771 }
54772 return [prefix, uaName, version]
54773 .filter(function (item) { return item && item.length > 0; })
54774 .map(function (item) { return item === null || item === void 0 ? void 0 : item.replace(_constants__WEBPACK_IMPORTED_MODULE_2__["UA_ESCAPE_REGEX"], "_"); })
54775 .join("/");
54776};
54777var getUserAgentMiddlewareOptions = {
54778 name: "getUserAgentMiddleware",
54779 step: "build",
54780 priority: "low",
54781 tags: ["SET_USER_AGENT", "USER_AGENT"],
54782 override: true,
54783};
54784var getUserAgentPlugin = function (config) { return ({
54785 applyToStack: function (clientStack) {
54786 clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions);
54787 },
54788}); };
54789//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1hZ2VudC1taWRkbGV3YXJ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U0VUX1VTRVJfQUdFTlRcIiwgXCJVU0VSX0FHRU5UXCJdLFxuICBvdmVycmlkZTogdHJ1ZSxcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRVc2VyQWdlbnRQbHVnaW4gPSAoY29uZmlnOiBVc2VyQWdlbnRSZXNvbHZlZENvbmZpZyk6IFBsdWdnYWJsZTxhbnksIGFueT4gPT4gKHtcbiAgYXBwbHlUb1N0YWNrOiAoY2xpZW50U3RhY2spID0+IHtcbiAgICBjbGllbnRTdGFjay5hZGQodXNlckFnZW50TWlkZGxld2FyZShjb25maWcpLCBnZXRVc2VyQWdlbnRNaWRkbGV3YXJlT3B0aW9ucyk7XG4gIH0sXG59KTtcbiJdfQ==
54790
54791/***/ }),
54792
54793/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js":
54794/*!***********************************************************************************!*\
54795 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js ***!
54796 \***********************************************************************************/
54797/*! no exports provided */
54798/***/ (function(module, __webpack_exports__, __webpack_require__) {
54799
54800"use strict";
54801__webpack_require__.r(__webpack_exports__);
54802
54803//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cEhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaHR0cEhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBIYW5kbGVyT3B0aW9ucywgUmVxdWVzdEhhbmRsZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgSHR0cFJlcXVlc3QgfSBmcm9tIFwiLi9odHRwUmVxdWVzdFwiO1xuaW1wb3J0IHsgSHR0cFJlc3BvbnNlIH0gZnJvbSBcIi4vaHR0cFJlc3BvbnNlXCI7XG5cbmV4cG9ydCB0eXBlIEh0dHBIYW5kbGVyID0gUmVxdWVzdEhhbmRsZXI8SHR0cFJlcXVlc3QsIEh0dHBSZXNwb25zZSwgSHR0cEhhbmRsZXJPcHRpb25zPjtcbiJdfQ==
54804
54805/***/ }),
54806
54807/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js":
54808/*!***********************************************************************************!*\
54809 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js ***!
54810 \***********************************************************************************/
54811/*! exports provided: HttpRequest */
54812/***/ (function(module, __webpack_exports__, __webpack_require__) {
54813
54814"use strict";
54815__webpack_require__.r(__webpack_exports__);
54816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return HttpRequest; });
54817/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
54818
54819var HttpRequest = /** @class */ (function () {
54820 function HttpRequest(options) {
54821 this.method = options.method || "GET";
54822 this.hostname = options.hostname || "localhost";
54823 this.port = options.port;
54824 this.query = options.query || {};
54825 this.headers = options.headers || {};
54826 this.body = options.body;
54827 this.protocol = options.protocol
54828 ? options.protocol.substr(-1) !== ":"
54829 ? options.protocol + ":"
54830 : options.protocol
54831 : "https:";
54832 this.path = options.path ? (options.path.charAt(0) !== "/" ? "/" + options.path : options.path) : "/";
54833 }
54834 HttpRequest.isInstance = function (request) {
54835 //determine if request is a valid httpRequest
54836 if (!request)
54837 return false;
54838 var req = request;
54839 return ("method" in req &&
54840 "protocol" in req &&
54841 "hostname" in req &&
54842 "path" in req &&
54843 typeof req["query"] === "object" &&
54844 typeof req["headers"] === "object");
54845 };
54846 HttpRequest.prototype.clone = function () {
54847 var cloned = new HttpRequest(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this), { headers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this.headers) }));
54848 if (cloned.query)
54849 cloned.query = cloneQuery(cloned.query);
54850 return cloned;
54851 };
54852 return HttpRequest;
54853}());
54854
54855function cloneQuery(query) {
54856 return Object.keys(query).reduce(function (carry, paramName) {
54857 var _a;
54858 var param = query[paramName];
54859 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, carry), (_a = {}, _a[paramName] = Array.isArray(param) ? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(param) : param, _a));
54860 }, {});
54861}
54862//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaHR0cFJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQU1BO0lBVUUscUJBQVksT0FBMkI7UUFDckMsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxJQUFJLEtBQUssQ0FBQztRQUN0QyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQyxRQUFRLElBQUksV0FBVyxDQUFDO1FBQ2hELElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztRQUN6QixJQUFJLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLElBQUksRUFBRSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDckMsSUFBSSxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVE7WUFDOUIsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQU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gIFtwYXJhbU5hbWVdOiBBcnJheS5pc0FycmF5KHBhcmFtKSA/IFsuLi5wYXJhbV0gOiBwYXJhbSxcbiAgICB9O1xuICB9LCB7fSk7XG59XG4iXX0=
54863
54864/***/ }),
54865
54866/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js":
54867/*!************************************************************************************!*\
54868 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js ***!
54869 \************************************************************************************/
54870/*! exports provided: HttpResponse */
54871/***/ (function(module, __webpack_exports__, __webpack_require__) {
54872
54873"use strict";
54874__webpack_require__.r(__webpack_exports__);
54875/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return HttpResponse; });
54876var HttpResponse = /** @class */ (function () {
54877 function HttpResponse(options) {
54878 this.statusCode = options.statusCode;
54879 this.headers = options.headers || {};
54880 this.body = options.body;
54881 }
54882 HttpResponse.isInstance = function (response) {
54883 //determine if response is a valid HttpResponse
54884 if (!response)
54885 return false;
54886 var resp = response;
54887 return typeof resp.statusCode === "number" && typeof resp.headers === "object";
54888 };
54889 return HttpResponse;
54890}());
54891
54892//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cFJlc3BvbnNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2h0dHBSZXNwb25zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRQTtJQUtFLHNCQUFZLE9BQTRCO1FBQ3RDLElBQUksQ0FBQyxVQUFVLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQztRQUNyQyxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPLElBQUksRUFBRSxDQUFDO1FBQ3JDLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztJQUMzQixDQUFDO0lBRU0sdUJBQVUsR0FBakIsVUFB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IGlzIEh0dHBSZXNwb25zZSB7XG4gICAgLy9kZXRlcm1pbmUgaWYgcmVzcG9uc2UgaXMgYSB2YWxpZCBIdHRwUmVzcG9uc2VcbiAgICBpZiAoIXJlc3BvbnNlKSByZXR1cm4gZmFsc2U7XG4gICAgY29uc3QgcmVzcCA9IHJlc3BvbnNlIGFzIGFueTtcbiAgICByZXR1cm4gdHlwZW9mIHJlc3Auc3RhdHVzQ29kZSA9PT0gXCJudW1iZXJcIiAmJiB0eXBlb2YgcmVzcC5oZWFkZXJzID09PSBcIm9iamVjdFwiO1xuICB9XG59XG4iXX0=
54893
54894/***/ }),
54895
54896/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/index.js":
54897/*!*****************************************************************************!*\
54898 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/index.js ***!
54899 \*****************************************************************************/
54900/*! exports provided: HttpResponse, HttpRequest, isValidHostname */
54901/***/ (function(module, __webpack_exports__, __webpack_require__) {
54902
54903"use strict";
54904__webpack_require__.r(__webpack_exports__);
54905/* harmony import */ var _httpResponse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./httpResponse */ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpResponse.js");
54906/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return _httpResponse__WEBPACK_IMPORTED_MODULE_0__["HttpResponse"]; });
54907
54908/* harmony import */ var _httpRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./httpRequest */ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpRequest.js");
54909/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return _httpRequest__WEBPACK_IMPORTED_MODULE_1__["HttpRequest"]; });
54910
54911/* harmony import */ var _httpHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./httpHandler */ "../../node_modules/@aws-sdk/protocol-http/dist/es/httpHandler.js");
54912/* empty/unused harmony star reexport *//* harmony import */ var _isValidHostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isValidHostname */ "../../node_modules/@aws-sdk/protocol-http/dist/es/isValidHostname.js");
54913/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidHostname", function() { return _isValidHostname__WEBPACK_IMPORTED_MODULE_3__["isValidHostname"]; });
54914
54915
54916
54917
54918
54919//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vaHR0cFJlc3BvbnNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9odHRwUmVxdWVzdFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vaHR0cEhhbmRsZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2lzVmFsaWRIb3N0bmFtZVwiO1xuIl19
54920
54921/***/ }),
54922
54923/***/ "../../node_modules/@aws-sdk/protocol-http/dist/es/isValidHostname.js":
54924/*!***************************************************************************************!*\
54925 !*** /root/amplify-js/node_modules/@aws-sdk/protocol-http/dist/es/isValidHostname.js ***!
54926 \***************************************************************************************/
54927/*! exports provided: isValidHostname */
54928/***/ (function(module, __webpack_exports__, __webpack_require__) {
54929
54930"use strict";
54931__webpack_require__.r(__webpack_exports__);
54932/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidHostname", function() { return isValidHostname; });
54933function isValidHostname(hostname) {
54934 var hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;
54935 return hostPattern.test(hostname);
54936}
54937//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEhvc3RuYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lzVmFsaWRIb3N0bmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsZUFBZSxDQUFDLFFBQWdCO0lBQzlDLElBQU0sV0FBVyxHQUFHLGlDQUFpQyxDQUFDO0lBQ3RELE9BQU8sV0FBVyxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUNwQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGlzVmFsaWRIb3N0bmFtZShob3N0bmFtZTogc3RyaW5nKTogYm9vbGVhbiB7XG4gIGNvbnN0IGhvc3RQYXR0ZXJuID0gL15bYS16MC05XVthLXowLTlcXC5cXC1dKlthLXowLTldJC87XG4gIHJldHVybiBob3N0UGF0dGVybi50ZXN0KGhvc3RuYW1lKTtcbn1cbiJdfQ==
54938
54939/***/ }),
54940
54941/***/ "../../node_modules/@aws-sdk/service-error-classification/dist/es/constants.js":
54942/*!************************************************************************************************!*\
54943 !*** /root/amplify-js/node_modules/@aws-sdk/service-error-classification/dist/es/constants.js ***!
54944 \************************************************************************************************/
54945/*! exports provided: CLOCK_SKEW_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES */
54946/***/ (function(module, __webpack_exports__, __webpack_require__) {
54947
54948"use strict";
54949__webpack_require__.r(__webpack_exports__);
54950/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOCK_SKEW_ERROR_CODES", function() { return CLOCK_SKEW_ERROR_CODES; });
54951/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "THROTTLING_ERROR_CODES", function() { return THROTTLING_ERROR_CODES; });
54952/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSIENT_ERROR_CODES", function() { return TRANSIENT_ERROR_CODES; });
54953/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSIENT_ERROR_STATUS_CODES", function() { return TRANSIENT_ERROR_STATUS_CODES; });
54954/**
54955 * Errors encountered when the client clock and server clock cannot agree on the
54956 * current time.
54957 *
54958 * These errors are retryable, assuming the SDK has enabled clock skew
54959 * correction.
54960 */
54961var CLOCK_SKEW_ERROR_CODES = [
54962 "AuthFailure",
54963 "InvalidSignatureException",
54964 "RequestExpired",
54965 "RequestInTheFuture",
54966 "RequestTimeTooSkewed",
54967 "SignatureDoesNotMatch",
54968];
54969/**
54970 * Errors that indicate the SDK is being throttled.
54971 *
54972 * These errors are always retryable.
54973 */
54974var THROTTLING_ERROR_CODES = [
54975 "BandwidthLimitExceeded",
54976 "EC2ThrottledException",
54977 "LimitExceededException",
54978 "PriorRequestNotComplete",
54979 "ProvisionedThroughputExceededException",
54980 "RequestLimitExceeded",
54981 "RequestThrottled",
54982 "RequestThrottledException",
54983 "SlowDown",
54984 "ThrottledException",
54985 "Throttling",
54986 "ThrottlingException",
54987 "TooManyRequestsException",
54988 "TransactionInProgressException",
54989];
54990/**
54991 * Error codes that indicate transient issues
54992 */
54993var TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"];
54994/**
54995 * Error codes that indicate transient issues
54996 */
54997var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
54998//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLENBQUMsSUFBTSxzQkFBc0IsR0FBRztJQUNwQyxhQUFhO0lBQ2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GNvbnN0IFRSQU5TSUVOVF9FUlJPUl9DT0RFUyA9IFtcIkFib3J0RXJyb3JcIiwgXCJUaW1lb3V0RXJyb3JcIiwgXCJSZXF1ZXN0VGltZW91dFwiLCBcIlJlcXVlc3RUaW1lb3V0RXhjZXB0aW9uXCJdO1xuXG4vKipcbiAqIEVycm9yIGNvZGVzIHRoYXQgaW5kaWNhdGUgdHJhbnNpZW50IGlzc3Vlc1xuICovXG5leHBvcnQgY29uc3QgVFJBTlNJRU5UX0VSUk9SX1NUQVRVU19DT0RFUyA9IFs1MDAsIDUwMiwgNTAzLCA1MDRdO1xuIl19
54999
55000/***/ }),
55001
55002/***/ "../../node_modules/@aws-sdk/service-error-classification/dist/es/index.js":
55003/*!********************************************************************************************!*\
55004 !*** /root/amplify-js/node_modules/@aws-sdk/service-error-classification/dist/es/index.js ***!
55005 \********************************************************************************************/
55006/*! exports provided: isRetryableByTrait, isClockSkewError, isThrottlingError, isTransientError */
55007/***/ (function(module, __webpack_exports__, __webpack_require__) {
55008
55009"use strict";
55010__webpack_require__.r(__webpack_exports__);
55011/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isRetryableByTrait", function() { return isRetryableByTrait; });
55012/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClockSkewError", function() { return isClockSkewError; });
55013/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isThrottlingError", function() { return isThrottlingError; });
55014/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransientError", function() { return isTransientError; });
55015/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/service-error-classification/dist/es/constants.js");
55016
55017var isRetryableByTrait = function (error) { return error.$retryable !== undefined; };
55018var isClockSkewError = function (error) { return _constants__WEBPACK_IMPORTED_MODULE_0__["CLOCK_SKEW_ERROR_CODES"].includes(error.name); };
55019var isThrottlingError = function (error) {
55020 var _a, _b;
55021 return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 ||
55022 _constants__WEBPACK_IMPORTED_MODULE_0__["THROTTLING_ERROR_CODES"].includes(error.name) ||
55023 ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true;
55024};
55025var isTransientError = function (error) {
55026 var _a;
55027 return _constants__WEBPACK_IMPORTED_MODULE_0__["TRANSIENT_ERROR_CODES"].includes(error.name) ||
55028 _constants__WEBPACK_IMPORTED_MODULE_0__["TRANSIENT_ERROR_STATUS_CODES"].includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0);
55029};
55030//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUNMLHNCQUFzQixFQUN0QixzQkFBc0IsRUFDdEIscUJBQXFCLEVBQ3JCLDRCQUE0QixHQUM3QixNQUFNLGFBQWEsQ0FBQztBQUVyQixNQUFNLENBQUMsSUFBTSxrQkFBa0IsR0FBRyxVQUFDLEtBQWUsSUFBSyxPQUFBLEtBQUssQ0FBQyxVQUFVLEtBQUssU0FBUyxFQUE5QixDQUE4QixDQUFDO0FBRXRGLE1BQU0sQ0FBQyxJQUFNLGdCQUFnQixHQUFHLFVBQUMsS0FBZSxJQUFLLE9BQUEsc0JBQXNCLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBM0MsQ0FBMkMsQ0FBQztBQUVqRyxNQUFNLENBQUMsSUFBTSxpQkFBaUIsR0FBRyxVQUFDLEtBQWU7O0lBQy9DLE9BQUEsT0FBQSxLQUFLLENBQUMsU0FBUywwQ0FBRSxjQUFjLE1BQUssR0FBRztRQUN2QyxzQkFBc0IsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLElBQU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1ZGVzKGVycm9yLm5hbWUpIHx8XG4gIGVycm9yLiRyZXRyeWFibGU/LnRocm90dGxpbmcgPT0gdHJ1ZTtcblxuZXhwb3J0IGNvbnN0IGlzVHJhbnNpZW50RXJyb3IgPSAoZXJyb3I6IFNka0Vycm9yKSA9PlxuICBUUkFOU0lFTlRfRVJST1JfQ09ERVMuaW5jbHVkZXMoZXJyb3IubmFtZSkgfHxcbiAgVFJBTlNJRU5UX0VSUk9SX1NUQVRVU19DT0RFUy5pbmNsdWRlcyhlcnJvci4kbWV0YWRhdGE/Lmh0dHBTdGF0dXNDb2RlIHx8IDApO1xuIl19
55031
55032/***/ }),
55033
55034/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/client.js":
55035/*!******************************************************************************!*\
55036 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/client.js ***!
55037 \******************************************************************************/
55038/*! exports provided: Client */
55039/***/ (function(module, __webpack_exports__, __webpack_require__) {
55040
55041"use strict";
55042__webpack_require__.r(__webpack_exports__);
55043/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Client", function() { return Client; });
55044/* harmony import */ var _aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/middleware-stack */ "../../node_modules/@aws-sdk/middleware-stack/dist/es/index.js");
55045
55046var Client = /** @class */ (function () {
55047 function Client(config) {
55048 this.middlewareStack = Object(_aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__["constructStack"])();
55049 this.config = config;
55050 }
55051 Client.prototype.send = function (command, optionsOrCb, cb) {
55052 var options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
55053 var callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
55054 var handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
55055 if (callback) {
55056 handler(command)
55057 .then(function (result) { return callback(null, result.output); }, function (err) { return callback(err); })
55058 .catch(
55059 // prevent any errors thrown in the callback from triggering an
55060 // unhandled promise rejection
55061 function () { });
55062 }
55063 else {
55064 return handler(command).then(function (result) { return result.output; });
55065 }
55066 };
55067 Client.prototype.destroy = function () {
55068 if (this.config.requestHandler.destroy)
55069 this.config.requestHandler.destroy();
55070 };
55071 return Client;
55072}());
55073
55074//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFlM0Q7SUFRRSxnQkFBWSxNQUFtQztRQUZ4QyxvQkFBZSxHQUFHLGNBQWMsRUFBNkIsQ0FBQztRQUduRSxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN2QixDQUFDO0lBY0QscUJBQUksR0FBSixVQUNFLE9BQStHLEVBQy9HLFdBQXNFLEVBQ3RFLEVBQTBDO1FBRTFDLElBQU0sT0FBTyxHQUFHLE9BQU8sV0FBVyxLQUFLLFVBQVUsQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUM7UUFDNUUsSUFBTSxRQUFRLEdBQUcsT0FBTyxXQUFXLEtBQUssVUFBVSxDQUFDLENBQUMsQ0FBRSxXQUFxRCxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUM7UUFDakgsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxlQUFzQixFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDN0YsSUFBSSxRQUFRLEVBQUU7WUFDWixPQUFPLENBQUMsT0FBTyxDQUFDO2lCQUNiLElBQUksQ0FDSCxVQUFDLE1BQU0sSUFBSyxPQUFBLFFBQVEsQ0FBQyxJQUFJLEVBQUU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FuZGxlcihjb21tYW5kKS50aGVuKChyZXN1bHQpID0+IHJlc3VsdC5vdXRwdXQpO1xuICAgIH1cbiAgfVxuXG4gIGRlc3Ryb3koKSB7XG4gICAgaWYgKHRoaXMuY29uZmlnLnJlcXVlc3RIYW5kbGVyLmRlc3Ryb3kpIHRoaXMuY29uZmlnLnJlcXVlc3RIYW5kbGVyLmRlc3Ryb3koKTtcbiAgfVxufVxuIl19
55075
55076/***/ }),
55077
55078/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/command.js":
55079/*!*******************************************************************************!*\
55080 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/command.js ***!
55081 \*******************************************************************************/
55082/*! exports provided: Command */
55083/***/ (function(module, __webpack_exports__, __webpack_require__) {
55084
55085"use strict";
55086__webpack_require__.r(__webpack_exports__);
55087/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return Command; });
55088/* harmony import */ var _aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/middleware-stack */ "../../node_modules/@aws-sdk/middleware-stack/dist/es/index.js");
55089
55090var Command = /** @class */ (function () {
55091 function Command() {
55092 this.middlewareStack = Object(_aws_sdk_middleware_stack__WEBPACK_IMPORTED_MODULE_0__["constructStack"])();
55093 }
55094 return Command;
55095}());
55096
55097//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUczRDtJQUFBO1FBUVcsb0JBQWUsR0FBb0MsY0FBYyxFQUFpQixDQUFDO0lBTTlGLENBQUM7SUFBRCxjQUFDO0FBQUQsQ0FBQyxBQWRELElBY0MiLCJz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=
55098
55099/***/ }),
55100
55101/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/constants.js":
55102/*!*********************************************************************************!*\
55103 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/constants.js ***!
55104 \*********************************************************************************/
55105/*! exports provided: SENSITIVE_STRING */
55106/***/ (function(module, __webpack_exports__, __webpack_require__) {
55107
55108"use strict";
55109__webpack_require__.r(__webpack_exports__);
55110/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SENSITIVE_STRING", function() { return SENSITIVE_STRING; });
55111var SENSITIVE_STRING = "***SensitiveInformation***";
55112//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBTSxnQkFBZ0IsR0FBRyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBTRU5TSVRJVkVfU1RSSU5HID0gXCIqKipTZW5zaXRpdmVJbmZvcm1hdGlvbioqKlwiO1xuIl19
55113
55114/***/ }),
55115
55116/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js":
55117/*!**********************************************************************************!*\
55118 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js ***!
55119 \**********************************************************************************/
55120/*! exports provided: dateToUtcString */
55121/***/ (function(module, __webpack_exports__, __webpack_require__) {
55122
55123"use strict";
55124__webpack_require__.r(__webpack_exports__);
55125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dateToUtcString", function() { return dateToUtcString; });
55126/**
55127 * Builds a proper UTC HttpDate timestamp from a Date object
55128 * since not all environments will have this as the expected
55129 * format.
55130 *
55131 * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString
55132 * > Prior to ECMAScript 2018, the format of the return value
55133 * > varied according to the platform. The most common return
55134 * > value was an RFC-1123 formatted date stamp, which is a
55135 * > slightly updated version of RFC-822 date stamps.
55136 */
55137// Build indexes outside so we allocate them once.
55138var days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
55139// prettier-ignore
55140var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
55141function dateToUtcString(date) {
55142 var year = date.getUTCFullYear();
55143 var month = date.getUTCMonth();
55144 var dayOfWeek = date.getUTCDay();
55145 var dayOfMonthInt = date.getUTCDate();
55146 var hoursInt = date.getUTCHours();
55147 var minutesInt = date.getUTCMinutes();
55148 var secondsInt = date.getUTCSeconds();
55149 // Build 0 prefixed strings for contents that need to be
55150 // two digits and where we get an integer back.
55151 var dayOfMonthString = dayOfMonthInt < 10 ? "0" + dayOfMonthInt : "" + dayOfMonthInt;
55152 var hoursString = hoursInt < 10 ? "0" + hoursInt : "" + hoursInt;
55153 var minutesString = minutesInt < 10 ? "0" + minutesInt : "" + minutesInt;
55154 var secondsString = secondsInt < 10 ? "0" + secondsInt : "" + secondsInt;
55155 return days[dayOfWeek] + ", " + dayOfMonthString + " " + months[month] + " " + year + " " + hoursString + ":" + minutesString + ":" + secondsString + " GMT";
55156}
55157//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXRlLXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7O0dBVUc7QUFFSCxrREFBa0Q7QUFDbEQsSUFBTSxJQUFJLEdBQWtCLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLEV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udGhTdHJpbmcgPSBkYXlPZk1vbnRoSW50IDwgMTAgPyBgMCR7ZGF5T2ZNb250aEludH1gIDogYCR7ZGF5T2ZNb250aEludH1gO1xuICBjb25zdCBob3Vyc1N0cmluZyA9IGhvdXJzSW50IDwgMTAgPyBgMCR7aG91cnNJbnR9YCA6IGAke2hvdXJzSW50fWA7XG4gIGNvbnN0IG1pbnV0ZXNTdHJpbmcgPSBtaW51dGVzSW50IDwgMTAgPyBgMCR7bWludXRlc0ludH1gIDogYCR7bWludXRlc0ludH1gO1xuICBjb25zdCBzZWNvbmRzU3RyaW5nID0gc2Vjb25kc0ludCA8IDEwID8gYDAke3NlY29uZHNJbnR9YCA6IGAke3NlY29uZHNJbnR9YDtcblxuICByZXR1cm4gYCR7ZGF5c1tkYXlPZldlZWtdfSwgJHtkYXlPZk1vbnRoU3RyaW5nfSAke21vbnRoc1ttb250aF19ICR7eWVhcn0gJHtob3Vyc1N0cmluZ306JHttaW51dGVzU3RyaW5nfToke3NlY29uZHNTdHJpbmd9IEdNVGA7XG59XG4iXX0=
55158
55159/***/ }),
55160
55161/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/document-type.js":
55162/*!*************************************************************************************!*\
55163 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/document-type.js ***!
55164 \*************************************************************************************/
55165/*! no exports provided */
55166/***/ (function(module, __webpack_exports__, __webpack_require__) {
55167
55168"use strict";
55169__webpack_require__.r(__webpack_exports__);
55170
55171//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kb2N1bWVudC10eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFNtaXRoeSBkb2N1bWVudCB0eXBlIHZhbHVlcy5cbiAqL1xuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1uYW1lc3BhY2VcbmV4cG9ydCBuYW1lc3BhY2UgRG9jdW1lbnRUeXBlIHtcbiAgZXhwb3J0IHR5cGUgVmFsdWUgPSBTY2FsYXIgfCBTdHJ1Y3R1cmUgfCBMaXN0O1xuICBleHBvcnQgdHlwZSBTY2FsYXIgPSBzdHJpbmcgfCBudW1iZXIgfCBib29sZWFuIHwgbnVsbDtcbiAgZXhwb3J0IHR5cGUgU3RydWN0dXJlID0geyBbbWVtYmVyOiBzdHJpbmddOiBWYWx1ZSB9O1xuICBleHBvcnQgaW50ZXJmYWNlIExpc3QgZXh0ZW5kcyBBcnJheTxWYWx1ZT4ge31cbn1cbiJdfQ==
55172
55173/***/ }),
55174
55175/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/exception.js":
55176/*!*********************************************************************************!*\
55177 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/exception.js ***!
55178 \*********************************************************************************/
55179/*! no exports provided */
55180/***/ (function(module, __webpack_exports__, __webpack_require__) {
55181
55182"use strict";
55183__webpack_require__.r(__webpack_exports__);
55184
55185//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4Y2VwdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUmV0cnlhYmxlVHJhaXQgfSBmcm9tIFwiLi9yZXRyeWFibGUtdHJhaXRcIjtcblxuLyoqXG4gKiBUeXBlIHRoYXQgaXMgaW1wbGVtZW50ZWQgYnkgYWxsIFNtaXRoeSBzaGFwZXMgbWFya2VkIHdpdGggdGhlXG4gKiBlcnJvciB0cmFpdC5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBTbWl0aHlFeGNlcHRpb24ge1xuICAvKipcbiAgICogVGhlIHNoYXBlIElEIG5hbWUgb2YgdGhlIGV4Y2VwdGlvbi5cbiAgICovXG4gIHJlYWRvbmx5IG5hbWU6IHN0cmluZztcblxuICAvKipcbiAgICogV2hldGhlciB0aGUgY2xpZW50IG9yIHNlcnZlciBhcmUgYXQgZmF1bHQuXG4gICAqL1xuICByZWFkb25seSAkZmF1bHQ6IFwiY2xpZW50XCIgfCBcInNlcnZlclwiO1xuXG4gIC8qKlxuICAgKiBUaGUgc2VydmljZSB0aGF0IGVuY291bnRlcmVkIHRoZSBleGNlcHRpb24uXG4gICAqL1xuICByZWFkb25seSAkc2VydmljZT86IHN0cmluZztcblxuICAvKipcbiAgICogSW5kaWNhdGVzIHRoYXQgYW4gZXJyb3IgTUFZIGJlIHJldHJpZWQgYnkgdGhlIGNsaWVudC5cbiAgICovXG4gIHJlYWRvbmx5ICRyZXRyeWFibGU/OiBSZXRyeWFibGVUcmFpdDtcbn1cbiJdfQ==
55186
55187/***/ }),
55188
55189/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/extended-encode-uri-component.js":
55190/*!*****************************************************************************************************!*\
55191 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/extended-encode-uri-component.js ***!
55192 \*****************************************************************************************************/
55193/*! exports provided: extendedEncodeURIComponent */
55194/***/ (function(module, __webpack_exports__, __webpack_require__) {
55195
55196"use strict";
55197__webpack_require__.r(__webpack_exports__);
55198/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extendedEncodeURIComponent", function() { return extendedEncodeURIComponent; });
55199/**
55200 * Function that wraps encodeURIComponent to encode additional characters
55201 * to fully adhere to RFC 3986.
55202 */
55203function extendedEncodeURIComponent(str) {
55204 return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
55205 return "%" + c.charCodeAt(0).toString(16);
55206 });
55207}
55208//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5kZWQtZW5jb2RlLXVyaS1jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXh0ZW5kZWQtZW5jb2RlLXVyaS1jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7OztHQUdHO0FBQ0gsTUFBTSxVQUFVLDBCQUEwQixDQUFDLEdBQVc7SUFDcEQsT0FBTyxrQkFBa0IsQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLFVBQVUsQ0FBQztRQUM1RCxPQUFPLEdBQUcsR0FBRyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUM1QyxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEZ1bmN0aW9uIHRoYXQgd3JhcHMgZW5jb2RlVVJJQ29tcG9uZW50IHRvIGVuY29kZSBhZGRpdGlvbmFsIGNoYXJhY3RlcnNcbiAqIHRvIGZ1bGx5IGFkaGVyZSB0byBSRkMgMzk4Ni5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGV4dGVuZGVkRW5jb2RlVVJJQ29tcG9uZW50KHN0cjogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIGVuY29kZVVSSUNvbXBvbmVudChzdHIpLnJlcGxhY2UoL1shJygpKl0vZywgZnVuY3Rpb24gKGMpIHtcbiAgICByZXR1cm4gXCIlXCIgKyBjLmNoYXJDb2RlQXQoMCkudG9TdHJpbmcoMTYpO1xuICB9KTtcbn1cbiJdfQ==
55209
55210/***/ }),
55211
55212/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/get-array-if-single-item.js":
55213/*!************************************************************************************************!*\
55214 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/get-array-if-single-item.js ***!
55215 \************************************************************************************************/
55216/*! exports provided: getArrayIfSingleItem */
55217/***/ (function(module, __webpack_exports__, __webpack_require__) {
55218
55219"use strict";
55220__webpack_require__.r(__webpack_exports__);
55221/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getArrayIfSingleItem", function() { return getArrayIfSingleItem; });
55222/**
55223 * The XML parser will set one K:V for a member that could
55224 * return multiple entries but only has one.
55225 */
55226var getArrayIfSingleItem = function (mayBeArray) {
55227 return Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray];
55228};
55229//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWFycmF5LWlmLXNpbmdsZS1pdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldC1hcnJheS1pZi1zaW5nbGUtaXRlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxVQUFJLFVBQWE7SUFDbkQsT0FBQSxLQUFLLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDO0FBQXJELENBQXFELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFRoZSBYTUwgcGFyc2VyIHdpbGwgc2V0IG9uZSBLOlYgZm9yIGEgbWVtYmVyIHRoYXQgY291bGRcbiAqIHJldHVybiBtdWx0aXBsZSBlbnRyaWVzIGJ1dCBvbmx5IGhhcyBvbmUuXG4gKi9cbmV4cG9ydCBjb25zdCBnZXRBcnJheUlmU2luZ2xlSXRlbSA9IDxUPihtYXlCZUFycmF5OiBUKTogVCB8IFRbXSA9PlxuICBBcnJheS5pc0FycmF5KG1heUJlQXJyYXkpID8gbWF5QmVBcnJheSA6IFttYXlCZUFycmF5XTtcbiJdfQ==
55230
55231/***/ }),
55232
55233/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/get-value-from-text-node.js":
55234/*!************************************************************************************************!*\
55235 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/get-value-from-text-node.js ***!
55236 \************************************************************************************************/
55237/*! exports provided: getValueFromTextNode */
55238/***/ (function(module, __webpack_exports__, __webpack_require__) {
55239
55240"use strict";
55241__webpack_require__.r(__webpack_exports__);
55242/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueFromTextNode", function() { return getValueFromTextNode; });
55243/**
55244 * Recursively parses object and populates value is node from
55245 * "#text" key if it's available
55246 */
55247var getValueFromTextNode = function (obj) {
55248 var textNodeName = "#text";
55249 for (var key in obj) {
55250 if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) {
55251 obj[key] = obj[key][textNodeName];
55252 }
55253 else if (typeof obj[key] === "object" && obj[key] !== null) {
55254 obj[key] = getValueFromTextNode(obj[key]);
55255 }
55256 }
55257 return obj;
55258};
55259//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXZhbHVlLWZyb20tdGV4dC1ub2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2dldC12YWx1ZS1mcm9tLXRleHQtbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsSUFBTSxvQkFBb0IsR0FBRyxVQUFDLEdBQVE7SUFDM0MsSUFBTSxZQUFZLEdBQUcsT0FBTyxDQUFDO0lBQzdCLEtBQUssSUFBTSxHQUFHLElBQUksR0FBRyxFQUFFO1FBQ3JCLElBQUksR0FBRyxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUMsWUFBWSxDQUFDLEtBQUssU0FBUyxFQUFFO1lBQ25FLEdBQUcsQ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sdk/smithy-client/dist/es/index.js":
55264/*!*****************************************************************************!*\
55265 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/index.js ***!
55266 \*****************************************************************************/
55267/*! exports provided: Client, Command, extendedEncodeURIComponent, getArrayIfSingleItem, getValueFromTextNode, StringWrapper, LazyJsonString, dateToUtcString, splitEvery, SENSITIVE_STRING */
55268/***/ (function(module, __webpack_exports__, __webpack_require__) {
55269
55270"use strict";
55271__webpack_require__.r(__webpack_exports__);
55272/* harmony import */ var _client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./client */ "../../node_modules/@aws-sdk/smithy-client/dist/es/client.js");
55273/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Client", function() { return _client__WEBPACK_IMPORTED_MODULE_0__["Client"]; });
55274
55275/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./command */ "../../node_modules/@aws-sdk/smithy-client/dist/es/command.js");
55276/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Command", function() { return _command__WEBPACK_IMPORTED_MODULE_1__["Command"]; });
55277
55278/* harmony import */ var _document_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./document-type */ "../../node_modules/@aws-sdk/smithy-client/dist/es/document-type.js");
55279/* empty/unused harmony star reexport *//* harmony import */ var _exception__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./exception */ "../../node_modules/@aws-sdk/smithy-client/dist/es/exception.js");
55280/* empty/unused harmony star reexport *//* harmony import */ var _extended_encode_uri_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./extended-encode-uri-component */ "../../node_modules/@aws-sdk/smithy-client/dist/es/extended-encode-uri-component.js");
55281/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extendedEncodeURIComponent", function() { return _extended_encode_uri_component__WEBPACK_IMPORTED_MODULE_4__["extendedEncodeURIComponent"]; });
55282
55283/* harmony import */ var _get_array_if_single_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get-array-if-single-item */ "../../node_modules/@aws-sdk/smithy-client/dist/es/get-array-if-single-item.js");
55284/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getArrayIfSingleItem", function() { return _get_array_if_single_item__WEBPACK_IMPORTED_MODULE_5__["getArrayIfSingleItem"]; });
55285
55286/* harmony import */ var _get_value_from_text_node__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./get-value-from-text-node */ "../../node_modules/@aws-sdk/smithy-client/dist/es/get-value-from-text-node.js");
55287/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getValueFromTextNode", function() { return _get_value_from_text_node__WEBPACK_IMPORTED_MODULE_6__["getValueFromTextNode"]; });
55288
55289/* harmony import */ var _lazy_json__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lazy-json */ "../../node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js");
55290/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringWrapper", function() { return _lazy_json__WEBPACK_IMPORTED_MODULE_7__["StringWrapper"]; });
55291
55292/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LazyJsonString", function() { return _lazy_json__WEBPACK_IMPORTED_MODULE_7__["LazyJsonString"]; });
55293
55294/* harmony import */ var _date_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./date-utils */ "../../node_modules/@aws-sdk/smithy-client/dist/es/date-utils.js");
55295/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dateToUtcString", function() { return _date_utils__WEBPACK_IMPORTED_MODULE_8__["dateToUtcString"]; });
55296
55297/* harmony import */ var _split_every__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./split-every */ "../../node_modules/@aws-sdk/smithy-client/dist/es/split-every.js");
55298/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "splitEvery", function() { return _split_every__WEBPACK_IMPORTED_MODULE_9__["splitEvery"]; });
55299
55300/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/smithy-client/dist/es/constants.js");
55301/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SENSITIVE_STRING", function() { return _constants__WEBPACK_IMPORTED_MODULE_10__["SENSITIVE_STRING"]; });
55302
55303/* harmony import */ var _retryable_trait__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./retryable-trait */ "../../node_modules/@aws-sdk/smithy-client/dist/es/retryable-trait.js");
55304/* empty/unused harmony star reexport *//* harmony import */ var _sdk_error__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./sdk-error */ "../../node_modules/@aws-sdk/smithy-client/dist/es/sdk-error.js");
55305/* empty/unused harmony star reexport */
55306
55307
55308
55309
55310
55311
55312
55313
55314
55315
55316
55317
55318//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2xpZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21tYW5kXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kb2N1bWVudC10eXBlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9leGNlcHRpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2V4dGVuZGVkLWVuY29kZS11cmktY29tcG9uZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9nZXQtYXJyYXktaWYtc2luZ2xlLWl0ZW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2dldC12YWx1ZS1mcm9tLXRleHQtbm9kZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGF6eS1qc29uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kYXRlLXV0aWxzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zcGxpdC1ldmVyeVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZXRyeWFibGUtdHJhaXRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Nkay1lcnJvclwiO1xuIl19
55319
55320/***/ }),
55321
55322/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js":
55323/*!*********************************************************************************!*\
55324 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/lazy-json.js ***!
55325 \*********************************************************************************/
55326/*! exports provided: StringWrapper, LazyJsonString */
55327/***/ (function(module, __webpack_exports__, __webpack_require__) {
55328
55329"use strict";
55330__webpack_require__.r(__webpack_exports__);
55331/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringWrapper", function() { return StringWrapper; });
55332/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LazyJsonString", function() { return LazyJsonString; });
55333/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55334/**
55335 * Lazy String holder for JSON typed contents.
55336 */
55337
55338/**
55339 * Because of https://github.com/microsoft/tslib/issues/95,
55340 * TS 'extends' shim doesn't support extending native types like String.
55341 * So here we create StringWrapper that duplicate everything from String
55342 * class including its prototype chain. So we can extend from here.
55343 */
55344// @ts-ignore StringWrapper implementation is not a simple constructor
55345var StringWrapper = function () {
55346 //@ts-ignore 'this' cannot be assigned to any, but Object.getPrototypeOf accepts any
55347 var Class = Object.getPrototypeOf(this).constructor;
55348 var Constructor = Function.bind.apply(String, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])([null], arguments));
55349 //@ts-ignore Call wrapped String constructor directly, don't bother typing it.
55350 var instance = new Constructor();
55351 Object.setPrototypeOf(instance, Class.prototype);
55352 return instance;
55353};
55354StringWrapper.prototype = Object.create(String.prototype, {
55355 constructor: {
55356 value: StringWrapper,
55357 enumerable: false,
55358 writable: true,
55359 configurable: true,
55360 },
55361});
55362Object.setPrototypeOf(StringWrapper, String);
55363var LazyJsonString = /** @class */ (function (_super) {
55364 Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LazyJsonString, _super);
55365 function LazyJsonString() {
55366 return _super !== null && _super.apply(this, arguments) || this;
55367 }
55368 LazyJsonString.prototype.deserializeJSON = function () {
55369 return JSON.parse(_super.prototype.toString.call(this));
55370 };
55371 LazyJsonString.prototype.toJSON = function () {
55372 return _super.prototype.toString.call(this);
55373 };
55374 LazyJsonString.fromObject = function (object) {
55375 if (object instanceof LazyJsonString) {
55376 return object;
55377 }
55378 else if (object instanceof String || typeof object === "string") {
55379 return new LazyJsonString(object);
55380 }
55381 return new LazyJsonString(JSON.stringify(object));
55382 };
55383 return LazyJsonString;
55384}(StringWrapper));
55385
55386//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1qc29uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xhenktanNvbi50cyJdLCJuYW1lcyI6W10sIm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aW5nV3JhcHBlciB7XG4gIGRlc2VyaWFsaXplSlNPTigpOiBhbnkge1xuICAgIHJldHVybiBKU09OLnBhcnNlKHN1cGVyLnRvU3RyaW5nKCkpO1xuICB9XG5cbiAgdG9KU09OKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHN1cGVyLnRvU3RyaW5nKCk7XG4gIH1cblxuICBzdGF0aWMgZnJvbU9iamVjdChvYmplY3Q6IGFueSk6IExhenlKc29uU3RyaW5nIHtcbiAgICBpZiAob2JqZWN0IGluc3RhbmNlb2YgTGF6eUpzb25TdHJpbmcpIHtcbiAgICAgIHJldHVybiBvYmplY3Q7XG4gICAgfSBlbHNlIGlmIChvYmplY3QgaW5zdGFuY2VvZiBTdHJpbmcgfHwgdHlwZW9mIG9iamVjdCA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgcmV0dXJuIG5ldyBMYXp5SnNvblN0cmluZyhvYmplY3QpO1xuICAgIH1cbiAgICByZXR1cm4gbmV3IExhenlKc29uU3RyaW5nKEpTT04uc3RyaW5naWZ5KG9iamVjdCkpO1xuICB9XG59XG4iXX0=
55387
55388/***/ }),
55389
55390/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/retryable-trait.js":
55391/*!***************************************************************************************!*\
55392 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/retryable-trait.js ***!
55393 \***************************************************************************************/
55394/*! no exports provided */
55395/***/ (function(module, __webpack_exports__, __webpack_require__) {
55396
55397"use strict";
55398__webpack_require__.r(__webpack_exports__);
55399
55400//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV0cnlhYmxlLXRyYWl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JldHJ5YWJsZS10cmFpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBIHN0cnVjdHVyZSBzaGFwZSB3aXRoIHRoZSBlcnJvciB0cmFpdC5cbiAqIGh0dHBzOi8vYXdzbGFicy5naXRodWIuaW8vc21pdGh5L3NwZWMvY29yZS5odG1sI3JldHJ5YWJsZS10cmFpdFxuICovXG5leHBvcnQgaW50ZXJmYWNlIFJldHJ5YWJsZVRyYWl0IHtcbiAgLyoqXG4gICAqIEluZGljYXRlcyB0aGF0IHRoZSBlcnJvciBpcyBhIHJldHJ5YWJsZSB0aHJvdHRsaW5nIGVycm9yLlxuICAgKi9cbiAgcmVhZG9ubHkgdGhyb3R0bGluZz86IGJvb2xlYW47XG59XG4iXX0=
55401
55402/***/ }),
55403
55404/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/sdk-error.js":
55405/*!*********************************************************************************!*\
55406 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/sdk-error.js ***!
55407 \*********************************************************************************/
55408/*! no exports provided */
55409/***/ (function(module, __webpack_exports__, __webpack_require__) {
55410
55411"use strict";
55412__webpack_require__.r(__webpack_exports__);
55413
55414//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2RrLWVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Nkay1lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWV0YWRhdGFCZWFyZXIgfSBmcm9tIFwiQGF3cy1zZGsvdHlwZXNcIjtcblxuaW1wb3J0IHsgU21pdGh5RXhjZXB0aW9uIH0gZnJvbSBcIi4vZXhjZXB0aW9uXCI7XG5cbmV4cG9ydCB0eXBlIFNka0Vycm9yID0gRXJyb3IgJiBTbWl0aHlFeGNlcHRpb24gJiBNZXRhZGF0YUJlYXJlcjtcbiJdfQ==
55415
55416/***/ }),
55417
55418/***/ "../../node_modules/@aws-sdk/smithy-client/dist/es/split-every.js":
55419/*!***********************************************************************************!*\
55420 !*** /root/amplify-js/node_modules/@aws-sdk/smithy-client/dist/es/split-every.js ***!
55421 \***********************************************************************************/
55422/*! exports provided: splitEvery */
55423/***/ (function(module, __webpack_exports__, __webpack_require__) {
55424
55425"use strict";
55426__webpack_require__.r(__webpack_exports__);
55427/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitEvery", function() { return splitEvery; });
55428/**
55429 * Given an input string, splits based on the delimiter after a given
55430 * number of delimiters has been encountered.
55431 *
55432 * @param value The input string to split.
55433 * @param delimiter The delimiter to split on.
55434 * @param numDelimiters The number of delimiters to have encountered to split.
55435 */
55436function splitEvery(value, delimiter, numDelimiters) {
55437 // Fail if we don't have a clear number to split on.
55438 if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
55439 throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
55440 }
55441 var segments = value.split(delimiter);
55442 // Short circuit extra logic for the simple case.
55443 if (numDelimiters === 1) {
55444 return segments;
55445 }
55446 var compoundSegments = [];
55447 var currentSegment = "";
55448 for (var i = 0; i < segments.length; i++) {
55449 if (currentSegment === "") {
55450 // Start a new segment.
55451 currentSegment = segments[i];
55452 }
55453 else {
55454 // Compound the current segment with the delimiter.
55455 currentSegment += delimiter + segments[i];
55456 }
55457 if ((i + 1) % numDelimiters === 0) {
55458 // We encountered the right number of delimiters, so add the entry.
55459 compoundSegments.push(currentSegment);
55460 // And reset the current segment.
55461 currentSegment = "";
55462 }
55463 }
55464 // Handle any leftover segment portion.
55465 if (currentSegment !== "") {
55466 compoundSegments.push(currentSegment);
55467 }
55468 return compoundSegments;
55469}
55470//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtZXZlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3BsaXQtZXZlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7R0FPRztBQUNILE1BQU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nRzO1xufVxuIl19
55471
55472/***/ }),
55473
55474/***/ "../../node_modules/@aws-sdk/url-parser/dist/es/index.js":
55475/*!**************************************************************************!*\
55476 !*** /root/amplify-js/node_modules/@aws-sdk/url-parser/dist/es/index.js ***!
55477 \**************************************************************************/
55478/*! exports provided: parseUrl */
55479/***/ (function(module, __webpack_exports__, __webpack_require__) {
55480
55481"use strict";
55482__webpack_require__.r(__webpack_exports__);
55483/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return parseUrl; });
55484/* harmony import */ var _aws_sdk_querystring_parser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-sdk/querystring-parser */ "../../node_modules/@aws-sdk/url-parser/node_modules/@aws-sdk/querystring-parser/dist/es/index.js");
55485
55486var parseUrl = function (url) {
55487 var _a = new URL(url), hostname = _a.hostname, pathname = _a.pathname, port = _a.port, protocol = _a.protocol, search = _a.search;
55488 var query;
55489 if (search) {
55490 query = Object(_aws_sdk_querystring_parser__WEBPACK_IMPORTED_MODULE_0__["parseQueryString"])(search);
55491 }
55492 return {
55493 hostname: hostname,
55494 port: port ? parseInt(port) : undefined,
55495 protocol: protocol,
55496 path: pathname,
55497 query: query,
55498 };
55499};
55500//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFHL0QsTUFBTSxDQUFDLElBQU0sUUFBUSxHQUFjLFVBQUMsR0FBVztJQUN2QyxJQUFBLEtBQWlELElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxFQUEzRCxRQUFRLGNBQUEsRUFBRSxRQUFRLGNBQUEsRUFBRSxJQUFJLFVBQUEsRUFBRSxRQUFRLGN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cHJvdG9jb2wsXG4gICAgcGF0aDogcGF0aG5hbWUsXG4gICAgcXVlcnksXG4gIH07XG59O1xuIl19
55501
55502/***/ }),
55503
55504/***/ "../../node_modules/@aws-sdk/url-parser/node_modules/@aws-sdk/querystring-parser/dist/es/index.js":
55505/*!*******************************************************************************************************************!*\
55506 !*** /root/amplify-js/node_modules/@aws-sdk/url-parser/node_modules/@aws-sdk/querystring-parser/dist/es/index.js ***!
55507 \*******************************************************************************************************************/
55508/*! exports provided: parseQueryString */
55509/***/ (function(module, __webpack_exports__, __webpack_require__) {
55510
55511"use strict";
55512__webpack_require__.r(__webpack_exports__);
55513/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseQueryString", function() { return parseQueryString; });
55514/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55515
55516function parseQueryString(querystring) {
55517 var e_1, _a;
55518 var query = {};
55519 querystring = querystring.replace(/^\?/, "");
55520 if (querystring) {
55521 try {
55522 for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__values"])(querystring.split("&")), _c = _b.next(); !_c.done; _c = _b.next()) {
55523 var pair = _c.value;
55524 var _d = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(pair.split("="), 2), key = _d[0], _e = _d[1], value = _e === void 0 ? null : _e;
55525 key = decodeURIComponent(key);
55526 if (value) {
55527 value = decodeURIComponent(value);
55528 }
55529 if (!(key in query)) {
55530 query[key] = value;
55531 }
55532 else if (Array.isArray(query[key])) {
55533 query[key].push(value);
55534 }
55535 else {
55536 query[key] = [query[key], value];
55537 }
55538 }
55539 }
55540 catch (e_1_1) { e_1 = { error: e_1_1 }; }
55541 finally {
55542 try {
55543 if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
55544 }
55545 finally { if (e_1) throw e_1.error; }
55546 }
55547 }
55548 return query;
55549}
55550//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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Uge1xuICAgICAgICBxdWVyeVtrZXldID0gW3F1ZXJ5W2tleV0gYXMgc3RyaW5nLCB2YWx1ZSBhcyBzdHJpbmddO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIHJldHVybiBxdWVyeTtcbn1cbiJdfQ==
55551
55552/***/ }),
55553
55554/***/ "../../node_modules/@aws-sdk/util-base64-browser/dist/es/index.js":
55555/*!***********************************************************************************!*\
55556 !*** /root/amplify-js/node_modules/@aws-sdk/util-base64-browser/dist/es/index.js ***!
55557 \***********************************************************************************/
55558/*! exports provided: fromBase64, toBase64 */
55559/***/ (function(module, __webpack_exports__, __webpack_require__) {
55560
55561"use strict";
55562__webpack_require__.r(__webpack_exports__);
55563/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromBase64", function() { return fromBase64; });
55564/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toBase64", function() { return toBase64; });
55565var alphabetByEncoding = {};
55566var alphabetByValue = new Array(64);
55567for (var i = 0, start = "A".charCodeAt(0), limit = "Z".charCodeAt(0); i + start <= limit; i++) {
55568 var char = String.fromCharCode(i + start);
55569 alphabetByEncoding[char] = i;
55570 alphabetByValue[i] = char;
55571}
55572for (var i = 0, start = "a".charCodeAt(0), limit = "z".charCodeAt(0); i + start <= limit; i++) {
55573 var char = String.fromCharCode(i + start);
55574 var index = i + 26;
55575 alphabetByEncoding[char] = index;
55576 alphabetByValue[index] = char;
55577}
55578for (var i = 0; i < 10; i++) {
55579 alphabetByEncoding[i.toString(10)] = i + 52;
55580 var char = i.toString(10);
55581 var index = i + 52;
55582 alphabetByEncoding[char] = index;
55583 alphabetByValue[index] = char;
55584}
55585alphabetByEncoding["+"] = 62;
55586alphabetByValue[62] = "+";
55587alphabetByEncoding["/"] = 63;
55588alphabetByValue[63] = "/";
55589var bitsPerLetter = 6;
55590var bitsPerByte = 8;
55591var maxLetterValue = 63;
55592/**
55593 * Converts a base-64 encoded string to a Uint8Array of bytes.
55594 *
55595 * @param input The base-64 encoded string
55596 *
55597 * @see https://tools.ietf.org/html/rfc4648#section-4
55598 */
55599function fromBase64(input) {
55600 var totalByteLength = (input.length / 4) * 3;
55601 if (input.substr(-2) === "==") {
55602 totalByteLength -= 2;
55603 }
55604 else if (input.substr(-1) === "=") {
55605 totalByteLength--;
55606 }
55607 var out = new ArrayBuffer(totalByteLength);
55608 var dataView = new DataView(out);
55609 for (var i = 0; i < input.length; i += 4) {
55610 var bits = 0;
55611 var bitLength = 0;
55612 for (var j = i, limit = i + 3; j <= limit; j++) {
55613 if (input[j] !== "=") {
55614 bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);
55615 bitLength += bitsPerLetter;
55616 }
55617 else {
55618 bits >>= bitsPerLetter;
55619 }
55620 }
55621 var chunkOffset = (i / 4) * 3;
55622 bits >>= bitLength % bitsPerByte;
55623 var byteLength = Math.floor(bitLength / bitsPerByte);
55624 for (var k = 0; k < byteLength; k++) {
55625 var offset = (byteLength - k - 1) * bitsPerByte;
55626 dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);
55627 }
55628 }
55629 return new Uint8Array(out);
55630}
55631/**
55632 * Converts a Uint8Array of binary data to a base-64 encoded string.
55633 *
55634 * @param input The binary data to encode
55635 *
55636 * @see https://tools.ietf.org/html/rfc4648#section-4
55637 */
55638function toBase64(input) {
55639 var str = "";
55640 for (var i = 0; i < input.length; i += 3) {
55641 var bits = 0;
55642 var bitLength = 0;
55643 for (var j = i, limit = Math.min(i + 3, input.length); j < limit; j++) {
55644 bits |= input[j] << ((limit - j - 1) * bitsPerByte);
55645 bitLength += bitsPerByte;
55646 }
55647 var bitClusterCount = Math.ceil(bitLength / bitsPerLetter);
55648 bits <<= bitClusterCount * bitsPerLetter - bitLength;
55649 for (var k = 1; k <= bitClusterCount; k++) {
55650 var offset = (bitClusterCount - k) * bitsPerLetter;
55651 str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset];
55652 }
55653 str += "==".slice(0, 4 - bitClusterCount);
55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4gICAgbGV0IGJpdHMgPSAwO1xuICAgIGxldCBiaXRMZW5ndGggPSAwO1xuICAgIGZvciAobGV0IGogPSBpLCBsaW1pdCA9IE1hdGgubWluKGkgKyAzLCBpbnB1dC5sZW5ndGgpOyBqIDwgbGltaXQ7IGorKykge1xuICAgICAgYml0cyB8PSBpbnB1dFtqXSA8PCAoKGxpbWl0IC0gaiAtIDEpICogYml0c1BlckJ5dGUpO1xuICAgICAgYml0TGVuZ3RoICs9IGJpdHNQZXJCeXRlO1xuICAgIH1cblxuICAgIGNvbnN0IGJpdENsdXN0ZXJDb3VudCA9IE1hdGguY2VpbChiaXRMZW5ndGggLyBiaXRzUGVyTGV0dGVyKTtcbiAgICBiaXRzIDw8PSBiaXRDbHVzdGVyQ291bnQgKiBiaXRzUGVyTGV0dGVyIC0gYml0TGVuZ3RoO1xuICAgIGZvciAobGV0IGsgPSAxOyBrIDw9IGJpdENsdXN0ZXJDb3VudDsgaysrKSB7XG4gICAgICBjb25zdCBvZmZzZXQgPSAoYml0Q2x1c3RlckNvdW50IC0gaykgKiBiaXRzUGVyTGV0dGVyO1xuICAgICAgc3RyICs9IGFscGhhYmV0QnlWYWx1ZVsoYml0cyAmIChtYXhMZXR0ZXJWYWx1ZSA8PCBvZmZzZXQpKSA+PiBvZmZzZXRdO1xuICAgIH1cblxuICAgIHN0ciArPSBcIj09XCIuc2xpY2UoMCwgNCAtIGJpdENsdXN0ZXJDb3VudCk7XG4gIH1cblxuICByZXR1cm4gc3RyO1xufVxuIl19
55658
55659/***/ }),
55660
55661/***/ "../../node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js":
55662/*!****************************************************************************************!*\
55663 !*** /root/amplify-js/node_modules/@aws-sdk/util-body-length-browser/dist/es/index.js ***!
55664 \****************************************************************************************/
55665/*! exports provided: calculateBodyLength */
55666/***/ (function(module, __webpack_exports__, __webpack_require__) {
55667
55668"use strict";
55669__webpack_require__.r(__webpack_exports__);
55670/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBodyLength", function() { return calculateBodyLength; });
55671function calculateBodyLength(body) {
55672 if (typeof body === "string") {
55673 var len = body.length;
55674 for (var i = len - 1; i >= 0; i--) {
55675 var code = body.charCodeAt(i);
55676 if (code > 0x7f && code <= 0x7ff)
55677 len++;
55678 else if (code > 0x7ff && code <= 0xffff)
55679 len += 2;
55680 }
55681 return len;
55682 }
55683 else if (typeof body.byteLength === "number") {
55684 // handles Uint8Array, ArrayBuffer, Buffer, and ArrayBufferView
55685 return body.byteLength;
55686 }
55687 else if (typeof body.size === "number") {
55688 // handles browser File object
55689 return body.size;
55690 }
55691}
55692//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLG1CQUFtQixDQUFDLElBQVM7SUFDM0MsSUFBSSxPQUFPLElBQUksS0FBSyxRQUFRLEVBQUU7UUFDNUIsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztRQUV0QixLQUFLLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUNqQyxJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ2hDLElBQUksSUFBSSxHQUFHLElBQUksSUFBSSxJQUFJLElBQUksS0FBSztnQkFBRSxHQUFHLEVBQUUsQ0FBQztpQkFDbkMsSUFBSSxJQUFJLEdBQUcsS0FBSyxJQUFJLElBQUksSUFBSSxNQUFNO2dCQUFFLEdBQUcsSUFBSSxDQUFDLENBQUM7U0FDbkQ7UUFFRCxPQUFPLEdBQUcsQ0FBQztLQUNaO1NBQU0sSUFBSSxP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1cbn1cbiJdfQ==
55693
55694/***/ }),
55695
55696/***/ "../../node_modules/@aws-sdk/util-locate-window/dist-es/index.js":
55697/*!**********************************************************************************!*\
55698 !*** /root/amplify-js/node_modules/@aws-sdk/util-locate-window/dist-es/index.js ***!
55699 \**********************************************************************************/
55700/*! exports provided: locateWindow */
55701/***/ (function(module, __webpack_exports__, __webpack_require__) {
55702
55703"use strict";
55704__webpack_require__.r(__webpack_exports__);
55705/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "locateWindow", function() { return locateWindow; });
55706var fallbackWindow = {};
55707function locateWindow() {
55708 if (typeof window !== "undefined") {
55709 return window;
55710 }
55711 else if (typeof self !== "undefined") {
55712 return self;
55713 }
55714 return fallbackWindow;
55715}
55716
55717
55718/***/ }),
55719
55720/***/ "../../node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js":
55721/*!***************************************************************************************!*\
55722 !*** /root/amplify-js/node_modules/@aws-sdk/util-user-agent-browser/dist/es/index.js ***!
55723 \***************************************************************************************/
55724/*! exports provided: defaultUserAgent */
55725/***/ (function(module, __webpack_exports__, __webpack_require__) {
55726
55727"use strict";
55728__webpack_require__.r(__webpack_exports__);
55729/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultUserAgent", function() { return defaultUserAgent; });
55730/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55731/* harmony import */ var bowser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! bowser */ "../../node_modules/bowser/es5.js");
55732/* harmony import */ var bowser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(bowser__WEBPACK_IMPORTED_MODULE_1__);
55733
55734
55735/**
55736 * Default provider to the user agent in browsers. It's a best effort to infer
55737 * the device information. It uses bowser library to detect the browser and virsion
55738 */
55739var defaultUserAgent = function (_a) {
55740 var serviceId = _a.serviceId, clientVersion = _a.clientVersion;
55741 return function () { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55742 var parsedUA, sections;
55743 var _a, _b, _c, _d, _e, _f, _g;
55744 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_h) {
55745 parsedUA = ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) ? bowser__WEBPACK_IMPORTED_MODULE_1___default.a.parse(window.navigator.userAgent) : undefined;
55746 sections = [
55747 // sdk-metadata
55748 ["aws-sdk-js", clientVersion],
55749 // os-metadata
55750 ["os/" + (((_b = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.os) === null || _b === void 0 ? void 0 : _b.name) || "other"), (_c = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.os) === null || _c === void 0 ? void 0 : _c.version],
55751 // language-metadata
55752 // ECMAScript edition doesn't matter in JS.
55753 ["lang/js"],
55754 // browser vendor and version.
55755 ["md/browser", ((_e = (_d = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.browser) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : "unknown") + "_" + ((_g = (_f = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.browser) === null || _f === void 0 ? void 0 : _f.version) !== null && _g !== void 0 ? _g : "unknown")],
55756 ];
55757 if (serviceId) {
55758 // api-metadata
55759 // service Id may not appear in non-AWS clients
55760 sections.push(["api/" + serviceId, clientVersion]);
55761 }
55762 return [2 /*return*/, sections];
55763 });
55764 }); };
55765};
55766//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sTUFBTSxNQUFNLFFBQVEsQ0FBQztBQUk1Qjs7O0dBR0c7QUFDSCxNQUF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XCJvdGhlclwifWAsIHBhcnNlZFVBPy5vcz8udmVyc2lvbl0sXG4gICAgLy8gbGFuZ3VhZ2UtbWV0YWRhdGFcbiAgICAvLyBFQ01BU2NyaXB0IGVkaXRpb24gZG9lc24ndCBtYXR0ZXIgaW4gSlMuXG4gICAgW1wibGFuZy9qc1wiXSxcbiAgICAvLyBicm93c2VyIHZlbmRvciBhbmQgdmVyc2lvbi5cbiAgICBbXCJtZC9icm93c2VyXCIsIGAke3BhcnNlZFVBPy5icm93c2VyPy5uYW1lID8/IFwidW5rbm93blwifV8ke3BhcnNlZFVBPy5icm93c2VyPy52ZXJzaW9uID8/IFwidW5rbm93blwifWBdLFxuICBdO1xuXG4gIGlmIChzZXJ2aWNlSWQpIHtcbiAgICAvLyBhcGktbWV0YWRhdGFcbiAgICAvLyBzZXJ2aWNlIElkIG1heSBub3QgYXBwZWFyIGluIG5vbi1BV1MgY2xpZW50c1xuICAgIHNlY3Rpb25zLnB1c2goW2BhcGkvJHtzZXJ2aWNlSWR9YCwgY2xpZW50VmVyc2lvbl0pO1xuICB9XG5cbiAgcmV0dXJuIHNlY3Rpb25zO1xufTtcbiJdfQ==
55767
55768/***/ }),
55769
55770/***/ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js":
55771/*!*********************************************************************************!*\
55772 !*** /root/amplify-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js ***!
55773 \*********************************************************************************/
55774/*! exports provided: fromUtf8, toUtf8 */
55775/***/ (function(module, __webpack_exports__, __webpack_require__) {
55776
55777"use strict";
55778__webpack_require__.r(__webpack_exports__);
55779/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
55780/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
55781/* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js");
55782/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js");
55783
55784
55785var fromUtf8 = function (input) {
55786 return typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
55787};
55788var toUtf8 = function (input) {
55789 return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
55790};
55791//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsSUFBSSxVQUFVLEVBQUUsTUFBTSxJQUFJLFFBQVEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsUUFBUSxJQUFJLG1CQUFtQixFQUFFLE1BQU0sSUFBSSxpQkFBaUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBS25HLE1BQU0sQ0FBQyxJQUFNLFFBQVEsR0FBRyxVQUFDLEtBQWE7SUFDcEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO0FBQWxGLENBQWtGLENBQUM7QUFFckYsTUFBTSxDQUFDLElBQU0sTUFBTSxHQUFHLFVBQUMsS0FBaUI7SUFDdEMsT0FBQSxPQUFPLFdBQVcsS0FBSyxVQUFVLENBQUMsQ0FBQyxDQUFDLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDO0FBQTlFLENBQThFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBmcm9tVXRmOCBhcyBqc0Zyb21VdGY4LCB0b1V0ZjggYXMganNUb1V0ZjggfSBmcm9tIFwiLi9wdXJlSnNcIjtcbmltcG9ydCB7IGZyb21VdGY4IGFzIHRleHRFbmNvZGVyRnJvbVV0ZjgsIHRvVXRmOCBhcyB0ZXh0RW5jb2RlclRvVXRmOCB9IGZyb20gXCIuL3doYXR3Z0VuY29kaW5nQXBpXCI7XG5cbmRlY2xhcmUgY29uc3QgVGV4dERlY29kZXI6IEZ1bmN0aW9uIHwgdW5kZWZpbmVkO1xuZGVjbGFyZSBjb25zdCBUZXh0RW5jb2RlcjogRnVuY3Rpb24gfCB1bmRlZmluZWQ7XG5cbmV4cG9ydCBjb25zdCBmcm9tVXRmOCA9IChpbnB1dDogc3RyaW5nKTogVWludDhBcnJheSA9PlxuICB0eXBlb2YgVGV4dEVuY29kZXIgPT09IFwiZnVuY3Rpb25cIiA/IHRleHRFbmNvZGVyRnJvbVV0ZjgoaW5wdXQpIDoganNGcm9tVXRmOChpbnB1dCk7XG5cbmV4cG9ydCBjb25zdCB0b1V0ZjggPSAoaW5wdXQ6IFVpbnQ4QXJyYXkpOiBzdHJpbmcgPT5cbiAgdHlwZW9mIFRleHREZWNvZGVyID09PSBcImZ1bmN0aW9uXCIgPyB0ZXh0RW5jb2RlclRvVXRmOChpbnB1dCkgOiBqc1RvVXRmOChpbnB1dCk7XG4iXX0=
55792
55793/***/ }),
55794
55795/***/ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js":
55796/*!**********************************************************************************!*\
55797 !*** /root/amplify-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/pureJs.js ***!
55798 \**********************************************************************************/
55799/*! exports provided: fromUtf8, toUtf8 */
55800/***/ (function(module, __webpack_exports__, __webpack_require__) {
55801
55802"use strict";
55803__webpack_require__.r(__webpack_exports__);
55804/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
55805/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
55806/**
55807 * Converts a JS string from its native UCS-2/UTF-16 representation into a
55808 * Uint8Array of the bytes used to represent the equivalent characters in UTF-8.
55809 *
55810 * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google
55811 * Closure library, though updated to use typed arrays.
55812 */
55813var fromUtf8 = function (input) {
55814 var bytes = [];
55815 for (var i = 0, len = input.length; i < len; i++) {
55816 var value = input.charCodeAt(i);
55817 if (value < 0x80) {
55818 bytes.push(value);
55819 }
55820 else if (value < 0x800) {
55821 bytes.push((value >> 6) | 192, (value & 63) | 128);
55822 }
55823 else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
55824 var surrogatePair = 0x10000 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023);
55825 bytes.push((surrogatePair >> 18) | 240, ((surrogatePair >> 12) & 63) | 128, ((surrogatePair >> 6) & 63) | 128, (surrogatePair & 63) | 128);
55826 }
55827 else {
55828 bytes.push((value >> 12) | 224, ((value >> 6) & 63) | 128, (value & 63) | 128);
55829 }
55830 }
55831 return Uint8Array.from(bytes);
55832};
55833/**
55834 * Converts a typed array of bytes containing UTF-8 data into a native JS
55835 * string.
55836 *
55837 * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the
55838 * Google Closure library, though updated to use typed arrays and to better
55839 * handle astral plane code points.
55840 */
55841var toUtf8 = function (input) {
55842 var decoded = "";
55843 for (var i = 0, len = input.length; i < len; i++) {
55844 var byte = input[i];
55845 if (byte < 0x80) {
55846 decoded += String.fromCharCode(byte);
55847 }
55848 else if (192 <= byte && byte < 224) {
55849 var nextByte = input[++i];
55850 decoded += String.fromCharCode(((byte & 31) << 6) | (nextByte & 63));
55851 }
55852 else if (240 <= byte && byte < 365) {
55853 var surrogatePair = [byte, input[++i], input[++i], input[++i]];
55854 var encoded = "%" + surrogatePair.map(function (byteValue) { return byteValue.toString(16); }).join("%");
55855 decoded += decodeURIComponent(encoded);
55856 }
55857 else {
55858 decoded += String.fromCharCode(((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63));
55859 }
55860 }
55861 return decoded;
55862};
55863//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVyZUpzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3B1cmVKcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLENBQUMsSUFBTSxRQUFRLEdBQUcsVUFBQyxLQUFhO0lBQ3BDLElBQU0sS0FBSyxHQUFrQixFQUFFLENBQUM7SUFDaEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsR0FBRyxHQUFHLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNoRCxJQUFNLEtBQUssR0FBRyxLQUFLLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLElBQUksS0FBSyxHQUFHLElBQUksRUFBRTtZQUNoQixLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1NBQ25CO2FBQU0sSUFBSSxLQUFLLEdBQUcsS0FBSyxFQUFFO1lBQ3hCLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLElBQUksQ0FBQyxDQUFDLEdBQUcsR0FBVSxFQUFFLENBQUMsS0FBSyxHQUFHLEVBQVEsQ0FBQyxHQUFHLEdBQVUsQ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U3RyaW5nLmZyb21DaGFyQ29kZSgoKGJ5dGUgJiAwYjExMTExKSA8PCA2KSB8IChuZXh0Qnl0ZSAmIDBiMTExMTExKSk7XG4gICAgfSBlbHNlIGlmICgwYjExMTEwMDAwIDw9IGJ5dGUgJiYgYnl0ZSA8IDBiMTAxMTAxMTAxKSB7XG4gICAgICBjb25zdCBzdXJyb2dhdGVQYWlyID0gW2J5dGUsIGlucHV0WysraV0sIGlucHV0WysraV0sIGlucHV0WysraV1dO1xuICAgICAgY29uc3QgZW5jb2RlZCA9IFwiJVwiICsgc3Vycm9nYXRlUGFpci5tYXAoKGJ5dGVWYWx1ZSkgPT4gYnl0ZVZhbHVlLnRvU3RyaW5nKDE2KSkuam9pbihcIiVcIik7XG4gICAgICBkZWNvZGVkICs9IGRlY29kZVVSSUNvbXBvbmVudChlbmNvZGVkKTtcbiAgICB9IGVsc2Uge1xuICAgICAgZGVjb2RlZCArPSBTdHJpbmcuZnJvbUNoYXJDb2RlKFxuICAgICAgICAoKGJ5dGUgJiAwYjExMTEpIDw8IDEyKSB8ICgoaW5wdXRbKytpXSAmIDBiMTExMTExKSA8PCA2KSB8IChpbnB1dFsrK2ldICYgMGIxMTExMTEpXG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBkZWNvZGVkO1xufTtcbiJdfQ==
55864
55865/***/ }),
55866
55867/***/ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js":
55868/*!*********************************************************************************************!*\
55869 !*** /root/amplify-js/node_modules/@aws-sdk/util-utf8-browser/dist/es/whatwgEncodingApi.js ***!
55870 \*********************************************************************************************/
55871/*! exports provided: fromUtf8, toUtf8 */
55872/***/ (function(module, __webpack_exports__, __webpack_require__) {
55873
55874"use strict";
55875__webpack_require__.r(__webpack_exports__);
55876/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
55877/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
55878function fromUtf8(input) {
55879 return new TextEncoder().encode(input);
55880}
55881function toUtf8(input) {
55882 return new TextDecoder("utf-8").decode(input);
55883}
55884//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hhdHdnRW5jb2RpbmdBcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd2hhdHdnRW5jb2RpbmdBcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNBLE1BQU0sVUFBVSxRQUFRLENBQUMsS0FBYTtJQUNwQyxPQUFPLElBQUksV0FBVyxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3pDLENBQUM7QUFFRCxNQUFNLFVBQVUsTUFBTSxDQUFDLEtBQWlCO0lBQ3RDLE9BQU8sSUFBSSxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ2hELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgZGVjbGFyYXRpb24gb2YgdGhlIGdsb2JhbCBUZXh0RW5jb2RlciBhbmQgVGV4dERlY29kZXIgY29uc3RydWN0b3JzLlxuICpcbiAqIEBzZWUgaHR0cHM6Ly9lbmNvZGluZy5zcGVjLndoYXR3Zy5vcmcvXG4gKi9cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tbmFtZXNwYWNlXG5uYW1lc3BhY2UgRW5jb2Rpbmcge1xuICBpbnRlcmZhY2UgVGV4dERlY29kZXJPcHRpb25zIHtcbiAgICBmYXRhbD86IGJvb2xlYW47XG4gICAgaWdub3JlQk9NPzogYm9vbGVhbjtcbiAgfVxuXG4gIGludGVyZmFjZSBUZXh0RGVjb2RlT3B0aW9ucyB7XG4gICAgc3RyZWFtPzogYm9vbGVhbjtcbiAgfVxuXG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R1cm4gbmV3IFRleHREZWNvZGVyKFwidXRmLThcIikuZGVjb2RlKGlucHV0KTtcbn1cbiJdfQ==
55885
55886/***/ }),
55887
55888/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/createWaiter.js":
55889/*!**********************************************************************************!*\
55890 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/createWaiter.js ***!
55891 \**********************************************************************************/
55892/*! exports provided: createWaiter */
55893/***/ (function(module, __webpack_exports__, __webpack_require__) {
55894
55895"use strict";
55896__webpack_require__.r(__webpack_exports__);
55897/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWaiter", function() { return createWaiter; });
55898/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55899/* harmony import */ var _poller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./poller */ "../../node_modules/@aws-sdk/util-waiter/dist/es/poller.js");
55900/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/index.js");
55901/* harmony import */ var _waiter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js");
55902
55903
55904
55905
55906var abortTimeout = function (abortSignal) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55907 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
55908 return [2 /*return*/, new Promise(function (resolve) {
55909 abortSignal.onabort = function () { return resolve({ state: _waiter__WEBPACK_IMPORTED_MODULE_3__["WaiterState"].ABORTED }); };
55910 })];
55911 });
55912}); };
55913/**
55914 * Create a waiter promise that only resolves when:
55915 * 1. Abort controller is signaled
55916 * 2. Max wait time is reached
55917 * 3. `acceptorChecks` succeeds, or fails
55918 * Otherwise, it invokes `acceptorChecks` with exponential-backoff delay.
55919 *
55920 * @internal
55921 */
55922var createWaiter = function (options, input, acceptorChecks) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55923 var params, exitConditions;
55924 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
55925 params = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _waiter__WEBPACK_IMPORTED_MODULE_3__["waiterServiceDefaults"]), options);
55926 Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateWaiterOptions"])(params);
55927 exitConditions = [Object(_poller__WEBPACK_IMPORTED_MODULE_1__["runPolling"])(params, input, acceptorChecks)];
55928 if (options.abortController) {
55929 exitConditions.push(abortTimeout(options.abortController.signal));
55930 }
55931 return [2 /*return*/, Promise.race(exitConditions)];
55932 });
55933}); };
55934//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlV2FpdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NyZWF0ZVdhaXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN0QyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDaEQsT0FBTyxFQUErQixxQkFBcUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFFM0YsSUFBTSxZQUFZLEdBQUcsVUFBTyxXQUF3Qjs7UUFDbEQsc0JBQU8sSUFBSSxPQUFPLENBQUMsVUFBQyxPQUFPO2dCQUN6QixXQUFXLENBQUMsT0FBTyxHQUFHLGNBQU0sT0FBQSxPQUFPLENBQUMsRUFBRSxLQUFLLEVBQUUsV0FBVyxDQU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jY2VwdG9yQ2hlY2tzKV07XG4gIGlmIChvcHRpb25zLmFib3J0Q29udHJvbGxlcikge1xuICAgIGV4aXRDb25kaXRpb25zLnB1c2goYWJvcnRUaW1lb3V0KG9wdGlvbnMuYWJvcnRDb250cm9sbGVyLnNpZ25hbCkpO1xuICB9XG4gIHJldHVybiBQcm9taXNlLnJhY2UoZXhpdENvbmRpdGlvbnMpO1xufTtcbiJdfQ==
55935
55936/***/ }),
55937
55938/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/index.js":
55939/*!***************************************************************************!*\
55940 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/index.js ***!
55941 \***************************************************************************/
55942/*! exports provided: createWaiter, waiterServiceDefaults, WaiterState */
55943/***/ (function(module, __webpack_exports__, __webpack_require__) {
55944
55945"use strict";
55946__webpack_require__.r(__webpack_exports__);
55947/* harmony import */ var _createWaiter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWaiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/createWaiter.js");
55948/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createWaiter", function() { return _createWaiter__WEBPACK_IMPORTED_MODULE_0__["createWaiter"]; });
55949
55950/* harmony import */ var _waiter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js");
55951/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "waiterServiceDefaults", function() { return _waiter__WEBPACK_IMPORTED_MODULE_1__["waiterServiceDefaults"]; });
55952
55953/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WaiterState", function() { return _waiter__WEBPACK_IMPORTED_MODULE_1__["WaiterState"]; });
55954
55955
55956
55957//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLFVBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NyZWF0ZVdhaXRlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vd2FpdGVyXCI7XG4iXX0=
55958
55959/***/ }),
55960
55961/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/poller.js":
55962/*!****************************************************************************!*\
55963 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/poller.js ***!
55964 \****************************************************************************/
55965/*! exports provided: runPolling */
55966/***/ (function(module, __webpack_exports__, __webpack_require__) {
55967
55968"use strict";
55969__webpack_require__.r(__webpack_exports__);
55970/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "runPolling", function() { return runPolling; });
55971/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
55972/* harmony import */ var _utils_sleep__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/sleep */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js");
55973/* harmony import */ var _waiter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./waiter */ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js");
55974
55975
55976
55977/**
55978 * Reference: https://awslabs.github.io/smithy/1.0/spec/waiters.html#waiter-retries
55979 */
55980var exponentialBackoffWithJitter = function (minDelay, maxDelay, attemptCeiling, attempt) {
55981 if (attempt > attemptCeiling)
55982 return maxDelay;
55983 var delay = minDelay * Math.pow(2, (attempt - 1));
55984 return randomInRange(minDelay, delay);
55985};
55986var randomInRange = function (min, max) { return min + Math.random() * (max - min); };
55987/**
55988 * Function that runs polling as part of waiters. This will make one inital attempt and then
55989 * subsequent attempts with an increasing delay.
55990 * @param params options passed to the waiter.
55991 * @param client AWS SDK Client
55992 * @param input client input
55993 * @param stateChecker function that checks the acceptor states on each poll.
55994 */
55995var runPolling = function (_a, input, acceptorChecks) {
55996 var minDelay = _a.minDelay, maxDelay = _a.maxDelay, maxWaitTime = _a.maxWaitTime, abortController = _a.abortController, client = _a.client;
55997 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
55998 var state, currentAttempt, waitUntil, attemptCeiling, delay, state_1;
55999 var _b;
56000 return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
56001 switch (_c.label) {
56002 case 0: return [4 /*yield*/, acceptorChecks(client, input)];
56003 case 1:
56004 state = (_c.sent()).state;
56005 if (state !== _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY) {
56006 return [2 /*return*/, { state: state }];
56007 }
56008 currentAttempt = 1;
56009 waitUntil = Date.now() + maxWaitTime * 1000;
56010 attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;
56011 _c.label = 2;
56012 case 2:
56013 if (false) {}
56014 if ((_b = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _b === void 0 ? void 0 : _b.aborted) {
56015 return [2 /*return*/, { state: _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].ABORTED }];
56016 }
56017 delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);
56018 // Resolve the promise explicitly at timeout or aborted. Otherwise this while loop will keep making API call until
56019 // `acceptorCheck` returns non-retry status, even with the Promise.race() outside.
56020 if (Date.now() + delay * 1000 > waitUntil) {
56021 return [2 /*return*/, { state: _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].TIMEOUT }];
56022 }
56023 return [4 /*yield*/, Object(_utils_sleep__WEBPACK_IMPORTED_MODULE_1__["sleep"])(delay)];
56024 case 3:
56025 _c.sent();
56026 return [4 /*yield*/, acceptorChecks(client, input)];
56027 case 4:
56028 state_1 = (_c.sent()).state;
56029 if (state_1 !== _waiter__WEBPACK_IMPORTED_MODULE_2__["WaiterState"].RETRY) {
56030 return [2 /*return*/, { state: state_1 }];
56031 }
56032 currentAttempt += 1;
56033 return [3 /*break*/, 2];
56034 case 5: return [2 /*return*/];
56035 }
56036 });
56037 });
56038};
56039//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9sbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3BvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0QyxPQUFPLEVBQStCLFdBQVcsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUVwRTs7R0FFRztBQUNILElBQU0sNEJBQTRCLEdBQUcsVUFBQyxRQUFnQixFQUFFLFFBQWdCLEVBQUUsY0FBc0IsRUFBRSxPQUFlO0lBQy9HLElBQUksT0FBTyxHQUFHLGNBQWM7UUFBRSxPQUFPLFFBQVEsQ0FBQztJQUM5QyxJQUFNLEtBQUssR0FBRyxRQUFRLEdBQUcsU0FBQSxDQUFDLEVBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDLENBQUEsQ0FBQztJQUM1QyxPQUFPLGFBQWEsQ0FBQyxRQUFRLEVBQUUsS0FBSyxDQUFDLENBQUM7QUFDeEMsQ0FBQyxDQUFDO0FBRUYsSUFBTSxhQUFhLEdBQUcsVUFBQyxHQUFXLEVBQUUsR0FBVyxJQUFLLE9BQUEsR0FBRyxHQUFHLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUMsRUFBakMsQ0FBaUMsQ0FBQztBQUV0Rjs7Ozs7OztHQU9HO0FBQ0gsTUFBTSxDQUFDLElBQU0sVUFBVSxHQUFHLFVBQ3hCLEVBQW1GLEVBQ25GLEtBQVks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uIHsgc3RhdGU6IFdhaXRlclN0YXRlLlRJTUVPVVQgfTtcbiAgICB9XG4gICAgYXdhaXQgc2xlZXAoZGVsYXkpO1xuICAgIGNvbnN0IHsgc3RhdGUgfSA9IGF3YWl0IGFjY2VwdG9yQ2hlY2tzKGNsaWVudCwgaW5wdXQpO1xuICAgIGlmIChzdGF0ZSAhPT0gV2FpdGVyU3RhdGUuUkVUUlkpIHtcbiAgICAgIHJldHVybiB7IHN0YXRlIH07XG4gICAgfVxuXG4gICAgY3VycmVudEF0dGVtcHQgKz0gMTtcbiAgfVxufTtcbiJdfQ==
56040
56041/***/ }),
56042
56043/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/index.js":
56044/*!*********************************************************************************!*\
56045 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/utils/index.js ***!
56046 \*********************************************************************************/
56047/*! exports provided: sleep, validateWaiterOptions */
56048/***/ (function(module, __webpack_exports__, __webpack_require__) {
56049
56050"use strict";
56051__webpack_require__.r(__webpack_exports__);
56052/* harmony import */ var _sleep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sleep */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js");
56053/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sleep", function() { return _sleep__WEBPACK_IMPORTED_MODULE_0__["sleep"]; });
56054
56055/* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validate */ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/validate.js");
56056/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validateWaiterOptions", function() { return _validate__WEBPACK_IMPORTED_MODULE_1__["validateWaiterOptions"]; });
56057
56058
56059
56060//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUM7QUFDeEIsY0FBYyxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9zbGVlcFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdmFsaWRhdGVcIjtcbiJdfQ==
56061
56062/***/ }),
56063
56064/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js":
56065/*!*********************************************************************************!*\
56066 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/utils/sleep.js ***!
56067 \*********************************************************************************/
56068/*! exports provided: sleep */
56069/***/ (function(module, __webpack_exports__, __webpack_require__) {
56070
56071"use strict";
56072__webpack_require__.r(__webpack_exports__);
56073/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sleep", function() { return sleep; });
56074var sleep = function (seconds) {
56075 return new Promise(function (resolve) { return setTimeout(resolve, seconds * 1000); });
56076};
56077//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xlZXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvc2xlZXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sS0FBSyxHQUFHLFVBQUMsT0FBZTtJQUNuQyxPQUFPLElBQUksT0FBTyxDQUFDLFVBQUMsT0FBTyxJQUFLLE9BQUEsVUFBVSxDQUFDLE9BQU8sRUFBRSxPQUFPLEdBQUcsSUFBSSxDQUFDLEVBQW5DLENBQW1DLENBQUMsQ0FBQztBQUN2RSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3Qgc2xlZXAgPSAoc2Vjb25kczogbnVtYmVyKSA9PiB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT4gc2V0VGltZW91dChyZXNvbHZlLCBzZWNvbmRzICogMTAwMCkpO1xufTtcbiJdfQ==
56078
56079/***/ }),
56080
56081/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/utils/validate.js":
56082/*!************************************************************************************!*\
56083 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/utils/validate.js ***!
56084 \************************************************************************************/
56085/*! exports provided: validateWaiterOptions */
56086/***/ (function(module, __webpack_exports__, __webpack_require__) {
56087
56088"use strict";
56089__webpack_require__.r(__webpack_exports__);
56090/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateWaiterOptions", function() { return validateWaiterOptions; });
56091/**
56092 * Validates that waiter options are passed correctly
56093 * @param options a waiter configuration object
56094 */
56095var validateWaiterOptions = function (options) {
56096 if (options.maxWaitTime < 1) {
56097 throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");
56098 }
56099 else if (options.minDelay < 1) {
56100 throw new Error("WaiterConfiguration.minDelay must be greater than 0");
56101 }
56102 else if (options.maxDelay < 1) {
56103 throw new Error("WaiterConfiguration.maxDelay must be greater than 0");
56104 }
56105 else if (options.maxWaitTime <= options.minDelay) {
56106 throw new Error("WaiterConfiguration.maxWaitTime [" + options.maxWaitTime + "] must be greater than WaiterConfiguration.minDelay [" + options.minDelay + "] for this waiter");
56107 }
56108 else if (options.maxDelay < options.minDelay) {
56109 throw new Error("WaiterConfiguration.maxDelay [" + options.maxDelay + "] must be greater than WaiterConfiguration.minDelay [" + options.minDelay + "] for this waiter");
56110 }
56111};
56112//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvdmFsaWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLElBQU0scUJBQXFCLEdBQUcsVUFBUyxPQ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mZpZ3VyYXRpb24ubWluRGVsYXkgWyR7b3B0aW9ucy5taW5EZWxheX1dIGZvciB0aGlzIHdhaXRlcmBcbiAgICApO1xuICB9XG59O1xuIl19
56113
56114/***/ }),
56115
56116/***/ "../../node_modules/@aws-sdk/util-waiter/dist/es/waiter.js":
56117/*!****************************************************************************!*\
56118 !*** /root/amplify-js/node_modules/@aws-sdk/util-waiter/dist/es/waiter.js ***!
56119 \****************************************************************************/
56120/*! exports provided: waiterServiceDefaults, WaiterState */
56121/***/ (function(module, __webpack_exports__, __webpack_require__) {
56122
56123"use strict";
56124__webpack_require__.r(__webpack_exports__);
56125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "waiterServiceDefaults", function() { return waiterServiceDefaults; });
56126/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WaiterState", function() { return WaiterState; });
56127/**
56128 * @private
56129 */
56130var waiterServiceDefaults = {
56131 minDelay: 2,
56132 maxDelay: 120,
56133};
56134var WaiterState;
56135(function (WaiterState) {
56136 WaiterState["ABORTED"] = "ABORTED";
56137 WaiterState["FAILURE"] = "FAILURE";
56138 WaiterState["SUCCESS"] = "SUCCESS";
56139 WaiterState["RETRY"] = "RETRY";
56140 WaiterState["TIMEOUT"] = "TIMEOUT";
56141})(WaiterState || (WaiterState = {}));
56142//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FpdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3dhaXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQ0E7O0dBRUc7QUFDSCxNQUFNLENBQUMsSUFBTSxxQkFBcUIsR0FBRztJQUNuQyxRQUFRLEVBQUUsQ0FBQztJQUNYLFFBQVEsRUFBRSxHQUFHO0NBQ2QsQ0FBQztBQVFGLE1BQU0sQ0FBTixJQUFZLFdBTVg7QUFORCxXQUFZLFdBQVc7SUFDckIsa0NBQW1CLENBQ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56144/***/ }),
56145
56146/***/ "../../node_modules/base64-js/index.js":
56147/*!********************************************************!*\
56148 !*** /root/amplify-js/node_modules/base64-js/index.js ***!
56149 \********************************************************/
56150/*! no static exports found */
56151/***/ (function(module, exports, __webpack_require__) {
56152
56153"use strict";
56154
56155
56156exports.byteLength = byteLength
56157exports.toByteArray = toByteArray
56158exports.fromByteArray = fromByteArray
56159
56160var lookup = []
56161var revLookup = []
56162var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
56163
56164var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
56165for (var i = 0, len = code.length; i < len; ++i) {
56166 lookup[i] = code[i]
56167 revLookup[code.charCodeAt(i)] = i
56168}
56169
56170// Support decoding URL-safe base64 strings, as Node.js does.
56171// See: https://en.wikipedia.org/wiki/Base64#URL_applications
56172revLookup['-'.charCodeAt(0)] = 62
56173revLookup['_'.charCodeAt(0)] = 63
56174
56175function getLens (b64) {
56176 var len = b64.length
56177
56178 if (len % 4 > 0) {
56179 throw new Error('Invalid string. Length must be a multiple of 4')
56180 }
56181
56182 // Trim off extra bytes after placeholder bytes are found
56183 // See: https://github.com/beatgammit/base64-js/issues/42
56184 var validLen = b64.indexOf('=')
56185 if (validLen === -1) validLen = len
56186
56187 var placeHoldersLen = validLen === len
56188 ? 0
56189 : 4 - (validLen % 4)
56190
56191 return [validLen, placeHoldersLen]
56192}
56193
56194// base64 is 4/3 + up to two characters of the original data
56195function byteLength (b64) {
56196 var lens = getLens(b64)
56197 var validLen = lens[0]
56198 var placeHoldersLen = lens[1]
56199 return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
56200}
56201
56202function _byteLength (b64, validLen, placeHoldersLen) {
56203 return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
56204}
56205
56206function toByteArray (b64) {
56207 var tmp
56208 var lens = getLens(b64)
56209 var validLen = lens[0]
56210 var placeHoldersLen = lens[1]
56211
56212 var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
56213
56214 var curByte = 0
56215
56216 // if there are placeholders, only get up to the last complete 4 chars
56217 var len = placeHoldersLen > 0
56218 ? validLen - 4
56219 : validLen
56220
56221 var i
56222 for (i = 0; i < len; i += 4) {
56223 tmp =
56224 (revLookup[b64.charCodeAt(i)] << 18) |
56225 (revLookup[b64.charCodeAt(i + 1)] << 12) |
56226 (revLookup[b64.charCodeAt(i + 2)] << 6) |
56227 revLookup[b64.charCodeAt(i + 3)]
56228 arr[curByte++] = (tmp >> 16) & 0xFF
56229 arr[curByte++] = (tmp >> 8) & 0xFF
56230 arr[curByte++] = tmp & 0xFF
56231 }
56232
56233 if (placeHoldersLen === 2) {
56234 tmp =
56235 (revLookup[b64.charCodeAt(i)] << 2) |
56236 (revLookup[b64.charCodeAt(i + 1)] >> 4)
56237 arr[curByte++] = tmp & 0xFF
56238 }
56239
56240 if (placeHoldersLen === 1) {
56241 tmp =
56242 (revLookup[b64.charCodeAt(i)] << 10) |
56243 (revLookup[b64.charCodeAt(i + 1)] << 4) |
56244 (revLookup[b64.charCodeAt(i + 2)] >> 2)
56245 arr[curByte++] = (tmp >> 8) & 0xFF
56246 arr[curByte++] = tmp & 0xFF
56247 }
56248
56249 return arr
56250}
56251
56252function tripletToBase64 (num) {
56253 return lookup[num >> 18 & 0x3F] +
56254 lookup[num >> 12 & 0x3F] +
56255 lookup[num >> 6 & 0x3F] +
56256 lookup[num & 0x3F]
56257}
56258
56259function encodeChunk (uint8, start, end) {
56260 var tmp
56261 var output = []
56262 for (var i = start; i < end; i += 3) {
56263 tmp =
56264 ((uint8[i] << 16) & 0xFF0000) +
56265 ((uint8[i + 1] << 8) & 0xFF00) +
56266 (uint8[i + 2] & 0xFF)
56267 output.push(tripletToBase64(tmp))
56268 }
56269 return output.join('')
56270}
56271
56272function fromByteArray (uint8) {
56273 var tmp
56274 var len = uint8.length
56275 var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
56276 var parts = []
56277 var maxChunkLength = 16383 // must be multiple of 3
56278
56279 // go through the array every three bytes, we'll deal with trailing stuff later
56280 for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
56281 parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
56282 }
56283
56284 // pad the end with zeros, but make sure to not forget the extra bytes
56285 if (extraBytes === 1) {
56286 tmp = uint8[len - 1]
56287 parts.push(
56288 lookup[tmp >> 2] +
56289 lookup[(tmp << 4) & 0x3F] +
56290 '=='
56291 )
56292 } else if (extraBytes === 2) {
56293 tmp = (uint8[len - 2] << 8) + uint8[len - 1]
56294 parts.push(
56295 lookup[tmp >> 10] +
56296 lookup[(tmp >> 4) & 0x3F] +
56297 lookup[(tmp << 2) & 0x3F] +
56298 '='
56299 )
56300 }
56301
56302 return parts.join('')
56303}
56304
56305
56306/***/ }),
56307
56308/***/ "../../node_modules/bowser/es5.js":
56309/*!***************************************************!*\
56310 !*** /root/amplify-js/node_modules/bowser/es5.js ***!
56311 \***************************************************/
56312/*! no static exports found */
56313/***/ (function(module, exports, __webpack_require__) {
56314
56315!function(e,t){ true?module.exports=t():undefined}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),a=Math.max(i,s),o=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(o=a-Math.min(i,s)),a-=1;a>=o;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===o)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var o=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=s.length;t<r;t+=1)o();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0;t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"};t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"};t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"};t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"};t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=o,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),s=u(r(94)),a=u(r(95)),o=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=o.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=o.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=o.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=o.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return o.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},s=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,s+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),u=o.default.find(a,(function(e){return t.isOS(e)}));if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}var c=o.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(r[c]);if(void 0!==f)return f}}if(s>0){var l=Object.keys(i),h=o.default.find(l,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=o.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(o.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n};var s=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:s.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:s.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})}));
56316
56317/***/ }),
56318
56319/***/ "../../node_modules/buffer/index.js":
56320/*!*****************************************************!*\
56321 !*** /root/amplify-js/node_modules/buffer/index.js ***!
56322 \*****************************************************/
56323/*! no static exports found */
56324/***/ (function(module, exports, __webpack_require__) {
56325
56326"use strict";
56327/* WEBPACK VAR INJECTION */(function(global) {/*!
56328 * The buffer module from node.js, for the browser.
56329 *
56330 * @author Feross Aboukhadijeh <http://feross.org>
56331 * @license MIT
56332 */
56333/* eslint-disable no-proto */
56334
56335
56336
56337var base64 = __webpack_require__(/*! base64-js */ "../../node_modules/base64-js/index.js")
56338var ieee754 = __webpack_require__(/*! ieee754 */ "../../node_modules/ieee754/index.js")
56339var isArray = __webpack_require__(/*! isarray */ "../../node_modules/isarray/index.js")
56340
56341exports.Buffer = Buffer
56342exports.SlowBuffer = SlowBuffer
56343exports.INSPECT_MAX_BYTES = 50
56344
56345/**
56346 * If `Buffer.TYPED_ARRAY_SUPPORT`:
56347 * === true Use Uint8Array implementation (fastest)
56348 * === false Use Object implementation (most compatible, even IE6)
56349 *
56350 * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
56351 * Opera 11.6+, iOS 4.2+.
56352 *
56353 * Due to various browser bugs, sometimes the Object implementation will be used even
56354 * when the browser supports typed arrays.
56355 *
56356 * Note:
56357 *
56358 * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
56359 * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
56360 *
56361 * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
56362 *
56363 * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
56364 * incorrect length in some situations.
56365
56366 * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
56367 * get the Object implementation, which is slower but behaves correctly.
56368 */
56369Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
56370 ? global.TYPED_ARRAY_SUPPORT
56371 : typedArraySupport()
56372
56373/*
56374 * Export kMaxLength after typed array support is determined.
56375 */
56376exports.kMaxLength = kMaxLength()
56377
56378function typedArraySupport () {
56379 try {
56380 var arr = new Uint8Array(1)
56381 arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
56382 return arr.foo() === 42 && // typed array instances can be augmented
56383 typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
56384 arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
56385 } catch (e) {
56386 return false
56387 }
56388}
56389
56390function kMaxLength () {
56391 return Buffer.TYPED_ARRAY_SUPPORT
56392 ? 0x7fffffff
56393 : 0x3fffffff
56394}
56395
56396function createBuffer (that, length) {
56397 if (kMaxLength() < length) {
56398 throw new RangeError('Invalid typed array length')
56399 }
56400 if (Buffer.TYPED_ARRAY_SUPPORT) {
56401 // Return an augmented `Uint8Array` instance, for best performance
56402 that = new Uint8Array(length)
56403 that.__proto__ = Buffer.prototype
56404 } else {
56405 // Fallback: Return an object instance of the Buffer class
56406 if (that === null) {
56407 that = new Buffer(length)
56408 }
56409 that.length = length
56410 }
56411
56412 return that
56413}
56414
56415/**
56416 * The Buffer constructor returns instances of `Uint8Array` that have their
56417 * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
56418 * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
56419 * and the `Uint8Array` methods. Square bracket notation works as expected -- it
56420 * returns a single octet.
56421 *
56422 * The `Uint8Array` prototype remains unmodified.
56423 */
56424
56425function Buffer (arg, encodingOrOffset, length) {
56426 if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
56427 return new Buffer(arg, encodingOrOffset, length)
56428 }
56429
56430 // Common case.
56431 if (typeof arg === 'number') {
56432 if (typeof encodingOrOffset === 'string') {
56433 throw new Error(
56434 'If encoding is specified then the first argument must be a string'
56435 )
56436 }
56437 return allocUnsafe(this, arg)
56438 }
56439 return from(this, arg, encodingOrOffset, length)
56440}
56441
56442Buffer.poolSize = 8192 // not used by this implementation
56443
56444// TODO: Legacy, not needed anymore. Remove in next major version.
56445Buffer._augment = function (arr) {
56446 arr.__proto__ = Buffer.prototype
56447 return arr
56448}
56449
56450function from (that, value, encodingOrOffset, length) {
56451 if (typeof value === 'number') {
56452 throw new TypeError('"value" argument must not be a number')
56453 }
56454
56455 if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
56456 return fromArrayBuffer(that, value, encodingOrOffset, length)
56457 }
56458
56459 if (typeof value === 'string') {
56460 return fromString(that, value, encodingOrOffset)
56461 }
56462
56463 return fromObject(that, value)
56464}
56465
56466/**
56467 * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
56468 * if value is a number.
56469 * Buffer.from(str[, encoding])
56470 * Buffer.from(array)
56471 * Buffer.from(buffer)
56472 * Buffer.from(arrayBuffer[, byteOffset[, length]])
56473 **/
56474Buffer.from = function (value, encodingOrOffset, length) {
56475 return from(null, value, encodingOrOffset, length)
56476}
56477
56478if (Buffer.TYPED_ARRAY_SUPPORT) {
56479 Buffer.prototype.__proto__ = Uint8Array.prototype
56480 Buffer.__proto__ = Uint8Array
56481 if (typeof Symbol !== 'undefined' && Symbol.species &&
56482 Buffer[Symbol.species] === Buffer) {
56483 // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
56484 Object.defineProperty(Buffer, Symbol.species, {
56485 value: null,
56486 configurable: true
56487 })
56488 }
56489}
56490
56491function assertSize (size) {
56492 if (typeof size !== 'number') {
56493 throw new TypeError('"size" argument must be a number')
56494 } else if (size < 0) {
56495 throw new RangeError('"size" argument must not be negative')
56496 }
56497}
56498
56499function alloc (that, size, fill, encoding) {
56500 assertSize(size)
56501 if (size <= 0) {
56502 return createBuffer(that, size)
56503 }
56504 if (fill !== undefined) {
56505 // Only pay attention to encoding if it's a string. This
56506 // prevents accidentally sending in a number that would
56507 // be interpretted as a start offset.
56508 return typeof encoding === 'string'
56509 ? createBuffer(that, size).fill(fill, encoding)
56510 : createBuffer(that, size).fill(fill)
56511 }
56512 return createBuffer(that, size)
56513}
56514
56515/**
56516 * Creates a new filled Buffer instance.
56517 * alloc(size[, fill[, encoding]])
56518 **/
56519Buffer.alloc = function (size, fill, encoding) {
56520 return alloc(null, size, fill, encoding)
56521}
56522
56523function allocUnsafe (that, size) {
56524 assertSize(size)
56525 that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
56526 if (!Buffer.TYPED_ARRAY_SUPPORT) {
56527 for (var i = 0; i < size; ++i) {
56528 that[i] = 0
56529 }
56530 }
56531 return that
56532}
56533
56534/**
56535 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
56536 * */
56537Buffer.allocUnsafe = function (size) {
56538 return allocUnsafe(null, size)
56539}
56540/**
56541 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
56542 */
56543Buffer.allocUnsafeSlow = function (size) {
56544 return allocUnsafe(null, size)
56545}
56546
56547function fromString (that, string, encoding) {
56548 if (typeof encoding !== 'string' || encoding === '') {
56549 encoding = 'utf8'
56550 }
56551
56552 if (!Buffer.isEncoding(encoding)) {
56553 throw new TypeError('"encoding" must be a valid string encoding')
56554 }
56555
56556 var length = byteLength(string, encoding) | 0
56557 that = createBuffer(that, length)
56558
56559 var actual = that.write(string, encoding)
56560
56561 if (actual !== length) {
56562 // Writing a hex string, for example, that contains invalid characters will
56563 // cause everything after the first invalid character to be ignored. (e.g.
56564 // 'abxxcd' will be treated as 'ab')
56565 that = that.slice(0, actual)
56566 }
56567
56568 return that
56569}
56570
56571function fromArrayLike (that, array) {
56572 var length = array.length < 0 ? 0 : checked(array.length) | 0
56573 that = createBuffer(that, length)
56574 for (var i = 0; i < length; i += 1) {
56575 that[i] = array[i] & 255
56576 }
56577 return that
56578}
56579
56580function fromArrayBuffer (that, array, byteOffset, length) {
56581 array.byteLength // this throws if `array` is not a valid ArrayBuffer
56582
56583 if (byteOffset < 0 || array.byteLength < byteOffset) {
56584 throw new RangeError('\'offset\' is out of bounds')
56585 }
56586
56587 if (array.byteLength < byteOffset + (length || 0)) {
56588 throw new RangeError('\'length\' is out of bounds')
56589 }
56590
56591 if (byteOffset === undefined && length === undefined) {
56592 array = new Uint8Array(array)
56593 } else if (length === undefined) {
56594 array = new Uint8Array(array, byteOffset)
56595 } else {
56596 array = new Uint8Array(array, byteOffset, length)
56597 }
56598
56599 if (Buffer.TYPED_ARRAY_SUPPORT) {
56600 // Return an augmented `Uint8Array` instance, for best performance
56601 that = array
56602 that.__proto__ = Buffer.prototype
56603 } else {
56604 // Fallback: Return an object instance of the Buffer class
56605 that = fromArrayLike(that, array)
56606 }
56607 return that
56608}
56609
56610function fromObject (that, obj) {
56611 if (Buffer.isBuffer(obj)) {
56612 var len = checked(obj.length) | 0
56613 that = createBuffer(that, len)
56614
56615 if (that.length === 0) {
56616 return that
56617 }
56618
56619 obj.copy(that, 0, 0, len)
56620 return that
56621 }
56622
56623 if (obj) {
56624 if ((typeof ArrayBuffer !== 'undefined' &&
56625 obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
56626 if (typeof obj.length !== 'number' || isnan(obj.length)) {
56627 return createBuffer(that, 0)
56628 }
56629 return fromArrayLike(that, obj)
56630 }
56631
56632 if (obj.type === 'Buffer' && isArray(obj.data)) {
56633 return fromArrayLike(that, obj.data)
56634 }
56635 }
56636
56637 throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
56638}
56639
56640function checked (length) {
56641 // Note: cannot use `length < kMaxLength()` here because that fails when
56642 // length is NaN (which is otherwise coerced to zero.)
56643 if (length >= kMaxLength()) {
56644 throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
56645 'size: 0x' + kMaxLength().toString(16) + ' bytes')
56646 }
56647 return length | 0
56648}
56649
56650function SlowBuffer (length) {
56651 if (+length != length) { // eslint-disable-line eqeqeq
56652 length = 0
56653 }
56654 return Buffer.alloc(+length)
56655}
56656
56657Buffer.isBuffer = function isBuffer (b) {
56658 return !!(b != null && b._isBuffer)
56659}
56660
56661Buffer.compare = function compare (a, b) {
56662 if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
56663 throw new TypeError('Arguments must be Buffers')
56664 }
56665
56666 if (a === b) return 0
56667
56668 var x = a.length
56669 var y = b.length
56670
56671 for (var i = 0, len = Math.min(x, y); i < len; ++i) {
56672 if (a[i] !== b[i]) {
56673 x = a[i]
56674 y = b[i]
56675 break
56676 }
56677 }
56678
56679 if (x < y) return -1
56680 if (y < x) return 1
56681 return 0
56682}
56683
56684Buffer.isEncoding = function isEncoding (encoding) {
56685 switch (String(encoding).toLowerCase()) {
56686 case 'hex':
56687 case 'utf8':
56688 case 'utf-8':
56689 case 'ascii':
56690 case 'latin1':
56691 case 'binary':
56692 case 'base64':
56693 case 'ucs2':
56694 case 'ucs-2':
56695 case 'utf16le':
56696 case 'utf-16le':
56697 return true
56698 default:
56699 return false
56700 }
56701}
56702
56703Buffer.concat = function concat (list, length) {
56704 if (!isArray(list)) {
56705 throw new TypeError('"list" argument must be an Array of Buffers')
56706 }
56707
56708 if (list.length === 0) {
56709 return Buffer.alloc(0)
56710 }
56711
56712 var i
56713 if (length === undefined) {
56714 length = 0
56715 for (i = 0; i < list.length; ++i) {
56716 length += list[i].length
56717 }
56718 }
56719
56720 var buffer = Buffer.allocUnsafe(length)
56721 var pos = 0
56722 for (i = 0; i < list.length; ++i) {
56723 var buf = list[i]
56724 if (!Buffer.isBuffer(buf)) {
56725 throw new TypeError('"list" argument must be an Array of Buffers')
56726 }
56727 buf.copy(buffer, pos)
56728 pos += buf.length
56729 }
56730 return buffer
56731}
56732
56733function byteLength (string, encoding) {
56734 if (Buffer.isBuffer(string)) {
56735 return string.length
56736 }
56737 if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
56738 (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
56739 return string.byteLength
56740 }
56741 if (typeof string !== 'string') {
56742 string = '' + string
56743 }
56744
56745 var len = string.length
56746 if (len === 0) return 0
56747
56748 // Use a for loop to avoid recursion
56749 var loweredCase = false
56750 for (;;) {
56751 switch (encoding) {
56752 case 'ascii':
56753 case 'latin1':
56754 case 'binary':
56755 return len
56756 case 'utf8':
56757 case 'utf-8':
56758 case undefined:
56759 return utf8ToBytes(string).length
56760 case 'ucs2':
56761 case 'ucs-2':
56762 case 'utf16le':
56763 case 'utf-16le':
56764 return len * 2
56765 case 'hex':
56766 return len >>> 1
56767 case 'base64':
56768 return base64ToBytes(string).length
56769 default:
56770 if (loweredCase) return utf8ToBytes(string).length // assume utf8
56771 encoding = ('' + encoding).toLowerCase()
56772 loweredCase = true
56773 }
56774 }
56775}
56776Buffer.byteLength = byteLength
56777
56778function slowToString (encoding, start, end) {
56779 var loweredCase = false
56780
56781 // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
56782 // property of a typed array.
56783
56784 // This behaves neither like String nor Uint8Array in that we set start/end
56785 // to their upper/lower bounds if the value passed is out of range.
56786 // undefined is handled specially as per ECMA-262 6th Edition,
56787 // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
56788 if (start === undefined || start < 0) {
56789 start = 0
56790 }
56791 // Return early if start > this.length. Done here to prevent potential uint32
56792 // coercion fail below.
56793 if (start > this.length) {
56794 return ''
56795 }
56796
56797 if (end === undefined || end > this.length) {
56798 end = this.length
56799 }
56800
56801 if (end <= 0) {
56802 return ''
56803 }
56804
56805 // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
56806 end >>>= 0
56807 start >>>= 0
56808
56809 if (end <= start) {
56810 return ''
56811 }
56812
56813 if (!encoding) encoding = 'utf8'
56814
56815 while (true) {
56816 switch (encoding) {
56817 case 'hex':
56818 return hexSlice(this, start, end)
56819
56820 case 'utf8':
56821 case 'utf-8':
56822 return utf8Slice(this, start, end)
56823
56824 case 'ascii':
56825 return asciiSlice(this, start, end)
56826
56827 case 'latin1':
56828 case 'binary':
56829 return latin1Slice(this, start, end)
56830
56831 case 'base64':
56832 return base64Slice(this, start, end)
56833
56834 case 'ucs2':
56835 case 'ucs-2':
56836 case 'utf16le':
56837 case 'utf-16le':
56838 return utf16leSlice(this, start, end)
56839
56840 default:
56841 if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
56842 encoding = (encoding + '').toLowerCase()
56843 loweredCase = true
56844 }
56845 }
56846}
56847
56848// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
56849// Buffer instances.
56850Buffer.prototype._isBuffer = true
56851
56852function swap (b, n, m) {
56853 var i = b[n]
56854 b[n] = b[m]
56855 b[m] = i
56856}
56857
56858Buffer.prototype.swap16 = function swap16 () {
56859 var len = this.length
56860 if (len % 2 !== 0) {
56861 throw new RangeError('Buffer size must be a multiple of 16-bits')
56862 }
56863 for (var i = 0; i < len; i += 2) {
56864 swap(this, i, i + 1)
56865 }
56866 return this
56867}
56868
56869Buffer.prototype.swap32 = function swap32 () {
56870 var len = this.length
56871 if (len % 4 !== 0) {
56872 throw new RangeError('Buffer size must be a multiple of 32-bits')
56873 }
56874 for (var i = 0; i < len; i += 4) {
56875 swap(this, i, i + 3)
56876 swap(this, i + 1, i + 2)
56877 }
56878 return this
56879}
56880
56881Buffer.prototype.swap64 = function swap64 () {
56882 var len = this.length
56883 if (len % 8 !== 0) {
56884 throw new RangeError('Buffer size must be a multiple of 64-bits')
56885 }
56886 for (var i = 0; i < len; i += 8) {
56887 swap(this, i, i + 7)
56888 swap(this, i + 1, i + 6)
56889 swap(this, i + 2, i + 5)
56890 swap(this, i + 3, i + 4)
56891 }
56892 return this
56893}
56894
56895Buffer.prototype.toString = function toString () {
56896 var length = this.length | 0
56897 if (length === 0) return ''
56898 if (arguments.length === 0) return utf8Slice(this, 0, length)
56899 return slowToString.apply(this, arguments)
56900}
56901
56902Buffer.prototype.equals = function equals (b) {
56903 if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
56904 if (this === b) return true
56905 return Buffer.compare(this, b) === 0
56906}
56907
56908Buffer.prototype.inspect = function inspect () {
56909 var str = ''
56910 var max = exports.INSPECT_MAX_BYTES
56911 if (this.length > 0) {
56912 str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
56913 if (this.length > max) str += ' ... '
56914 }
56915 return '<Buffer ' + str + '>'
56916}
56917
56918Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
56919 if (!Buffer.isBuffer(target)) {
56920 throw new TypeError('Argument must be a Buffer')
56921 }
56922
56923 if (start === undefined) {
56924 start = 0
56925 }
56926 if (end === undefined) {
56927 end = target ? target.length : 0
56928 }
56929 if (thisStart === undefined) {
56930 thisStart = 0
56931 }
56932 if (thisEnd === undefined) {
56933 thisEnd = this.length
56934 }
56935
56936 if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
56937 throw new RangeError('out of range index')
56938 }
56939
56940 if (thisStart >= thisEnd && start >= end) {
56941 return 0
56942 }
56943 if (thisStart >= thisEnd) {
56944 return -1
56945 }
56946 if (start >= end) {
56947 return 1
56948 }
56949
56950 start >>>= 0
56951 end >>>= 0
56952 thisStart >>>= 0
56953 thisEnd >>>= 0
56954
56955 if (this === target) return 0
56956
56957 var x = thisEnd - thisStart
56958 var y = end - start
56959 var len = Math.min(x, y)
56960
56961 var thisCopy = this.slice(thisStart, thisEnd)
56962 var targetCopy = target.slice(start, end)
56963
56964 for (var i = 0; i < len; ++i) {
56965 if (thisCopy[i] !== targetCopy[i]) {
56966 x = thisCopy[i]
56967 y = targetCopy[i]
56968 break
56969 }
56970 }
56971
56972 if (x < y) return -1
56973 if (y < x) return 1
56974 return 0
56975}
56976
56977// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
56978// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
56979//
56980// Arguments:
56981// - buffer - a Buffer to search
56982// - val - a string, Buffer, or number
56983// - byteOffset - an index into `buffer`; will be clamped to an int32
56984// - encoding - an optional encoding, relevant is val is a string
56985// - dir - true for indexOf, false for lastIndexOf
56986function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
56987 // Empty buffer means no match
56988 if (buffer.length === 0) return -1
56989
56990 // Normalize byteOffset
56991 if (typeof byteOffset === 'string') {
56992 encoding = byteOffset
56993 byteOffset = 0
56994 } else if (byteOffset > 0x7fffffff) {
56995 byteOffset = 0x7fffffff
56996 } else if (byteOffset < -0x80000000) {
56997 byteOffset = -0x80000000
56998 }
56999 byteOffset = +byteOffset // Coerce to Number.
57000 if (isNaN(byteOffset)) {
57001 // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
57002 byteOffset = dir ? 0 : (buffer.length - 1)
57003 }
57004
57005 // Normalize byteOffset: negative offsets start from the end of the buffer
57006 if (byteOffset < 0) byteOffset = buffer.length + byteOffset
57007 if (byteOffset >= buffer.length) {
57008 if (dir) return -1
57009 else byteOffset = buffer.length - 1
57010 } else if (byteOffset < 0) {
57011 if (dir) byteOffset = 0
57012 else return -1
57013 }
57014
57015 // Normalize val
57016 if (typeof val === 'string') {
57017 val = Buffer.from(val, encoding)
57018 }
57019
57020 // Finally, search either indexOf (if dir is true) or lastIndexOf
57021 if (Buffer.isBuffer(val)) {
57022 // Special case: looking for empty string/buffer always fails
57023 if (val.length === 0) {
57024 return -1
57025 }
57026 return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
57027 } else if (typeof val === 'number') {
57028 val = val & 0xFF // Search for a byte value [0-255]
57029 if (Buffer.TYPED_ARRAY_SUPPORT &&
57030 typeof Uint8Array.prototype.indexOf === 'function') {
57031 if (dir) {
57032 return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
57033 } else {
57034 return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
57035 }
57036 }
57037 return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
57038 }
57039
57040 throw new TypeError('val must be string, number or Buffer')
57041}
57042
57043function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
57044 var indexSize = 1
57045 var arrLength = arr.length
57046 var valLength = val.length
57047
57048 if (encoding !== undefined) {
57049 encoding = String(encoding).toLowerCase()
57050 if (encoding === 'ucs2' || encoding === 'ucs-2' ||
57051 encoding === 'utf16le' || encoding === 'utf-16le') {
57052 if (arr.length < 2 || val.length < 2) {
57053 return -1
57054 }
57055 indexSize = 2
57056 arrLength /= 2
57057 valLength /= 2
57058 byteOffset /= 2
57059 }
57060 }
57061
57062 function read (buf, i) {
57063 if (indexSize === 1) {
57064 return buf[i]
57065 } else {
57066 return buf.readUInt16BE(i * indexSize)
57067 }
57068 }
57069
57070 var i
57071 if (dir) {
57072 var foundIndex = -1
57073 for (i = byteOffset; i < arrLength; i++) {
57074 if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
57075 if (foundIndex === -1) foundIndex = i
57076 if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
57077 } else {
57078 if (foundIndex !== -1) i -= i - foundIndex
57079 foundIndex = -1
57080 }
57081 }
57082 } else {
57083 if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
57084 for (i = byteOffset; i >= 0; i--) {
57085 var found = true
57086 for (var j = 0; j < valLength; j++) {
57087 if (read(arr, i + j) !== read(val, j)) {
57088 found = false
57089 break
57090 }
57091 }
57092 if (found) return i
57093 }
57094 }
57095
57096 return -1
57097}
57098
57099Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
57100 return this.indexOf(val, byteOffset, encoding) !== -1
57101}
57102
57103Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
57104 return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
57105}
57106
57107Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
57108 return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
57109}
57110
57111function hexWrite (buf, string, offset, length) {
57112 offset = Number(offset) || 0
57113 var remaining = buf.length - offset
57114 if (!length) {
57115 length = remaining
57116 } else {
57117 length = Number(length)
57118 if (length > remaining) {
57119 length = remaining
57120 }
57121 }
57122
57123 // must be an even number of digits
57124 var strLen = string.length
57125 if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
57126
57127 if (length > strLen / 2) {
57128 length = strLen / 2
57129 }
57130 for (var i = 0; i < length; ++i) {
57131 var parsed = parseInt(string.substr(i * 2, 2), 16)
57132 if (isNaN(parsed)) return i
57133 buf[offset + i] = parsed
57134 }
57135 return i
57136}
57137
57138function utf8Write (buf, string, offset, length) {
57139 return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
57140}
57141
57142function asciiWrite (buf, string, offset, length) {
57143 return blitBuffer(asciiToBytes(string), buf, offset, length)
57144}
57145
57146function latin1Write (buf, string, offset, length) {
57147 return asciiWrite(buf, string, offset, length)
57148}
57149
57150function base64Write (buf, string, offset, length) {
57151 return blitBuffer(base64ToBytes(string), buf, offset, length)
57152}
57153
57154function ucs2Write (buf, string, offset, length) {
57155 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
57156}
57157
57158Buffer.prototype.write = function write (string, offset, length, encoding) {
57159 // Buffer#write(string)
57160 if (offset === undefined) {
57161 encoding = 'utf8'
57162 length = this.length
57163 offset = 0
57164 // Buffer#write(string, encoding)
57165 } else if (length === undefined && typeof offset === 'string') {
57166 encoding = offset
57167 length = this.length
57168 offset = 0
57169 // Buffer#write(string, offset[, length][, encoding])
57170 } else if (isFinite(offset)) {
57171 offset = offset | 0
57172 if (isFinite(length)) {
57173 length = length | 0
57174 if (encoding === undefined) encoding = 'utf8'
57175 } else {
57176 encoding = length
57177 length = undefined
57178 }
57179 // legacy write(string, encoding, offset, length) - remove in v0.13
57180 } else {
57181 throw new Error(
57182 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
57183 )
57184 }
57185
57186 var remaining = this.length - offset
57187 if (length === undefined || length > remaining) length = remaining
57188
57189 if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
57190 throw new RangeError('Attempt to write outside buffer bounds')
57191 }
57192
57193 if (!encoding) encoding = 'utf8'
57194
57195 var loweredCase = false
57196 for (;;) {
57197 switch (encoding) {
57198 case 'hex':
57199 return hexWrite(this, string, offset, length)
57200
57201 case 'utf8':
57202 case 'utf-8':
57203 return utf8Write(this, string, offset, length)
57204
57205 case 'ascii':
57206 return asciiWrite(this, string, offset, length)
57207
57208 case 'latin1':
57209 case 'binary':
57210 return latin1Write(this, string, offset, length)
57211
57212 case 'base64':
57213 // Warning: maxLength not taken into account in base64Write
57214 return base64Write(this, string, offset, length)
57215
57216 case 'ucs2':
57217 case 'ucs-2':
57218 case 'utf16le':
57219 case 'utf-16le':
57220 return ucs2Write(this, string, offset, length)
57221
57222 default:
57223 if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
57224 encoding = ('' + encoding).toLowerCase()
57225 loweredCase = true
57226 }
57227 }
57228}
57229
57230Buffer.prototype.toJSON = function toJSON () {
57231 return {
57232 type: 'Buffer',
57233 data: Array.prototype.slice.call(this._arr || this, 0)
57234 }
57235}
57236
57237function base64Slice (buf, start, end) {
57238 if (start === 0 && end === buf.length) {
57239 return base64.fromByteArray(buf)
57240 } else {
57241 return base64.fromByteArray(buf.slice(start, end))
57242 }
57243}
57244
57245function utf8Slice (buf, start, end) {
57246 end = Math.min(buf.length, end)
57247 var res = []
57248
57249 var i = start
57250 while (i < end) {
57251 var firstByte = buf[i]
57252 var codePoint = null
57253 var bytesPerSequence = (firstByte > 0xEF) ? 4
57254 : (firstByte > 0xDF) ? 3
57255 : (firstByte > 0xBF) ? 2
57256 : 1
57257
57258 if (i + bytesPerSequence <= end) {
57259 var secondByte, thirdByte, fourthByte, tempCodePoint
57260
57261 switch (bytesPerSequence) {
57262 case 1:
57263 if (firstByte < 0x80) {
57264 codePoint = firstByte
57265 }
57266 break
57267 case 2:
57268 secondByte = buf[i + 1]
57269 if ((secondByte & 0xC0) === 0x80) {
57270 tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
57271 if (tempCodePoint > 0x7F) {
57272 codePoint = tempCodePoint
57273 }
57274 }
57275 break
57276 case 3:
57277 secondByte = buf[i + 1]
57278 thirdByte = buf[i + 2]
57279 if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
57280 tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
57281 if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
57282 codePoint = tempCodePoint
57283 }
57284 }
57285 break
57286 case 4:
57287 secondByte = buf[i + 1]
57288 thirdByte = buf[i + 2]
57289 fourthByte = buf[i + 3]
57290 if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
57291 tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
57292 if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
57293 codePoint = tempCodePoint
57294 }
57295 }
57296 }
57297 }
57298
57299 if (codePoint === null) {
57300 // we did not generate a valid codePoint so insert a
57301 // replacement char (U+FFFD) and advance only 1 byte
57302 codePoint = 0xFFFD
57303 bytesPerSequence = 1
57304 } else if (codePoint > 0xFFFF) {
57305 // encode to utf16 (surrogate pair dance)
57306 codePoint -= 0x10000
57307 res.push(codePoint >>> 10 & 0x3FF | 0xD800)
57308 codePoint = 0xDC00 | codePoint & 0x3FF
57309 }
57310
57311 res.push(codePoint)
57312 i += bytesPerSequence
57313 }
57314
57315 return decodeCodePointsArray(res)
57316}
57317
57318// Based on http://stackoverflow.com/a/22747272/680742, the browser with
57319// the lowest limit is Chrome, with 0x10000 args.
57320// We go 1 magnitude less, for safety
57321var MAX_ARGUMENTS_LENGTH = 0x1000
57322
57323function decodeCodePointsArray (codePoints) {
57324 var len = codePoints.length
57325 if (len <= MAX_ARGUMENTS_LENGTH) {
57326 return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
57327 }
57328
57329 // Decode in chunks to avoid "call stack size exceeded".
57330 var res = ''
57331 var i = 0
57332 while (i < len) {
57333 res += String.fromCharCode.apply(
57334 String,
57335 codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
57336 )
57337 }
57338 return res
57339}
57340
57341function asciiSlice (buf, start, end) {
57342 var ret = ''
57343 end = Math.min(buf.length, end)
57344
57345 for (var i = start; i < end; ++i) {
57346 ret += String.fromCharCode(buf[i] & 0x7F)
57347 }
57348 return ret
57349}
57350
57351function latin1Slice (buf, start, end) {
57352 var ret = ''
57353 end = Math.min(buf.length, end)
57354
57355 for (var i = start; i < end; ++i) {
57356 ret += String.fromCharCode(buf[i])
57357 }
57358 return ret
57359}
57360
57361function hexSlice (buf, start, end) {
57362 var len = buf.length
57363
57364 if (!start || start < 0) start = 0
57365 if (!end || end < 0 || end > len) end = len
57366
57367 var out = ''
57368 for (var i = start; i < end; ++i) {
57369 out += toHex(buf[i])
57370 }
57371 return out
57372}
57373
57374function utf16leSlice (buf, start, end) {
57375 var bytes = buf.slice(start, end)
57376 var res = ''
57377 for (var i = 0; i < bytes.length; i += 2) {
57378 res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
57379 }
57380 return res
57381}
57382
57383Buffer.prototype.slice = function slice (start, end) {
57384 var len = this.length
57385 start = ~~start
57386 end = end === undefined ? len : ~~end
57387
57388 if (start < 0) {
57389 start += len
57390 if (start < 0) start = 0
57391 } else if (start > len) {
57392 start = len
57393 }
57394
57395 if (end < 0) {
57396 end += len
57397 if (end < 0) end = 0
57398 } else if (end > len) {
57399 end = len
57400 }
57401
57402 if (end < start) end = start
57403
57404 var newBuf
57405 if (Buffer.TYPED_ARRAY_SUPPORT) {
57406 newBuf = this.subarray(start, end)
57407 newBuf.__proto__ = Buffer.prototype
57408 } else {
57409 var sliceLen = end - start
57410 newBuf = new Buffer(sliceLen, undefined)
57411 for (var i = 0; i < sliceLen; ++i) {
57412 newBuf[i] = this[i + start]
57413 }
57414 }
57415
57416 return newBuf
57417}
57418
57419/*
57420 * Need to make sure that buffer isn't trying to write out of bounds.
57421 */
57422function checkOffset (offset, ext, length) {
57423 if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
57424 if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
57425}
57426
57427Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
57428 offset = offset | 0
57429 byteLength = byteLength | 0
57430 if (!noAssert) checkOffset(offset, byteLength, this.length)
57431
57432 var val = this[offset]
57433 var mul = 1
57434 var i = 0
57435 while (++i < byteLength && (mul *= 0x100)) {
57436 val += this[offset + i] * mul
57437 }
57438
57439 return val
57440}
57441
57442Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
57443 offset = offset | 0
57444 byteLength = byteLength | 0
57445 if (!noAssert) {
57446 checkOffset(offset, byteLength, this.length)
57447 }
57448
57449 var val = this[offset + --byteLength]
57450 var mul = 1
57451 while (byteLength > 0 && (mul *= 0x100)) {
57452 val += this[offset + --byteLength] * mul
57453 }
57454
57455 return val
57456}
57457
57458Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
57459 if (!noAssert) checkOffset(offset, 1, this.length)
57460 return this[offset]
57461}
57462
57463Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
57464 if (!noAssert) checkOffset(offset, 2, this.length)
57465 return this[offset] | (this[offset + 1] << 8)
57466}
57467
57468Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
57469 if (!noAssert) checkOffset(offset, 2, this.length)
57470 return (this[offset] << 8) | this[offset + 1]
57471}
57472
57473Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
57474 if (!noAssert) checkOffset(offset, 4, this.length)
57475
57476 return ((this[offset]) |
57477 (this[offset + 1] << 8) |
57478 (this[offset + 2] << 16)) +
57479 (this[offset + 3] * 0x1000000)
57480}
57481
57482Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
57483 if (!noAssert) checkOffset(offset, 4, this.length)
57484
57485 return (this[offset] * 0x1000000) +
57486 ((this[offset + 1] << 16) |
57487 (this[offset + 2] << 8) |
57488 this[offset + 3])
57489}
57490
57491Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
57492 offset = offset | 0
57493 byteLength = byteLength | 0
57494 if (!noAssert) checkOffset(offset, byteLength, this.length)
57495
57496 var val = this[offset]
57497 var mul = 1
57498 var i = 0
57499 while (++i < byteLength && (mul *= 0x100)) {
57500 val += this[offset + i] * mul
57501 }
57502 mul *= 0x80
57503
57504 if (val >= mul) val -= Math.pow(2, 8 * byteLength)
57505
57506 return val
57507}
57508
57509Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
57510 offset = offset | 0
57511 byteLength = byteLength | 0
57512 if (!noAssert) checkOffset(offset, byteLength, this.length)
57513
57514 var i = byteLength
57515 var mul = 1
57516 var val = this[offset + --i]
57517 while (i > 0 && (mul *= 0x100)) {
57518 val += this[offset + --i] * mul
57519 }
57520 mul *= 0x80
57521
57522 if (val >= mul) val -= Math.pow(2, 8 * byteLength)
57523
57524 return val
57525}
57526
57527Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
57528 if (!noAssert) checkOffset(offset, 1, this.length)
57529 if (!(this[offset] & 0x80)) return (this[offset])
57530 return ((0xff - this[offset] + 1) * -1)
57531}
57532
57533Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
57534 if (!noAssert) checkOffset(offset, 2, this.length)
57535 var val = this[offset] | (this[offset + 1] << 8)
57536 return (val & 0x8000) ? val | 0xFFFF0000 : val
57537}
57538
57539Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
57540 if (!noAssert) checkOffset(offset, 2, this.length)
57541 var val = this[offset + 1] | (this[offset] << 8)
57542 return (val & 0x8000) ? val | 0xFFFF0000 : val
57543}
57544
57545Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
57546 if (!noAssert) checkOffset(offset, 4, this.length)
57547
57548 return (this[offset]) |
57549 (this[offset + 1] << 8) |
57550 (this[offset + 2] << 16) |
57551 (this[offset + 3] << 24)
57552}
57553
57554Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
57555 if (!noAssert) checkOffset(offset, 4, this.length)
57556
57557 return (this[offset] << 24) |
57558 (this[offset + 1] << 16) |
57559 (this[offset + 2] << 8) |
57560 (this[offset + 3])
57561}
57562
57563Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
57564 if (!noAssert) checkOffset(offset, 4, this.length)
57565 return ieee754.read(this, offset, true, 23, 4)
57566}
57567
57568Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
57569 if (!noAssert) checkOffset(offset, 4, this.length)
57570 return ieee754.read(this, offset, false, 23, 4)
57571}
57572
57573Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
57574 if (!noAssert) checkOffset(offset, 8, this.length)
57575 return ieee754.read(this, offset, true, 52, 8)
57576}
57577
57578Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
57579 if (!noAssert) checkOffset(offset, 8, this.length)
57580 return ieee754.read(this, offset, false, 52, 8)
57581}
57582
57583function checkInt (buf, value, offset, ext, max, min) {
57584 if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
57585 if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
57586 if (offset + ext > buf.length) throw new RangeError('Index out of range')
57587}
57588
57589Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
57590 value = +value
57591 offset = offset | 0
57592 byteLength = byteLength | 0
57593 if (!noAssert) {
57594 var maxBytes = Math.pow(2, 8 * byteLength) - 1
57595 checkInt(this, value, offset, byteLength, maxBytes, 0)
57596 }
57597
57598 var mul = 1
57599 var i = 0
57600 this[offset] = value & 0xFF
57601 while (++i < byteLength && (mul *= 0x100)) {
57602 this[offset + i] = (value / mul) & 0xFF
57603 }
57604
57605 return offset + byteLength
57606}
57607
57608Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
57609 value = +value
57610 offset = offset | 0
57611 byteLength = byteLength | 0
57612 if (!noAssert) {
57613 var maxBytes = Math.pow(2, 8 * byteLength) - 1
57614 checkInt(this, value, offset, byteLength, maxBytes, 0)
57615 }
57616
57617 var i = byteLength - 1
57618 var mul = 1
57619 this[offset + i] = value & 0xFF
57620 while (--i >= 0 && (mul *= 0x100)) {
57621 this[offset + i] = (value / mul) & 0xFF
57622 }
57623
57624 return offset + byteLength
57625}
57626
57627Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
57628 value = +value
57629 offset = offset | 0
57630 if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
57631 if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
57632 this[offset] = (value & 0xff)
57633 return offset + 1
57634}
57635
57636function objectWriteUInt16 (buf, value, offset, littleEndian) {
57637 if (value < 0) value = 0xffff + value + 1
57638 for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
57639 buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
57640 (littleEndian ? i : 1 - i) * 8
57641 }
57642}
57643
57644Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
57645 value = +value
57646 offset = offset | 0
57647 if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
57648 if (Buffer.TYPED_ARRAY_SUPPORT) {
57649 this[offset] = (value & 0xff)
57650 this[offset + 1] = (value >>> 8)
57651 } else {
57652 objectWriteUInt16(this, value, offset, true)
57653 }
57654 return offset + 2
57655}
57656
57657Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
57658 value = +value
57659 offset = offset | 0
57660 if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
57661 if (Buffer.TYPED_ARRAY_SUPPORT) {
57662 this[offset] = (value >>> 8)
57663 this[offset + 1] = (value & 0xff)
57664 } else {
57665 objectWriteUInt16(this, value, offset, false)
57666 }
57667 return offset + 2
57668}
57669
57670function objectWriteUInt32 (buf, value, offset, littleEndian) {
57671 if (value < 0) value = 0xffffffff + value + 1
57672 for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
57673 buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
57674 }
57675}
57676
57677Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
57678 value = +value
57679 offset = offset | 0
57680 if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
57681 if (Buffer.TYPED_ARRAY_SUPPORT) {
57682 this[offset + 3] = (value >>> 24)
57683 this[offset + 2] = (value >>> 16)
57684 this[offset + 1] = (value >>> 8)
57685 this[offset] = (value & 0xff)
57686 } else {
57687 objectWriteUInt32(this, value, offset, true)
57688 }
57689 return offset + 4
57690}
57691
57692Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
57693 value = +value
57694 offset = offset | 0
57695 if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
57696 if (Buffer.TYPED_ARRAY_SUPPORT) {
57697 this[offset] = (value >>> 24)
57698 this[offset + 1] = (value >>> 16)
57699 this[offset + 2] = (value >>> 8)
57700 this[offset + 3] = (value & 0xff)
57701 } else {
57702 objectWriteUInt32(this, value, offset, false)
57703 }
57704 return offset + 4
57705}
57706
57707Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
57708 value = +value
57709 offset = offset | 0
57710 if (!noAssert) {
57711 var limit = Math.pow(2, 8 * byteLength - 1)
57712
57713 checkInt(this, value, offset, byteLength, limit - 1, -limit)
57714 }
57715
57716 var i = 0
57717 var mul = 1
57718 var sub = 0
57719 this[offset] = value & 0xFF
57720 while (++i < byteLength && (mul *= 0x100)) {
57721 if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
57722 sub = 1
57723 }
57724 this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
57725 }
57726
57727 return offset + byteLength
57728}
57729
57730Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
57731 value = +value
57732 offset = offset | 0
57733 if (!noAssert) {
57734 var limit = Math.pow(2, 8 * byteLength - 1)
57735
57736 checkInt(this, value, offset, byteLength, limit - 1, -limit)
57737 }
57738
57739 var i = byteLength - 1
57740 var mul = 1
57741 var sub = 0
57742 this[offset + i] = value & 0xFF
57743 while (--i >= 0 && (mul *= 0x100)) {
57744 if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
57745 sub = 1
57746 }
57747 this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
57748 }
57749
57750 return offset + byteLength
57751}
57752
57753Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
57754 value = +value
57755 offset = offset | 0
57756 if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
57757 if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
57758 if (value < 0) value = 0xff + value + 1
57759 this[offset] = (value & 0xff)
57760 return offset + 1
57761}
57762
57763Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
57764 value = +value
57765 offset = offset | 0
57766 if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
57767 if (Buffer.TYPED_ARRAY_SUPPORT) {
57768 this[offset] = (value & 0xff)
57769 this[offset + 1] = (value >>> 8)
57770 } else {
57771 objectWriteUInt16(this, value, offset, true)
57772 }
57773 return offset + 2
57774}
57775
57776Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
57777 value = +value
57778 offset = offset | 0
57779 if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
57780 if (Buffer.TYPED_ARRAY_SUPPORT) {
57781 this[offset] = (value >>> 8)
57782 this[offset + 1] = (value & 0xff)
57783 } else {
57784 objectWriteUInt16(this, value, offset, false)
57785 }
57786 return offset + 2
57787}
57788
57789Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
57790 value = +value
57791 offset = offset | 0
57792 if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
57793 if (Buffer.TYPED_ARRAY_SUPPORT) {
57794 this[offset] = (value & 0xff)
57795 this[offset + 1] = (value >>> 8)
57796 this[offset + 2] = (value >>> 16)
57797 this[offset + 3] = (value >>> 24)
57798 } else {
57799 objectWriteUInt32(this, value, offset, true)
57800 }
57801 return offset + 4
57802}
57803
57804Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
57805 value = +value
57806 offset = offset | 0
57807 if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
57808 if (value < 0) value = 0xffffffff + value + 1
57809 if (Buffer.TYPED_ARRAY_SUPPORT) {
57810 this[offset] = (value >>> 24)
57811 this[offset + 1] = (value >>> 16)
57812 this[offset + 2] = (value >>> 8)
57813 this[offset + 3] = (value & 0xff)
57814 } else {
57815 objectWriteUInt32(this, value, offset, false)
57816 }
57817 return offset + 4
57818}
57819
57820function checkIEEE754 (buf, value, offset, ext, max, min) {
57821 if (offset + ext > buf.length) throw new RangeError('Index out of range')
57822 if (offset < 0) throw new RangeError('Index out of range')
57823}
57824
57825function writeFloat (buf, value, offset, littleEndian, noAssert) {
57826 if (!noAssert) {
57827 checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
57828 }
57829 ieee754.write(buf, value, offset, littleEndian, 23, 4)
57830 return offset + 4
57831}
57832
57833Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
57834 return writeFloat(this, value, offset, true, noAssert)
57835}
57836
57837Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
57838 return writeFloat(this, value, offset, false, noAssert)
57839}
57840
57841function writeDouble (buf, value, offset, littleEndian, noAssert) {
57842 if (!noAssert) {
57843 checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
57844 }
57845 ieee754.write(buf, value, offset, littleEndian, 52, 8)
57846 return offset + 8
57847}
57848
57849Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
57850 return writeDouble(this, value, offset, true, noAssert)
57851}
57852
57853Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
57854 return writeDouble(this, value, offset, false, noAssert)
57855}
57856
57857// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
57858Buffer.prototype.copy = function copy (target, targetStart, start, end) {
57859 if (!start) start = 0
57860 if (!end && end !== 0) end = this.length
57861 if (targetStart >= target.length) targetStart = target.length
57862 if (!targetStart) targetStart = 0
57863 if (end > 0 && end < start) end = start
57864
57865 // Copy 0 bytes; we're done
57866 if (end === start) return 0
57867 if (target.length === 0 || this.length === 0) return 0
57868
57869 // Fatal error conditions
57870 if (targetStart < 0) {
57871 throw new RangeError('targetStart out of bounds')
57872 }
57873 if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
57874 if (end < 0) throw new RangeError('sourceEnd out of bounds')
57875
57876 // Are we oob?
57877 if (end > this.length) end = this.length
57878 if (target.length - targetStart < end - start) {
57879 end = target.length - targetStart + start
57880 }
57881
57882 var len = end - start
57883 var i
57884
57885 if (this === target && start < targetStart && targetStart < end) {
57886 // descending copy from end
57887 for (i = len - 1; i >= 0; --i) {
57888 target[i + targetStart] = this[i + start]
57889 }
57890 } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
57891 // ascending copy from start
57892 for (i = 0; i < len; ++i) {
57893 target[i + targetStart] = this[i + start]
57894 }
57895 } else {
57896 Uint8Array.prototype.set.call(
57897 target,
57898 this.subarray(start, start + len),
57899 targetStart
57900 )
57901 }
57902
57903 return len
57904}
57905
57906// Usage:
57907// buffer.fill(number[, offset[, end]])
57908// buffer.fill(buffer[, offset[, end]])
57909// buffer.fill(string[, offset[, end]][, encoding])
57910Buffer.prototype.fill = function fill (val, start, end, encoding) {
57911 // Handle string cases:
57912 if (typeof val === 'string') {
57913 if (typeof start === 'string') {
57914 encoding = start
57915 start = 0
57916 end = this.length
57917 } else if (typeof end === 'string') {
57918 encoding = end
57919 end = this.length
57920 }
57921 if (val.length === 1) {
57922 var code = val.charCodeAt(0)
57923 if (code < 256) {
57924 val = code
57925 }
57926 }
57927 if (encoding !== undefined && typeof encoding !== 'string') {
57928 throw new TypeError('encoding must be a string')
57929 }
57930 if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
57931 throw new TypeError('Unknown encoding: ' + encoding)
57932 }
57933 } else if (typeof val === 'number') {
57934 val = val & 255
57935 }
57936
57937 // Invalid ranges are not set to a default, so can range check early.
57938 if (start < 0 || this.length < start || this.length < end) {
57939 throw new RangeError('Out of range index')
57940 }
57941
57942 if (end <= start) {
57943 return this
57944 }
57945
57946 start = start >>> 0
57947 end = end === undefined ? this.length : end >>> 0
57948
57949 if (!val) val = 0
57950
57951 var i
57952 if (typeof val === 'number') {
57953 for (i = start; i < end; ++i) {
57954 this[i] = val
57955 }
57956 } else {
57957 var bytes = Buffer.isBuffer(val)
57958 ? val
57959 : utf8ToBytes(new Buffer(val, encoding).toString())
57960 var len = bytes.length
57961 for (i = 0; i < end - start; ++i) {
57962 this[i + start] = bytes[i % len]
57963 }
57964 }
57965
57966 return this
57967}
57968
57969// HELPER FUNCTIONS
57970// ================
57971
57972var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
57973
57974function base64clean (str) {
57975 // Node strips out invalid characters like \n and \t from the string, base64-js does not
57976 str = stringtrim(str).replace(INVALID_BASE64_RE, '')
57977 // Node converts strings with length < 2 to ''
57978 if (str.length < 2) return ''
57979 // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
57980 while (str.length % 4 !== 0) {
57981 str = str + '='
57982 }
57983 return str
57984}
57985
57986function stringtrim (str) {
57987 if (str.trim) return str.trim()
57988 return str.replace(/^\s+|\s+$/g, '')
57989}
57990
57991function toHex (n) {
57992 if (n < 16) return '0' + n.toString(16)
57993 return n.toString(16)
57994}
57995
57996function utf8ToBytes (string, units) {
57997 units = units || Infinity
57998 var codePoint
57999 var length = string.length
58000 var leadSurrogate = null
58001 var bytes = []
58002
58003 for (var i = 0; i < length; ++i) {
58004 codePoint = string.charCodeAt(i)
58005
58006 // is surrogate component
58007 if (codePoint > 0xD7FF && codePoint < 0xE000) {
58008 // last char was a lead
58009 if (!leadSurrogate) {
58010 // no lead yet
58011 if (codePoint > 0xDBFF) {
58012 // unexpected trail
58013 if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
58014 continue
58015 } else if (i + 1 === length) {
58016 // unpaired lead
58017 if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
58018 continue
58019 }
58020
58021 // valid lead
58022 leadSurrogate = codePoint
58023
58024 continue
58025 }
58026
58027 // 2 leads in a row
58028 if (codePoint < 0xDC00) {
58029 if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
58030 leadSurrogate = codePoint
58031 continue
58032 }
58033
58034 // valid surrogate pair
58035 codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
58036 } else if (leadSurrogate) {
58037 // valid bmp char, but last char was a lead
58038 if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
58039 }
58040
58041 leadSurrogate = null
58042
58043 // encode utf8
58044 if (codePoint < 0x80) {
58045 if ((units -= 1) < 0) break
58046 bytes.push(codePoint)
58047 } else if (codePoint < 0x800) {
58048 if ((units -= 2) < 0) break
58049 bytes.push(
58050 codePoint >> 0x6 | 0xC0,
58051 codePoint & 0x3F | 0x80
58052 )
58053 } else if (codePoint < 0x10000) {
58054 if ((units -= 3) < 0) break
58055 bytes.push(
58056 codePoint >> 0xC | 0xE0,
58057 codePoint >> 0x6 & 0x3F | 0x80,
58058 codePoint & 0x3F | 0x80
58059 )
58060 } else if (codePoint < 0x110000) {
58061 if ((units -= 4) < 0) break
58062 bytes.push(
58063 codePoint >> 0x12 | 0xF0,
58064 codePoint >> 0xC & 0x3F | 0x80,
58065 codePoint >> 0x6 & 0x3F | 0x80,
58066 codePoint & 0x3F | 0x80
58067 )
58068 } else {
58069 throw new Error('Invalid code point')
58070 }
58071 }
58072
58073 return bytes
58074}
58075
58076function asciiToBytes (str) {
58077 var byteArray = []
58078 for (var i = 0; i < str.length; ++i) {
58079 // Node's code seems to be doing this and not & 0x7F..
58080 byteArray.push(str.charCodeAt(i) & 0xFF)
58081 }
58082 return byteArray
58083}
58084
58085function utf16leToBytes (str, units) {
58086 var c, hi, lo
58087 var byteArray = []
58088 for (var i = 0; i < str.length; ++i) {
58089 if ((units -= 2) < 0) break
58090
58091 c = str.charCodeAt(i)
58092 hi = c >> 8
58093 lo = c % 256
58094 byteArray.push(lo)
58095 byteArray.push(hi)
58096 }
58097
58098 return byteArray
58099}
58100
58101function base64ToBytes (str) {
58102 return base64.toByteArray(base64clean(str))
58103}
58104
58105function blitBuffer (src, dst, offset, length) {
58106 for (var i = 0; i < length; ++i) {
58107 if ((i + offset >= dst.length) || (i >= src.length)) break
58108 dst[i + offset] = src[i]
58109 }
58110 return i
58111}
58112
58113function isnan (val) {
58114 return val !== val // eslint-disable-line no-self-compare
58115}
58116
58117/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
58118
58119/***/ }),
58120
58121/***/ "../../node_modules/ieee754/index.js":
58122/*!******************************************************!*\
58123 !*** /root/amplify-js/node_modules/ieee754/index.js ***!
58124 \******************************************************/
58125/*! no static exports found */
58126/***/ (function(module, exports) {
58127
58128/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
58129exports.read = function (buffer, offset, isLE, mLen, nBytes) {
58130 var e, m
58131 var eLen = (nBytes * 8) - mLen - 1
58132 var eMax = (1 << eLen) - 1
58133 var eBias = eMax >> 1
58134 var nBits = -7
58135 var i = isLE ? (nBytes - 1) : 0
58136 var d = isLE ? -1 : 1
58137 var s = buffer[offset + i]
58138
58139 i += d
58140
58141 e = s & ((1 << (-nBits)) - 1)
58142 s >>= (-nBits)
58143 nBits += eLen
58144 for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
58145
58146 m = e & ((1 << (-nBits)) - 1)
58147 e >>= (-nBits)
58148 nBits += mLen
58149 for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
58150
58151 if (e === 0) {
58152 e = 1 - eBias
58153 } else if (e === eMax) {
58154 return m ? NaN : ((s ? -1 : 1) * Infinity)
58155 } else {
58156 m = m + Math.pow(2, mLen)
58157 e = e - eBias
58158 }
58159 return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
58160}
58161
58162exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
58163 var e, m, c
58164 var eLen = (nBytes * 8) - mLen - 1
58165 var eMax = (1 << eLen) - 1
58166 var eBias = eMax >> 1
58167 var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
58168 var i = isLE ? 0 : (nBytes - 1)
58169 var d = isLE ? 1 : -1
58170 var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
58171
58172 value = Math.abs(value)
58173
58174 if (isNaN(value) || value === Infinity) {
58175 m = isNaN(value) ? 1 : 0
58176 e = eMax
58177 } else {
58178 e = Math.floor(Math.log(value) / Math.LN2)
58179 if (value * (c = Math.pow(2, -e)) < 1) {
58180 e--
58181 c *= 2
58182 }
58183 if (e + eBias >= 1) {
58184 value += rt / c
58185 } else {
58186 value += rt * Math.pow(2, 1 - eBias)
58187 }
58188 if (value * c >= 2) {
58189 e++
58190 c /= 2
58191 }
58192
58193 if (e + eBias >= eMax) {
58194 m = 0
58195 e = eMax
58196 } else if (e + eBias >= 1) {
58197 m = ((value * c) - 1) * Math.pow(2, mLen)
58198 e = e + eBias
58199 } else {
58200 m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
58201 e = 0
58202 }
58203 }
58204
58205 for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
58206
58207 e = (e << mLen) | m
58208 eLen += mLen
58209 for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
58210
58211 buffer[offset + i - d] |= s * 128
58212}
58213
58214
58215/***/ }),
58216
58217/***/ "../../node_modules/isarray/index.js":
58218/*!******************************************************!*\
58219 !*** /root/amplify-js/node_modules/isarray/index.js ***!
58220 \******************************************************/
58221/*! no static exports found */
58222/***/ (function(module, exports) {
58223
58224var toString = {}.toString;
58225
58226module.exports = Array.isArray || function (arr) {
58227 return toString.call(arr) == '[object Array]';
58228};
58229
58230
58231/***/ }),
58232
58233/***/ "../../node_modules/lodash/_DataView.js":
58234/*!*********************************************************!*\
58235 !*** /root/amplify-js/node_modules/lodash/_DataView.js ***!
58236 \*********************************************************/
58237/*! no static exports found */
58238/***/ (function(module, exports, __webpack_require__) {
58239
58240var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
58241 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58242
58243/* Built-in method references that are verified to be native. */
58244var DataView = getNative(root, 'DataView');
58245
58246module.exports = DataView;
58247
58248
58249/***/ }),
58250
58251/***/ "../../node_modules/lodash/_Hash.js":
58252/*!*****************************************************!*\
58253 !*** /root/amplify-js/node_modules/lodash/_Hash.js ***!
58254 \*****************************************************/
58255/*! no static exports found */
58256/***/ (function(module, exports, __webpack_require__) {
58257
58258var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
58259 hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
58260 hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
58261 hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
58262 hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
58263
58264/**
58265 * Creates a hash object.
58266 *
58267 * @private
58268 * @constructor
58269 * @param {Array} [entries] The key-value pairs to cache.
58270 */
58271function Hash(entries) {
58272 var index = -1,
58273 length = entries == null ? 0 : entries.length;
58274
58275 this.clear();
58276 while (++index < length) {
58277 var entry = entries[index];
58278 this.set(entry[0], entry[1]);
58279 }
58280}
58281
58282// Add methods to `Hash`.
58283Hash.prototype.clear = hashClear;
58284Hash.prototype['delete'] = hashDelete;
58285Hash.prototype.get = hashGet;
58286Hash.prototype.has = hashHas;
58287Hash.prototype.set = hashSet;
58288
58289module.exports = Hash;
58290
58291
58292/***/ }),
58293
58294/***/ "../../node_modules/lodash/_ListCache.js":
58295/*!**********************************************************!*\
58296 !*** /root/amplify-js/node_modules/lodash/_ListCache.js ***!
58297 \**********************************************************/
58298/*! no static exports found */
58299/***/ (function(module, exports, __webpack_require__) {
58300
58301var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
58302 listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
58303 listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
58304 listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
58305 listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
58306
58307/**
58308 * Creates an list cache object.
58309 *
58310 * @private
58311 * @constructor
58312 * @param {Array} [entries] The key-value pairs to cache.
58313 */
58314function ListCache(entries) {
58315 var index = -1,
58316 length = entries == null ? 0 : entries.length;
58317
58318 this.clear();
58319 while (++index < length) {
58320 var entry = entries[index];
58321 this.set(entry[0], entry[1]);
58322 }
58323}
58324
58325// Add methods to `ListCache`.
58326ListCache.prototype.clear = listCacheClear;
58327ListCache.prototype['delete'] = listCacheDelete;
58328ListCache.prototype.get = listCacheGet;
58329ListCache.prototype.has = listCacheHas;
58330ListCache.prototype.set = listCacheSet;
58331
58332module.exports = ListCache;
58333
58334
58335/***/ }),
58336
58337/***/ "../../node_modules/lodash/_Map.js":
58338/*!****************************************************!*\
58339 !*** /root/amplify-js/node_modules/lodash/_Map.js ***!
58340 \****************************************************/
58341/*! no static exports found */
58342/***/ (function(module, exports, __webpack_require__) {
58343
58344var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
58345 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58346
58347/* Built-in method references that are verified to be native. */
58348var Map = getNative(root, 'Map');
58349
58350module.exports = Map;
58351
58352
58353/***/ }),
58354
58355/***/ "../../node_modules/lodash/_MapCache.js":
58356/*!*********************************************************!*\
58357 !*** /root/amplify-js/node_modules/lodash/_MapCache.js ***!
58358 \*********************************************************/
58359/*! no static exports found */
58360/***/ (function(module, exports, __webpack_require__) {
58361
58362var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
58363 mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
58364 mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
58365 mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
58366 mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
58367
58368/**
58369 * Creates a map cache object to store key-value pairs.
58370 *
58371 * @private
58372 * @constructor
58373 * @param {Array} [entries] The key-value pairs to cache.
58374 */
58375function MapCache(entries) {
58376 var index = -1,
58377 length = entries == null ? 0 : entries.length;
58378
58379 this.clear();
58380 while (++index < length) {
58381 var entry = entries[index];
58382 this.set(entry[0], entry[1]);
58383 }
58384}
58385
58386// Add methods to `MapCache`.
58387MapCache.prototype.clear = mapCacheClear;
58388MapCache.prototype['delete'] = mapCacheDelete;
58389MapCache.prototype.get = mapCacheGet;
58390MapCache.prototype.has = mapCacheHas;
58391MapCache.prototype.set = mapCacheSet;
58392
58393module.exports = MapCache;
58394
58395
58396/***/ }),
58397
58398/***/ "../../node_modules/lodash/_Promise.js":
58399/*!********************************************************!*\
58400 !*** /root/amplify-js/node_modules/lodash/_Promise.js ***!
58401 \********************************************************/
58402/*! no static exports found */
58403/***/ (function(module, exports, __webpack_require__) {
58404
58405var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
58406 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58407
58408/* Built-in method references that are verified to be native. */
58409var Promise = getNative(root, 'Promise');
58410
58411module.exports = Promise;
58412
58413
58414/***/ }),
58415
58416/***/ "../../node_modules/lodash/_Set.js":
58417/*!****************************************************!*\
58418 !*** /root/amplify-js/node_modules/lodash/_Set.js ***!
58419 \****************************************************/
58420/*! no static exports found */
58421/***/ (function(module, exports, __webpack_require__) {
58422
58423var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
58424 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58425
58426/* Built-in method references that are verified to be native. */
58427var Set = getNative(root, 'Set');
58428
58429module.exports = Set;
58430
58431
58432/***/ }),
58433
58434/***/ "../../node_modules/lodash/_SetCache.js":
58435/*!*********************************************************!*\
58436 !*** /root/amplify-js/node_modules/lodash/_SetCache.js ***!
58437 \*********************************************************/
58438/*! no static exports found */
58439/***/ (function(module, exports, __webpack_require__) {
58440
58441var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
58442 setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
58443 setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
58444
58445/**
58446 *
58447 * Creates an array cache object to store unique values.
58448 *
58449 * @private
58450 * @constructor
58451 * @param {Array} [values] The values to cache.
58452 */
58453function SetCache(values) {
58454 var index = -1,
58455 length = values == null ? 0 : values.length;
58456
58457 this.__data__ = new MapCache;
58458 while (++index < length) {
58459 this.add(values[index]);
58460 }
58461}
58462
58463// Add methods to `SetCache`.
58464SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
58465SetCache.prototype.has = setCacheHas;
58466
58467module.exports = SetCache;
58468
58469
58470/***/ }),
58471
58472/***/ "../../node_modules/lodash/_Stack.js":
58473/*!******************************************************!*\
58474 !*** /root/amplify-js/node_modules/lodash/_Stack.js ***!
58475 \******************************************************/
58476/*! no static exports found */
58477/***/ (function(module, exports, __webpack_require__) {
58478
58479var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
58480 stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
58481 stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
58482 stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
58483 stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
58484 stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
58485
58486/**
58487 * Creates a stack cache object to store key-value pairs.
58488 *
58489 * @private
58490 * @constructor
58491 * @param {Array} [entries] The key-value pairs to cache.
58492 */
58493function Stack(entries) {
58494 var data = this.__data__ = new ListCache(entries);
58495 this.size = data.size;
58496}
58497
58498// Add methods to `Stack`.
58499Stack.prototype.clear = stackClear;
58500Stack.prototype['delete'] = stackDelete;
58501Stack.prototype.get = stackGet;
58502Stack.prototype.has = stackHas;
58503Stack.prototype.set = stackSet;
58504
58505module.exports = Stack;
58506
58507
58508/***/ }),
58509
58510/***/ "../../node_modules/lodash/_Symbol.js":
58511/*!*******************************************************!*\
58512 !*** /root/amplify-js/node_modules/lodash/_Symbol.js ***!
58513 \*******************************************************/
58514/*! no static exports found */
58515/***/ (function(module, exports, __webpack_require__) {
58516
58517var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58518
58519/** Built-in value references. */
58520var Symbol = root.Symbol;
58521
58522module.exports = Symbol;
58523
58524
58525/***/ }),
58526
58527/***/ "../../node_modules/lodash/_Uint8Array.js":
58528/*!***********************************************************!*\
58529 !*** /root/amplify-js/node_modules/lodash/_Uint8Array.js ***!
58530 \***********************************************************/
58531/*! no static exports found */
58532/***/ (function(module, exports, __webpack_require__) {
58533
58534var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58535
58536/** Built-in value references. */
58537var Uint8Array = root.Uint8Array;
58538
58539module.exports = Uint8Array;
58540
58541
58542/***/ }),
58543
58544/***/ "../../node_modules/lodash/_WeakMap.js":
58545/*!********************************************************!*\
58546 !*** /root/amplify-js/node_modules/lodash/_WeakMap.js ***!
58547 \********************************************************/
58548/*! no static exports found */
58549/***/ (function(module, exports, __webpack_require__) {
58550
58551var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
58552 root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
58553
58554/* Built-in method references that are verified to be native. */
58555var WeakMap = getNative(root, 'WeakMap');
58556
58557module.exports = WeakMap;
58558
58559
58560/***/ }),
58561
58562/***/ "../../node_modules/lodash/_arrayFilter.js":
58563/*!************************************************************!*\
58564 !*** /root/amplify-js/node_modules/lodash/_arrayFilter.js ***!
58565 \************************************************************/
58566/*! no static exports found */
58567/***/ (function(module, exports) {
58568
58569/**
58570 * A specialized version of `_.filter` for arrays without support for
58571 * iteratee shorthands.
58572 *
58573 * @private
58574 * @param {Array} [array] The array to iterate over.
58575 * @param {Function} predicate The function invoked per iteration.
58576 * @returns {Array} Returns the new filtered array.
58577 */
58578function arrayFilter(array, predicate) {
58579 var index = -1,
58580 length = array == null ? 0 : array.length,
58581 resIndex = 0,
58582 result = [];
58583
58584 while (++index < length) {
58585 var value = array[index];
58586 if (predicate(value, index, array)) {
58587 result[resIndex++] = value;
58588 }
58589 }
58590 return result;
58591}
58592
58593module.exports = arrayFilter;
58594
58595
58596/***/ }),
58597
58598/***/ "../../node_modules/lodash/_arrayLikeKeys.js":
58599/*!**************************************************************!*\
58600 !*** /root/amplify-js/node_modules/lodash/_arrayLikeKeys.js ***!
58601 \**************************************************************/
58602/*! no static exports found */
58603/***/ (function(module, exports, __webpack_require__) {
58604
58605var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
58606 isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
58607 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
58608 isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
58609 isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
58610 isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
58611
58612/** Used for built-in method references. */
58613var objectProto = Object.prototype;
58614
58615/** Used to check objects for own properties. */
58616var hasOwnProperty = objectProto.hasOwnProperty;
58617
58618/**
58619 * Creates an array of the enumerable property names of the array-like `value`.
58620 *
58621 * @private
58622 * @param {*} value The value to query.
58623 * @param {boolean} inherited Specify returning inherited property names.
58624 * @returns {Array} Returns the array of property names.
58625 */
58626function arrayLikeKeys(value, inherited) {
58627 var isArr = isArray(value),
58628 isArg = !isArr && isArguments(value),
58629 isBuff = !isArr && !isArg && isBuffer(value),
58630 isType = !isArr && !isArg && !isBuff && isTypedArray(value),
58631 skipIndexes = isArr || isArg || isBuff || isType,
58632 result = skipIndexes ? baseTimes(value.length, String) : [],
58633 length = result.length;
58634
58635 for (var key in value) {
58636 if ((inherited || hasOwnProperty.call(value, key)) &&
58637 !(skipIndexes && (
58638 // Safari 9 has enumerable `arguments.length` in strict mode.
58639 key == 'length' ||
58640 // Node.js 0.10 has enumerable non-index properties on buffers.
58641 (isBuff && (key == 'offset' || key == 'parent')) ||
58642 // PhantomJS 2 has enumerable non-index properties on typed arrays.
58643 (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
58644 // Skip index properties.
58645 isIndex(key, length)
58646 ))) {
58647 result.push(key);
58648 }
58649 }
58650 return result;
58651}
58652
58653module.exports = arrayLikeKeys;
58654
58655
58656/***/ }),
58657
58658/***/ "../../node_modules/lodash/_arrayMap.js":
58659/*!*********************************************************!*\
58660 !*** /root/amplify-js/node_modules/lodash/_arrayMap.js ***!
58661 \*********************************************************/
58662/*! no static exports found */
58663/***/ (function(module, exports) {
58664
58665/**
58666 * A specialized version of `_.map` for arrays without support for iteratee
58667 * shorthands.
58668 *
58669 * @private
58670 * @param {Array} [array] The array to iterate over.
58671 * @param {Function} iteratee The function invoked per iteration.
58672 * @returns {Array} Returns the new mapped array.
58673 */
58674function arrayMap(array, iteratee) {
58675 var index = -1,
58676 length = array == null ? 0 : array.length,
58677 result = Array(length);
58678
58679 while (++index < length) {
58680 result[index] = iteratee(array[index], index, array);
58681 }
58682 return result;
58683}
58684
58685module.exports = arrayMap;
58686
58687
58688/***/ }),
58689
58690/***/ "../../node_modules/lodash/_arrayPush.js":
58691/*!**********************************************************!*\
58692 !*** /root/amplify-js/node_modules/lodash/_arrayPush.js ***!
58693 \**********************************************************/
58694/*! no static exports found */
58695/***/ (function(module, exports) {
58696
58697/**
58698 * Appends the elements of `values` to `array`.
58699 *
58700 * @private
58701 * @param {Array} array The array to modify.
58702 * @param {Array} values The values to append.
58703 * @returns {Array} Returns `array`.
58704 */
58705function arrayPush(array, values) {
58706 var index = -1,
58707 length = values.length,
58708 offset = array.length;
58709
58710 while (++index < length) {
58711 array[offset + index] = values[index];
58712 }
58713 return array;
58714}
58715
58716module.exports = arrayPush;
58717
58718
58719/***/ }),
58720
58721/***/ "../../node_modules/lodash/_arraySome.js":
58722/*!**********************************************************!*\
58723 !*** /root/amplify-js/node_modules/lodash/_arraySome.js ***!
58724 \**********************************************************/
58725/*! no static exports found */
58726/***/ (function(module, exports) {
58727
58728/**
58729 * A specialized version of `_.some` for arrays without support for iteratee
58730 * shorthands.
58731 *
58732 * @private
58733 * @param {Array} [array] The array to iterate over.
58734 * @param {Function} predicate The function invoked per iteration.
58735 * @returns {boolean} Returns `true` if any element passes the predicate check,
58736 * else `false`.
58737 */
58738function arraySome(array, predicate) {
58739 var index = -1,
58740 length = array == null ? 0 : array.length;
58741
58742 while (++index < length) {
58743 if (predicate(array[index], index, array)) {
58744 return true;
58745 }
58746 }
58747 return false;
58748}
58749
58750module.exports = arraySome;
58751
58752
58753/***/ }),
58754
58755/***/ "../../node_modules/lodash/_assocIndexOf.js":
58756/*!*************************************************************!*\
58757 !*** /root/amplify-js/node_modules/lodash/_assocIndexOf.js ***!
58758 \*************************************************************/
58759/*! no static exports found */
58760/***/ (function(module, exports, __webpack_require__) {
58761
58762var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
58763
58764/**
58765 * Gets the index at which the `key` is found in `array` of key-value pairs.
58766 *
58767 * @private
58768 * @param {Array} array The array to inspect.
58769 * @param {*} key The key to search for.
58770 * @returns {number} Returns the index of the matched value, else `-1`.
58771 */
58772function assocIndexOf(array, key) {
58773 var length = array.length;
58774 while (length--) {
58775 if (eq(array[length][0], key)) {
58776 return length;
58777 }
58778 }
58779 return -1;
58780}
58781
58782module.exports = assocIndexOf;
58783
58784
58785/***/ }),
58786
58787/***/ "../../node_modules/lodash/_baseGet.js":
58788/*!********************************************************!*\
58789 !*** /root/amplify-js/node_modules/lodash/_baseGet.js ***!
58790 \********************************************************/
58791/*! no static exports found */
58792/***/ (function(module, exports, __webpack_require__) {
58793
58794var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
58795 toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
58796
58797/**
58798 * The base implementation of `_.get` without support for default values.
58799 *
58800 * @private
58801 * @param {Object} object The object to query.
58802 * @param {Array|string} path The path of the property to get.
58803 * @returns {*} Returns the resolved value.
58804 */
58805function baseGet(object, path) {
58806 path = castPath(path, object);
58807
58808 var index = 0,
58809 length = path.length;
58810
58811 while (object != null && index < length) {
58812 object = object[toKey(path[index++])];
58813 }
58814 return (index && index == length) ? object : undefined;
58815}
58816
58817module.exports = baseGet;
58818
58819
58820/***/ }),
58821
58822/***/ "../../node_modules/lodash/_baseGetAllKeys.js":
58823/*!***************************************************************!*\
58824 !*** /root/amplify-js/node_modules/lodash/_baseGetAllKeys.js ***!
58825 \***************************************************************/
58826/*! no static exports found */
58827/***/ (function(module, exports, __webpack_require__) {
58828
58829var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
58830 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
58831
58832/**
58833 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
58834 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
58835 * symbols of `object`.
58836 *
58837 * @private
58838 * @param {Object} object The object to query.
58839 * @param {Function} keysFunc The function to get the keys of `object`.
58840 * @param {Function} symbolsFunc The function to get the symbols of `object`.
58841 * @returns {Array} Returns the array of property names and symbols.
58842 */
58843function baseGetAllKeys(object, keysFunc, symbolsFunc) {
58844 var result = keysFunc(object);
58845 return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
58846}
58847
58848module.exports = baseGetAllKeys;
58849
58850
58851/***/ }),
58852
58853/***/ "../../node_modules/lodash/_baseGetTag.js":
58854/*!***********************************************************!*\
58855 !*** /root/amplify-js/node_modules/lodash/_baseGetTag.js ***!
58856 \***********************************************************/
58857/*! no static exports found */
58858/***/ (function(module, exports, __webpack_require__) {
58859
58860var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
58861 getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
58862 objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
58863
58864/** `Object#toString` result references. */
58865var nullTag = '[object Null]',
58866 undefinedTag = '[object Undefined]';
58867
58868/** Built-in value references. */
58869var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
58870
58871/**
58872 * The base implementation of `getTag` without fallbacks for buggy environments.
58873 *
58874 * @private
58875 * @param {*} value The value to query.
58876 * @returns {string} Returns the `toStringTag`.
58877 */
58878function baseGetTag(value) {
58879 if (value == null) {
58880 return value === undefined ? undefinedTag : nullTag;
58881 }
58882 return (symToStringTag && symToStringTag in Object(value))
58883 ? getRawTag(value)
58884 : objectToString(value);
58885}
58886
58887module.exports = baseGetTag;
58888
58889
58890/***/ }),
58891
58892/***/ "../../node_modules/lodash/_baseIsArguments.js":
58893/*!****************************************************************!*\
58894 !*** /root/amplify-js/node_modules/lodash/_baseIsArguments.js ***!
58895 \****************************************************************/
58896/*! no static exports found */
58897/***/ (function(module, exports, __webpack_require__) {
58898
58899var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
58900 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
58901
58902/** `Object#toString` result references. */
58903var argsTag = '[object Arguments]';
58904
58905/**
58906 * The base implementation of `_.isArguments`.
58907 *
58908 * @private
58909 * @param {*} value The value to check.
58910 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
58911 */
58912function baseIsArguments(value) {
58913 return isObjectLike(value) && baseGetTag(value) == argsTag;
58914}
58915
58916module.exports = baseIsArguments;
58917
58918
58919/***/ }),
58920
58921/***/ "../../node_modules/lodash/_baseIsEqual.js":
58922/*!************************************************************!*\
58923 !*** /root/amplify-js/node_modules/lodash/_baseIsEqual.js ***!
58924 \************************************************************/
58925/*! no static exports found */
58926/***/ (function(module, exports, __webpack_require__) {
58927
58928var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
58929 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
58930
58931/**
58932 * The base implementation of `_.isEqual` which supports partial comparisons
58933 * and tracks traversed objects.
58934 *
58935 * @private
58936 * @param {*} value The value to compare.
58937 * @param {*} other The other value to compare.
58938 * @param {boolean} bitmask The bitmask flags.
58939 * 1 - Unordered comparison
58940 * 2 - Partial comparison
58941 * @param {Function} [customizer] The function to customize comparisons.
58942 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
58943 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
58944 */
58945function baseIsEqual(value, other, bitmask, customizer, stack) {
58946 if (value === other) {
58947 return true;
58948 }
58949 if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
58950 return value !== value && other !== other;
58951 }
58952 return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
58953}
58954
58955module.exports = baseIsEqual;
58956
58957
58958/***/ }),
58959
58960/***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
58961/*!****************************************************************!*\
58962 !*** /root/amplify-js/node_modules/lodash/_baseIsEqualDeep.js ***!
58963 \****************************************************************/
58964/*! no static exports found */
58965/***/ (function(module, exports, __webpack_require__) {
58966
58967var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
58968 equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
58969 equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
58970 equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
58971 getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
58972 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
58973 isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
58974 isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
58975
58976/** Used to compose bitmasks for value comparisons. */
58977var COMPARE_PARTIAL_FLAG = 1;
58978
58979/** `Object#toString` result references. */
58980var argsTag = '[object Arguments]',
58981 arrayTag = '[object Array]',
58982 objectTag = '[object Object]';
58983
58984/** Used for built-in method references. */
58985var objectProto = Object.prototype;
58986
58987/** Used to check objects for own properties. */
58988var hasOwnProperty = objectProto.hasOwnProperty;
58989
58990/**
58991 * A specialized version of `baseIsEqual` for arrays and objects which performs
58992 * deep comparisons and tracks traversed objects enabling objects with circular
58993 * references to be compared.
58994 *
58995 * @private
58996 * @param {Object} object The object to compare.
58997 * @param {Object} other The other object to compare.
58998 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
58999 * @param {Function} customizer The function to customize comparisons.
59000 * @param {Function} equalFunc The function to determine equivalents of values.
59001 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
59002 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
59003 */
59004function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
59005 var objIsArr = isArray(object),
59006 othIsArr = isArray(other),
59007 objTag = objIsArr ? arrayTag : getTag(object),
59008 othTag = othIsArr ? arrayTag : getTag(other);
59009
59010 objTag = objTag == argsTag ? objectTag : objTag;
59011 othTag = othTag == argsTag ? objectTag : othTag;
59012
59013 var objIsObj = objTag == objectTag,
59014 othIsObj = othTag == objectTag,
59015 isSameTag = objTag == othTag;
59016
59017 if (isSameTag && isBuffer(object)) {
59018 if (!isBuffer(other)) {
59019 return false;
59020 }
59021 objIsArr = true;
59022 objIsObj = false;
59023 }
59024 if (isSameTag && !objIsObj) {
59025 stack || (stack = new Stack);
59026 return (objIsArr || isTypedArray(object))
59027 ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
59028 : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
59029 }
59030 if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
59031 var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
59032 othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
59033
59034 if (objIsWrapped || othIsWrapped) {
59035 var objUnwrapped = objIsWrapped ? object.value() : object,
59036 othUnwrapped = othIsWrapped ? other.value() : other;
59037
59038 stack || (stack = new Stack);
59039 return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
59040 }
59041 }
59042 if (!isSameTag) {
59043 return false;
59044 }
59045 stack || (stack = new Stack);
59046 return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
59047}
59048
59049module.exports = baseIsEqualDeep;
59050
59051
59052/***/ }),
59053
59054/***/ "../../node_modules/lodash/_baseIsNative.js":
59055/*!*************************************************************!*\
59056 !*** /root/amplify-js/node_modules/lodash/_baseIsNative.js ***!
59057 \*************************************************************/
59058/*! no static exports found */
59059/***/ (function(module, exports, __webpack_require__) {
59060
59061var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
59062 isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
59063 isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
59064 toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
59065
59066/**
59067 * Used to match `RegExp`
59068 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
59069 */
59070var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
59071
59072/** Used to detect host constructors (Safari). */
59073var reIsHostCtor = /^\[object .+?Constructor\]$/;
59074
59075/** Used for built-in method references. */
59076var funcProto = Function.prototype,
59077 objectProto = Object.prototype;
59078
59079/** Used to resolve the decompiled source of functions. */
59080var funcToString = funcProto.toString;
59081
59082/** Used to check objects for own properties. */
59083var hasOwnProperty = objectProto.hasOwnProperty;
59084
59085/** Used to detect if a method is native. */
59086var reIsNative = RegExp('^' +
59087 funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
59088 .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
59089);
59090
59091/**
59092 * The base implementation of `_.isNative` without bad shim checks.
59093 *
59094 * @private
59095 * @param {*} value The value to check.
59096 * @returns {boolean} Returns `true` if `value` is a native function,
59097 * else `false`.
59098 */
59099function baseIsNative(value) {
59100 if (!isObject(value) || isMasked(value)) {
59101 return false;
59102 }
59103 var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
59104 return pattern.test(toSource(value));
59105}
59106
59107module.exports = baseIsNative;
59108
59109
59110/***/ }),
59111
59112/***/ "../../node_modules/lodash/_baseIsTypedArray.js":
59113/*!*****************************************************************!*\
59114 !*** /root/amplify-js/node_modules/lodash/_baseIsTypedArray.js ***!
59115 \*****************************************************************/
59116/*! no static exports found */
59117/***/ (function(module, exports, __webpack_require__) {
59118
59119var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
59120 isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
59121 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
59122
59123/** `Object#toString` result references. */
59124var argsTag = '[object Arguments]',
59125 arrayTag = '[object Array]',
59126 boolTag = '[object Boolean]',
59127 dateTag = '[object Date]',
59128 errorTag = '[object Error]',
59129 funcTag = '[object Function]',
59130 mapTag = '[object Map]',
59131 numberTag = '[object Number]',
59132 objectTag = '[object Object]',
59133 regexpTag = '[object RegExp]',
59134 setTag = '[object Set]',
59135 stringTag = '[object String]',
59136 weakMapTag = '[object WeakMap]';
59137
59138var arrayBufferTag = '[object ArrayBuffer]',
59139 dataViewTag = '[object DataView]',
59140 float32Tag = '[object Float32Array]',
59141 float64Tag = '[object Float64Array]',
59142 int8Tag = '[object Int8Array]',
59143 int16Tag = '[object Int16Array]',
59144 int32Tag = '[object Int32Array]',
59145 uint8Tag = '[object Uint8Array]',
59146 uint8ClampedTag = '[object Uint8ClampedArray]',
59147 uint16Tag = '[object Uint16Array]',
59148 uint32Tag = '[object Uint32Array]';
59149
59150/** Used to identify `toStringTag` values of typed arrays. */
59151var typedArrayTags = {};
59152typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
59153typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
59154typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
59155typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
59156typedArrayTags[uint32Tag] = true;
59157typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
59158typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
59159typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
59160typedArrayTags[errorTag] = typedArrayTags[funcTag] =
59161typedArrayTags[mapTag] = typedArrayTags[numberTag] =
59162typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
59163typedArrayTags[setTag] = typedArrayTags[stringTag] =
59164typedArrayTags[weakMapTag] = false;
59165
59166/**
59167 * The base implementation of `_.isTypedArray` without Node.js optimizations.
59168 *
59169 * @private
59170 * @param {*} value The value to check.
59171 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
59172 */
59173function baseIsTypedArray(value) {
59174 return isObjectLike(value) &&
59175 isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
59176}
59177
59178module.exports = baseIsTypedArray;
59179
59180
59181/***/ }),
59182
59183/***/ "../../node_modules/lodash/_baseKeys.js":
59184/*!*********************************************************!*\
59185 !*** /root/amplify-js/node_modules/lodash/_baseKeys.js ***!
59186 \*********************************************************/
59187/*! no static exports found */
59188/***/ (function(module, exports, __webpack_require__) {
59189
59190var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
59191 nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
59192
59193/** Used for built-in method references. */
59194var objectProto = Object.prototype;
59195
59196/** Used to check objects for own properties. */
59197var hasOwnProperty = objectProto.hasOwnProperty;
59198
59199/**
59200 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
59201 *
59202 * @private
59203 * @param {Object} object The object to query.
59204 * @returns {Array} Returns the array of property names.
59205 */
59206function baseKeys(object) {
59207 if (!isPrototype(object)) {
59208 return nativeKeys(object);
59209 }
59210 var result = [];
59211 for (var key in Object(object)) {
59212 if (hasOwnProperty.call(object, key) && key != 'constructor') {
59213 result.push(key);
59214 }
59215 }
59216 return result;
59217}
59218
59219module.exports = baseKeys;
59220
59221
59222/***/ }),
59223
59224/***/ "../../node_modules/lodash/_baseTimes.js":
59225/*!**********************************************************!*\
59226 !*** /root/amplify-js/node_modules/lodash/_baseTimes.js ***!
59227 \**********************************************************/
59228/*! no static exports found */
59229/***/ (function(module, exports) {
59230
59231/**
59232 * The base implementation of `_.times` without support for iteratee shorthands
59233 * or max array length checks.
59234 *
59235 * @private
59236 * @param {number} n The number of times to invoke `iteratee`.
59237 * @param {Function} iteratee The function invoked per iteration.
59238 * @returns {Array} Returns the array of results.
59239 */
59240function baseTimes(n, iteratee) {
59241 var index = -1,
59242 result = Array(n);
59243
59244 while (++index < n) {
59245 result[index] = iteratee(index);
59246 }
59247 return result;
59248}
59249
59250module.exports = baseTimes;
59251
59252
59253/***/ }),
59254
59255/***/ "../../node_modules/lodash/_baseToString.js":
59256/*!*************************************************************!*\
59257 !*** /root/amplify-js/node_modules/lodash/_baseToString.js ***!
59258 \*************************************************************/
59259/*! no static exports found */
59260/***/ (function(module, exports, __webpack_require__) {
59261
59262var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
59263 arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
59264 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
59265 isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
59266
59267/** Used as references for various `Number` constants. */
59268var INFINITY = 1 / 0;
59269
59270/** Used to convert symbols to primitives and strings. */
59271var symbolProto = Symbol ? Symbol.prototype : undefined,
59272 symbolToString = symbolProto ? symbolProto.toString : undefined;
59273
59274/**
59275 * The base implementation of `_.toString` which doesn't convert nullish
59276 * values to empty strings.
59277 *
59278 * @private
59279 * @param {*} value The value to process.
59280 * @returns {string} Returns the string.
59281 */
59282function baseToString(value) {
59283 // Exit early for strings to avoid a performance hit in some environments.
59284 if (typeof value == 'string') {
59285 return value;
59286 }
59287 if (isArray(value)) {
59288 // Recursively convert values (susceptible to call stack limits).
59289 return arrayMap(value, baseToString) + '';
59290 }
59291 if (isSymbol(value)) {
59292 return symbolToString ? symbolToString.call(value) : '';
59293 }
59294 var result = (value + '');
59295 return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
59296}
59297
59298module.exports = baseToString;
59299
59300
59301/***/ }),
59302
59303/***/ "../../node_modules/lodash/_baseUnary.js":
59304/*!**********************************************************!*\
59305 !*** /root/amplify-js/node_modules/lodash/_baseUnary.js ***!
59306 \**********************************************************/
59307/*! no static exports found */
59308/***/ (function(module, exports) {
59309
59310/**
59311 * The base implementation of `_.unary` without support for storing metadata.
59312 *
59313 * @private
59314 * @param {Function} func The function to cap arguments for.
59315 * @returns {Function} Returns the new capped function.
59316 */
59317function baseUnary(func) {
59318 return function(value) {
59319 return func(value);
59320 };
59321}
59322
59323module.exports = baseUnary;
59324
59325
59326/***/ }),
59327
59328/***/ "../../node_modules/lodash/_cacheHas.js":
59329/*!*********************************************************!*\
59330 !*** /root/amplify-js/node_modules/lodash/_cacheHas.js ***!
59331 \*********************************************************/
59332/*! no static exports found */
59333/***/ (function(module, exports) {
59334
59335/**
59336 * Checks if a `cache` value for `key` exists.
59337 *
59338 * @private
59339 * @param {Object} cache The cache to query.
59340 * @param {string} key The key of the entry to check.
59341 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
59342 */
59343function cacheHas(cache, key) {
59344 return cache.has(key);
59345}
59346
59347module.exports = cacheHas;
59348
59349
59350/***/ }),
59351
59352/***/ "../../node_modules/lodash/_castPath.js":
59353/*!*********************************************************!*\
59354 !*** /root/amplify-js/node_modules/lodash/_castPath.js ***!
59355 \*********************************************************/
59356/*! no static exports found */
59357/***/ (function(module, exports, __webpack_require__) {
59358
59359var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
59360 isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
59361 stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
59362 toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
59363
59364/**
59365 * Casts `value` to a path array if it's not one.
59366 *
59367 * @private
59368 * @param {*} value The value to inspect.
59369 * @param {Object} [object] The object to query keys on.
59370 * @returns {Array} Returns the cast property path array.
59371 */
59372function castPath(value, object) {
59373 if (isArray(value)) {
59374 return value;
59375 }
59376 return isKey(value, object) ? [value] : stringToPath(toString(value));
59377}
59378
59379module.exports = castPath;
59380
59381
59382/***/ }),
59383
59384/***/ "../../node_modules/lodash/_coreJsData.js":
59385/*!***********************************************************!*\
59386 !*** /root/amplify-js/node_modules/lodash/_coreJsData.js ***!
59387 \***********************************************************/
59388/*! no static exports found */
59389/***/ (function(module, exports, __webpack_require__) {
59390
59391var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
59392
59393/** Used to detect overreaching core-js shims. */
59394var coreJsData = root['__core-js_shared__'];
59395
59396module.exports = coreJsData;
59397
59398
59399/***/ }),
59400
59401/***/ "../../node_modules/lodash/_equalArrays.js":
59402/*!************************************************************!*\
59403 !*** /root/amplify-js/node_modules/lodash/_equalArrays.js ***!
59404 \************************************************************/
59405/*! no static exports found */
59406/***/ (function(module, exports, __webpack_require__) {
59407
59408var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
59409 arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
59410 cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
59411
59412/** Used to compose bitmasks for value comparisons. */
59413var COMPARE_PARTIAL_FLAG = 1,
59414 COMPARE_UNORDERED_FLAG = 2;
59415
59416/**
59417 * A specialized version of `baseIsEqualDeep` for arrays with support for
59418 * partial deep comparisons.
59419 *
59420 * @private
59421 * @param {Array} array The array to compare.
59422 * @param {Array} other The other array to compare.
59423 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
59424 * @param {Function} customizer The function to customize comparisons.
59425 * @param {Function} equalFunc The function to determine equivalents of values.
59426 * @param {Object} stack Tracks traversed `array` and `other` objects.
59427 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
59428 */
59429function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
59430 var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
59431 arrLength = array.length,
59432 othLength = other.length;
59433
59434 if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
59435 return false;
59436 }
59437 // Check that cyclic values are equal.
59438 var arrStacked = stack.get(array);
59439 var othStacked = stack.get(other);
59440 if (arrStacked && othStacked) {
59441 return arrStacked == other && othStacked == array;
59442 }
59443 var index = -1,
59444 result = true,
59445 seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
59446
59447 stack.set(array, other);
59448 stack.set(other, array);
59449
59450 // Ignore non-index properties.
59451 while (++index < arrLength) {
59452 var arrValue = array[index],
59453 othValue = other[index];
59454
59455 if (customizer) {
59456 var compared = isPartial
59457 ? customizer(othValue, arrValue, index, other, array, stack)
59458 : customizer(arrValue, othValue, index, array, other, stack);
59459 }
59460 if (compared !== undefined) {
59461 if (compared) {
59462 continue;
59463 }
59464 result = false;
59465 break;
59466 }
59467 // Recursively compare arrays (susceptible to call stack limits).
59468 if (seen) {
59469 if (!arraySome(other, function(othValue, othIndex) {
59470 if (!cacheHas(seen, othIndex) &&
59471 (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
59472 return seen.push(othIndex);
59473 }
59474 })) {
59475 result = false;
59476 break;
59477 }
59478 } else if (!(
59479 arrValue === othValue ||
59480 equalFunc(arrValue, othValue, bitmask, customizer, stack)
59481 )) {
59482 result = false;
59483 break;
59484 }
59485 }
59486 stack['delete'](array);
59487 stack['delete'](other);
59488 return result;
59489}
59490
59491module.exports = equalArrays;
59492
59493
59494/***/ }),
59495
59496/***/ "../../node_modules/lodash/_equalByTag.js":
59497/*!***********************************************************!*\
59498 !*** /root/amplify-js/node_modules/lodash/_equalByTag.js ***!
59499 \***********************************************************/
59500/*! no static exports found */
59501/***/ (function(module, exports, __webpack_require__) {
59502
59503var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
59504 Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
59505 eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
59506 equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
59507 mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
59508 setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
59509
59510/** Used to compose bitmasks for value comparisons. */
59511var COMPARE_PARTIAL_FLAG = 1,
59512 COMPARE_UNORDERED_FLAG = 2;
59513
59514/** `Object#toString` result references. */
59515var boolTag = '[object Boolean]',
59516 dateTag = '[object Date]',
59517 errorTag = '[object Error]',
59518 mapTag = '[object Map]',
59519 numberTag = '[object Number]',
59520 regexpTag = '[object RegExp]',
59521 setTag = '[object Set]',
59522 stringTag = '[object String]',
59523 symbolTag = '[object Symbol]';
59524
59525var arrayBufferTag = '[object ArrayBuffer]',
59526 dataViewTag = '[object DataView]';
59527
59528/** Used to convert symbols to primitives and strings. */
59529var symbolProto = Symbol ? Symbol.prototype : undefined,
59530 symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
59531
59532/**
59533 * A specialized version of `baseIsEqualDeep` for comparing objects of
59534 * the same `toStringTag`.
59535 *
59536 * **Note:** This function only supports comparing values with tags of
59537 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
59538 *
59539 * @private
59540 * @param {Object} object The object to compare.
59541 * @param {Object} other The other object to compare.
59542 * @param {string} tag The `toStringTag` of the objects to compare.
59543 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
59544 * @param {Function} customizer The function to customize comparisons.
59545 * @param {Function} equalFunc The function to determine equivalents of values.
59546 * @param {Object} stack Tracks traversed `object` and `other` objects.
59547 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
59548 */
59549function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
59550 switch (tag) {
59551 case dataViewTag:
59552 if ((object.byteLength != other.byteLength) ||
59553 (object.byteOffset != other.byteOffset)) {
59554 return false;
59555 }
59556 object = object.buffer;
59557 other = other.buffer;
59558
59559 case arrayBufferTag:
59560 if ((object.byteLength != other.byteLength) ||
59561 !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
59562 return false;
59563 }
59564 return true;
59565
59566 case boolTag:
59567 case dateTag:
59568 case numberTag:
59569 // Coerce booleans to `1` or `0` and dates to milliseconds.
59570 // Invalid dates are coerced to `NaN`.
59571 return eq(+object, +other);
59572
59573 case errorTag:
59574 return object.name == other.name && object.message == other.message;
59575
59576 case regexpTag:
59577 case stringTag:
59578 // Coerce regexes to strings and treat strings, primitives and objects,
59579 // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
59580 // for more details.
59581 return object == (other + '');
59582
59583 case mapTag:
59584 var convert = mapToArray;
59585
59586 case setTag:
59587 var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
59588 convert || (convert = setToArray);
59589
59590 if (object.size != other.size && !isPartial) {
59591 return false;
59592 }
59593 // Assume cyclic values are equal.
59594 var stacked = stack.get(object);
59595 if (stacked) {
59596 return stacked == other;
59597 }
59598 bitmask |= COMPARE_UNORDERED_FLAG;
59599
59600 // Recursively compare objects (susceptible to call stack limits).
59601 stack.set(object, other);
59602 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
59603 stack['delete'](object);
59604 return result;
59605
59606 case symbolTag:
59607 if (symbolValueOf) {
59608 return symbolValueOf.call(object) == symbolValueOf.call(other);
59609 }
59610 }
59611 return false;
59612}
59613
59614module.exports = equalByTag;
59615
59616
59617/***/ }),
59618
59619/***/ "../../node_modules/lodash/_equalObjects.js":
59620/*!*************************************************************!*\
59621 !*** /root/amplify-js/node_modules/lodash/_equalObjects.js ***!
59622 \*************************************************************/
59623/*! no static exports found */
59624/***/ (function(module, exports, __webpack_require__) {
59625
59626var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
59627
59628/** Used to compose bitmasks for value comparisons. */
59629var COMPARE_PARTIAL_FLAG = 1;
59630
59631/** Used for built-in method references. */
59632var objectProto = Object.prototype;
59633
59634/** Used to check objects for own properties. */
59635var hasOwnProperty = objectProto.hasOwnProperty;
59636
59637/**
59638 * A specialized version of `baseIsEqualDeep` for objects with support for
59639 * partial deep comparisons.
59640 *
59641 * @private
59642 * @param {Object} object The object to compare.
59643 * @param {Object} other The other object to compare.
59644 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
59645 * @param {Function} customizer The function to customize comparisons.
59646 * @param {Function} equalFunc The function to determine equivalents of values.
59647 * @param {Object} stack Tracks traversed `object` and `other` objects.
59648 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
59649 */
59650function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
59651 var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
59652 objProps = getAllKeys(object),
59653 objLength = objProps.length,
59654 othProps = getAllKeys(other),
59655 othLength = othProps.length;
59656
59657 if (objLength != othLength && !isPartial) {
59658 return false;
59659 }
59660 var index = objLength;
59661 while (index--) {
59662 var key = objProps[index];
59663 if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
59664 return false;
59665 }
59666 }
59667 // Check that cyclic values are equal.
59668 var objStacked = stack.get(object);
59669 var othStacked = stack.get(other);
59670 if (objStacked && othStacked) {
59671 return objStacked == other && othStacked == object;
59672 }
59673 var result = true;
59674 stack.set(object, other);
59675 stack.set(other, object);
59676
59677 var skipCtor = isPartial;
59678 while (++index < objLength) {
59679 key = objProps[index];
59680 var objValue = object[key],
59681 othValue = other[key];
59682
59683 if (customizer) {
59684 var compared = isPartial
59685 ? customizer(othValue, objValue, key, other, object, stack)
59686 : customizer(objValue, othValue, key, object, other, stack);
59687 }
59688 // Recursively compare objects (susceptible to call stack limits).
59689 if (!(compared === undefined
59690 ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
59691 : compared
59692 )) {
59693 result = false;
59694 break;
59695 }
59696 skipCtor || (skipCtor = key == 'constructor');
59697 }
59698 if (result && !skipCtor) {
59699 var objCtor = object.constructor,
59700 othCtor = other.constructor;
59701
59702 // Non `Object` object instances with different constructors are not equal.
59703 if (objCtor != othCtor &&
59704 ('constructor' in object && 'constructor' in other) &&
59705 !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
59706 typeof othCtor == 'function' && othCtor instanceof othCtor)) {
59707 result = false;
59708 }
59709 }
59710 stack['delete'](object);
59711 stack['delete'](other);
59712 return result;
59713}
59714
59715module.exports = equalObjects;
59716
59717
59718/***/ }),
59719
59720/***/ "../../node_modules/lodash/_freeGlobal.js":
59721/*!***********************************************************!*\
59722 !*** /root/amplify-js/node_modules/lodash/_freeGlobal.js ***!
59723 \***********************************************************/
59724/*! no static exports found */
59725/***/ (function(module, exports, __webpack_require__) {
59726
59727/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
59728var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
59729
59730module.exports = freeGlobal;
59731
59732/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
59733
59734/***/ }),
59735
59736/***/ "../../node_modules/lodash/_getAllKeys.js":
59737/*!***********************************************************!*\
59738 !*** /root/amplify-js/node_modules/lodash/_getAllKeys.js ***!
59739 \***********************************************************/
59740/*! no static exports found */
59741/***/ (function(module, exports, __webpack_require__) {
59742
59743var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
59744 getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
59745 keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
59746
59747/**
59748 * Creates an array of own enumerable property names and symbols of `object`.
59749 *
59750 * @private
59751 * @param {Object} object The object to query.
59752 * @returns {Array} Returns the array of property names and symbols.
59753 */
59754function getAllKeys(object) {
59755 return baseGetAllKeys(object, keys, getSymbols);
59756}
59757
59758module.exports = getAllKeys;
59759
59760
59761/***/ }),
59762
59763/***/ "../../node_modules/lodash/_getMapData.js":
59764/*!***********************************************************!*\
59765 !*** /root/amplify-js/node_modules/lodash/_getMapData.js ***!
59766 \***********************************************************/
59767/*! no static exports found */
59768/***/ (function(module, exports, __webpack_require__) {
59769
59770var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
59771
59772/**
59773 * Gets the data for `map`.
59774 *
59775 * @private
59776 * @param {Object} map The map to query.
59777 * @param {string} key The reference key.
59778 * @returns {*} Returns the map data.
59779 */
59780function getMapData(map, key) {
59781 var data = map.__data__;
59782 return isKeyable(key)
59783 ? data[typeof key == 'string' ? 'string' : 'hash']
59784 : data.map;
59785}
59786
59787module.exports = getMapData;
59788
59789
59790/***/ }),
59791
59792/***/ "../../node_modules/lodash/_getNative.js":
59793/*!**********************************************************!*\
59794 !*** /root/amplify-js/node_modules/lodash/_getNative.js ***!
59795 \**********************************************************/
59796/*! no static exports found */
59797/***/ (function(module, exports, __webpack_require__) {
59798
59799var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
59800 getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
59801
59802/**
59803 * Gets the native function at `key` of `object`.
59804 *
59805 * @private
59806 * @param {Object} object The object to query.
59807 * @param {string} key The key of the method to get.
59808 * @returns {*} Returns the function if it's native, else `undefined`.
59809 */
59810function getNative(object, key) {
59811 var value = getValue(object, key);
59812 return baseIsNative(value) ? value : undefined;
59813}
59814
59815module.exports = getNative;
59816
59817
59818/***/ }),
59819
59820/***/ "../../node_modules/lodash/_getRawTag.js":
59821/*!**********************************************************!*\
59822 !*** /root/amplify-js/node_modules/lodash/_getRawTag.js ***!
59823 \**********************************************************/
59824/*! no static exports found */
59825/***/ (function(module, exports, __webpack_require__) {
59826
59827var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
59828
59829/** Used for built-in method references. */
59830var objectProto = Object.prototype;
59831
59832/** Used to check objects for own properties. */
59833var hasOwnProperty = objectProto.hasOwnProperty;
59834
59835/**
59836 * Used to resolve the
59837 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
59838 * of values.
59839 */
59840var nativeObjectToString = objectProto.toString;
59841
59842/** Built-in value references. */
59843var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
59844
59845/**
59846 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
59847 *
59848 * @private
59849 * @param {*} value The value to query.
59850 * @returns {string} Returns the raw `toStringTag`.
59851 */
59852function getRawTag(value) {
59853 var isOwn = hasOwnProperty.call(value, symToStringTag),
59854 tag = value[symToStringTag];
59855
59856 try {
59857 value[symToStringTag] = undefined;
59858 var unmasked = true;
59859 } catch (e) {}
59860
59861 var result = nativeObjectToString.call(value);
59862 if (unmasked) {
59863 if (isOwn) {
59864 value[symToStringTag] = tag;
59865 } else {
59866 delete value[symToStringTag];
59867 }
59868 }
59869 return result;
59870}
59871
59872module.exports = getRawTag;
59873
59874
59875/***/ }),
59876
59877/***/ "../../node_modules/lodash/_getSymbols.js":
59878/*!***********************************************************!*\
59879 !*** /root/amplify-js/node_modules/lodash/_getSymbols.js ***!
59880 \***********************************************************/
59881/*! no static exports found */
59882/***/ (function(module, exports, __webpack_require__) {
59883
59884var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
59885 stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
59886
59887/** Used for built-in method references. */
59888var objectProto = Object.prototype;
59889
59890/** Built-in value references. */
59891var propertyIsEnumerable = objectProto.propertyIsEnumerable;
59892
59893/* Built-in method references for those with the same name as other `lodash` methods. */
59894var nativeGetSymbols = Object.getOwnPropertySymbols;
59895
59896/**
59897 * Creates an array of the own enumerable symbols of `object`.
59898 *
59899 * @private
59900 * @param {Object} object The object to query.
59901 * @returns {Array} Returns the array of symbols.
59902 */
59903var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
59904 if (object == null) {
59905 return [];
59906 }
59907 object = Object(object);
59908 return arrayFilter(nativeGetSymbols(object), function(symbol) {
59909 return propertyIsEnumerable.call(object, symbol);
59910 });
59911};
59912
59913module.exports = getSymbols;
59914
59915
59916/***/ }),
59917
59918/***/ "../../node_modules/lodash/_getTag.js":
59919/*!*******************************************************!*\
59920 !*** /root/amplify-js/node_modules/lodash/_getTag.js ***!
59921 \*******************************************************/
59922/*! no static exports found */
59923/***/ (function(module, exports, __webpack_require__) {
59924
59925var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
59926 Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
59927 Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
59928 Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
59929 WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
59930 baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
59931 toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
59932
59933/** `Object#toString` result references. */
59934var mapTag = '[object Map]',
59935 objectTag = '[object Object]',
59936 promiseTag = '[object Promise]',
59937 setTag = '[object Set]',
59938 weakMapTag = '[object WeakMap]';
59939
59940var dataViewTag = '[object DataView]';
59941
59942/** Used to detect maps, sets, and weakmaps. */
59943var dataViewCtorString = toSource(DataView),
59944 mapCtorString = toSource(Map),
59945 promiseCtorString = toSource(Promise),
59946 setCtorString = toSource(Set),
59947 weakMapCtorString = toSource(WeakMap);
59948
59949/**
59950 * Gets the `toStringTag` of `value`.
59951 *
59952 * @private
59953 * @param {*} value The value to query.
59954 * @returns {string} Returns the `toStringTag`.
59955 */
59956var getTag = baseGetTag;
59957
59958// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
59959if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
59960 (Map && getTag(new Map) != mapTag) ||
59961 (Promise && getTag(Promise.resolve()) != promiseTag) ||
59962 (Set && getTag(new Set) != setTag) ||
59963 (WeakMap && getTag(new WeakMap) != weakMapTag)) {
59964 getTag = function(value) {
59965 var result = baseGetTag(value),
59966 Ctor = result == objectTag ? value.constructor : undefined,
59967 ctorString = Ctor ? toSource(Ctor) : '';
59968
59969 if (ctorString) {
59970 switch (ctorString) {
59971 case dataViewCtorString: return dataViewTag;
59972 case mapCtorString: return mapTag;
59973 case promiseCtorString: return promiseTag;
59974 case setCtorString: return setTag;
59975 case weakMapCtorString: return weakMapTag;
59976 }
59977 }
59978 return result;
59979 };
59980}
59981
59982module.exports = getTag;
59983
59984
59985/***/ }),
59986
59987/***/ "../../node_modules/lodash/_getValue.js":
59988/*!*********************************************************!*\
59989 !*** /root/amplify-js/node_modules/lodash/_getValue.js ***!
59990 \*********************************************************/
59991/*! no static exports found */
59992/***/ (function(module, exports) {
59993
59994/**
59995 * Gets the value at `key` of `object`.
59996 *
59997 * @private
59998 * @param {Object} [object] The object to query.
59999 * @param {string} key The key of the property to get.
60000 * @returns {*} Returns the property value.
60001 */
60002function getValue(object, key) {
60003 return object == null ? undefined : object[key];
60004}
60005
60006module.exports = getValue;
60007
60008
60009/***/ }),
60010
60011/***/ "../../node_modules/lodash/_hashClear.js":
60012/*!**********************************************************!*\
60013 !*** /root/amplify-js/node_modules/lodash/_hashClear.js ***!
60014 \**********************************************************/
60015/*! no static exports found */
60016/***/ (function(module, exports, __webpack_require__) {
60017
60018var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
60019
60020/**
60021 * Removes all key-value entries from the hash.
60022 *
60023 * @private
60024 * @name clear
60025 * @memberOf Hash
60026 */
60027function hashClear() {
60028 this.__data__ = nativeCreate ? nativeCreate(null) : {};
60029 this.size = 0;
60030}
60031
60032module.exports = hashClear;
60033
60034
60035/***/ }),
60036
60037/***/ "../../node_modules/lodash/_hashDelete.js":
60038/*!***********************************************************!*\
60039 !*** /root/amplify-js/node_modules/lodash/_hashDelete.js ***!
60040 \***********************************************************/
60041/*! no static exports found */
60042/***/ (function(module, exports) {
60043
60044/**
60045 * Removes `key` and its value from the hash.
60046 *
60047 * @private
60048 * @name delete
60049 * @memberOf Hash
60050 * @param {Object} hash The hash to modify.
60051 * @param {string} key The key of the value to remove.
60052 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
60053 */
60054function hashDelete(key) {
60055 var result = this.has(key) && delete this.__data__[key];
60056 this.size -= result ? 1 : 0;
60057 return result;
60058}
60059
60060module.exports = hashDelete;
60061
60062
60063/***/ }),
60064
60065/***/ "../../node_modules/lodash/_hashGet.js":
60066/*!********************************************************!*\
60067 !*** /root/amplify-js/node_modules/lodash/_hashGet.js ***!
60068 \********************************************************/
60069/*! no static exports found */
60070/***/ (function(module, exports, __webpack_require__) {
60071
60072var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
60073
60074/** Used to stand-in for `undefined` hash values. */
60075var HASH_UNDEFINED = '__lodash_hash_undefined__';
60076
60077/** Used for built-in method references. */
60078var objectProto = Object.prototype;
60079
60080/** Used to check objects for own properties. */
60081var hasOwnProperty = objectProto.hasOwnProperty;
60082
60083/**
60084 * Gets the hash value for `key`.
60085 *
60086 * @private
60087 * @name get
60088 * @memberOf Hash
60089 * @param {string} key The key of the value to get.
60090 * @returns {*} Returns the entry value.
60091 */
60092function hashGet(key) {
60093 var data = this.__data__;
60094 if (nativeCreate) {
60095 var result = data[key];
60096 return result === HASH_UNDEFINED ? undefined : result;
60097 }
60098 return hasOwnProperty.call(data, key) ? data[key] : undefined;
60099}
60100
60101module.exports = hashGet;
60102
60103
60104/***/ }),
60105
60106/***/ "../../node_modules/lodash/_hashHas.js":
60107/*!********************************************************!*\
60108 !*** /root/amplify-js/node_modules/lodash/_hashHas.js ***!
60109 \********************************************************/
60110/*! no static exports found */
60111/***/ (function(module, exports, __webpack_require__) {
60112
60113var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
60114
60115/** Used for built-in method references. */
60116var objectProto = Object.prototype;
60117
60118/** Used to check objects for own properties. */
60119var hasOwnProperty = objectProto.hasOwnProperty;
60120
60121/**
60122 * Checks if a hash value for `key` exists.
60123 *
60124 * @private
60125 * @name has
60126 * @memberOf Hash
60127 * @param {string} key The key of the entry to check.
60128 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
60129 */
60130function hashHas(key) {
60131 var data = this.__data__;
60132 return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
60133}
60134
60135module.exports = hashHas;
60136
60137
60138/***/ }),
60139
60140/***/ "../../node_modules/lodash/_hashSet.js":
60141/*!********************************************************!*\
60142 !*** /root/amplify-js/node_modules/lodash/_hashSet.js ***!
60143 \********************************************************/
60144/*! no static exports found */
60145/***/ (function(module, exports, __webpack_require__) {
60146
60147var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
60148
60149/** Used to stand-in for `undefined` hash values. */
60150var HASH_UNDEFINED = '__lodash_hash_undefined__';
60151
60152/**
60153 * Sets the hash `key` to `value`.
60154 *
60155 * @private
60156 * @name set
60157 * @memberOf Hash
60158 * @param {string} key The key of the value to set.
60159 * @param {*} value The value to set.
60160 * @returns {Object} Returns the hash instance.
60161 */
60162function hashSet(key, value) {
60163 var data = this.__data__;
60164 this.size += this.has(key) ? 0 : 1;
60165 data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
60166 return this;
60167}
60168
60169module.exports = hashSet;
60170
60171
60172/***/ }),
60173
60174/***/ "../../node_modules/lodash/_isIndex.js":
60175/*!********************************************************!*\
60176 !*** /root/amplify-js/node_modules/lodash/_isIndex.js ***!
60177 \********************************************************/
60178/*! no static exports found */
60179/***/ (function(module, exports) {
60180
60181/** Used as references for various `Number` constants. */
60182var MAX_SAFE_INTEGER = 9007199254740991;
60183
60184/** Used to detect unsigned integer values. */
60185var reIsUint = /^(?:0|[1-9]\d*)$/;
60186
60187/**
60188 * Checks if `value` is a valid array-like index.
60189 *
60190 * @private
60191 * @param {*} value The value to check.
60192 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
60193 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
60194 */
60195function isIndex(value, length) {
60196 var type = typeof value;
60197 length = length == null ? MAX_SAFE_INTEGER : length;
60198
60199 return !!length &&
60200 (type == 'number' ||
60201 (type != 'symbol' && reIsUint.test(value))) &&
60202 (value > -1 && value % 1 == 0 && value < length);
60203}
60204
60205module.exports = isIndex;
60206
60207
60208/***/ }),
60209
60210/***/ "../../node_modules/lodash/_isKey.js":
60211/*!******************************************************!*\
60212 !*** /root/amplify-js/node_modules/lodash/_isKey.js ***!
60213 \******************************************************/
60214/*! no static exports found */
60215/***/ (function(module, exports, __webpack_require__) {
60216
60217var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
60218 isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
60219
60220/** Used to match property names within property paths. */
60221var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
60222 reIsPlainProp = /^\w*$/;
60223
60224/**
60225 * Checks if `value` is a property name and not a property path.
60226 *
60227 * @private
60228 * @param {*} value The value to check.
60229 * @param {Object} [object] The object to query keys on.
60230 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
60231 */
60232function isKey(value, object) {
60233 if (isArray(value)) {
60234 return false;
60235 }
60236 var type = typeof value;
60237 if (type == 'number' || type == 'symbol' || type == 'boolean' ||
60238 value == null || isSymbol(value)) {
60239 return true;
60240 }
60241 return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
60242 (object != null && value in Object(object));
60243}
60244
60245module.exports = isKey;
60246
60247
60248/***/ }),
60249
60250/***/ "../../node_modules/lodash/_isKeyable.js":
60251/*!**********************************************************!*\
60252 !*** /root/amplify-js/node_modules/lodash/_isKeyable.js ***!
60253 \**********************************************************/
60254/*! no static exports found */
60255/***/ (function(module, exports) {
60256
60257/**
60258 * Checks if `value` is suitable for use as unique object key.
60259 *
60260 * @private
60261 * @param {*} value The value to check.
60262 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
60263 */
60264function isKeyable(value) {
60265 var type = typeof value;
60266 return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
60267 ? (value !== '__proto__')
60268 : (value === null);
60269}
60270
60271module.exports = isKeyable;
60272
60273
60274/***/ }),
60275
60276/***/ "../../node_modules/lodash/_isMasked.js":
60277/*!*********************************************************!*\
60278 !*** /root/amplify-js/node_modules/lodash/_isMasked.js ***!
60279 \*********************************************************/
60280/*! no static exports found */
60281/***/ (function(module, exports, __webpack_require__) {
60282
60283var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
60284
60285/** Used to detect methods masquerading as native. */
60286var maskSrcKey = (function() {
60287 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
60288 return uid ? ('Symbol(src)_1.' + uid) : '';
60289}());
60290
60291/**
60292 * Checks if `func` has its source masked.
60293 *
60294 * @private
60295 * @param {Function} func The function to check.
60296 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
60297 */
60298function isMasked(func) {
60299 return !!maskSrcKey && (maskSrcKey in func);
60300}
60301
60302module.exports = isMasked;
60303
60304
60305/***/ }),
60306
60307/***/ "../../node_modules/lodash/_isPrototype.js":
60308/*!************************************************************!*\
60309 !*** /root/amplify-js/node_modules/lodash/_isPrototype.js ***!
60310 \************************************************************/
60311/*! no static exports found */
60312/***/ (function(module, exports) {
60313
60314/** Used for built-in method references. */
60315var objectProto = Object.prototype;
60316
60317/**
60318 * Checks if `value` is likely a prototype object.
60319 *
60320 * @private
60321 * @param {*} value The value to check.
60322 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
60323 */
60324function isPrototype(value) {
60325 var Ctor = value && value.constructor,
60326 proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
60327
60328 return value === proto;
60329}
60330
60331module.exports = isPrototype;
60332
60333
60334/***/ }),
60335
60336/***/ "../../node_modules/lodash/_listCacheClear.js":
60337/*!***************************************************************!*\
60338 !*** /root/amplify-js/node_modules/lodash/_listCacheClear.js ***!
60339 \***************************************************************/
60340/*! no static exports found */
60341/***/ (function(module, exports) {
60342
60343/**
60344 * Removes all key-value entries from the list cache.
60345 *
60346 * @private
60347 * @name clear
60348 * @memberOf ListCache
60349 */
60350function listCacheClear() {
60351 this.__data__ = [];
60352 this.size = 0;
60353}
60354
60355module.exports = listCacheClear;
60356
60357
60358/***/ }),
60359
60360/***/ "../../node_modules/lodash/_listCacheDelete.js":
60361/*!****************************************************************!*\
60362 !*** /root/amplify-js/node_modules/lodash/_listCacheDelete.js ***!
60363 \****************************************************************/
60364/*! no static exports found */
60365/***/ (function(module, exports, __webpack_require__) {
60366
60367var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
60368
60369/** Used for built-in method references. */
60370var arrayProto = Array.prototype;
60371
60372/** Built-in value references. */
60373var splice = arrayProto.splice;
60374
60375/**
60376 * Removes `key` and its value from the list cache.
60377 *
60378 * @private
60379 * @name delete
60380 * @memberOf ListCache
60381 * @param {string} key The key of the value to remove.
60382 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
60383 */
60384function listCacheDelete(key) {
60385 var data = this.__data__,
60386 index = assocIndexOf(data, key);
60387
60388 if (index < 0) {
60389 return false;
60390 }
60391 var lastIndex = data.length - 1;
60392 if (index == lastIndex) {
60393 data.pop();
60394 } else {
60395 splice.call(data, index, 1);
60396 }
60397 --this.size;
60398 return true;
60399}
60400
60401module.exports = listCacheDelete;
60402
60403
60404/***/ }),
60405
60406/***/ "../../node_modules/lodash/_listCacheGet.js":
60407/*!*************************************************************!*\
60408 !*** /root/amplify-js/node_modules/lodash/_listCacheGet.js ***!
60409 \*************************************************************/
60410/*! no static exports found */
60411/***/ (function(module, exports, __webpack_require__) {
60412
60413var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
60414
60415/**
60416 * Gets the list cache value for `key`.
60417 *
60418 * @private
60419 * @name get
60420 * @memberOf ListCache
60421 * @param {string} key The key of the value to get.
60422 * @returns {*} Returns the entry value.
60423 */
60424function listCacheGet(key) {
60425 var data = this.__data__,
60426 index = assocIndexOf(data, key);
60427
60428 return index < 0 ? undefined : data[index][1];
60429}
60430
60431module.exports = listCacheGet;
60432
60433
60434/***/ }),
60435
60436/***/ "../../node_modules/lodash/_listCacheHas.js":
60437/*!*************************************************************!*\
60438 !*** /root/amplify-js/node_modules/lodash/_listCacheHas.js ***!
60439 \*************************************************************/
60440/*! no static exports found */
60441/***/ (function(module, exports, __webpack_require__) {
60442
60443var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
60444
60445/**
60446 * Checks if a list cache value for `key` exists.
60447 *
60448 * @private
60449 * @name has
60450 * @memberOf ListCache
60451 * @param {string} key The key of the entry to check.
60452 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
60453 */
60454function listCacheHas(key) {
60455 return assocIndexOf(this.__data__, key) > -1;
60456}
60457
60458module.exports = listCacheHas;
60459
60460
60461/***/ }),
60462
60463/***/ "../../node_modules/lodash/_listCacheSet.js":
60464/*!*************************************************************!*\
60465 !*** /root/amplify-js/node_modules/lodash/_listCacheSet.js ***!
60466 \*************************************************************/
60467/*! no static exports found */
60468/***/ (function(module, exports, __webpack_require__) {
60469
60470var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
60471
60472/**
60473 * Sets the list cache `key` to `value`.
60474 *
60475 * @private
60476 * @name set
60477 * @memberOf ListCache
60478 * @param {string} key The key of the value to set.
60479 * @param {*} value The value to set.
60480 * @returns {Object} Returns the list cache instance.
60481 */
60482function listCacheSet(key, value) {
60483 var data = this.__data__,
60484 index = assocIndexOf(data, key);
60485
60486 if (index < 0) {
60487 ++this.size;
60488 data.push([key, value]);
60489 } else {
60490 data[index][1] = value;
60491 }
60492 return this;
60493}
60494
60495module.exports = listCacheSet;
60496
60497
60498/***/ }),
60499
60500/***/ "../../node_modules/lodash/_mapCacheClear.js":
60501/*!**************************************************************!*\
60502 !*** /root/amplify-js/node_modules/lodash/_mapCacheClear.js ***!
60503 \**************************************************************/
60504/*! no static exports found */
60505/***/ (function(module, exports, __webpack_require__) {
60506
60507var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
60508 ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
60509 Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
60510
60511/**
60512 * Removes all key-value entries from the map.
60513 *
60514 * @private
60515 * @name clear
60516 * @memberOf MapCache
60517 */
60518function mapCacheClear() {
60519 this.size = 0;
60520 this.__data__ = {
60521 'hash': new Hash,
60522 'map': new (Map || ListCache),
60523 'string': new Hash
60524 };
60525}
60526
60527module.exports = mapCacheClear;
60528
60529
60530/***/ }),
60531
60532/***/ "../../node_modules/lodash/_mapCacheDelete.js":
60533/*!***************************************************************!*\
60534 !*** /root/amplify-js/node_modules/lodash/_mapCacheDelete.js ***!
60535 \***************************************************************/
60536/*! no static exports found */
60537/***/ (function(module, exports, __webpack_require__) {
60538
60539var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
60540
60541/**
60542 * Removes `key` and its value from the map.
60543 *
60544 * @private
60545 * @name delete
60546 * @memberOf MapCache
60547 * @param {string} key The key of the value to remove.
60548 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
60549 */
60550function mapCacheDelete(key) {
60551 var result = getMapData(this, key)['delete'](key);
60552 this.size -= result ? 1 : 0;
60553 return result;
60554}
60555
60556module.exports = mapCacheDelete;
60557
60558
60559/***/ }),
60560
60561/***/ "../../node_modules/lodash/_mapCacheGet.js":
60562/*!************************************************************!*\
60563 !*** /root/amplify-js/node_modules/lodash/_mapCacheGet.js ***!
60564 \************************************************************/
60565/*! no static exports found */
60566/***/ (function(module, exports, __webpack_require__) {
60567
60568var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
60569
60570/**
60571 * Gets the map value for `key`.
60572 *
60573 * @private
60574 * @name get
60575 * @memberOf MapCache
60576 * @param {string} key The key of the value to get.
60577 * @returns {*} Returns the entry value.
60578 */
60579function mapCacheGet(key) {
60580 return getMapData(this, key).get(key);
60581}
60582
60583module.exports = mapCacheGet;
60584
60585
60586/***/ }),
60587
60588/***/ "../../node_modules/lodash/_mapCacheHas.js":
60589/*!************************************************************!*\
60590 !*** /root/amplify-js/node_modules/lodash/_mapCacheHas.js ***!
60591 \************************************************************/
60592/*! no static exports found */
60593/***/ (function(module, exports, __webpack_require__) {
60594
60595var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
60596
60597/**
60598 * Checks if a map value for `key` exists.
60599 *
60600 * @private
60601 * @name has
60602 * @memberOf MapCache
60603 * @param {string} key The key of the entry to check.
60604 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
60605 */
60606function mapCacheHas(key) {
60607 return getMapData(this, key).has(key);
60608}
60609
60610module.exports = mapCacheHas;
60611
60612
60613/***/ }),
60614
60615/***/ "../../node_modules/lodash/_mapCacheSet.js":
60616/*!************************************************************!*\
60617 !*** /root/amplify-js/node_modules/lodash/_mapCacheSet.js ***!
60618 \************************************************************/
60619/*! no static exports found */
60620/***/ (function(module, exports, __webpack_require__) {
60621
60622var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
60623
60624/**
60625 * Sets the map `key` to `value`.
60626 *
60627 * @private
60628 * @name set
60629 * @memberOf MapCache
60630 * @param {string} key The key of the value to set.
60631 * @param {*} value The value to set.
60632 * @returns {Object} Returns the map cache instance.
60633 */
60634function mapCacheSet(key, value) {
60635 var data = getMapData(this, key),
60636 size = data.size;
60637
60638 data.set(key, value);
60639 this.size += data.size == size ? 0 : 1;
60640 return this;
60641}
60642
60643module.exports = mapCacheSet;
60644
60645
60646/***/ }),
60647
60648/***/ "../../node_modules/lodash/_mapToArray.js":
60649/*!***********************************************************!*\
60650 !*** /root/amplify-js/node_modules/lodash/_mapToArray.js ***!
60651 \***********************************************************/
60652/*! no static exports found */
60653/***/ (function(module, exports) {
60654
60655/**
60656 * Converts `map` to its key-value pairs.
60657 *
60658 * @private
60659 * @param {Object} map The map to convert.
60660 * @returns {Array} Returns the key-value pairs.
60661 */
60662function mapToArray(map) {
60663 var index = -1,
60664 result = Array(map.size);
60665
60666 map.forEach(function(value, key) {
60667 result[++index] = [key, value];
60668 });
60669 return result;
60670}
60671
60672module.exports = mapToArray;
60673
60674
60675/***/ }),
60676
60677/***/ "../../node_modules/lodash/_memoizeCapped.js":
60678/*!**************************************************************!*\
60679 !*** /root/amplify-js/node_modules/lodash/_memoizeCapped.js ***!
60680 \**************************************************************/
60681/*! no static exports found */
60682/***/ (function(module, exports, __webpack_require__) {
60683
60684var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
60685
60686/** Used as the maximum memoize cache size. */
60687var MAX_MEMOIZE_SIZE = 500;
60688
60689/**
60690 * A specialized version of `_.memoize` which clears the memoized function's
60691 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
60692 *
60693 * @private
60694 * @param {Function} func The function to have its output memoized.
60695 * @returns {Function} Returns the new memoized function.
60696 */
60697function memoizeCapped(func) {
60698 var result = memoize(func, function(key) {
60699 if (cache.size === MAX_MEMOIZE_SIZE) {
60700 cache.clear();
60701 }
60702 return key;
60703 });
60704
60705 var cache = result.cache;
60706 return result;
60707}
60708
60709module.exports = memoizeCapped;
60710
60711
60712/***/ }),
60713
60714/***/ "../../node_modules/lodash/_nativeCreate.js":
60715/*!*************************************************************!*\
60716 !*** /root/amplify-js/node_modules/lodash/_nativeCreate.js ***!
60717 \*************************************************************/
60718/*! no static exports found */
60719/***/ (function(module, exports, __webpack_require__) {
60720
60721var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
60722
60723/* Built-in method references that are verified to be native. */
60724var nativeCreate = getNative(Object, 'create');
60725
60726module.exports = nativeCreate;
60727
60728
60729/***/ }),
60730
60731/***/ "../../node_modules/lodash/_nativeKeys.js":
60732/*!***********************************************************!*\
60733 !*** /root/amplify-js/node_modules/lodash/_nativeKeys.js ***!
60734 \***********************************************************/
60735/*! no static exports found */
60736/***/ (function(module, exports, __webpack_require__) {
60737
60738var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
60739
60740/* Built-in method references for those with the same name as other `lodash` methods. */
60741var nativeKeys = overArg(Object.keys, Object);
60742
60743module.exports = nativeKeys;
60744
60745
60746/***/ }),
60747
60748/***/ "../../node_modules/lodash/_nodeUtil.js":
60749/*!*********************************************************!*\
60750 !*** /root/amplify-js/node_modules/lodash/_nodeUtil.js ***!
60751 \*********************************************************/
60752/*! no static exports found */
60753/***/ (function(module, exports, __webpack_require__) {
60754
60755/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
60756
60757/** Detect free variable `exports`. */
60758var freeExports = true && exports && !exports.nodeType && exports;
60759
60760/** Detect free variable `module`. */
60761var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
60762
60763/** Detect the popular CommonJS extension `module.exports`. */
60764var moduleExports = freeModule && freeModule.exports === freeExports;
60765
60766/** Detect free variable `process` from Node.js. */
60767var freeProcess = moduleExports && freeGlobal.process;
60768
60769/** Used to access faster Node.js helpers. */
60770var nodeUtil = (function() {
60771 try {
60772 // Use `util.types` for Node.js 10+.
60773 var types = freeModule && freeModule.require && freeModule.require('util').types;
60774
60775 if (types) {
60776 return types;
60777 }
60778
60779 // Legacy `process.binding('util')` for Node.js < 10.
60780 return freeProcess && freeProcess.binding && freeProcess.binding('util');
60781 } catch (e) {}
60782}());
60783
60784module.exports = nodeUtil;
60785
60786/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
60787
60788/***/ }),
60789
60790/***/ "../../node_modules/lodash/_objectToString.js":
60791/*!***************************************************************!*\
60792 !*** /root/amplify-js/node_modules/lodash/_objectToString.js ***!
60793 \***************************************************************/
60794/*! no static exports found */
60795/***/ (function(module, exports) {
60796
60797/** Used for built-in method references. */
60798var objectProto = Object.prototype;
60799
60800/**
60801 * Used to resolve the
60802 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
60803 * of values.
60804 */
60805var nativeObjectToString = objectProto.toString;
60806
60807/**
60808 * Converts `value` to a string using `Object.prototype.toString`.
60809 *
60810 * @private
60811 * @param {*} value The value to convert.
60812 * @returns {string} Returns the converted string.
60813 */
60814function objectToString(value) {
60815 return nativeObjectToString.call(value);
60816}
60817
60818module.exports = objectToString;
60819
60820
60821/***/ }),
60822
60823/***/ "../../node_modules/lodash/_overArg.js":
60824/*!********************************************************!*\
60825 !*** /root/amplify-js/node_modules/lodash/_overArg.js ***!
60826 \********************************************************/
60827/*! no static exports found */
60828/***/ (function(module, exports) {
60829
60830/**
60831 * Creates a unary function that invokes `func` with its argument transformed.
60832 *
60833 * @private
60834 * @param {Function} func The function to wrap.
60835 * @param {Function} transform The argument transform.
60836 * @returns {Function} Returns the new function.
60837 */
60838function overArg(func, transform) {
60839 return function(arg) {
60840 return func(transform(arg));
60841 };
60842}
60843
60844module.exports = overArg;
60845
60846
60847/***/ }),
60848
60849/***/ "../../node_modules/lodash/_root.js":
60850/*!*****************************************************!*\
60851 !*** /root/amplify-js/node_modules/lodash/_root.js ***!
60852 \*****************************************************/
60853/*! no static exports found */
60854/***/ (function(module, exports, __webpack_require__) {
60855
60856var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
60857
60858/** Detect free variable `self`. */
60859var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
60860
60861/** Used as a reference to the global object. */
60862var root = freeGlobal || freeSelf || Function('return this')();
60863
60864module.exports = root;
60865
60866
60867/***/ }),
60868
60869/***/ "../../node_modules/lodash/_setCacheAdd.js":
60870/*!************************************************************!*\
60871 !*** /root/amplify-js/node_modules/lodash/_setCacheAdd.js ***!
60872 \************************************************************/
60873/*! no static exports found */
60874/***/ (function(module, exports) {
60875
60876/** Used to stand-in for `undefined` hash values. */
60877var HASH_UNDEFINED = '__lodash_hash_undefined__';
60878
60879/**
60880 * Adds `value` to the array cache.
60881 *
60882 * @private
60883 * @name add
60884 * @memberOf SetCache
60885 * @alias push
60886 * @param {*} value The value to cache.
60887 * @returns {Object} Returns the cache instance.
60888 */
60889function setCacheAdd(value) {
60890 this.__data__.set(value, HASH_UNDEFINED);
60891 return this;
60892}
60893
60894module.exports = setCacheAdd;
60895
60896
60897/***/ }),
60898
60899/***/ "../../node_modules/lodash/_setCacheHas.js":
60900/*!************************************************************!*\
60901 !*** /root/amplify-js/node_modules/lodash/_setCacheHas.js ***!
60902 \************************************************************/
60903/*! no static exports found */
60904/***/ (function(module, exports) {
60905
60906/**
60907 * Checks if `value` is in the array cache.
60908 *
60909 * @private
60910 * @name has
60911 * @memberOf SetCache
60912 * @param {*} value The value to search for.
60913 * @returns {number} Returns `true` if `value` is found, else `false`.
60914 */
60915function setCacheHas(value) {
60916 return this.__data__.has(value);
60917}
60918
60919module.exports = setCacheHas;
60920
60921
60922/***/ }),
60923
60924/***/ "../../node_modules/lodash/_setToArray.js":
60925/*!***********************************************************!*\
60926 !*** /root/amplify-js/node_modules/lodash/_setToArray.js ***!
60927 \***********************************************************/
60928/*! no static exports found */
60929/***/ (function(module, exports) {
60930
60931/**
60932 * Converts `set` to an array of its values.
60933 *
60934 * @private
60935 * @param {Object} set The set to convert.
60936 * @returns {Array} Returns the values.
60937 */
60938function setToArray(set) {
60939 var index = -1,
60940 result = Array(set.size);
60941
60942 set.forEach(function(value) {
60943 result[++index] = value;
60944 });
60945 return result;
60946}
60947
60948module.exports = setToArray;
60949
60950
60951/***/ }),
60952
60953/***/ "../../node_modules/lodash/_stackClear.js":
60954/*!***********************************************************!*\
60955 !*** /root/amplify-js/node_modules/lodash/_stackClear.js ***!
60956 \***********************************************************/
60957/*! no static exports found */
60958/***/ (function(module, exports, __webpack_require__) {
60959
60960var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
60961
60962/**
60963 * Removes all key-value entries from the stack.
60964 *
60965 * @private
60966 * @name clear
60967 * @memberOf Stack
60968 */
60969function stackClear() {
60970 this.__data__ = new ListCache;
60971 this.size = 0;
60972}
60973
60974module.exports = stackClear;
60975
60976
60977/***/ }),
60978
60979/***/ "../../node_modules/lodash/_stackDelete.js":
60980/*!************************************************************!*\
60981 !*** /root/amplify-js/node_modules/lodash/_stackDelete.js ***!
60982 \************************************************************/
60983/*! no static exports found */
60984/***/ (function(module, exports) {
60985
60986/**
60987 * Removes `key` and its value from the stack.
60988 *
60989 * @private
60990 * @name delete
60991 * @memberOf Stack
60992 * @param {string} key The key of the value to remove.
60993 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
60994 */
60995function stackDelete(key) {
60996 var data = this.__data__,
60997 result = data['delete'](key);
60998
60999 this.size = data.size;
61000 return result;
61001}
61002
61003module.exports = stackDelete;
61004
61005
61006/***/ }),
61007
61008/***/ "../../node_modules/lodash/_stackGet.js":
61009/*!*********************************************************!*\
61010 !*** /root/amplify-js/node_modules/lodash/_stackGet.js ***!
61011 \*********************************************************/
61012/*! no static exports found */
61013/***/ (function(module, exports) {
61014
61015/**
61016 * Gets the stack value for `key`.
61017 *
61018 * @private
61019 * @name get
61020 * @memberOf Stack
61021 * @param {string} key The key of the value to get.
61022 * @returns {*} Returns the entry value.
61023 */
61024function stackGet(key) {
61025 return this.__data__.get(key);
61026}
61027
61028module.exports = stackGet;
61029
61030
61031/***/ }),
61032
61033/***/ "../../node_modules/lodash/_stackHas.js":
61034/*!*********************************************************!*\
61035 !*** /root/amplify-js/node_modules/lodash/_stackHas.js ***!
61036 \*********************************************************/
61037/*! no static exports found */
61038/***/ (function(module, exports) {
61039
61040/**
61041 * Checks if a stack value for `key` exists.
61042 *
61043 * @private
61044 * @name has
61045 * @memberOf Stack
61046 * @param {string} key The key of the entry to check.
61047 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
61048 */
61049function stackHas(key) {
61050 return this.__data__.has(key);
61051}
61052
61053module.exports = stackHas;
61054
61055
61056/***/ }),
61057
61058/***/ "../../node_modules/lodash/_stackSet.js":
61059/*!*********************************************************!*\
61060 !*** /root/amplify-js/node_modules/lodash/_stackSet.js ***!
61061 \*********************************************************/
61062/*! no static exports found */
61063/***/ (function(module, exports, __webpack_require__) {
61064
61065var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
61066 Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
61067 MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
61068
61069/** Used as the size to enable large array optimizations. */
61070var LARGE_ARRAY_SIZE = 200;
61071
61072/**
61073 * Sets the stack `key` to `value`.
61074 *
61075 * @private
61076 * @name set
61077 * @memberOf Stack
61078 * @param {string} key The key of the value to set.
61079 * @param {*} value The value to set.
61080 * @returns {Object} Returns the stack cache instance.
61081 */
61082function stackSet(key, value) {
61083 var data = this.__data__;
61084 if (data instanceof ListCache) {
61085 var pairs = data.__data__;
61086 if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
61087 pairs.push([key, value]);
61088 this.size = ++data.size;
61089 return this;
61090 }
61091 data = this.__data__ = new MapCache(pairs);
61092 }
61093 data.set(key, value);
61094 this.size = data.size;
61095 return this;
61096}
61097
61098module.exports = stackSet;
61099
61100
61101/***/ }),
61102
61103/***/ "../../node_modules/lodash/_stringToPath.js":
61104/*!*************************************************************!*\
61105 !*** /root/amplify-js/node_modules/lodash/_stringToPath.js ***!
61106 \*************************************************************/
61107/*! no static exports found */
61108/***/ (function(module, exports, __webpack_require__) {
61109
61110var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
61111
61112/** Used to match property names within property paths. */
61113var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
61114
61115/** Used to match backslashes in property paths. */
61116var reEscapeChar = /\\(\\)?/g;
61117
61118/**
61119 * Converts `string` to a property path array.
61120 *
61121 * @private
61122 * @param {string} string The string to convert.
61123 * @returns {Array} Returns the property path array.
61124 */
61125var stringToPath = memoizeCapped(function(string) {
61126 var result = [];
61127 if (string.charCodeAt(0) === 46 /* . */) {
61128 result.push('');
61129 }
61130 string.replace(rePropName, function(match, number, quote, subString) {
61131 result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
61132 });
61133 return result;
61134});
61135
61136module.exports = stringToPath;
61137
61138
61139/***/ }),
61140
61141/***/ "../../node_modules/lodash/_toKey.js":
61142/*!******************************************************!*\
61143 !*** /root/amplify-js/node_modules/lodash/_toKey.js ***!
61144 \******************************************************/
61145/*! no static exports found */
61146/***/ (function(module, exports, __webpack_require__) {
61147
61148var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
61149
61150/** Used as references for various `Number` constants. */
61151var INFINITY = 1 / 0;
61152
61153/**
61154 * Converts `value` to a string key if it's not a string or symbol.
61155 *
61156 * @private
61157 * @param {*} value The value to inspect.
61158 * @returns {string|symbol} Returns the key.
61159 */
61160function toKey(value) {
61161 if (typeof value == 'string' || isSymbol(value)) {
61162 return value;
61163 }
61164 var result = (value + '');
61165 return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
61166}
61167
61168module.exports = toKey;
61169
61170
61171/***/ }),
61172
61173/***/ "../../node_modules/lodash/_toSource.js":
61174/*!*********************************************************!*\
61175 !*** /root/amplify-js/node_modules/lodash/_toSource.js ***!
61176 \*********************************************************/
61177/*! no static exports found */
61178/***/ (function(module, exports) {
61179
61180/** Used for built-in method references. */
61181var funcProto = Function.prototype;
61182
61183/** Used to resolve the decompiled source of functions. */
61184var funcToString = funcProto.toString;
61185
61186/**
61187 * Converts `func` to its source code.
61188 *
61189 * @private
61190 * @param {Function} func The function to convert.
61191 * @returns {string} Returns the source code.
61192 */
61193function toSource(func) {
61194 if (func != null) {
61195 try {
61196 return funcToString.call(func);
61197 } catch (e) {}
61198 try {
61199 return (func + '');
61200 } catch (e) {}
61201 }
61202 return '';
61203}
61204
61205module.exports = toSource;
61206
61207
61208/***/ }),
61209
61210/***/ "../../node_modules/lodash/eq.js":
61211/*!**************************************************!*\
61212 !*** /root/amplify-js/node_modules/lodash/eq.js ***!
61213 \**************************************************/
61214/*! no static exports found */
61215/***/ (function(module, exports) {
61216
61217/**
61218 * Performs a
61219 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
61220 * comparison between two values to determine if they are equivalent.
61221 *
61222 * @static
61223 * @memberOf _
61224 * @since 4.0.0
61225 * @category Lang
61226 * @param {*} value The value to compare.
61227 * @param {*} other The other value to compare.
61228 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
61229 * @example
61230 *
61231 * var object = { 'a': 1 };
61232 * var other = { 'a': 1 };
61233 *
61234 * _.eq(object, object);
61235 * // => true
61236 *
61237 * _.eq(object, other);
61238 * // => false
61239 *
61240 * _.eq('a', 'a');
61241 * // => true
61242 *
61243 * _.eq('a', Object('a'));
61244 * // => false
61245 *
61246 * _.eq(NaN, NaN);
61247 * // => true
61248 */
61249function eq(value, other) {
61250 return value === other || (value !== value && other !== other);
61251}
61252
61253module.exports = eq;
61254
61255
61256/***/ }),
61257
61258/***/ "../../node_modules/lodash/get.js":
61259/*!***************************************************!*\
61260 !*** /root/amplify-js/node_modules/lodash/get.js ***!
61261 \***************************************************/
61262/*! no static exports found */
61263/***/ (function(module, exports, __webpack_require__) {
61264
61265var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
61266
61267/**
61268 * Gets the value at `path` of `object`. If the resolved value is
61269 * `undefined`, the `defaultValue` is returned in its place.
61270 *
61271 * @static
61272 * @memberOf _
61273 * @since 3.7.0
61274 * @category Object
61275 * @param {Object} object The object to query.
61276 * @param {Array|string} path The path of the property to get.
61277 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
61278 * @returns {*} Returns the resolved value.
61279 * @example
61280 *
61281 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
61282 *
61283 * _.get(object, 'a[0].b.c');
61284 * // => 3
61285 *
61286 * _.get(object, ['a', '0', 'b', 'c']);
61287 * // => 3
61288 *
61289 * _.get(object, 'a.b.c', 'default');
61290 * // => 'default'
61291 */
61292function get(object, path, defaultValue) {
61293 var result = object == null ? undefined : baseGet(object, path);
61294 return result === undefined ? defaultValue : result;
61295}
61296
61297module.exports = get;
61298
61299
61300/***/ }),
61301
61302/***/ "../../node_modules/lodash/isArguments.js":
61303/*!***********************************************************!*\
61304 !*** /root/amplify-js/node_modules/lodash/isArguments.js ***!
61305 \***********************************************************/
61306/*! no static exports found */
61307/***/ (function(module, exports, __webpack_require__) {
61308
61309var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
61310 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
61311
61312/** Used for built-in method references. */
61313var objectProto = Object.prototype;
61314
61315/** Used to check objects for own properties. */
61316var hasOwnProperty = objectProto.hasOwnProperty;
61317
61318/** Built-in value references. */
61319var propertyIsEnumerable = objectProto.propertyIsEnumerable;
61320
61321/**
61322 * Checks if `value` is likely an `arguments` object.
61323 *
61324 * @static
61325 * @memberOf _
61326 * @since 0.1.0
61327 * @category Lang
61328 * @param {*} value The value to check.
61329 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
61330 * else `false`.
61331 * @example
61332 *
61333 * _.isArguments(function() { return arguments; }());
61334 * // => true
61335 *
61336 * _.isArguments([1, 2, 3]);
61337 * // => false
61338 */
61339var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
61340 return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
61341 !propertyIsEnumerable.call(value, 'callee');
61342};
61343
61344module.exports = isArguments;
61345
61346
61347/***/ }),
61348
61349/***/ "../../node_modules/lodash/isArray.js":
61350/*!*******************************************************!*\
61351 !*** /root/amplify-js/node_modules/lodash/isArray.js ***!
61352 \*******************************************************/
61353/*! no static exports found */
61354/***/ (function(module, exports) {
61355
61356/**
61357 * Checks if `value` is classified as an `Array` object.
61358 *
61359 * @static
61360 * @memberOf _
61361 * @since 0.1.0
61362 * @category Lang
61363 * @param {*} value The value to check.
61364 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
61365 * @example
61366 *
61367 * _.isArray([1, 2, 3]);
61368 * // => true
61369 *
61370 * _.isArray(document.body.children);
61371 * // => false
61372 *
61373 * _.isArray('abc');
61374 * // => false
61375 *
61376 * _.isArray(_.noop);
61377 * // => false
61378 */
61379var isArray = Array.isArray;
61380
61381module.exports = isArray;
61382
61383
61384/***/ }),
61385
61386/***/ "../../node_modules/lodash/isArrayLike.js":
61387/*!***********************************************************!*\
61388 !*** /root/amplify-js/node_modules/lodash/isArrayLike.js ***!
61389 \***********************************************************/
61390/*! no static exports found */
61391/***/ (function(module, exports, __webpack_require__) {
61392
61393var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
61394 isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
61395
61396/**
61397 * Checks if `value` is array-like. A value is considered array-like if it's
61398 * not a function and has a `value.length` that's an integer greater than or
61399 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
61400 *
61401 * @static
61402 * @memberOf _
61403 * @since 4.0.0
61404 * @category Lang
61405 * @param {*} value The value to check.
61406 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
61407 * @example
61408 *
61409 * _.isArrayLike([1, 2, 3]);
61410 * // => true
61411 *
61412 * _.isArrayLike(document.body.children);
61413 * // => true
61414 *
61415 * _.isArrayLike('abc');
61416 * // => true
61417 *
61418 * _.isArrayLike(_.noop);
61419 * // => false
61420 */
61421function isArrayLike(value) {
61422 return value != null && isLength(value.length) && !isFunction(value);
61423}
61424
61425module.exports = isArrayLike;
61426
61427
61428/***/ }),
61429
61430/***/ "../../node_modules/lodash/isBuffer.js":
61431/*!********************************************************!*\
61432 !*** /root/amplify-js/node_modules/lodash/isBuffer.js ***!
61433 \********************************************************/
61434/*! no static exports found */
61435/***/ (function(module, exports, __webpack_require__) {
61436
61437/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
61438 stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
61439
61440/** Detect free variable `exports`. */
61441var freeExports = true && exports && !exports.nodeType && exports;
61442
61443/** Detect free variable `module`. */
61444var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
61445
61446/** Detect the popular CommonJS extension `module.exports`. */
61447var moduleExports = freeModule && freeModule.exports === freeExports;
61448
61449/** Built-in value references. */
61450var Buffer = moduleExports ? root.Buffer : undefined;
61451
61452/* Built-in method references for those with the same name as other `lodash` methods. */
61453var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
61454
61455/**
61456 * Checks if `value` is a buffer.
61457 *
61458 * @static
61459 * @memberOf _
61460 * @since 4.3.0
61461 * @category Lang
61462 * @param {*} value The value to check.
61463 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
61464 * @example
61465 *
61466 * _.isBuffer(new Buffer(2));
61467 * // => true
61468 *
61469 * _.isBuffer(new Uint8Array(2));
61470 * // => false
61471 */
61472var isBuffer = nativeIsBuffer || stubFalse;
61473
61474module.exports = isBuffer;
61475
61476/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
61477
61478/***/ }),
61479
61480/***/ "../../node_modules/lodash/isEmpty.js":
61481/*!*******************************************************!*\
61482 !*** /root/amplify-js/node_modules/lodash/isEmpty.js ***!
61483 \*******************************************************/
61484/*! no static exports found */
61485/***/ (function(module, exports, __webpack_require__) {
61486
61487var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
61488 getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
61489 isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
61490 isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
61491 isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
61492 isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
61493 isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
61494 isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
61495
61496/** `Object#toString` result references. */
61497var mapTag = '[object Map]',
61498 setTag = '[object Set]';
61499
61500/** Used for built-in method references. */
61501var objectProto = Object.prototype;
61502
61503/** Used to check objects for own properties. */
61504var hasOwnProperty = objectProto.hasOwnProperty;
61505
61506/**
61507 * Checks if `value` is an empty object, collection, map, or set.
61508 *
61509 * Objects are considered empty if they have no own enumerable string keyed
61510 * properties.
61511 *
61512 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
61513 * jQuery-like collections are considered empty if they have a `length` of `0`.
61514 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
61515 *
61516 * @static
61517 * @memberOf _
61518 * @since 0.1.0
61519 * @category Lang
61520 * @param {*} value The value to check.
61521 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
61522 * @example
61523 *
61524 * _.isEmpty(null);
61525 * // => true
61526 *
61527 * _.isEmpty(true);
61528 * // => true
61529 *
61530 * _.isEmpty(1);
61531 * // => true
61532 *
61533 * _.isEmpty([1, 2, 3]);
61534 * // => false
61535 *
61536 * _.isEmpty({ 'a': 1 });
61537 * // => false
61538 */
61539function isEmpty(value) {
61540 if (value == null) {
61541 return true;
61542 }
61543 if (isArrayLike(value) &&
61544 (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
61545 isBuffer(value) || isTypedArray(value) || isArguments(value))) {
61546 return !value.length;
61547 }
61548 var tag = getTag(value);
61549 if (tag == mapTag || tag == setTag) {
61550 return !value.size;
61551 }
61552 if (isPrototype(value)) {
61553 return !baseKeys(value).length;
61554 }
61555 for (var key in value) {
61556 if (hasOwnProperty.call(value, key)) {
61557 return false;
61558 }
61559 }
61560 return true;
61561}
61562
61563module.exports = isEmpty;
61564
61565
61566/***/ }),
61567
61568/***/ "../../node_modules/lodash/isEqual.js":
61569/*!*******************************************************!*\
61570 !*** /root/amplify-js/node_modules/lodash/isEqual.js ***!
61571 \*******************************************************/
61572/*! no static exports found */
61573/***/ (function(module, exports, __webpack_require__) {
61574
61575var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
61576
61577/**
61578 * Performs a deep comparison between two values to determine if they are
61579 * equivalent.
61580 *
61581 * **Note:** This method supports comparing arrays, array buffers, booleans,
61582 * date objects, error objects, maps, numbers, `Object` objects, regexes,
61583 * sets, strings, symbols, and typed arrays. `Object` objects are compared
61584 * by their own, not inherited, enumerable properties. Functions and DOM
61585 * nodes are compared by strict equality, i.e. `===`.
61586 *
61587 * @static
61588 * @memberOf _
61589 * @since 0.1.0
61590 * @category Lang
61591 * @param {*} value The value to compare.
61592 * @param {*} other The other value to compare.
61593 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
61594 * @example
61595 *
61596 * var object = { 'a': 1 };
61597 * var other = { 'a': 1 };
61598 *
61599 * _.isEqual(object, other);
61600 * // => true
61601 *
61602 * object === other;
61603 * // => false
61604 */
61605function isEqual(value, other) {
61606 return baseIsEqual(value, other);
61607}
61608
61609module.exports = isEqual;
61610
61611
61612/***/ }),
61613
61614/***/ "../../node_modules/lodash/isFunction.js":
61615/*!**********************************************************!*\
61616 !*** /root/amplify-js/node_modules/lodash/isFunction.js ***!
61617 \**********************************************************/
61618/*! no static exports found */
61619/***/ (function(module, exports, __webpack_require__) {
61620
61621var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
61622 isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
61623
61624/** `Object#toString` result references. */
61625var asyncTag = '[object AsyncFunction]',
61626 funcTag = '[object Function]',
61627 genTag = '[object GeneratorFunction]',
61628 proxyTag = '[object Proxy]';
61629
61630/**
61631 * Checks if `value` is classified as a `Function` object.
61632 *
61633 * @static
61634 * @memberOf _
61635 * @since 0.1.0
61636 * @category Lang
61637 * @param {*} value The value to check.
61638 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
61639 * @example
61640 *
61641 * _.isFunction(_);
61642 * // => true
61643 *
61644 * _.isFunction(/abc/);
61645 * // => false
61646 */
61647function isFunction(value) {
61648 if (!isObject(value)) {
61649 return false;
61650 }
61651 // The use of `Object#toString` avoids issues with the `typeof` operator
61652 // in Safari 9 which returns 'object' for typed arrays and other constructors.
61653 var tag = baseGetTag(value);
61654 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
61655}
61656
61657module.exports = isFunction;
61658
61659
61660/***/ }),
61661
61662/***/ "../../node_modules/lodash/isLength.js":
61663/*!********************************************************!*\
61664 !*** /root/amplify-js/node_modules/lodash/isLength.js ***!
61665 \********************************************************/
61666/*! no static exports found */
61667/***/ (function(module, exports) {
61668
61669/** Used as references for various `Number` constants. */
61670var MAX_SAFE_INTEGER = 9007199254740991;
61671
61672/**
61673 * Checks if `value` is a valid array-like length.
61674 *
61675 * **Note:** This method is loosely based on
61676 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
61677 *
61678 * @static
61679 * @memberOf _
61680 * @since 4.0.0
61681 * @category Lang
61682 * @param {*} value The value to check.
61683 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
61684 * @example
61685 *
61686 * _.isLength(3);
61687 * // => true
61688 *
61689 * _.isLength(Number.MIN_VALUE);
61690 * // => false
61691 *
61692 * _.isLength(Infinity);
61693 * // => false
61694 *
61695 * _.isLength('3');
61696 * // => false
61697 */
61698function isLength(value) {
61699 return typeof value == 'number' &&
61700 value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
61701}
61702
61703module.exports = isLength;
61704
61705
61706/***/ }),
61707
61708/***/ "../../node_modules/lodash/isObject.js":
61709/*!********************************************************!*\
61710 !*** /root/amplify-js/node_modules/lodash/isObject.js ***!
61711 \********************************************************/
61712/*! no static exports found */
61713/***/ (function(module, exports) {
61714
61715/**
61716 * Checks if `value` is the
61717 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
61718 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
61719 *
61720 * @static
61721 * @memberOf _
61722 * @since 0.1.0
61723 * @category Lang
61724 * @param {*} value The value to check.
61725 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
61726 * @example
61727 *
61728 * _.isObject({});
61729 * // => true
61730 *
61731 * _.isObject([1, 2, 3]);
61732 * // => true
61733 *
61734 * _.isObject(_.noop);
61735 * // => true
61736 *
61737 * _.isObject(null);
61738 * // => false
61739 */
61740function isObject(value) {
61741 var type = typeof value;
61742 return value != null && (type == 'object' || type == 'function');
61743}
61744
61745module.exports = isObject;
61746
61747
61748/***/ }),
61749
61750/***/ "../../node_modules/lodash/isObjectLike.js":
61751/*!************************************************************!*\
61752 !*** /root/amplify-js/node_modules/lodash/isObjectLike.js ***!
61753 \************************************************************/
61754/*! no static exports found */
61755/***/ (function(module, exports) {
61756
61757/**
61758 * Checks if `value` is object-like. A value is object-like if it's not `null`
61759 * and has a `typeof` result of "object".
61760 *
61761 * @static
61762 * @memberOf _
61763 * @since 4.0.0
61764 * @category Lang
61765 * @param {*} value The value to check.
61766 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
61767 * @example
61768 *
61769 * _.isObjectLike({});
61770 * // => true
61771 *
61772 * _.isObjectLike([1, 2, 3]);
61773 * // => true
61774 *
61775 * _.isObjectLike(_.noop);
61776 * // => false
61777 *
61778 * _.isObjectLike(null);
61779 * // => false
61780 */
61781function isObjectLike(value) {
61782 return value != null && typeof value == 'object';
61783}
61784
61785module.exports = isObjectLike;
61786
61787
61788/***/ }),
61789
61790/***/ "../../node_modules/lodash/isSymbol.js":
61791/*!********************************************************!*\
61792 !*** /root/amplify-js/node_modules/lodash/isSymbol.js ***!
61793 \********************************************************/
61794/*! no static exports found */
61795/***/ (function(module, exports, __webpack_require__) {
61796
61797var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
61798 isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
61799
61800/** `Object#toString` result references. */
61801var symbolTag = '[object Symbol]';
61802
61803/**
61804 * Checks if `value` is classified as a `Symbol` primitive or object.
61805 *
61806 * @static
61807 * @memberOf _
61808 * @since 4.0.0
61809 * @category Lang
61810 * @param {*} value The value to check.
61811 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
61812 * @example
61813 *
61814 * _.isSymbol(Symbol.iterator);
61815 * // => true
61816 *
61817 * _.isSymbol('abc');
61818 * // => false
61819 */
61820function isSymbol(value) {
61821 return typeof value == 'symbol' ||
61822 (isObjectLike(value) && baseGetTag(value) == symbolTag);
61823}
61824
61825module.exports = isSymbol;
61826
61827
61828/***/ }),
61829
61830/***/ "../../node_modules/lodash/isTypedArray.js":
61831/*!************************************************************!*\
61832 !*** /root/amplify-js/node_modules/lodash/isTypedArray.js ***!
61833 \************************************************************/
61834/*! no static exports found */
61835/***/ (function(module, exports, __webpack_require__) {
61836
61837var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
61838 baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
61839 nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
61840
61841/* Node.js helper references. */
61842var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
61843
61844/**
61845 * Checks if `value` is classified as a typed array.
61846 *
61847 * @static
61848 * @memberOf _
61849 * @since 3.0.0
61850 * @category Lang
61851 * @param {*} value The value to check.
61852 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
61853 * @example
61854 *
61855 * _.isTypedArray(new Uint8Array);
61856 * // => true
61857 *
61858 * _.isTypedArray([]);
61859 * // => false
61860 */
61861var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
61862
61863module.exports = isTypedArray;
61864
61865
61866/***/ }),
61867
61868/***/ "../../node_modules/lodash/keys.js":
61869/*!****************************************************!*\
61870 !*** /root/amplify-js/node_modules/lodash/keys.js ***!
61871 \****************************************************/
61872/*! no static exports found */
61873/***/ (function(module, exports, __webpack_require__) {
61874
61875var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
61876 baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
61877 isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
61878
61879/**
61880 * Creates an array of the own enumerable property names of `object`.
61881 *
61882 * **Note:** Non-object values are coerced to objects. See the
61883 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
61884 * for more details.
61885 *
61886 * @static
61887 * @since 0.1.0
61888 * @memberOf _
61889 * @category Object
61890 * @param {Object} object The object to query.
61891 * @returns {Array} Returns the array of property names.
61892 * @example
61893 *
61894 * function Foo() {
61895 * this.a = 1;
61896 * this.b = 2;
61897 * }
61898 *
61899 * Foo.prototype.c = 3;
61900 *
61901 * _.keys(new Foo);
61902 * // => ['a', 'b'] (iteration order is not guaranteed)
61903 *
61904 * _.keys('hi');
61905 * // => ['0', '1']
61906 */
61907function keys(object) {
61908 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
61909}
61910
61911module.exports = keys;
61912
61913
61914/***/ }),
61915
61916/***/ "../../node_modules/lodash/memoize.js":
61917/*!*******************************************************!*\
61918 !*** /root/amplify-js/node_modules/lodash/memoize.js ***!
61919 \*******************************************************/
61920/*! no static exports found */
61921/***/ (function(module, exports, __webpack_require__) {
61922
61923var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
61924
61925/** Error message constants. */
61926var FUNC_ERROR_TEXT = 'Expected a function';
61927
61928/**
61929 * Creates a function that memoizes the result of `func`. If `resolver` is
61930 * provided, it determines the cache key for storing the result based on the
61931 * arguments provided to the memoized function. By default, the first argument
61932 * provided to the memoized function is used as the map cache key. The `func`
61933 * is invoked with the `this` binding of the memoized function.
61934 *
61935 * **Note:** The cache is exposed as the `cache` property on the memoized
61936 * function. Its creation may be customized by replacing the `_.memoize.Cache`
61937 * constructor with one whose instances implement the
61938 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
61939 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
61940 *
61941 * @static
61942 * @memberOf _
61943 * @since 0.1.0
61944 * @category Function
61945 * @param {Function} func The function to have its output memoized.
61946 * @param {Function} [resolver] The function to resolve the cache key.
61947 * @returns {Function} Returns the new memoized function.
61948 * @example
61949 *
61950 * var object = { 'a': 1, 'b': 2 };
61951 * var other = { 'c': 3, 'd': 4 };
61952 *
61953 * var values = _.memoize(_.values);
61954 * values(object);
61955 * // => [1, 2]
61956 *
61957 * values(other);
61958 * // => [3, 4]
61959 *
61960 * object.a = 2;
61961 * values(object);
61962 * // => [1, 2]
61963 *
61964 * // Modify the result cache.
61965 * values.cache.set(object, ['a', 'b']);
61966 * values(object);
61967 * // => ['a', 'b']
61968 *
61969 * // Replace `_.memoize.Cache`.
61970 * _.memoize.Cache = WeakMap;
61971 */
61972function memoize(func, resolver) {
61973 if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
61974 throw new TypeError(FUNC_ERROR_TEXT);
61975 }
61976 var memoized = function() {
61977 var args = arguments,
61978 key = resolver ? resolver.apply(this, args) : args[0],
61979 cache = memoized.cache;
61980
61981 if (cache.has(key)) {
61982 return cache.get(key);
61983 }
61984 var result = func.apply(this, args);
61985 memoized.cache = cache.set(key, result) || cache;
61986 return result;
61987 };
61988 memoized.cache = new (memoize.Cache || MapCache);
61989 return memoized;
61990}
61991
61992// Expose `MapCache`.
61993memoize.Cache = MapCache;
61994
61995module.exports = memoize;
61996
61997
61998/***/ }),
61999
62000/***/ "../../node_modules/lodash/stubArray.js":
62001/*!*********************************************************!*\
62002 !*** /root/amplify-js/node_modules/lodash/stubArray.js ***!
62003 \*********************************************************/
62004/*! no static exports found */
62005/***/ (function(module, exports) {
62006
62007/**
62008 * This method returns a new empty array.
62009 *
62010 * @static
62011 * @memberOf _
62012 * @since 4.13.0
62013 * @category Util
62014 * @returns {Array} Returns the new empty array.
62015 * @example
62016 *
62017 * var arrays = _.times(2, _.stubArray);
62018 *
62019 * console.log(arrays);
62020 * // => [[], []]
62021 *
62022 * console.log(arrays[0] === arrays[1]);
62023 * // => false
62024 */
62025function stubArray() {
62026 return [];
62027}
62028
62029module.exports = stubArray;
62030
62031
62032/***/ }),
62033
62034/***/ "../../node_modules/lodash/stubFalse.js":
62035/*!*********************************************************!*\
62036 !*** /root/amplify-js/node_modules/lodash/stubFalse.js ***!
62037 \*********************************************************/
62038/*! no static exports found */
62039/***/ (function(module, exports) {
62040
62041/**
62042 * This method returns `false`.
62043 *
62044 * @static
62045 * @memberOf _
62046 * @since 4.13.0
62047 * @category Util
62048 * @returns {boolean} Returns `false`.
62049 * @example
62050 *
62051 * _.times(2, _.stubFalse);
62052 * // => [false, false]
62053 */
62054function stubFalse() {
62055 return false;
62056}
62057
62058module.exports = stubFalse;
62059
62060
62061/***/ }),
62062
62063/***/ "../../node_modules/lodash/toString.js":
62064/*!********************************************************!*\
62065 !*** /root/amplify-js/node_modules/lodash/toString.js ***!
62066 \********************************************************/
62067/*! no static exports found */
62068/***/ (function(module, exports, __webpack_require__) {
62069
62070var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
62071
62072/**
62073 * Converts `value` to a string. An empty string is returned for `null`
62074 * and `undefined` values. The sign of `-0` is preserved.
62075 *
62076 * @static
62077 * @memberOf _
62078 * @since 4.0.0
62079 * @category Lang
62080 * @param {*} value The value to convert.
62081 * @returns {string} Returns the converted string.
62082 * @example
62083 *
62084 * _.toString(null);
62085 * // => ''
62086 *
62087 * _.toString(-0);
62088 * // => '-0'
62089 *
62090 * _.toString([1, 2, 3]);
62091 * // => '1,2,3'
62092 */
62093function toString(value) {
62094 return value == null ? '' : baseToString(value);
62095}
62096
62097module.exports = toString;
62098
62099
62100/***/ }),
62101
62102/***/ "../../node_modules/tslib/tslib.es6.js":
62103/*!********************************************************!*\
62104 !*** /root/amplify-js/node_modules/tslib/tslib.es6.js ***!
62105 \********************************************************/
62106/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
62107/***/ (function(module, __webpack_exports__, __webpack_require__) {
62108
62109"use strict";
62110__webpack_require__.r(__webpack_exports__);
62111/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
62112/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
62113/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
62114/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
62115/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
62116/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
62117/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
62118/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
62119/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
62120/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
62121/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
62122/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
62123/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
62124/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
62125/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
62126/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
62127/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
62128/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
62129/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
62130/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
62131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
62132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
62133/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
62134/*! *****************************************************************************
62135Copyright (c) Microsoft Corporation.
62136
62137Permission to use, copy, modify, and/or distribute this software for any
62138purpose with or without fee is hereby granted.
62139
62140THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
62141REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
62142AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
62143INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
62144LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
62145OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
62146PERFORMANCE OF THIS SOFTWARE.
62147***************************************************************************** */
62148/* global Reflect, Promise */
62149
62150var extendStatics = function(d, b) {
62151 extendStatics = Object.setPrototypeOf ||
62152 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
62153 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
62154 return extendStatics(d, b);
62155};
62156
62157function __extends(d, b) {
62158 extendStatics(d, b);
62159 function __() { this.constructor = d; }
62160 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62161}
62162
62163var __assign = function() {
62164 __assign = Object.assign || function __assign(t) {
62165 for (var s, i = 1, n = arguments.length; i < n; i++) {
62166 s = arguments[i];
62167 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
62168 }
62169 return t;
62170 }
62171 return __assign.apply(this, arguments);
62172}
62173
62174function __rest(s, e) {
62175 var t = {};
62176 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
62177 t[p] = s[p];
62178 if (s != null && typeof Object.getOwnPropertySymbols === "function")
62179 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
62180 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
62181 t[p[i]] = s[p[i]];
62182 }
62183 return t;
62184}
62185
62186function __decorate(decorators, target, key, desc) {
62187 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
62188 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62189 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;
62190 return c > 3 && r && Object.defineProperty(target, key, r), r;
62191}
62192
62193function __param(paramIndex, decorator) {
62194 return function (target, key) { decorator(target, key, paramIndex); }
62195}
62196
62197function __metadata(metadataKey, metadataValue) {
62198 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
62199}
62200
62201function __awaiter(thisArg, _arguments, P, generator) {
62202 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
62203 return new (P || (P = Promise))(function (resolve, reject) {
62204 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
62205 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
62206 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
62207 step((generator = generator.apply(thisArg, _arguments || [])).next());
62208 });
62209}
62210
62211function __generator(thisArg, body) {
62212 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
62213 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
62214 function verb(n) { return function (v) { return step([n, v]); }; }
62215 function step(op) {
62216 if (f) throw new TypeError("Generator is already executing.");
62217 while (_) try {
62218 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;
62219 if (y = 0, t) op = [op[0] & 2, t.value];
62220 switch (op[0]) {
62221 case 0: case 1: t = op; break;
62222 case 4: _.label++; return { value: op[1], done: false };
62223 case 5: _.label++; y = op[1]; op = [0]; continue;
62224 case 7: op = _.ops.pop(); _.trys.pop(); continue;
62225 default:
62226 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
62227 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62228 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
62229 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
62230 if (t[2]) _.ops.pop();
62231 _.trys.pop(); continue;
62232 }
62233 op = body.call(thisArg, _);
62234 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
62235 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
62236 }
62237}
62238
62239function __createBinding(o, m, k, k2) {
62240 if (k2 === undefined) k2 = k;
62241 o[k2] = m[k];
62242}
62243
62244function __exportStar(m, exports) {
62245 for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
62246}
62247
62248function __values(o) {
62249 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
62250 if (m) return m.call(o);
62251 if (o && typeof o.length === "number") return {
62252 next: function () {
62253 if (o && i >= o.length) o = void 0;
62254 return { value: o && o[i++], done: !o };
62255 }
62256 };
62257 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
62258}
62259
62260function __read(o, n) {
62261 var m = typeof Symbol === "function" && o[Symbol.iterator];
62262 if (!m) return o;
62263 var i = m.call(o), r, ar = [], e;
62264 try {
62265 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
62266 }
62267 catch (error) { e = { error: error }; }
62268 finally {
62269 try {
62270 if (r && !r.done && (m = i["return"])) m.call(i);
62271 }
62272 finally { if (e) throw e.error; }
62273 }
62274 return ar;
62275}
62276
62277function __spread() {
62278 for (var ar = [], i = 0; i < arguments.length; i++)
62279 ar = ar.concat(__read(arguments[i]));
62280 return ar;
62281}
62282
62283function __spreadArrays() {
62284 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
62285 for (var r = Array(s), k = 0, i = 0; i < il; i++)
62286 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
62287 r[k] = a[j];
62288 return r;
62289};
62290
62291function __await(v) {
62292 return this instanceof __await ? (this.v = v, this) : new __await(v);
62293}
62294
62295function __asyncGenerator(thisArg, _arguments, generator) {
62296 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
62297 var g = generator.apply(thisArg, _arguments || []), i, q = [];
62298 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
62299 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); }); }; }
62300 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
62301 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
62302 function fulfill(value) { resume("next", value); }
62303 function reject(value) { resume("throw", value); }
62304 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
62305}
62306
62307function __asyncDelegator(o) {
62308 var i, p;
62309 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
62310 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; }
62311}
62312
62313function __asyncValues(o) {
62314 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
62315 var m = o[Symbol.asyncIterator], i;
62316 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);
62317 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); }); }; }
62318 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
62319}
62320
62321function __makeTemplateObject(cooked, raw) {
62322 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
62323 return cooked;
62324};
62325
62326function __importStar(mod) {
62327 if (mod && mod.__esModule) return mod;
62328 var result = {};
62329 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
62330 result.default = mod;
62331 return result;
62332}
62333
62334function __importDefault(mod) {
62335 return (mod && mod.__esModule) ? mod : { default: mod };
62336}
62337
62338function __classPrivateFieldGet(receiver, privateMap) {
62339 if (!privateMap.has(receiver)) {
62340 throw new TypeError("attempted to get private field on non-instance");
62341 }
62342 return privateMap.get(receiver);
62343}
62344
62345function __classPrivateFieldSet(receiver, privateMap, value) {
62346 if (!privateMap.has(receiver)) {
62347 throw new TypeError("attempted to set private field on non-instance");
62348 }
62349 privateMap.set(receiver, value);
62350 return value;
62351}
62352
62353
62354/***/ }),
62355
62356/***/ "../../node_modules/uuid/index.js":
62357/*!***************************************************!*\
62358 !*** /root/amplify-js/node_modules/uuid/index.js ***!
62359 \***************************************************/
62360/*! no static exports found */
62361/***/ (function(module, exports, __webpack_require__) {
62362
62363var v1 = __webpack_require__(/*! ./v1 */ "../../node_modules/uuid/v1.js");
62364var v4 = __webpack_require__(/*! ./v4 */ "../../node_modules/uuid/v4.js");
62365
62366var uuid = v4;
62367uuid.v1 = v1;
62368uuid.v4 = v4;
62369
62370module.exports = uuid;
62371
62372
62373/***/ }),
62374
62375/***/ "../../node_modules/uuid/lib/bytesToUuid.js":
62376/*!*************************************************************!*\
62377 !*** /root/amplify-js/node_modules/uuid/lib/bytesToUuid.js ***!
62378 \*************************************************************/
62379/*! no static exports found */
62380/***/ (function(module, exports) {
62381
62382/**
62383 * Convert array of 16 byte values to UUID string format of the form:
62384 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
62385 */
62386var byteToHex = [];
62387for (var i = 0; i < 256; ++i) {
62388 byteToHex[i] = (i + 0x100).toString(16).substr(1);
62389}
62390
62391function bytesToUuid(buf, offset) {
62392 var i = offset || 0;
62393 var bth = byteToHex;
62394 // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
62395 return ([
62396 bth[buf[i++]], bth[buf[i++]],
62397 bth[buf[i++]], bth[buf[i++]], '-',
62398 bth[buf[i++]], bth[buf[i++]], '-',
62399 bth[buf[i++]], bth[buf[i++]], '-',
62400 bth[buf[i++]], bth[buf[i++]], '-',
62401 bth[buf[i++]], bth[buf[i++]],
62402 bth[buf[i++]], bth[buf[i++]],
62403 bth[buf[i++]], bth[buf[i++]]
62404 ]).join('');
62405}
62406
62407module.exports = bytesToUuid;
62408
62409
62410/***/ }),
62411
62412/***/ "../../node_modules/uuid/lib/rng-browser.js":
62413/*!*************************************************************!*\
62414 !*** /root/amplify-js/node_modules/uuid/lib/rng-browser.js ***!
62415 \*************************************************************/
62416/*! no static exports found */
62417/***/ (function(module, exports) {
62418
62419// Unique ID creation requires a high quality random # generator. In the
62420// browser this is a little complicated due to unknown quality of Math.random()
62421// and inconsistent support for the `crypto` API. We do the best we can via
62422// feature-detection
62423
62424// getRandomValues needs to be invoked in a context where "this" is a Crypto
62425// implementation. Also, find the complete implementation of crypto on IE11.
62426var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
62427 (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
62428
62429if (getRandomValues) {
62430 // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
62431 var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
62432
62433 module.exports = function whatwgRNG() {
62434 getRandomValues(rnds8);
62435 return rnds8;
62436 };
62437} else {
62438 // Math.random()-based (RNG)
62439 //
62440 // If all else fails, use Math.random(). It's fast, but is of unspecified
62441 // quality.
62442 var rnds = new Array(16);
62443
62444 module.exports = function mathRNG() {
62445 for (var i = 0, r; i < 16; i++) {
62446 if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
62447 rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
62448 }
62449
62450 return rnds;
62451 };
62452}
62453
62454
62455/***/ }),
62456
62457/***/ "../../node_modules/uuid/v1.js":
62458/*!************************************************!*\
62459 !*** /root/amplify-js/node_modules/uuid/v1.js ***!
62460 \************************************************/
62461/*! no static exports found */
62462/***/ (function(module, exports, __webpack_require__) {
62463
62464var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
62465var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
62466
62467// **`v1()` - Generate time-based UUID**
62468//
62469// Inspired by https://github.com/LiosK/UUID.js
62470// and http://docs.python.org/library/uuid.html
62471
62472var _nodeId;
62473var _clockseq;
62474
62475// Previous uuid creation time
62476var _lastMSecs = 0;
62477var _lastNSecs = 0;
62478
62479// See https://github.com/uuidjs/uuid for API details
62480function v1(options, buf, offset) {
62481 var i = buf && offset || 0;
62482 var b = buf || [];
62483
62484 options = options || {};
62485 var node = options.node || _nodeId;
62486 var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
62487
62488 // node and clockseq need to be initialized to random values if they're not
62489 // specified. We do this lazily to minimize issues related to insufficient
62490 // system entropy. See #189
62491 if (node == null || clockseq == null) {
62492 var seedBytes = rng();
62493 if (node == null) {
62494 // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
62495 node = _nodeId = [
62496 seedBytes[0] | 0x01,
62497 seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
62498 ];
62499 }
62500 if (clockseq == null) {
62501 // Per 4.2.2, randomize (14 bit) clockseq
62502 clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
62503 }
62504 }
62505
62506 // UUID timestamps are 100 nano-second units since the Gregorian epoch,
62507 // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
62508 // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
62509 // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
62510 var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
62511
62512 // Per 4.2.1.2, use count of uuid's generated during the current clock
62513 // cycle to simulate higher resolution clock
62514 var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
62515
62516 // Time since last uuid creation (in msecs)
62517 var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
62518
62519 // Per 4.2.1.2, Bump clockseq on clock regression
62520 if (dt < 0 && options.clockseq === undefined) {
62521 clockseq = clockseq + 1 & 0x3fff;
62522 }
62523
62524 // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
62525 // time interval
62526 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
62527 nsecs = 0;
62528 }
62529
62530 // Per 4.2.1.2 Throw error if too many uuids are requested
62531 if (nsecs >= 10000) {
62532 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
62533 }
62534
62535 _lastMSecs = msecs;
62536 _lastNSecs = nsecs;
62537 _clockseq = clockseq;
62538
62539 // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
62540 msecs += 12219292800000;
62541
62542 // `time_low`
62543 var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
62544 b[i++] = tl >>> 24 & 0xff;
62545 b[i++] = tl >>> 16 & 0xff;
62546 b[i++] = tl >>> 8 & 0xff;
62547 b[i++] = tl & 0xff;
62548
62549 // `time_mid`
62550 var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
62551 b[i++] = tmh >>> 8 & 0xff;
62552 b[i++] = tmh & 0xff;
62553
62554 // `time_high_and_version`
62555 b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
62556 b[i++] = tmh >>> 16 & 0xff;
62557
62558 // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
62559 b[i++] = clockseq >>> 8 | 0x80;
62560
62561 // `clock_seq_low`
62562 b[i++] = clockseq & 0xff;
62563
62564 // `node`
62565 for (var n = 0; n < 6; ++n) {
62566 b[i + n] = node[n];
62567 }
62568
62569 return buf ? buf : bytesToUuid(b);
62570}
62571
62572module.exports = v1;
62573
62574
62575/***/ }),
62576
62577/***/ "../../node_modules/uuid/v4.js":
62578/*!************************************************!*\
62579 !*** /root/amplify-js/node_modules/uuid/v4.js ***!
62580 \************************************************/
62581/*! no static exports found */
62582/***/ (function(module, exports, __webpack_require__) {
62583
62584var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
62585var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
62586
62587function v4(options, buf, offset) {
62588 var i = buf && offset || 0;
62589
62590 if (typeof(options) == 'string') {
62591 buf = options === 'binary' ? new Array(16) : null;
62592 options = null;
62593 }
62594 options = options || {};
62595
62596 var rnds = options.random || (options.rng || rng)();
62597
62598 // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
62599 rnds[6] = (rnds[6] & 0x0f) | 0x40;
62600 rnds[8] = (rnds[8] & 0x3f) | 0x80;
62601
62602 // Copy bytes to buffer, if provided
62603 if (buf) {
62604 for (var ii = 0; ii < 16; ++ii) {
62605 buf[i + ii] = rnds[ii];
62606 }
62607 }
62608
62609 return buf || bytesToUuid(rnds);
62610}
62611
62612module.exports = v4;
62613
62614
62615/***/ }),
62616
62617/***/ "../../node_modules/webpack/buildin/global.js":
62618/*!***********************************!*\
62619 !*** (webpack)/buildin/global.js ***!
62620 \***********************************/
62621/*! no static exports found */
62622/***/ (function(module, exports) {
62623
62624var g;
62625
62626// This works in non-strict mode
62627g = (function() {
62628 return this;
62629})();
62630
62631try {
62632 // This works if eval is allowed (see CSP)
62633 g = g || new Function("return this")();
62634} catch (e) {
62635 // This works if the window reference is available
62636 if (typeof window === "object") g = window;
62637}
62638
62639// g can still be undefined, but nothing to do about it...
62640// We return undefined, instead of nothing here, so it's
62641// easier to handle this case. if(!global) { ...}
62642
62643module.exports = g;
62644
62645
62646/***/ }),
62647
62648/***/ "../../node_modules/webpack/buildin/module.js":
62649/*!***********************************!*\
62650 !*** (webpack)/buildin/module.js ***!
62651 \***********************************/
62652/*! no static exports found */
62653/***/ (function(module, exports) {
62654
62655module.exports = function(module) {
62656 if (!module.webpackPolyfill) {
62657 module.deprecate = function() {};
62658 module.paths = [];
62659 // module.parent = undefined by default
62660 if (!module.children) module.children = [];
62661 Object.defineProperty(module, "loaded", {
62662 enumerable: true,
62663 get: function() {
62664 return module.l;
62665 }
62666 });
62667 Object.defineProperty(module, "id", {
62668 enumerable: true,
62669 get: function() {
62670 return module.i;
62671 }
62672 });
62673 module.webpackPolyfill = 1;
62674 }
62675 return module;
62676};
62677
62678
62679/***/ }),
62680
62681/***/ "./lib-esm/Analytics.js":
62682/*!******************************!*\
62683 !*** ./lib-esm/Analytics.js ***!
62684 \******************************/
62685/*! exports provided: AnalyticsClass, Analytics */
62686/***/ (function(module, __webpack_exports__, __webpack_require__) {
62687
62688"use strict";
62689__webpack_require__.r(__webpack_exports__);
62690/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnalyticsClass", function() { return AnalyticsClass; });
62691/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Analytics", function() { return Analytics; });
62692/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
62693/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
62694/* harmony import */ var _Providers_AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers/AWSPinpointProvider */ "./lib-esm/Providers/AWSPinpointProvider.js");
62695/* harmony import */ var _trackers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trackers */ "./lib-esm/trackers/index.js");
62696/*
62697 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
62698 *
62699 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
62700 * the License. A copy of the License is located at
62701 *
62702 * http://aws.amazon.com/apache2.0/
62703 *
62704 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
62705 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
62706 * and limitations under the License.
62707 */
62708var __assign = undefined && undefined.__assign || function () {
62709 __assign = Object.assign || function (t) {
62710 for (var s, i = 1, n = arguments.length; i < n; i++) {
62711 s = arguments[i];
62712
62713 for (var p in s) {
62714 if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
62715 }
62716 }
62717
62718 return t;
62719 };
62720
62721 return __assign.apply(this, arguments);
62722};
62723
62724var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
62725 function adopt(value) {
62726 return value instanceof P ? value : new P(function (resolve) {
62727 resolve(value);
62728 });
62729 }
62730
62731 return new (P || (P = Promise))(function (resolve, reject) {
62732 function fulfilled(value) {
62733 try {
62734 step(generator.next(value));
62735 } catch (e) {
62736 reject(e);
62737 }
62738 }
62739
62740 function rejected(value) {
62741 try {
62742 step(generator["throw"](value));
62743 } catch (e) {
62744 reject(e);
62745 }
62746 }
62747
62748 function step(result) {
62749 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
62750 }
62751
62752 step((generator = generator.apply(thisArg, _arguments || [])).next());
62753 });
62754};
62755
62756var __generator = undefined && undefined.__generator || function (thisArg, body) {
62757 var _ = {
62758 label: 0,
62759 sent: function sent() {
62760 if (t[0] & 1) throw t[1];
62761 return t[1];
62762 },
62763 trys: [],
62764 ops: []
62765 },
62766 f,
62767 y,
62768 t,
62769 g;
62770 return g = {
62771 next: verb(0),
62772 "throw": verb(1),
62773 "return": verb(2)
62774 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
62775 return this;
62776 }), g;
62777
62778 function verb(n) {
62779 return function (v) {
62780 return step([n, v]);
62781 };
62782 }
62783
62784 function step(op) {
62785 if (f) throw new TypeError("Generator is already executing.");
62786
62787 while (_) {
62788 try {
62789 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;
62790 if (y = 0, t) op = [op[0] & 2, t.value];
62791
62792 switch (op[0]) {
62793 case 0:
62794 case 1:
62795 t = op;
62796 break;
62797
62798 case 4:
62799 _.label++;
62800 return {
62801 value: op[1],
62802 done: false
62803 };
62804
62805 case 5:
62806 _.label++;
62807 y = op[1];
62808 op = [0];
62809 continue;
62810
62811 case 7:
62812 op = _.ops.pop();
62813
62814 _.trys.pop();
62815
62816 continue;
62817
62818 default:
62819 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
62820 _ = 0;
62821 continue;
62822 }
62823
62824 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
62825 _.label = op[1];
62826 break;
62827 }
62828
62829 if (op[0] === 6 && _.label < t[1]) {
62830 _.label = t[1];
62831 t = op;
62832 break;
62833 }
62834
62835 if (t && _.label < t[2]) {
62836 _.label = t[2];
62837
62838 _.ops.push(op);
62839
62840 break;
62841 }
62842
62843 if (t[2]) _.ops.pop();
62844
62845 _.trys.pop();
62846
62847 continue;
62848 }
62849
62850 op = body.call(thisArg, _);
62851 } catch (e) {
62852 op = [6, e];
62853 y = 0;
62854 } finally {
62855 f = t = 0;
62856 }
62857 }
62858
62859 if (op[0] & 5) throw op[1];
62860 return {
62861 value: op[0] ? op[1] : void 0,
62862 done: true
62863 };
62864 }
62865};
62866
62867
62868
62869
62870var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AnalyticsClass');
62871var AMPLIFY_SYMBOL = typeof Symbol !== 'undefined' && typeof Symbol["for"] === 'function' ? Symbol["for"]('amplify_default') : '@@amplify_default';
62872
62873var dispatchAnalyticsEvent = function dispatchAnalyticsEvent(event, data, message) {
62874 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('analytics', {
62875 event: event,
62876 data: data,
62877 message: message
62878 }, 'Analytics', AMPLIFY_SYMBOL);
62879};
62880
62881var trackers = {
62882 pageView: _trackers__WEBPACK_IMPORTED_MODULE_2__["PageViewTracker"],
62883 event: _trackers__WEBPACK_IMPORTED_MODULE_2__["EventTracker"],
62884 session: _trackers__WEBPACK_IMPORTED_MODULE_2__["SessionTracker"]
62885};
62886var _instance = null;
62887/**
62888 * Provide mobile analytics client functions
62889 */
62890
62891var AnalyticsClass =
62892/** @class */
62893function () {
62894 /**
62895 * Initialize Analtyics
62896 * @param config - Configuration of the Analytics
62897 */
62898 function AnalyticsClass() {
62899 this._config = {};
62900 this._pluggables = [];
62901 this._disabled = false;
62902 this._trackers = {};
62903 _instance = this;
62904 this.record = this.record.bind(this);
62905 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('auth', listener);
62906 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('storage', listener);
62907 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('analytics', listener);
62908 }
62909
62910 AnalyticsClass.prototype.getModuleName = function () {
62911 return 'Analytics';
62912 };
62913 /**
62914 * configure Analytics
62915 * @param {Object} config - Configuration of the Analytics
62916 */
62917
62918
62919 AnalyticsClass.prototype.configure = function (config) {
62920 var _this = this;
62921
62922 if (!config) return this._config;
62923 logger.debug('configure Analytics', config);
62924 var amplifyConfig = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Parser"].parseMobilehubConfig(config);
62925 this._config = Object.assign({}, this._config, amplifyConfig.Analytics, config);
62926
62927 if (this._config['disabled']) {
62928 this._disabled = true;
62929 } // turn on the autoSessionRecord if not specified
62930
62931
62932 if (this._config['autoSessionRecord'] === undefined) {
62933 this._config['autoSessionRecord'] = true;
62934 }
62935
62936 this._pluggables.forEach(function (pluggable) {
62937 // for backward compatibility
62938 var providerConfig = pluggable.getProviderName() === 'AWSPinpoint' && !_this._config['AWSPinpoint'] ? _this._config : _this._config[pluggable.getProviderName()];
62939 pluggable.configure(__assign({
62940 disabled: _this._config['disabled'],
62941 autoSessionRecord: _this._config['autoSessionRecord']
62942 }, providerConfig));
62943 });
62944
62945 if (this._pluggables.length === 0) {
62946 this.addPluggable(new _Providers_AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_1__["AWSPinpointProvider"]());
62947 }
62948
62949 dispatchAnalyticsEvent('configured', null, "The Analytics category has been configured successfully");
62950 logger.debug('current configuration', this._config);
62951 return this._config;
62952 };
62953 /**
62954 * add plugin into Analytics category
62955 * @param pluggable - an instance of the plugin
62956 */
62957
62958
62959 AnalyticsClass.prototype.addPluggable = function (pluggable) {
62960 if (pluggable && pluggable.getCategory() === 'Analytics') {
62961 this._pluggables.push(pluggable); // for backward compatibility
62962
62963
62964 var providerConfig = pluggable.getProviderName() === 'AWSPinpoint' && !this._config['AWSPinpoint'] ? this._config : this._config[pluggable.getProviderName()];
62965
62966 var config = __assign({
62967 disabled: this._config['disabled']
62968 }, providerConfig);
62969
62970 pluggable.configure(config);
62971 return config;
62972 }
62973 };
62974 /**
62975 * Get the plugin object
62976 * @param providerName - the name of the provider to be removed
62977 */
62978
62979
62980 AnalyticsClass.prototype.getPluggable = function (providerName) {
62981 for (var i = 0; i < this._pluggables.length; i += 1) {
62982 var pluggable = this._pluggables[i];
62983
62984 if (pluggable.getProviderName() === providerName) {
62985 return pluggable;
62986 }
62987 }
62988
62989 logger.debug('No plugin found with providerName', providerName);
62990 return null;
62991 };
62992 /**
62993 * Remove the plugin object
62994 * @param providerName - the name of the provider to be removed
62995 */
62996
62997
62998 AnalyticsClass.prototype.removePluggable = function (providerName) {
62999 var idx = 0;
63000
63001 while (idx < this._pluggables.length) {
63002 if (this._pluggables[idx].getProviderName() === providerName) {
63003 break;
63004 }
63005
63006 idx += 1;
63007 }
63008
63009 if (idx === this._pluggables.length) {
63010 logger.debug('No plugin found with providerName', providerName);
63011 return;
63012 } else {
63013 this._pluggables.splice(idx, idx + 1);
63014
63015 return;
63016 }
63017 };
63018 /**
63019 * stop sending events
63020 */
63021
63022
63023 AnalyticsClass.prototype.disable = function () {
63024 this._disabled = true;
63025 };
63026 /**
63027 * start sending events
63028 */
63029
63030
63031 AnalyticsClass.prototype.enable = function () {
63032 this._disabled = false;
63033 };
63034 /**
63035 * Record Session start
63036 * @param [provider] - name of the provider.
63037 * @return - A promise which resolves if buffer doesn't overflow
63038 */
63039
63040
63041 AnalyticsClass.prototype.startSession = function (provider) {
63042 return __awaiter(this, void 0, void 0, function () {
63043 var params;
63044 return __generator(this, function (_a) {
63045 params = {
63046 event: {
63047 name: '_session.start'
63048 },
63049 provider: provider
63050 };
63051 return [2
63052 /*return*/
63053 , this._sendEvent(params)];
63054 });
63055 });
63056 };
63057 /**
63058 * Record Session stop
63059 * @param [provider] - name of the provider.
63060 * @return - A promise which resolves if buffer doesn't overflow
63061 */
63062
63063
63064 AnalyticsClass.prototype.stopSession = function (provider) {
63065 return __awaiter(this, void 0, void 0, function () {
63066 var params;
63067 return __generator(this, function (_a) {
63068 params = {
63069 event: {
63070 name: '_session.stop'
63071 },
63072 provider: provider
63073 };
63074 return [2
63075 /*return*/
63076 , this._sendEvent(params)];
63077 });
63078 });
63079 };
63080
63081 AnalyticsClass.prototype.record = function (event, providerOrAttributes, metrics) {
63082 return __awaiter(this, void 0, void 0, function () {
63083 var params;
63084 return __generator(this, function (_a) {
63085 params = null; // this is just for compatibility, going to be deprecated
63086
63087 if (typeof event === 'string') {
63088 params = {
63089 event: {
63090 name: event,
63091 attributes: providerOrAttributes,
63092 metrics: metrics
63093 },
63094 provider: 'AWSPinpoint'
63095 };
63096 } else {
63097 params = {
63098 event: event,
63099 provider: providerOrAttributes
63100 };
63101 }
63102
63103 return [2
63104 /*return*/
63105 , this._sendEvent(params)];
63106 });
63107 });
63108 };
63109
63110 AnalyticsClass.prototype.updateEndpoint = function (attrs, provider) {
63111 return __awaiter(this, void 0, void 0, function () {
63112 var event;
63113 return __generator(this, function (_a) {
63114 event = __assign(__assign({}, attrs), {
63115 name: '_update_endpoint'
63116 });
63117 return [2
63118 /*return*/
63119 , this.record(event, provider)];
63120 });
63121 });
63122 };
63123
63124 AnalyticsClass.prototype._sendEvent = function (params) {
63125 var _this = this;
63126
63127 if (this._disabled) {
63128 logger.debug('Analytics has been disabled');
63129 return Promise.resolve();
63130 }
63131
63132 var provider = params.provider ? params.provider : 'AWSPinpoint';
63133 return new Promise(function (resolve, reject) {
63134 _this._pluggables.forEach(function (pluggable) {
63135 if (pluggable.getProviderName() === provider) {
63136 pluggable.record(params, {
63137 resolve: resolve,
63138 reject: reject
63139 });
63140 }
63141 });
63142 });
63143 };
63144
63145 AnalyticsClass.prototype.autoTrack = function (trackerType, opts) {
63146 if (!trackers[trackerType]) {
63147 logger.debug('invalid tracker type');
63148 return;
63149 } // to sync up two different configuration ways of auto session tracking
63150
63151
63152 if (trackerType === 'session') {
63153 this._config['autoSessionRecord'] = opts['enable'];
63154 }
63155
63156 var tracker = this._trackers[trackerType];
63157
63158 if (!tracker) {
63159 this._trackers[trackerType] = new trackers[trackerType](this.record, opts);
63160 } else {
63161 tracker.configure(opts);
63162 }
63163 };
63164
63165 return AnalyticsClass;
63166}();
63167
63168
63169var endpointUpdated = false;
63170var authConfigured = false;
63171var analyticsConfigured = false;
63172
63173var listener = function listener(capsule) {
63174 var channel = capsule.channel,
63175 payload = capsule.payload;
63176 logger.debug('on hub capsule ' + channel, payload);
63177
63178 switch (channel) {
63179 case 'auth':
63180 authEvent(payload);
63181 break;
63182
63183 case 'storage':
63184 storageEvent(payload);
63185 break;
63186
63187 case 'analytics':
63188 analyticsEvent(payload);
63189 break;
63190
63191 default:
63192 break;
63193 }
63194};
63195
63196var storageEvent = function storageEvent(payload) {
63197 var _a = payload.data,
63198 attrs = _a.attrs,
63199 metrics = _a.metrics;
63200 if (!attrs) return;
63201
63202 if (analyticsConfigured) {
63203 _instance.record({
63204 name: 'Storage',
63205 attributes: attrs,
63206 metrics: metrics
63207 })["catch"](function (e) {
63208 logger.debug('Failed to send the storage event automatically', e);
63209 });
63210 }
63211};
63212
63213var authEvent = function authEvent(payload) {
63214 var event = payload.event;
63215
63216 if (!event) {
63217 return;
63218 }
63219
63220 var recordAuthEvent = function recordAuthEvent(eventName) {
63221 return __awaiter(void 0, void 0, void 0, function () {
63222 var err_1;
63223 return __generator(this, function (_a) {
63224 switch (_a.label) {
63225 case 0:
63226 if (!(authConfigured && analyticsConfigured)) return [3
63227 /*break*/
63228 , 4];
63229 _a.label = 1;
63230
63231 case 1:
63232 _a.trys.push([1, 3,, 4]);
63233
63234 return [4
63235 /*yield*/
63236 , _instance.record({
63237 name: "_userauth." + eventName
63238 })];
63239
63240 case 2:
63241 return [2
63242 /*return*/
63243 , _a.sent()];
63244
63245 case 3:
63246 err_1 = _a.sent();
63247 logger.debug("Failed to send the " + eventName + " event automatically", err_1);
63248 return [3
63249 /*break*/
63250 , 4];
63251
63252 case 4:
63253 return [2
63254 /*return*/
63255 ];
63256 }
63257 });
63258 });
63259 };
63260
63261 switch (event) {
63262 case 'signIn':
63263 return recordAuthEvent('sign_in');
63264
63265 case 'signUp':
63266 return recordAuthEvent('sign_up');
63267
63268 case 'signOut':
63269 return recordAuthEvent('sign_out');
63270
63271 case 'signIn_failure':
63272 return recordAuthEvent('auth_fail');
63273
63274 case 'configured':
63275 authConfigured = true;
63276
63277 if (authConfigured && analyticsConfigured) {
63278 sendEvents();
63279 }
63280
63281 break;
63282 }
63283};
63284
63285var analyticsEvent = function analyticsEvent(payload) {
63286 var event = payload.event;
63287 if (!event) return;
63288
63289 switch (event) {
63290 case 'pinpointProvider_configured':
63291 analyticsConfigured = true;
63292
63293 if (authConfigured && analyticsConfigured) {
63294 sendEvents();
63295 }
63296
63297 break;
63298 }
63299};
63300
63301var sendEvents = function sendEvents() {
63302 var config = _instance.configure();
63303
63304 if (!endpointUpdated && config['autoSessionRecord']) {
63305 _instance.updateEndpoint({
63306 immediate: true
63307 })["catch"](function (e) {
63308 logger.debug('Failed to update the endpoint', e);
63309 });
63310
63311 endpointUpdated = true;
63312 }
63313
63314 _instance.autoTrack('session', {
63315 enable: config['autoSessionRecord']
63316 });
63317};
63318
63319var Analytics = new AnalyticsClass();
63320_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(Analytics);
63321
63322/***/ }),
63323
63324/***/ "./lib-esm/Providers/AWSKinesisFirehoseProvider.js":
63325/*!*********************************************************!*\
63326 !*** ./lib-esm/Providers/AWSKinesisFirehoseProvider.js ***!
63327 \*********************************************************/
63328/*! exports provided: AWSKinesisFirehoseProvider, default */
63329/***/ (function(module, __webpack_exports__, __webpack_require__) {
63330
63331"use strict";
63332__webpack_require__.r(__webpack_exports__);
63333/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return AWSKinesisFirehoseProvider; });
63334/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
63335/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
63336/* harmony import */ var _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AWSKinesisProvider */ "./lib-esm/Providers/AWSKinesisProvider.js");
63337/* harmony import */ var _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/client-firehose */ "../../node_modules/@aws-sdk/client-firehose/dist/es/index.js");
63338/* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
63339/*
63340 * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
63341 *
63342 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
63343 * the License. A copy of the License is located at
63344 *
63345 * http://aws.amazon.com/apache2.0/
63346 *
63347 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
63348 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
63349 * and limitations under the License.
63350 */
63351var __extends = undefined && undefined.__extends || function () {
63352 var _extendStatics = function extendStatics(d, b) {
63353 _extendStatics = Object.setPrototypeOf || {
63354 __proto__: []
63355 } instanceof Array && function (d, b) {
63356 d.__proto__ = b;
63357 } || function (d, b) {
63358 for (var p in b) {
63359 if (b.hasOwnProperty(p)) d[p] = b[p];
63360 }
63361 };
63362
63363 return _extendStatics(d, b);
63364 };
63365
63366 return function (d, b) {
63367 _extendStatics(d, b);
63368
63369 function __() {
63370 this.constructor = d;
63371 }
63372
63373 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
63374 };
63375}();
63376
63377
63378
63379
63380
63381var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSKineisFirehoseProvider');
63382
63383var AWSKinesisFirehoseProvider =
63384/** @class */
63385function (_super) {
63386 __extends(AWSKinesisFirehoseProvider, _super);
63387
63388 function AWSKinesisFirehoseProvider(config) {
63389 return _super.call(this, config) || this;
63390 }
63391 /**
63392 * get provider name of the plugin
63393 */
63394
63395
63396 AWSKinesisFirehoseProvider.prototype.getProviderName = function () {
63397 return 'AWSKinesisFirehose';
63398 };
63399
63400 AWSKinesisFirehoseProvider.prototype._sendEvents = function (group) {
63401 var _this = this;
63402
63403 if (group.length === 0) {
63404 return;
63405 }
63406
63407 var _a = group[0],
63408 config = _a.config,
63409 credentials = _a.credentials;
63410
63411 var initClients = this._init(config, credentials);
63412
63413 if (!initClients) return false;
63414 var records = {};
63415 group.map(function (params) {
63416 // split by streamName
63417 var evt = params.event;
63418 var streamName = evt.streamName,
63419 data = evt.data;
63420
63421 if (records[streamName] === undefined) {
63422 records[streamName] = [];
63423 }
63424
63425 var bufferData = data && typeof data !== 'string' ? JSON.stringify(data) : data;
63426 var Data = Object(_aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_3__["fromUtf8"])(bufferData);
63427 var record = {
63428 Data: Data
63429 };
63430 records[streamName].push(record);
63431 });
63432 Object.keys(records).map(function (streamName) {
63433 logger.debug('putting records to kinesis', streamName, 'with records', records[streamName]);
63434
63435 _this._kinesisFirehose.send(new _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__["PutRecordBatchCommand"]({
63436 Records: records[streamName],
63437 DeliveryStreamName: streamName
63438 })).then(function (res) {
63439 return logger.debug('Upload records to stream', streamName);
63440 })["catch"](function (err) {
63441 return logger.debug('Failed to upload records to Kinesis', err);
63442 });
63443 });
63444 };
63445
63446 AWSKinesisFirehoseProvider.prototype._init = function (config, credentials) {
63447 logger.debug('init clients');
63448
63449 if (this._kinesisFirehose && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
63450 logger.debug('no change for analytics config, directly return from init');
63451 return true;
63452 }
63453
63454 this._config.credentials = credentials;
63455 var region = config.region;
63456 return this._initFirehose(region, credentials);
63457 };
63458
63459 AWSKinesisFirehoseProvider.prototype._initFirehose = function (region, credentials) {
63460 logger.debug('initialize kinesis firehose with credentials', credentials);
63461 this._kinesisFirehose = new _aws_sdk_client_firehose__WEBPACK_IMPORTED_MODULE_2__["FirehoseClient"]({
63462 apiVersion: '2015-08-04',
63463 region: region,
63464 credentials: credentials
63465 });
63466 return true;
63467 };
63468
63469 return AWSKinesisFirehoseProvider;
63470}(_AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"]);
63471
63472
63473/**
63474 * @deprecated use named import
63475 */
63476
63477/* harmony default export */ __webpack_exports__["default"] = (AWSKinesisFirehoseProvider);
63478
63479/***/ }),
63480
63481/***/ "./lib-esm/Providers/AWSKinesisProvider.js":
63482/*!*************************************************!*\
63483 !*** ./lib-esm/Providers/AWSKinesisProvider.js ***!
63484 \*************************************************/
63485/*! exports provided: AWSKinesisProvider, default */
63486/***/ (function(module, __webpack_exports__, __webpack_require__) {
63487
63488"use strict";
63489__webpack_require__.r(__webpack_exports__);
63490/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return AWSKinesisProvider; });
63491/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
63492/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
63493/* harmony import */ var _aws_sdk_client_kinesis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-kinesis */ "../../node_modules/@aws-sdk/client-kinesis/dist/es/index.js");
63494/* harmony import */ var _aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/util-utf8-browser/dist/es/index.js");
63495/*
63496 * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
63497 *
63498 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
63499 * the License. A copy of the License is located at
63500 *
63501 * http://aws.amazon.com/apache2.0/
63502 *
63503 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
63504 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
63505 * and limitations under the License.
63506 */
63507var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
63508 function adopt(value) {
63509 return value instanceof P ? value : new P(function (resolve) {
63510 resolve(value);
63511 });
63512 }
63513
63514 return new (P || (P = Promise))(function (resolve, reject) {
63515 function fulfilled(value) {
63516 try {
63517 step(generator.next(value));
63518 } catch (e) {
63519 reject(e);
63520 }
63521 }
63522
63523 function rejected(value) {
63524 try {
63525 step(generator["throw"](value));
63526 } catch (e) {
63527 reject(e);
63528 }
63529 }
63530
63531 function step(result) {
63532 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
63533 }
63534
63535 step((generator = generator.apply(thisArg, _arguments || [])).next());
63536 });
63537};
63538
63539var __generator = undefined && undefined.__generator || function (thisArg, body) {
63540 var _ = {
63541 label: 0,
63542 sent: function sent() {
63543 if (t[0] & 1) throw t[1];
63544 return t[1];
63545 },
63546 trys: [],
63547 ops: []
63548 },
63549 f,
63550 y,
63551 t,
63552 g;
63553 return g = {
63554 next: verb(0),
63555 "throw": verb(1),
63556 "return": verb(2)
63557 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
63558 return this;
63559 }), g;
63560
63561 function verb(n) {
63562 return function (v) {
63563 return step([n, v]);
63564 };
63565 }
63566
63567 function step(op) {
63568 if (f) throw new TypeError("Generator is already executing.");
63569
63570 while (_) {
63571 try {
63572 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;
63573 if (y = 0, t) op = [op[0] & 2, t.value];
63574
63575 switch (op[0]) {
63576 case 0:
63577 case 1:
63578 t = op;
63579 break;
63580
63581 case 4:
63582 _.label++;
63583 return {
63584 value: op[1],
63585 done: false
63586 };
63587
63588 case 5:
63589 _.label++;
63590 y = op[1];
63591 op = [0];
63592 continue;
63593
63594 case 7:
63595 op = _.ops.pop();
63596
63597 _.trys.pop();
63598
63599 continue;
63600
63601 default:
63602 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
63603 _ = 0;
63604 continue;
63605 }
63606
63607 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
63608 _.label = op[1];
63609 break;
63610 }
63611
63612 if (op[0] === 6 && _.label < t[1]) {
63613 _.label = t[1];
63614 t = op;
63615 break;
63616 }
63617
63618 if (t && _.label < t[2]) {
63619 _.label = t[2];
63620
63621 _.ops.push(op);
63622
63623 break;
63624 }
63625
63626 if (t[2]) _.ops.pop();
63627
63628 _.trys.pop();
63629
63630 continue;
63631 }
63632
63633 op = body.call(thisArg, _);
63634 } catch (e) {
63635 op = [6, e];
63636 y = 0;
63637 } finally {
63638 f = t = 0;
63639 }
63640 }
63641
63642 if (op[0] & 5) throw op[1];
63643 return {
63644 value: op[0] ? op[1] : void 0,
63645 done: true
63646 };
63647 }
63648};
63649
63650
63651
63652
63653var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSKinesisProvider'); // events buffer
63654
63655var BUFFER_SIZE = 1000;
63656var FLUSH_SIZE = 100;
63657var FLUSH_INTERVAL = 5 * 1000; // 5s
63658
63659var RESEND_LIMIT = 5;
63660
63661var AWSKinesisProvider =
63662/** @class */
63663function () {
63664 function AWSKinesisProvider(config) {
63665 this._buffer = [];
63666 this._config = config || {};
63667 this._config.bufferSize = this._config.bufferSize || BUFFER_SIZE;
63668 this._config.flushSize = this._config.flushSize || FLUSH_SIZE;
63669 this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL;
63670 this._config.resendLimit = this._config.resendLimit || RESEND_LIMIT;
63671
63672 this._setupTimer();
63673 }
63674
63675 AWSKinesisProvider.prototype._setupTimer = function () {
63676 var _this = this;
63677
63678 if (this._timer) {
63679 clearInterval(this._timer);
63680 }
63681
63682 var _a = this._config,
63683 flushSize = _a.flushSize,
63684 flushInterval = _a.flushInterval;
63685 this._timer = setInterval(function () {
63686 var size = _this._buffer.length < flushSize ? _this._buffer.length : flushSize;
63687 var events = [];
63688
63689 for (var i = 0; i < size; i += 1) {
63690 var params = _this._buffer.shift();
63691
63692 events.push(params);
63693 }
63694
63695 _this._sendFromBuffer(events);
63696 }, flushInterval);
63697 };
63698 /**
63699 * get the category of the plugin
63700 */
63701
63702
63703 AWSKinesisProvider.prototype.getCategory = function () {
63704 return 'Analytics';
63705 };
63706 /**
63707 * get provider name of the plugin
63708 */
63709
63710
63711 AWSKinesisProvider.prototype.getProviderName = function () {
63712 return 'AWSKinesis';
63713 };
63714 /**
63715 * configure the plugin
63716 * @param {Object} config - configuration
63717 */
63718
63719
63720 AWSKinesisProvider.prototype.configure = function (config) {
63721 logger.debug('configure Analytics', config);
63722 var conf = config || {};
63723 this._config = Object.assign({}, this._config, conf);
63724
63725 this._setupTimer();
63726
63727 return this._config;
63728 };
63729 /**
63730 * record an event
63731 * @param {Object} params - the params of an event
63732 */
63733
63734
63735 AWSKinesisProvider.prototype.record = function (params) {
63736 return __awaiter(this, void 0, void 0, function () {
63737 var credentials;
63738 return __generator(this, function (_a) {
63739 switch (_a.label) {
63740 case 0:
63741 return [4
63742 /*yield*/
63743 , this._getCredentials()];
63744
63745 case 1:
63746 credentials = _a.sent();
63747 if (!credentials) return [2
63748 /*return*/
63749 , Promise.resolve(false)];
63750 Object.assign(params, {
63751 config: this._config,
63752 credentials: credentials
63753 });
63754 return [2
63755 /*return*/
63756 , this._putToBuffer(params)];
63757 }
63758 });
63759 });
63760 };
63761
63762 AWSKinesisProvider.prototype.updateEndpoint = function () {
63763 logger.debug('updateEndpoint is not implemented in Kinesis provider');
63764 return Promise.resolve(true);
63765 };
63766 /**
63767 * @private
63768 * @param params - params for the event recording
63769 * Put events into buffer
63770 */
63771
63772
63773 AWSKinesisProvider.prototype._putToBuffer = function (params) {
63774 if (this._buffer.length < BUFFER_SIZE) {
63775 this._buffer.push(params);
63776
63777 return Promise.resolve(true);
63778 } else {
63779 logger.debug('exceed analytics events buffer size');
63780 return Promise.reject(false);
63781 }
63782 };
63783
63784 AWSKinesisProvider.prototype._sendFromBuffer = function (events) {
63785 var _this = this; // collapse events by credentials
63786 // events = [ {params} ]
63787
63788
63789 var eventsGroups = [];
63790 var preCred = null;
63791 var group = [];
63792
63793 for (var i = 0; i < events.length; i += 1) {
63794 var cred = events[i].credentials;
63795
63796 if (i === 0) {
63797 group.push(events[i]);
63798 preCred = cred;
63799 } else {
63800 if (cred.sessionToken === preCred.sessionToken && cred.identityId === preCred.identityId) {
63801 logger.debug('no change for cred, put event in the same group');
63802 group.push(events[i]);
63803 } else {
63804 eventsGroups.push(group);
63805 group = [];
63806 group.push(events[i]);
63807 preCred = cred;
63808 }
63809 }
63810 }
63811
63812 eventsGroups.push(group);
63813 eventsGroups.map(function (evts) {
63814 _this._sendEvents(evts);
63815 });
63816 };
63817
63818 AWSKinesisProvider.prototype._sendEvents = function (group) {
63819 var _this = this;
63820
63821 if (group.length === 0) {
63822 return;
63823 }
63824
63825 var _a = group[0],
63826 config = _a.config,
63827 credentials = _a.credentials;
63828
63829 var initClients = this._init(config, credentials);
63830
63831 if (!initClients) return false;
63832 var records = {};
63833 group.map(function (params) {
63834 // spit by streamName
63835 var evt = params.event;
63836 var streamName = evt.streamName;
63837
63838 if (records[streamName] === undefined) {
63839 records[streamName] = [];
63840 }
63841
63842 var bufferData = evt.data && typeof evt.data !== 'string' ? JSON.stringify(evt.data) : evt.data;
63843 var Data = Object(_aws_sdk_util_utf8_browser__WEBPACK_IMPORTED_MODULE_2__["fromUtf8"])(bufferData);
63844 var PartitionKey = evt.partitionKey || 'partition-' + credentials.identityId;
63845 var record = {
63846 Data: Data,
63847 PartitionKey: PartitionKey
63848 };
63849 records[streamName].push(record);
63850 });
63851 Object.keys(records).map(function (streamName) {
63852 return __awaiter(_this, void 0, void 0, function () {
63853 var command, err_1;
63854 return __generator(this, function (_a) {
63855 switch (_a.label) {
63856 case 0:
63857 logger.debug('putting records to kinesis with records', records[streamName]);
63858 _a.label = 1;
63859
63860 case 1:
63861 _a.trys.push([1, 3,, 4]);
63862
63863 command = new _aws_sdk_client_kinesis__WEBPACK_IMPORTED_MODULE_1__["PutRecordsCommand"]({
63864 Records: records[streamName],
63865 StreamName: streamName
63866 });
63867 return [4
63868 /*yield*/
63869 , this._kinesis.send(command)];
63870
63871 case 2:
63872 _a.sent();
63873
63874 logger.debug('Upload records to stream', streamName);
63875 return [3
63876 /*break*/
63877 , 4];
63878
63879 case 3:
63880 err_1 = _a.sent();
63881 logger.debug('Failed to upload records to Kinesis', err_1);
63882 return [3
63883 /*break*/
63884 , 4];
63885
63886 case 4:
63887 return [2
63888 /*return*/
63889 ];
63890 }
63891 });
63892 });
63893 });
63894 };
63895
63896 AWSKinesisProvider.prototype._init = function (config, credentials) {
63897 logger.debug('init clients');
63898
63899 if (this._kinesis && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
63900 logger.debug('no change for analytics config, directly return from init');
63901 return true;
63902 }
63903
63904 this._config.credentials = credentials;
63905 var region = config.region,
63906 endpoint = config.endpoint;
63907 return this._initKinesis(region, endpoint, credentials);
63908 };
63909
63910 AWSKinesisProvider.prototype._initKinesis = function (region, endpoint, credentials) {
63911 logger.debug('initialize kinesis with credentials', credentials);
63912 this._kinesis = new _aws_sdk_client_kinesis__WEBPACK_IMPORTED_MODULE_1__["KinesisClient"]({
63913 region: region,
63914 credentials: credentials,
63915 customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])(),
63916 endpoint: endpoint
63917 });
63918 return true;
63919 };
63920 /**
63921 * @private
63922 * check if current credentials exists
63923 */
63924
63925
63926 AWSKinesisProvider.prototype._getCredentials = function () {
63927 var _this = this;
63928
63929 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get().then(function (credentials) {
63930 if (!credentials) return null;
63931 logger.debug('set credentials for analytics', _this._config.credentials);
63932 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials);
63933 })["catch"](function (err) {
63934 logger.debug('ensure credentials error', err);
63935 return null;
63936 });
63937 };
63938
63939 return AWSKinesisProvider;
63940}();
63941
63942
63943/**
63944 * @deprecated use named import
63945 */
63946
63947/* harmony default export */ __webpack_exports__["default"] = (AWSKinesisProvider);
63948
63949/***/ }),
63950
63951/***/ "./lib-esm/Providers/AWSPinpointProvider.js":
63952/*!**************************************************!*\
63953 !*** ./lib-esm/Providers/AWSPinpointProvider.js ***!
63954 \**************************************************/
63955/*! exports provided: AWSPinpointProvider, default */
63956/***/ (function(module, __webpack_exports__, __webpack_require__) {
63957
63958"use strict";
63959__webpack_require__.r(__webpack_exports__);
63960/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return AWSPinpointProvider; });
63961/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
63962/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
63963/* harmony import */ var _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-pinpoint */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/index.js");
63964/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/cache */ "@aws-amplify/cache");
63965/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2__);
63966/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
63967/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
63968/* harmony import */ var _EventBuffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EventBuffer */ "./lib-esm/Providers/EventBuffer.js");
63969function _typeof(obj) {
63970 "@babel/helpers - typeof";
63971
63972 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
63973 return typeof obj;
63974 } : function (obj) {
63975 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
63976 }, _typeof(obj);
63977}
63978/*
63979 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
63980 *
63981 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
63982 * the License. A copy of the License is located at
63983 *
63984 * http://aws.amazon.com/apache2.0/
63985 *
63986 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
63987 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
63988 * and limitations under the License.
63989 */
63990
63991
63992var __assign = undefined && undefined.__assign || function () {
63993 __assign = Object.assign || function (t) {
63994 for (var s, i = 1, n = arguments.length; i < n; i++) {
63995 s = arguments[i];
63996
63997 for (var p in s) {
63998 if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
63999 }
64000 }
64001
64002 return t;
64003 };
64004
64005 return __assign.apply(this, arguments);
64006};
64007
64008var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
64009 function adopt(value) {
64010 return value instanceof P ? value : new P(function (resolve) {
64011 resolve(value);
64012 });
64013 }
64014
64015 return new (P || (P = Promise))(function (resolve, reject) {
64016 function fulfilled(value) {
64017 try {
64018 step(generator.next(value));
64019 } catch (e) {
64020 reject(e);
64021 }
64022 }
64023
64024 function rejected(value) {
64025 try {
64026 step(generator["throw"](value));
64027 } catch (e) {
64028 reject(e);
64029 }
64030 }
64031
64032 function step(result) {
64033 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
64034 }
64035
64036 step((generator = generator.apply(thisArg, _arguments || [])).next());
64037 });
64038};
64039
64040var __generator = undefined && undefined.__generator || function (thisArg, body) {
64041 var _ = {
64042 label: 0,
64043 sent: function sent() {
64044 if (t[0] & 1) throw t[1];
64045 return t[1];
64046 },
64047 trys: [],
64048 ops: []
64049 },
64050 f,
64051 y,
64052 t,
64053 g;
64054 return g = {
64055 next: verb(0),
64056 "throw": verb(1),
64057 "return": verb(2)
64058 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
64059 return this;
64060 }), g;
64061
64062 function verb(n) {
64063 return function (v) {
64064 return step([n, v]);
64065 };
64066 }
64067
64068 function step(op) {
64069 if (f) throw new TypeError("Generator is already executing.");
64070
64071 while (_) {
64072 try {
64073 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;
64074 if (y = 0, t) op = [op[0] & 2, t.value];
64075
64076 switch (op[0]) {
64077 case 0:
64078 case 1:
64079 t = op;
64080 break;
64081
64082 case 4:
64083 _.label++;
64084 return {
64085 value: op[1],
64086 done: false
64087 };
64088
64089 case 5:
64090 _.label++;
64091 y = op[1];
64092 op = [0];
64093 continue;
64094
64095 case 7:
64096 op = _.ops.pop();
64097
64098 _.trys.pop();
64099
64100 continue;
64101
64102 default:
64103 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
64104 _ = 0;
64105 continue;
64106 }
64107
64108 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
64109 _.label = op[1];
64110 break;
64111 }
64112
64113 if (op[0] === 6 && _.label < t[1]) {
64114 _.label = t[1];
64115 t = op;
64116 break;
64117 }
64118
64119 if (t && _.label < t[2]) {
64120 _.label = t[2];
64121
64122 _.ops.push(op);
64123
64124 break;
64125 }
64126
64127 if (t[2]) _.ops.pop();
64128
64129 _.trys.pop();
64130
64131 continue;
64132 }
64133
64134 op = body.call(thisArg, _);
64135 } catch (e) {
64136 op = [6, e];
64137 y = 0;
64138 } finally {
64139 f = t = 0;
64140 }
64141 }
64142
64143 if (op[0] & 5) throw op[1];
64144 return {
64145 value: op[0] ? op[1] : void 0,
64146 done: true
64147 };
64148 }
64149};
64150
64151var __rest = undefined && undefined.__rest || function (s, e) {
64152 var t = {};
64153
64154 for (var p in s) {
64155 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
64156 }
64157
64158 if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
64159 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
64160 }
64161 return t;
64162};
64163
64164
64165
64166
64167
64168
64169var AMPLIFY_SYMBOL = typeof Symbol !== 'undefined' && typeof Symbol["for"] === 'function' ? Symbol["for"]('amplify_default') : '@@amplify_default';
64170
64171var dispatchAnalyticsEvent = function dispatchAnalyticsEvent(event, data) {
64172 _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].dispatch('analytics', {
64173 event: event,
64174 data: data
64175 }, 'Analytics', AMPLIFY_SYMBOL);
64176};
64177
64178var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AWSPinpointProvider');
64179var RETRYABLE_CODES = [429, 500];
64180var ACCEPTED_CODES = [202];
64181var FORBIDDEN_CODE = 403;
64182var MOBILE_SERVICE_NAME = 'mobiletargeting';
64183var EXPIRED_TOKEN_CODE = 'ExpiredTokenException';
64184var UPDATE_ENDPOINT = '_update_endpoint';
64185var SESSION_START = '_session.start';
64186var SESSION_STOP = '_session.stop';
64187var BEACON_SUPPORTED = typeof navigator !== 'undefined' && navigator && typeof navigator.sendBeacon === 'function'; // events buffer
64188
64189var BUFFER_SIZE = 1000;
64190var FLUSH_SIZE = 100;
64191var FLUSH_INTERVAL = 5 * 1000; // 5s
64192
64193var RESEND_LIMIT = 5; // params: { event: {name: , .... }, timeStamp, config, resendLimits }
64194
64195var AWSPinpointProvider =
64196/** @class */
64197function () {
64198 function AWSPinpointProvider(config) {
64199 this._endpointGenerating = true;
64200 this._endpointUpdateInProgress = false;
64201 this._buffer = null;
64202 this._endpointBuffer = [];
64203 this._config = config ? config : {};
64204 this._config.bufferSize = this._config.bufferSize || BUFFER_SIZE;
64205 this._config.flushSize = this._config.flushSize || FLUSH_SIZE;
64206 this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL;
64207 this._config.resendLimit = this._config.resendLimit || RESEND_LIMIT;
64208 this._clientInfo = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ClientDevice"].clientInfo();
64209 }
64210 /**
64211 * get the category of the plugin
64212 */
64213
64214
64215 AWSPinpointProvider.prototype.getCategory = function () {
64216 return AWSPinpointProvider.category;
64217 };
64218 /**
64219 * get provider name of the plugin
64220 */
64221
64222
64223 AWSPinpointProvider.prototype.getProviderName = function () {
64224 return AWSPinpointProvider.providerName;
64225 };
64226 /**
64227 * configure the plugin
64228 * @param {Object} config - configuration
64229 */
64230
64231
64232 AWSPinpointProvider.prototype.configure = function (config) {
64233 var _this = this;
64234
64235 logger.debug('configure Analytics', config);
64236 var conf = config || {};
64237 this._config = Object.assign({}, this._config, conf); // If autoSessionRecord is enabled, we need to wait for the endpoint to be
64238 // updated before sending any events. See `sendEvents` in `Analytics.ts`
64239
64240 this._endpointGenerating = !!config['autoSessionRecord'];
64241
64242 if (this._config.appId && !this._config.disabled) {
64243 if (!this._config.endpointId) {
64244 var cacheKey = this.getProviderName() + '_' + this._config.appId;
64245
64246 this._getEndpointId(cacheKey).then(function (endpointId) {
64247 logger.debug('setting endpoint id from the cache', endpointId);
64248 _this._config.endpointId = endpointId;
64249 dispatchAnalyticsEvent('pinpointProvider_configured', null);
64250 })["catch"](function (err) {
64251 logger.debug('Failed to generate endpointId', err);
64252 });
64253 } else {
64254 dispatchAnalyticsEvent('pinpointProvider_configured', null);
64255 }
64256 } else {
64257 this._flushBuffer();
64258 }
64259
64260 return this._config;
64261 };
64262 /**
64263 * record an event
64264 * @param {Object} params - the params of an event
64265 */
64266
64267
64268 AWSPinpointProvider.prototype.record = function (params, handlers) {
64269 return __awaiter(this, void 0, void 0, function () {
64270 var credentials, timestamp;
64271 return __generator(this, function (_a) {
64272 switch (_a.label) {
64273 case 0:
64274 logger.debug('_public record', params);
64275 return [4
64276 /*yield*/
64277 , this._getCredentials()];
64278
64279 case 1:
64280 credentials = _a.sent();
64281
64282 if (!credentials || !this._config.appId || !this._config.region) {
64283 logger.debug('cannot send events without credentials, applicationId or region');
64284 return [2
64285 /*return*/
64286 , handlers.reject(new Error('No credentials, applicationId or region'))];
64287 }
64288
64289 this._initClients(credentials);
64290
64291 timestamp = new Date().getTime(); // attach the session and eventId
64292
64293 this._generateSession(params);
64294
64295 params.event.eventId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
64296 Object.assign(params, {
64297 timestamp: timestamp,
64298 config: this._config
64299 });
64300
64301 if (params.event.immediate) {
64302 return [2
64303 /*return*/
64304 , this._send(params, handlers)];
64305 } else {
64306 this._putToBuffer(params, handlers);
64307 }
64308
64309 return [2
64310 /*return*/
64311 ];
64312 }
64313 });
64314 });
64315 };
64316
64317 AWSPinpointProvider.prototype._sendEndpointUpdate = function (endpointObject) {
64318 return __awaiter(this, void 0, void 0, function () {
64319 var next;
64320 return __generator(this, function (_a) {
64321 switch (_a.label) {
64322 case 0:
64323 if (this._endpointUpdateInProgress) {
64324 this._endpointBuffer.push(endpointObject);
64325
64326 return [2
64327 /*return*/
64328 ];
64329 }
64330
64331 this._endpointUpdateInProgress = true;
64332 return [4
64333 /*yield*/
64334 , this._updateEndpoint(endpointObject)];
64335
64336 case 1:
64337 _a.sent();
64338
64339 next = this._endpointBuffer.shift();
64340 this._endpointUpdateInProgress = false;
64341 next && this._sendEndpointUpdate(next);
64342 return [2
64343 /*return*/
64344 ];
64345 }
64346 });
64347 });
64348 };
64349 /**
64350 * @private
64351 * @param params - params for event recording
64352 * Put events into buffer
64353 */
64354
64355
64356 AWSPinpointProvider.prototype._putToBuffer = function (params, handlers) {
64357 if (params.event.name === UPDATE_ENDPOINT) {
64358 this._sendEndpointUpdate({
64359 params: params,
64360 handlers: handlers
64361 });
64362
64363 return;
64364 }
64365
64366 this._buffer && this._buffer.push({
64367 params: params,
64368 handlers: handlers
64369 });
64370 };
64371
64372 AWSPinpointProvider.prototype._generateSession = function (params) {
64373 this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
64374 var event = params.event;
64375
64376 switch (event.name) {
64377 case SESSION_START:
64378 // refresh the session id and session start time
64379 this._sessionStartTimestamp = new Date().getTime();
64380 this._sessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
64381 event.session = {
64382 Id: this._sessionId,
64383 StartTimestamp: new Date(this._sessionStartTimestamp).toISOString()
64384 };
64385 break;
64386
64387 case SESSION_STOP:
64388 var stopTimestamp = new Date().getTime();
64389 this._sessionStartTimestamp = this._sessionStartTimestamp || new Date().getTime();
64390 this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
64391 event.session = {
64392 Id: this._sessionId,
64393 Duration: stopTimestamp - this._sessionStartTimestamp,
64394 StartTimestamp: new Date(this._sessionStartTimestamp).toISOString(),
64395 StopTimestamp: new Date(stopTimestamp).toISOString()
64396 };
64397 this._sessionId = undefined;
64398 this._sessionStartTimestamp = undefined;
64399 break;
64400
64401 default:
64402 this._sessionStartTimestamp = this._sessionStartTimestamp || new Date().getTime();
64403 this._sessionId = this._sessionId || Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
64404 event.session = {
64405 Id: this._sessionId,
64406 StartTimestamp: new Date(this._sessionStartTimestamp).toISOString()
64407 };
64408 }
64409 };
64410
64411 AWSPinpointProvider.prototype._send = function (params, handlers) {
64412 return __awaiter(this, void 0, void 0, function () {
64413 var event;
64414 return __generator(this, function (_a) {
64415 event = params.event;
64416
64417 switch (event.name) {
64418 case UPDATE_ENDPOINT:
64419 return [2
64420 /*return*/
64421 , this._updateEndpoint({
64422 params: params,
64423 handlers: handlers
64424 })];
64425
64426 case SESSION_STOP:
64427 return [2
64428 /*return*/
64429 , this._pinpointSendStopSession(params, handlers)];
64430
64431 default:
64432 return [2
64433 /*return*/
64434 , this._pinpointPutEvents(params, handlers)];
64435 }
64436
64437 return [2
64438 /*return*/
64439 ];
64440 });
64441 });
64442 };
64443
64444 AWSPinpointProvider.prototype._generateBatchItemContext = function (params) {
64445 var _a;
64446
64447 var event = params.event,
64448 timestamp = params.timestamp,
64449 config = params.config;
64450 var name = event.name,
64451 attributes = event.attributes,
64452 metrics = event.metrics,
64453 eventId = event.eventId,
64454 session = event.session;
64455 var appId = config.appId,
64456 endpointId = config.endpointId;
64457 var endpointContext = {};
64458 var eventParams = {
64459 ApplicationId: appId,
64460 EventsRequest: {
64461 BatchItem: {}
64462 }
64463 };
64464 var endpointObj = {};
64465 endpointObj.Endpoint = endpointContext;
64466 endpointObj.Events = (_a = {}, _a[eventId] = {
64467 EventType: name,
64468 Timestamp: new Date(timestamp).toISOString(),
64469 Attributes: attributes,
64470 Metrics: metrics,
64471 Session: session
64472 }, _a);
64473 eventParams.EventsRequest.BatchItem[endpointId] = endpointObj;
64474 return eventParams;
64475 };
64476
64477 AWSPinpointProvider.prototype._pinpointPutEvents = function (params, handlers) {
64478 return __awaiter(this, void 0, void 0, function () {
64479 var eventId, endpointId, eventParams, command, data, _a, _b, _c, _d, StatusCode, Message, err_1;
64480
64481 return __generator(this, function (_e) {
64482 switch (_e.label) {
64483 case 0:
64484 eventId = params.event.eventId, endpointId = params.config.endpointId;
64485 eventParams = this._generateBatchItemContext(params);
64486 command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](eventParams);
64487 _e.label = 1;
64488
64489 case 1:
64490 _e.trys.push([1, 3,, 4]);
64491
64492 return [4
64493 /*yield*/
64494 , this.pinpointClient.send(command)];
64495
64496 case 2:
64497 data = _e.sent();
64498 _a = data, _b = endpointId, _c = eventId, _d = _a.EventsResponse.Results[_b].EventsItemResponse[_c], StatusCode = _d.StatusCode, Message = _d.Message;
64499
64500 if (ACCEPTED_CODES.includes(StatusCode)) {
64501 logger.debug('record event success. ', data);
64502 return [2
64503 /*return*/
64504 , handlers.resolve(data)];
64505 } else {
64506 if (RETRYABLE_CODES.includes(StatusCode)) {
64507 this._retry(params, handlers);
64508 } else {
64509 logger.error("Event " + eventId + " is not accepted, the error is " + Message);
64510 return [2
64511 /*return*/
64512 , handlers.reject(data)];
64513 }
64514 }
64515
64516 return [3
64517 /*break*/
64518 , 4];
64519
64520 case 3:
64521 err_1 = _e.sent();
64522
64523 this._eventError(err_1);
64524
64525 return [2
64526 /*return*/
64527 , handlers.reject(err_1)];
64528
64529 case 4:
64530 return [2
64531 /*return*/
64532 ];
64533 }
64534 });
64535 });
64536 };
64537
64538 AWSPinpointProvider.prototype._pinpointSendStopSession = function (params, handlers) {
64539 if (!BEACON_SUPPORTED) {
64540 this._pinpointPutEvents(params, handlers);
64541
64542 return;
64543 }
64544
64545 var eventParams = this._generateBatchItemContext(params);
64546
64547 var region = this._config.region;
64548 var ApplicationId = eventParams.ApplicationId,
64549 EventsRequest = eventParams.EventsRequest;
64550 var accessInfo = {
64551 secret_key: this._config.credentials.secretAccessKey,
64552 access_key: this._config.credentials.accessKeyId,
64553 session_token: this._config.credentials.sessionToken
64554 };
64555 var url = "https://pinpoint." + region + ".amazonaws.com/v1/apps/" + ApplicationId + "/events/legacy";
64556 var body = JSON.stringify(EventsRequest);
64557 var method = 'POST';
64558 var request = {
64559 url: url,
64560 body: body,
64561 method: method
64562 };
64563 var serviceInfo = {
64564 region: region,
64565 service: MOBILE_SERVICE_NAME
64566 };
64567 var requestUrl = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Signer"].signUrl(request, accessInfo, serviceInfo, null);
64568 var success = navigator.sendBeacon(requestUrl, body);
64569
64570 if (success) {
64571 return handlers.resolve('sendBeacon success');
64572 }
64573
64574 return handlers.reject('sendBeacon failure');
64575 };
64576
64577 AWSPinpointProvider.prototype._retry = function (params, handlers) {
64578 var resendLimit = params.config.resendLimit; // For backward compatibility
64579
64580 params.resendLimit = typeof params.resendLimit === 'number' ? params.resendLimit : resendLimit;
64581
64582 if (params.resendLimit-- > 0) {
64583 logger.debug("resending event " + params.eventName + " with " + params.resendLimit + " retry times left");
64584
64585 this._pinpointPutEvents(params, handlers);
64586 } else {
64587 logger.debug("retry times used up for event " + params.eventName);
64588 }
64589 };
64590
64591 AWSPinpointProvider.prototype._updateEndpoint = function (endpointObject) {
64592 return __awaiter(this, void 0, void 0, function () {
64593 var params, handlers, config, event, appId, endpointId, request, update_params, command, data, err_2, failureData;
64594 return __generator(this, function (_a) {
64595 switch (_a.label) {
64596 case 0:
64597 params = endpointObject.params, handlers = endpointObject.handlers;
64598 config = params.config, event = params.event;
64599 appId = config.appId, endpointId = config.endpointId;
64600 request = this._endpointRequest(config, _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].transferKeyToLowerCase(event, [], ['attributes', 'userAttributes', 'Attributes', 'UserAttributes']));
64601 update_params = {
64602 ApplicationId: appId,
64603 EndpointId: endpointId,
64604 EndpointRequest: request
64605 };
64606 _a.label = 1;
64607
64608 case 1:
64609 _a.trys.push([1, 3,, 4]);
64610
64611 command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["UpdateEndpointCommand"](update_params);
64612 return [4
64613 /*yield*/
64614 , this.pinpointClient.send(command)];
64615
64616 case 2:
64617 data = _a.sent();
64618 logger.debug('updateEndpoint success', data);
64619 this._endpointGenerating = false;
64620
64621 this._resumeBuffer();
64622
64623 handlers.resolve(data);
64624 return [2
64625 /*return*/
64626 ];
64627
64628 case 3:
64629 err_2 = _a.sent();
64630 failureData = {
64631 err: err_2,
64632 update_params: update_params,
64633 endpointObject: endpointObject
64634 };
64635 return [2
64636 /*return*/
64637 , this._handleEndpointUpdateFailure(failureData)];
64638
64639 case 4:
64640 return [2
64641 /*return*/
64642 ];
64643 }
64644 });
64645 });
64646 };
64647
64648 AWSPinpointProvider.prototype._handleEndpointUpdateFailure = function (failureData) {
64649 return __awaiter(this, void 0, void 0, function () {
64650 var err, endpointObject, statusCode, exponential;
64651 return __generator(this, function (_a) {
64652 err = failureData.err, endpointObject = failureData.endpointObject;
64653 statusCode = err.$metadata && err.$metadata.httpStatusCode;
64654 logger.debug('updateEndpoint error', err);
64655
64656 switch (statusCode) {
64657 case FORBIDDEN_CODE:
64658 return [2
64659 /*return*/
64660 , this._handleEndpointUpdateForbidden(failureData)];
64661
64662 default:
64663 if (RETRYABLE_CODES.includes(statusCode)) {
64664 exponential = true;
64665 return [2
64666 /*return*/
64667 , this._retryEndpointUpdate(endpointObject, exponential)];
64668 }
64669
64670 logger.error('updateEndpoint failed', err);
64671 endpointObject.handlers.reject(err);
64672 }
64673
64674 return [2
64675 /*return*/
64676 ];
64677 });
64678 });
64679 };
64680
64681 AWSPinpointProvider.prototype._handleEndpointUpdateForbidden = function (failureData) {
64682 var err = failureData.err,
64683 endpointObject = failureData.endpointObject;
64684 var code = err.code,
64685 retryable = err.retryable;
64686
64687 if (code !== EXPIRED_TOKEN_CODE && !retryable) {
64688 return endpointObject.handlers.reject(err);
64689 }
64690
64691 this._retryEndpointUpdate(endpointObject);
64692 };
64693
64694 AWSPinpointProvider.prototype._retryEndpointUpdate = function (endpointObject, exponential) {
64695 if (exponential === void 0) {
64696 exponential = false;
64697 }
64698
64699 logger.debug('_retryEndpointUpdate', endpointObject);
64700 var params = endpointObject.params; // TODO: implement retry with exp back off once exp function is available
64701
64702 var resendLimit = params.config.resendLimit;
64703 params.resendLimit = typeof params.resendLimit === 'number' ? params.resendLimit : resendLimit;
64704
64705 if (params.resendLimit-- > 0) {
64706 logger.debug("resending endpoint update " + params.event.eventId + " with " + params.resendLimit + " retry attempts remaining"); // insert at the front of endpointBuffer
64707
64708 this._endpointBuffer.length ? this._endpointBuffer.unshift(endpointObject) : this._updateEndpoint(endpointObject);
64709 return;
64710 }
64711
64712 logger.warn("resending endpoint update " + params.event.eventId + " failed after " + params.config.resendLimit + " attempts");
64713
64714 if (this._endpointGenerating) {
64715 logger.error('Initial endpoint update failed. ');
64716 }
64717 };
64718 /**
64719 * @private
64720 * @param config
64721 * Init the clients
64722 */
64723
64724
64725 AWSPinpointProvider.prototype._initClients = function (credentials) {
64726 return __awaiter(this, void 0, void 0, function () {
64727 var identityId, region;
64728 return __generator(this, function (_a) {
64729 logger.debug('init clients');
64730
64731 if (this.pinpointClient && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
64732 logger.debug('no change for aws credentials, directly return from init');
64733 return [2
64734 /*return*/
64735 ];
64736 }
64737
64738 identityId = this._config.credentials ? this._config.credentials.identityId : null;
64739 this._config.credentials = credentials;
64740 region = this._config.region;
64741 logger.debug('init clients with credentials', credentials);
64742 this.pinpointClient = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PinpointClient"]({
64743 region: region,
64744 credentials: credentials,
64745 customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])()
64746 }); // TODO: remove this middleware once a long term fix is implemented by aws-sdk-js team.
64747
64748 this.pinpointClient.middlewareStack.addRelativeTo(function (next) {
64749 return function (args) {
64750 delete args.request.headers['amz-sdk-invocation-id'];
64751 delete args.request.headers['amz-sdk-request'];
64752 return next(args);
64753 };
64754 }, {
64755 step: 'finalizeRequest',
64756 relation: 'after',
64757 toMiddleware: 'retryMiddleware'
64758 });
64759
64760 if (this._bufferExists() && identityId === credentials.identityId) {
64761 // if the identity has remained the same, pass the updated client to the buffer
64762 this._updateBufferClient();
64763 } else {
64764 // otherwise flush the buffer and instantiate a new one
64765 // this will cause the old buffer to send any remaining events
64766 // with the old credentials and then stop looping and shortly thereafter get picked up by GC
64767 this._initBuffer();
64768 }
64769
64770 this._customizePinpointClientReq();
64771
64772 return [2
64773 /*return*/
64774 ];
64775 });
64776 });
64777 };
64778
64779 AWSPinpointProvider.prototype._bufferExists = function () {
64780 return this._buffer && this._buffer instanceof _EventBuffer__WEBPACK_IMPORTED_MODULE_4__["default"];
64781 };
64782
64783 AWSPinpointProvider.prototype._initBuffer = function () {
64784 if (this._bufferExists()) {
64785 this._flushBuffer();
64786 }
64787
64788 this._buffer = new _EventBuffer__WEBPACK_IMPORTED_MODULE_4__["default"](this.pinpointClient, this._config); // if the first endpoint update hasn't yet resolved pause the buffer to
64789 // prevent race conditions. It will be resumed as soon as that request succeeds
64790
64791 if (this._endpointGenerating) {
64792 this._buffer.pause();
64793 }
64794 };
64795
64796 AWSPinpointProvider.prototype._updateBufferClient = function () {
64797 if (this._bufferExists()) {
64798 this._buffer.updateClient(this.pinpointClient);
64799 }
64800 };
64801
64802 AWSPinpointProvider.prototype._flushBuffer = function () {
64803 if (this._bufferExists()) {
64804 this._buffer.flush();
64805
64806 this._buffer = null;
64807 }
64808 };
64809
64810 AWSPinpointProvider.prototype._resumeBuffer = function () {
64811 if (this._bufferExists()) {
64812 this._buffer.resume();
64813 }
64814 };
64815
64816 AWSPinpointProvider.prototype._customizePinpointClientReq = function () {// TODO FIXME: Find a middleware to do this with AWS V3 SDK
64817 // if (Platform.isReactNative) {
64818 // this.pinpointClient.customizeRequests(request => {
64819 // request.on('build', req => {
64820 // req.httpRequest.headers['user-agent'] = Platform.userAgent;
64821 // });
64822 // });
64823 // }
64824 };
64825
64826 AWSPinpointProvider.prototype._getEndpointId = function (cacheKey) {
64827 return __awaiter(this, void 0, void 0, function () {
64828 var endpointId, ttl, expiration;
64829 return __generator(this, function (_a) {
64830 switch (_a.label) {
64831 case 0:
64832 return [4
64833 /*yield*/
64834 , _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2___default.a.getItem(cacheKey)];
64835
64836 case 1:
64837 endpointId = _a.sent();
64838 logger.debug('endpointId from cache', endpointId, 'type', _typeof(endpointId));
64839
64840 if (!endpointId) {
64841 endpointId = Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])();
64842 ttl = 1000 * 60 * 60 * 24 * 365 * 100;
64843 expiration = new Date().getTime() + ttl;
64844 _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_2___default.a.setItem(cacheKey, endpointId, {
64845 expires: expiration,
64846 priority: 1
64847 });
64848 }
64849
64850 return [2
64851 /*return*/
64852 , endpointId];
64853 }
64854 });
64855 });
64856 };
64857 /**
64858 * EndPoint request
64859 * @return {Object} - The request of updating endpoint
64860 */
64861
64862
64863 AWSPinpointProvider.prototype._endpointRequest = function (config, event) {
64864 var credentials = config.credentials;
64865 var clientInfo = this._clientInfo || {};
64866 var clientContext = config.clientContext || {}; // for now we have three different ways for default endpoint configurations
64867 // clientInfo
64868 // clientContext (deprecated)
64869 // config.endpoint
64870
64871 var defaultEndpointConfig = config.endpoint || {};
64872 var demographicByClientInfo = {
64873 appVersion: clientInfo.appVersion,
64874 make: clientInfo.make,
64875 model: clientInfo.model,
64876 modelVersion: clientInfo.version,
64877 platform: clientInfo.platform
64878 }; // for backward compatibility
64879
64880 var clientId = clientContext.clientId,
64881 appTitle = clientContext.appTitle,
64882 appVersionName = clientContext.appVersionName,
64883 appVersionCode = clientContext.appVersionCode,
64884 appPackageName = clientContext.appPackageName,
64885 demographicByClientContext = __rest(clientContext, ["clientId", "appTitle", "appVersionName", "appVersionCode", "appPackageName"]);
64886
64887 var channelType = event.address ? clientInfo.platform === 'android' ? 'GCM' : 'APNS' : undefined;
64888
64889 var tmp = __assign(__assign(__assign({
64890 channelType: channelType,
64891 requestId: Object(uuid__WEBPACK_IMPORTED_MODULE_3__["v1"])(),
64892 effectiveDate: new Date().toISOString()
64893 }, defaultEndpointConfig), event), {
64894 attributes: __assign(__assign({}, defaultEndpointConfig.attributes), event.attributes),
64895 demographic: __assign(__assign(__assign(__assign({}, demographicByClientInfo), demographicByClientContext), defaultEndpointConfig.demographic), event.demographic),
64896 location: __assign(__assign({}, defaultEndpointConfig.location), event.location),
64897 metrics: __assign(__assign({}, defaultEndpointConfig.metrics), event.metrics),
64898 user: {
64899 userId: event.userId || defaultEndpointConfig.userId || credentials.identityId,
64900 userAttributes: __assign(__assign({}, defaultEndpointConfig.userAttributes), event.userAttributes)
64901 }
64902 }); // eliminate unnecessary params
64903
64904
64905 var userId = tmp.userId,
64906 userAttributes = tmp.userAttributes,
64907 name = tmp.name,
64908 session = tmp.session,
64909 eventId = tmp.eventId,
64910 immediate = tmp.immediate,
64911 ret = __rest(tmp, ["userId", "userAttributes", "name", "session", "eventId", "immediate"]);
64912
64913 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].transferKeyToUpperCase(ret, [], ['metrics', 'userAttributes', 'attributes']);
64914 };
64915
64916 AWSPinpointProvider.prototype._eventError = function (err) {
64917 logger.error('record event failed.', err);
64918 logger.warn("Please ensure you have updated your Pinpoint IAM Policy " + "with the Action: \"mobiletargeting:PutEvents\" " + "in order to record events");
64919 };
64920
64921 AWSPinpointProvider.prototype._getCredentials = function () {
64922 return __awaiter(this, void 0, void 0, function () {
64923 var credentials, err_3;
64924 return __generator(this, function (_a) {
64925 switch (_a.label) {
64926 case 0:
64927 _a.trys.push([0, 2,, 3]);
64928
64929 return [4
64930 /*yield*/
64931 , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get()];
64932
64933 case 1:
64934 credentials = _a.sent();
64935 if (!credentials) return [2
64936 /*return*/
64937 , null];
64938 logger.debug('set credentials for analytics', credentials);
64939 return [2
64940 /*return*/
64941 , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials)];
64942
64943 case 2:
64944 err_3 = _a.sent();
64945 logger.debug('ensure credentials error', err_3);
64946 return [2
64947 /*return*/
64948 , null];
64949
64950 case 3:
64951 return [2
64952 /*return*/
64953 ];
64954 }
64955 });
64956 });
64957 };
64958
64959 AWSPinpointProvider.category = 'Analytics';
64960 AWSPinpointProvider.providerName = 'AWSPinpoint';
64961 return AWSPinpointProvider;
64962}();
64963
64964
64965/**
64966 * @deprecated use named import
64967 */
64968
64969/* harmony default export */ __webpack_exports__["default"] = (AWSPinpointProvider);
64970
64971/***/ }),
64972
64973/***/ "./lib-esm/Providers/AmazonPersonalizeHelper/MediaAutoTrack.js":
64974/*!*********************************************************************!*\
64975 !*** ./lib-esm/Providers/AmazonPersonalizeHelper/MediaAutoTrack.js ***!
64976 \*********************************************************************/
64977/*! exports provided: MediaAutoTrack */
64978/***/ (function(module, __webpack_exports__, __webpack_require__) {
64979
64980"use strict";
64981__webpack_require__.r(__webpack_exports__);
64982/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MediaAutoTrack", function() { return MediaAutoTrack; });
64983var HTML5_MEDIA_EVENT;
64984
64985(function (HTML5_MEDIA_EVENT) {
64986 HTML5_MEDIA_EVENT["PLAY"] = "play";
64987 HTML5_MEDIA_EVENT["PAUSE"] = "pause";
64988 HTML5_MEDIA_EVENT["ENDED"] = "Ended";
64989})(HTML5_MEDIA_EVENT || (HTML5_MEDIA_EVENT = {}));
64990
64991var MEDIA_TYPE;
64992
64993(function (MEDIA_TYPE) {
64994 MEDIA_TYPE["IFRAME"] = "IFRAME";
64995 MEDIA_TYPE["VIDEO"] = "VIDEO";
64996 MEDIA_TYPE["AUDIO"] = "AUDIO";
64997})(MEDIA_TYPE || (MEDIA_TYPE = {}));
64998
64999var EVENT_TYPE;
65000
65001(function (EVENT_TYPE) {
65002 EVENT_TYPE["PLAY"] = "Play";
65003 EVENT_TYPE["ENDED"] = "Ended";
65004 EVENT_TYPE["PAUSE"] = "Pause";
65005 EVENT_TYPE["TIME_WATCHED"] = "TimeWatched";
65006})(EVENT_TYPE || (EVENT_TYPE = {}));
65007
65008var MediaAutoTrack =
65009/** @class */
65010function () {
65011 function MediaAutoTrack(params, provider) {
65012 var _a;
65013
65014 this.eventActionMapping = (_a = {}, _a[EVENT_TYPE.ENDED] = this.endedEventAction.bind(this), _a[EVENT_TYPE.PLAY] = this.playEventAction.bind(this), _a[EVENT_TYPE.PAUSE] = this.pauseEventAction.bind(this), _a);
65015 var eventData = params.eventData;
65016 this._params = params;
65017 this._mediaElement = document.getElementById(eventData.properties['domElementId']);
65018 this._started = false;
65019 this._provider = provider;
65020 var mediaTrackFunMapping = {
65021 IFRAME: this._iframeMediaTracker,
65022 VIDEO: this._html5MediaTracker,
65023 AUDIO: this._html5MediaTracker
65024 };
65025
65026 mediaTrackFunMapping[this._mediaElement.tagName].bind(this)();
65027
65028 this._initYoutubeFrame();
65029 }
65030
65031 MediaAutoTrack.prototype._initYoutubeFrame = function () {
65032 this._youTubeIframeLoader = {
65033 src: 'https://www.youtube.com/iframe_api',
65034 loading: false,
65035 loaded: false,
65036 listeners: [],
65037 load: function load(callback) {
65038 var _this = this;
65039
65040 this.listeners.push(callback);
65041
65042 if (this.loaded) {
65043 setTimeout(function () {
65044 _this.done();
65045 });
65046 return;
65047 }
65048
65049 if (this.loading) {
65050 return;
65051 }
65052
65053 this.loading = true;
65054
65055 window['onYouTubeIframeAPIReady'] = function () {
65056 _this.loaded = true;
65057
65058 _this.done();
65059 };
65060
65061 var script = document.createElement('script');
65062 script.type = 'text/javascript';
65063 script.src = this.src;
65064 document.body.appendChild(script);
65065 },
65066 done: function done() {
65067 delete window['onYouTubeIframeAPIReady'];
65068
65069 while (this.listeners.length) {
65070 this.listeners.pop()(window['YT']);
65071 }
65072 }
65073 };
65074 };
65075
65076 MediaAutoTrack.prototype._iframeMediaTracker = function () {
65077 var that = this;
65078 setInterval(function () {
65079 if (that._started) {
65080 that.recordEvent(MEDIA_TYPE.IFRAME, EVENT_TYPE.TIME_WATCHED);
65081 }
65082 }, 3 * 1000);
65083
65084 this._youTubeIframeLoader.load(function (YT) {
65085 that._iframePlayer = new YT.Player(that._mediaElement.id, {
65086 events: {
65087 onStateChange: that._onPlayerStateChange.bind(that)
65088 }
65089 });
65090 });
65091 };
65092
65093 MediaAutoTrack.prototype._onPlayerStateChange = function (event) {
65094 var iframeEventMapping = {
65095 0: EVENT_TYPE.ENDED,
65096 1: EVENT_TYPE.PLAY,
65097 2: EVENT_TYPE.PAUSE
65098 };
65099 var eventType = iframeEventMapping[event.data];
65100
65101 if (eventType) {
65102 this.eventActionMapping[eventType](MEDIA_TYPE.IFRAME);
65103 }
65104 };
65105
65106 MediaAutoTrack.prototype._html5MediaTracker = function () {
65107 var that = this;
65108 setInterval(function () {
65109 if (that._started) {
65110 that.recordEvent(MEDIA_TYPE.VIDEO, EVENT_TYPE.TIME_WATCHED);
65111 }
65112 }, 3 * 1000);
65113
65114 this._mediaElement.addEventListener(HTML5_MEDIA_EVENT.PLAY, function () {
65115 that.eventActionMapping[EVENT_TYPE.PLAY](MEDIA_TYPE.VIDEO);
65116 }, false);
65117
65118 this._mediaElement.addEventListener(HTML5_MEDIA_EVENT.PAUSE, function () {
65119 that.eventActionMapping[EVENT_TYPE.PAUSE](MEDIA_TYPE.VIDEO);
65120 }, false);
65121
65122 this._mediaElement.addEventListener(HTML5_MEDIA_EVENT.ENDED, function () {
65123 that.eventActionMapping[EVENT_TYPE.ENDED](MEDIA_TYPE.VIDEO);
65124 }, false);
65125 };
65126
65127 MediaAutoTrack.prototype.playEventAction = function (mediaType) {
65128 this._started = true;
65129 this.recordEvent(mediaType, EVENT_TYPE.PLAY);
65130 };
65131
65132 MediaAutoTrack.prototype.pauseEventAction = function (mediaType) {
65133 this._started = false;
65134 this.recordEvent(mediaType, EVENT_TYPE.PAUSE);
65135 };
65136
65137 MediaAutoTrack.prototype.endedEventAction = function (mediaType) {
65138 this._started = false;
65139 this.recordEvent(mediaType, EVENT_TYPE.ENDED);
65140 };
65141
65142 MediaAutoTrack.prototype.recordEvent = function (mediaType, eventType) {
65143 var newParams = Object.assign({}, this._params);
65144 var eventData = newParams.eventData;
65145 eventData.eventType = eventType;
65146
65147 if (mediaType === MEDIA_TYPE.VIDEO) {
65148 eventData.properties.timestamp = this._mediaElement.currentTime;
65149 eventData.properties.duration = this._mediaElement.duration;
65150 } else {
65151 eventData.properties.timestamp = this._financial(this._iframePlayer.getCurrentTime());
65152 eventData.properties.duration = this._financial(this._iframePlayer.getDuration());
65153 }
65154
65155 var percentage = parseFloat(eventData.properties.timestamp) / parseFloat(eventData.properties.duration);
65156 eventData.properties.eventValue = Number(percentage.toFixed(4));
65157 delete eventData.properties.domElementId;
65158
65159 this._provider.putToBuffer(newParams);
65160 };
65161
65162 MediaAutoTrack.prototype._financial = function (x) {
65163 return Number.parseFloat(x).toFixed(4);
65164 };
65165
65166 return MediaAutoTrack;
65167}();
65168
65169
65170
65171/***/ }),
65172
65173/***/ "./lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js":
65174/*!*************************************************************************!*\
65175 !*** ./lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js ***!
65176 \*************************************************************************/
65177/*! exports provided: SessionInfoManager */
65178/***/ (function(module, __webpack_exports__, __webpack_require__) {
65179
65180"use strict";
65181__webpack_require__.r(__webpack_exports__);
65182/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionInfoManager", function() { return SessionInfoManager; });
65183/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js");
65184/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
65185/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEqual */ "../../node_modules/lodash/isEqual.js");
65186/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_1__);
65187/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
65188/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__);
65189/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
65190/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__);
65191/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/cache */ "@aws-amplify/cache");
65192/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4__);
65193
65194
65195
65196
65197
65198var PERSONALIZE_CACHE = '_awsct';
65199var PERSONALIZE_CACHE_USERID = '_awsct_uid';
65200var PERSONALIZE_CACHE_SESSIONID = '_awsct_sid';
65201var DEFAULT_CACHE_PREFIX = 'peronslize';
65202var TIMER_INTERVAL = 30 * 1000;
65203var DELIMITER = '.';
65204var CACHE_EXPIRY_IN_DAYS = 7;
65205var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["ConsoleLogger"]('AmazonPersonalizeProvider');
65206
65207var SessionInfoManager =
65208/** @class */
65209function () {
65210 function SessionInfoManager(prefixKey) {
65211 if (prefixKey === void 0) {
65212 prefixKey = '';
65213 }
65214
65215 this._isBrowser = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__["JS"].browserOrNode().isBrowser;
65216 this._timerKey = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])().substr(0, 15);
65217
65218 this._refreshTimer();
65219 }
65220
65221 SessionInfoManager.prototype._refreshTimer = function () {
65222 if (this._timer) {
65223 clearInterval(this._timer);
65224 }
65225
65226 var that = this;
65227 this._timer = setInterval(function () {
65228 that._timerKey = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])().substr(0, 15);
65229 }, TIMER_INTERVAL);
65230 };
65231
65232 SessionInfoManager.prototype.storeValue = function (key, value) {
65233 var today = new Date();
65234 var expire = new Date();
65235 expire.setTime(today.getTime() + 3600000 * 24 * CACHE_EXPIRY_IN_DAYS);
65236 _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default.a.setItem(this._getCachePrefix(key), value, {
65237 expires: expire.getTime()
65238 });
65239 };
65240
65241 SessionInfoManager.prototype.retrieveValue = function (key) {
65242 return _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default.a.getItem(this._getCachePrefix(key));
65243 };
65244
65245 SessionInfoManager.prototype._getCachePrefix = function (key) {
65246 if (this._isBrowser) {
65247 return key + DELIMITER + window.location.host;
65248 }
65249
65250 return DEFAULT_CACHE_PREFIX;
65251 };
65252
65253 SessionInfoManager.prototype.getTimerKey = function () {
65254 return this._timerKey;
65255 };
65256
65257 SessionInfoManager.prototype.updateSessionInfo = function (userId, sessionInfo) {
65258 var existUserId = sessionInfo.userId;
65259 var existSessionId = sessionInfo.sessionId;
65260
65261 if (this._isRequireNewSession(userId, existUserId, existSessionId)) {
65262 var newSessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])();
65263 this.storeValue(PERSONALIZE_CACHE_USERID, userId);
65264 this.storeValue(PERSONALIZE_CACHE_SESSIONID, newSessionId);
65265 sessionInfo.sessionId = newSessionId;
65266 } else if (this._isRequireUpdateSessionInfo(userId, existUserId, existSessionId)) {
65267 this.storeValue(PERSONALIZE_CACHE_USERID, userId);
65268 }
65269
65270 sessionInfo.userId = userId;
65271 };
65272
65273 SessionInfoManager.prototype._isRequireUpdateSessionInfo = function (userId, cachedSessionUserId, cachedSessionSessionId) {
65274 // anonymouse => sign in : hasSession && s_userId == null && curr_userId !=null
65275 var isNoCachedSession = lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionSessionId);
65276 return !isNoCachedSession && lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionUserId) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(userId);
65277 };
65278
65279 SessionInfoManager.prototype.retrieveSessionInfo = function (trackingId) {
65280 var sessionInfo = {};
65281 sessionInfo.trackingId = trackingId;
65282 sessionInfo.sessionId = this.retrieveValue(PERSONALIZE_CACHE_SESSIONID);
65283 sessionInfo.userId = this.retrieveValue(PERSONALIZE_CACHE_USERID);
65284
65285 if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(sessionInfo.sessionId)) {
65286 sessionInfo.sessionId = Object(uuid__WEBPACK_IMPORTED_MODULE_2__["v1"])();
65287 this.storeValue(PERSONALIZE_CACHE_SESSIONID, sessionInfo.sessionId);
65288 }
65289
65290 this.storeValue(PERSONALIZE_CACHE, trackingId);
65291 return sessionInfo;
65292 };
65293
65294 SessionInfoManager.prototype._isRequireNewSession = function (userId, cachedSessionUserId, cachedSessionSessionId) {
65295 // new session => 1. no cached session info 2. signOut: s_userId !=null && curr_userId ==null
65296 // 3. switch account: s_userId !=null && curr_userId !=null && s_userId != curr_userId
65297 var isNoCachedSession = lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionSessionId);
65298 var isSignoutCase = lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(userId) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionUserId);
65299 var isSwitchUserCase = !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(userId) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(cachedSessionUserId) && !lodash_isEqual__WEBPACK_IMPORTED_MODULE_1___default()(userId, cachedSessionUserId);
65300 return isNoCachedSession || isSignoutCase || isSwitchUserCase;
65301 };
65302
65303 return SessionInfoManager;
65304}();
65305
65306
65307
65308/***/ }),
65309
65310/***/ "./lib-esm/Providers/AmazonPersonalizeHelper/index.js":
65311/*!************************************************************!*\
65312 !*** ./lib-esm/Providers/AmazonPersonalizeHelper/index.js ***!
65313 \************************************************************/
65314/*! exports provided: SessionInfoManager, MediaAutoTrack */
65315/***/ (function(module, __webpack_exports__, __webpack_require__) {
65316
65317"use strict";
65318__webpack_require__.r(__webpack_exports__);
65319/* harmony import */ var _SessionInfoManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SessionInfoManager */ "./lib-esm/Providers/AmazonPersonalizeHelper/SessionInfoManager.js");
65320/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionInfoManager", function() { return _SessionInfoManager__WEBPACK_IMPORTED_MODULE_0__["SessionInfoManager"]; });
65321
65322/* harmony import */ var _MediaAutoTrack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MediaAutoTrack */ "./lib-esm/Providers/AmazonPersonalizeHelper/MediaAutoTrack.js");
65323/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MediaAutoTrack", function() { return _MediaAutoTrack__WEBPACK_IMPORTED_MODULE_1__["MediaAutoTrack"]; });
65324
65325
65326
65327
65328/***/ }),
65329
65330/***/ "./lib-esm/Providers/AmazonPersonalizeProvider.js":
65331/*!********************************************************!*\
65332 !*** ./lib-esm/Providers/AmazonPersonalizeProvider.js ***!
65333 \********************************************************/
65334/*! exports provided: AmazonPersonalizeProvider, default */
65335/***/ (function(module, __webpack_exports__, __webpack_require__) {
65336
65337"use strict";
65338__webpack_require__.r(__webpack_exports__);
65339/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return AmazonPersonalizeProvider; });
65340/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
65341/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
65342/* harmony import */ var _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-personalize-events */ "../../node_modules/@aws-sdk/client-personalize-events/dist/es/index.js");
65343/* harmony import */ var _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AmazonPersonalizeHelper */ "./lib-esm/Providers/AmazonPersonalizeHelper/index.js");
65344/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/get */ "../../node_modules/lodash/get.js");
65345/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_3__);
65346/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js");
65347/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__);
65348/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEqual */ "../../node_modules/lodash/isEqual.js");
65349/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_5__);
65350/*
65351 * Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
65352 *
65353 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
65354 * the License. A copy of the License is located at
65355 *
65356 * http://aws.amazon.com/apache2.0/
65357 *
65358 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
65359 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
65360 * and limitations under the License.
65361 */
65362var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
65363 function adopt(value) {
65364 return value instanceof P ? value : new P(function (resolve) {
65365 resolve(value);
65366 });
65367 }
65368
65369 return new (P || (P = Promise))(function (resolve, reject) {
65370 function fulfilled(value) {
65371 try {
65372 step(generator.next(value));
65373 } catch (e) {
65374 reject(e);
65375 }
65376 }
65377
65378 function rejected(value) {
65379 try {
65380 step(generator["throw"](value));
65381 } catch (e) {
65382 reject(e);
65383 }
65384 }
65385
65386 function step(result) {
65387 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
65388 }
65389
65390 step((generator = generator.apply(thisArg, _arguments || [])).next());
65391 });
65392};
65393
65394var __generator = undefined && undefined.__generator || function (thisArg, body) {
65395 var _ = {
65396 label: 0,
65397 sent: function sent() {
65398 if (t[0] & 1) throw t[1];
65399 return t[1];
65400 },
65401 trys: [],
65402 ops: []
65403 },
65404 f,
65405 y,
65406 t,
65407 g;
65408 return g = {
65409 next: verb(0),
65410 "throw": verb(1),
65411 "return": verb(2)
65412 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
65413 return this;
65414 }), g;
65415
65416 function verb(n) {
65417 return function (v) {
65418 return step([n, v]);
65419 };
65420 }
65421
65422 function step(op) {
65423 if (f) throw new TypeError("Generator is already executing.");
65424
65425 while (_) {
65426 try {
65427 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;
65428 if (y = 0, t) op = [op[0] & 2, t.value];
65429
65430 switch (op[0]) {
65431 case 0:
65432 case 1:
65433 t = op;
65434 break;
65435
65436 case 4:
65437 _.label++;
65438 return {
65439 value: op[1],
65440 done: false
65441 };
65442
65443 case 5:
65444 _.label++;
65445 y = op[1];
65446 op = [0];
65447 continue;
65448
65449 case 7:
65450 op = _.ops.pop();
65451
65452 _.trys.pop();
65453
65454 continue;
65455
65456 default:
65457 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
65458 _ = 0;
65459 continue;
65460 }
65461
65462 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
65463 _.label = op[1];
65464 break;
65465 }
65466
65467 if (op[0] === 6 && _.label < t[1]) {
65468 _.label = t[1];
65469 t = op;
65470 break;
65471 }
65472
65473 if (t && _.label < t[2]) {
65474 _.label = t[2];
65475
65476 _.ops.push(op);
65477
65478 break;
65479 }
65480
65481 if (t[2]) _.ops.pop();
65482
65483 _.trys.pop();
65484
65485 continue;
65486 }
65487
65488 op = body.call(thisArg, _);
65489 } catch (e) {
65490 op = [6, e];
65491 y = 0;
65492 } finally {
65493 f = t = 0;
65494 }
65495 }
65496
65497 if (op[0] & 5) throw op[1];
65498 return {
65499 value: op[0] ? op[1] : void 0,
65500 done: true
65501 };
65502 }
65503};
65504
65505
65506
65507
65508
65509
65510
65511var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('AmazonPersonalizeProvider'); // events buffer
65512
65513var FLUSH_SIZE = 5;
65514var FLUSH_SIZE_THRESHHOLD = 10;
65515var FLUSH_INTERVAL = 5 * 1000; // 5s
65516
65517var IDENTIFY_EVENT = 'Identify';
65518
65519var AmazonPersonalizeProvider =
65520/** @class */
65521function () {
65522 function AmazonPersonalizeProvider(config) {
65523 this._buffer = [];
65524 this._config = config ? config : {};
65525 this._config.flushSize = this._config.flushSize > 0 && this._config.flushSize <= FLUSH_SIZE_THRESHHOLD ? this._config.flushSize : FLUSH_SIZE;
65526 this._config.flushInterval = this._config.flushInterval || FLUSH_INTERVAL;
65527 this._sessionManager = new _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__["SessionInfoManager"]();
65528
65529 if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(this._config.trackingId)) {
65530 this._sessionInfo = this._sessionManager.retrieveSessionInfo(this._config.trackingId);
65531 }
65532
65533 this._isBrowser = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser; // flush event buffer
65534
65535 this._setupTimer();
65536 }
65537
65538 AmazonPersonalizeProvider.prototype._setupTimer = function () {
65539 if (this._timer) {
65540 clearInterval(this._timer);
65541 }
65542
65543 var flushInterval = this._config.flushInterval;
65544 var that = this;
65545 this._timer = setInterval(function () {
65546 that._sendFromBuffer();
65547 }, flushInterval);
65548 };
65549 /**
65550 * Record event
65551 * @param eventType - type of the event action. e.g. "Click"
65552 * @param properties - properties of the event
65553 * @return Promise
65554 */
65555
65556
65557 AmazonPersonalizeProvider.prototype.record = function (params) {
65558 return __awaiter(this, void 0, void 0, function () {
65559 var credentials, _a, eventType, properties, requestParams, isLoaded;
65560
65561 return __generator(this, function (_b) {
65562 switch (_b.label) {
65563 case 0:
65564 return [4
65565 /*yield*/
65566 , this._getCredentials()];
65567
65568 case 1:
65569 credentials = _b.sent();
65570 if (!credentials) return [2
65571 /*return*/
65572 , Promise.resolve(false)];
65573 Object.assign(params, {
65574 config: this._config,
65575 credentials: credentials,
65576 sentAt: new Date()
65577 });
65578 _a = params.event, eventType = _a.eventType, properties = _a.properties;
65579
65580 if (eventType === IDENTIFY_EVENT) {
65581 this._sessionManager.updateSessionInfo(properties && properties.userId ? properties.userId : '', this._sessionInfo);
65582
65583 return [2
65584 /*return*/
65585 ];
65586 } else if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(params.event.userId)) {
65587 this._sessionManager.updateSessionInfo(params.event.userId, this._sessionInfo);
65588 }
65589
65590 requestParams = this.generateRequestParams(params, this._sessionInfo);
65591 if (!(eventType === 'MediaAutoTrack')) return [3
65592 /*break*/
65593 , 7];
65594 if (!this._isBrowser) return [3
65595 /*break*/
65596 , 5];
65597 if (!!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(lodash_get__WEBPACK_IMPORTED_MODULE_3___default()(requestParams, 'eventData.properties.domElementId', null))) return [3
65598 /*break*/
65599 , 3];
65600 return [4
65601 /*yield*/
65602 , this.isElementFullyLoaded(this.loadElement, requestParams.eventData.properties['domElementId'], 500, 5)];
65603
65604 case 2:
65605 isLoaded = _b.sent();
65606
65607 if (isLoaded) {
65608 new _AmazonPersonalizeHelper__WEBPACK_IMPORTED_MODULE_2__["MediaAutoTrack"](requestParams, this);
65609 } else {
65610 logger.debug('Cannot find the media element.');
65611 }
65612
65613 return [3
65614 /*break*/
65615 , 4];
65616
65617 case 3:
65618 logger.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type.");
65619 _b.label = 4;
65620
65621 case 4:
65622 return [3
65623 /*break*/
65624 , 6];
65625
65626 case 5:
65627 logger.debug('MediaAutoTrack only for browser');
65628 _b.label = 6;
65629
65630 case 6:
65631 return [2
65632 /*return*/
65633 ];
65634
65635 case 7:
65636 return [2
65637 /*return*/
65638 , this.putToBuffer(requestParams)];
65639 }
65640 });
65641 });
65642 };
65643
65644 AmazonPersonalizeProvider.prototype.loadElement = function (domId) {
65645 return new Promise(function (resolve, reject) {
65646 if (document.getElementById(domId) && document.getElementById(domId).clientHeight) {
65647 return resolve(true);
65648 } else {
65649 return reject(true);
65650 }
65651 });
65652 };
65653
65654 AmazonPersonalizeProvider.prototype.isElementFullyLoaded = function (operation, params, delay, times) {
65655 var _this = this;
65656
65657 var wait = function wait(ms) {
65658 return new Promise(function (r) {
65659 return setTimeout(r, ms);
65660 });
65661 };
65662
65663 return new Promise(function (resolve, reject) {
65664 return operation(params).then(resolve)["catch"](function (reason) {
65665 if (times - 1 > 0) {
65666 return wait(delay).then(_this.isElementFullyLoaded.bind(null, operation, params, delay, times - 1)).then(resolve)["catch"](reject);
65667 }
65668
65669 return reject(reason);
65670 });
65671 });
65672 };
65673 /**
65674 * get the category of the plugin
65675 */
65676
65677
65678 AmazonPersonalizeProvider.prototype.getCategory = function () {
65679 return 'Analytics';
65680 };
65681 /**
65682 * get provider name of the plugin
65683 */
65684
65685
65686 AmazonPersonalizeProvider.prototype.getProviderName = function () {
65687 return 'AmazonPersonalize';
65688 };
65689 /**
65690 * configure the plugin
65691 * @param {Object} config - configuration
65692 */
65693
65694
65695 AmazonPersonalizeProvider.prototype.configure = function (config) {
65696 logger.debug('configure Analytics', config);
65697 var conf = config ? config : {};
65698 this._config = Object.assign({}, this._config, conf);
65699
65700 if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(this._config.trackingId)) {
65701 this._sessionInfo = this._sessionManager.retrieveSessionInfo(this._config.trackingId);
65702 }
65703
65704 this._setupTimer();
65705
65706 return this._config;
65707 };
65708 /**
65709 * Generate the requestParams from customer input params and sessionInfo
65710 * @private
65711 * @param eventData - customer input for event data
65712 * @param api - api name
65713 * @return RequestParams - wrapper object with all information required for make request
65714 */
65715
65716
65717 AmazonPersonalizeProvider.prototype.generateRequestParams = function (params, sessionInfo) {
65718 var requestParams = {};
65719 var _a = params.event,
65720 eventType = _a.eventType,
65721 properties = _a.properties;
65722 requestParams.eventData = {
65723 eventType: eventType,
65724 properties: properties
65725 };
65726 requestParams.sessionInfo = sessionInfo;
65727 requestParams.sentAt = params.sentAt;
65728 requestParams.credentials = params.credentials;
65729 requestParams.config = params.config;
65730 return requestParams;
65731 };
65732 /**
65733 * record an event
65734 * @param {Object} params - the params of an event
65735 */
65736
65737
65738 AmazonPersonalizeProvider.prototype._sendEvents = function (group) {
65739 var groupLen = group.length;
65740
65741 if (groupLen === 0) {
65742 logger.debug('events array is empty, directly return');
65743 return;
65744 }
65745
65746 var _a = group[0],
65747 config = _a.config,
65748 credentials = _a.credentials,
65749 sessionInfo = _a.sessionInfo;
65750
65751 var initClients = this._init(config, credentials);
65752
65753 if (!initClients) return false;
65754
65755 if (groupLen > 0) {
65756 var events = [];
65757
65758 for (var i = 0; i < groupLen; i += 1) {
65759 var params = group.shift();
65760
65761 var eventPayload = this._generateSingleRecordPayload(params, sessionInfo);
65762
65763 events.push(eventPayload);
65764 }
65765
65766 var payload_1 = {};
65767 payload_1.trackingId = sessionInfo.trackingId;
65768 payload_1.sessionId = sessionInfo.sessionId;
65769 payload_1.userId = sessionInfo.userId;
65770 payload_1.eventList = [];
65771 events.forEach(function (event) {
65772 // @ts-ignore
65773 payload_1.eventList.push(event);
65774 });
65775 var command = new _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](payload_1);
65776
65777 this._personalize.send(command, function (err) {
65778 if (err) logger.debug('Failed to call putEvents in Personalize', err);else logger.debug('Put events');
65779 });
65780 }
65781 };
65782 /**
65783 * Put event into buffer
65784 * @private
65785 * @param params - params for the event recording
65786 */
65787
65788
65789 AmazonPersonalizeProvider.prototype.putToBuffer = function (params) {
65790 if (this._buffer.length < this._config.flushSize) {
65791 this._buffer.push(params);
65792 } else {
65793 this._buffer.push(params);
65794
65795 this._sendFromBuffer();
65796 }
65797
65798 return Promise.resolve(true);
65799 };
65800 /**
65801 * flush the buffer and batch sending the request
65802 * @private
65803 * @param eventsParams - the buffer for cache the payload
65804 */
65805
65806
65807 AmazonPersonalizeProvider.prototype._sendFromBuffer = function () {
65808 var _this = this;
65809
65810 var size = this._buffer.length;
65811 if (size <= 0) return;
65812 var eventsGroups = [];
65813 var preCred = null;
65814 var group = [];
65815
65816 for (var i = 0; i < size; i += 1) {
65817 var currRequestParams = this._buffer.shift();
65818
65819 var cred = currRequestParams.credentials;
65820 var sessionInfo = currRequestParams.sessionInfo;
65821
65822 if (i === 0) {
65823 group.push(currRequestParams);
65824 preCred = cred;
65825 } else {
65826 if (lodash_isEqual__WEBPACK_IMPORTED_MODULE_5___default()(sessionInfo, this._sessionInfo) && cred.sessionToken === preCred.sessionToken && cred.identityId === preCred.identityId) {
65827 logger.debug('no change for cred, put event in the same group');
65828 group.push(currRequestParams);
65829 } else {
65830 eventsGroups.push(group);
65831 group = [];
65832 group.push(currRequestParams);
65833 preCred = cred;
65834 this._sessionInfo = sessionInfo;
65835 }
65836 }
65837 }
65838
65839 eventsGroups.push(group);
65840 eventsGroups.map(function (group) {
65841 _this._sendEvents(group);
65842 });
65843 };
65844 /**
65845 * Generate the record payload for single event
65846 * @private
65847 * @param params - RequestParams
65848 */
65849
65850
65851 AmazonPersonalizeProvider.prototype._generateSingleRecordPayload = function (params, sessionInfo) {
65852 var eventData = params.eventData,
65853 sentAt = params.sentAt;
65854 var trackPayload = {};
65855 trackPayload.sentAt = sentAt;
65856 trackPayload.properties = eventData.properties && JSON.stringify(eventData.properties);
65857 trackPayload.eventId = this._sessionManager.getTimerKey() + sessionInfo.sessionId;
65858 trackPayload.eventType = eventData.eventType;
65859 return trackPayload;
65860 };
65861 /**
65862 * Initialize the personalize client
65863 * @private
65864 * @param params - RequestParams
65865 */
65866
65867
65868 AmazonPersonalizeProvider.prototype._init = function (config, credentials) {
65869 logger.debug('init clients');
65870
65871 if (this._personalize && this._config.credentials && this._config.credentials.sessionToken === credentials.sessionToken && this._config.credentials.identityId === credentials.identityId) {
65872 logger.debug('no change for analytics config, directly return from init');
65873 return true;
65874 }
65875
65876 this._config.credentials = credentials;
65877 var region = config.region;
65878 logger.debug('initialize personalize with credentials', credentials);
65879 this._personalize = new _aws_sdk_client_personalize_events__WEBPACK_IMPORTED_MODULE_1__["PersonalizeEventsClient"]({
65880 region: region,
65881 credentials: credentials,
65882 customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["getAmplifyUserAgent"])()
65883 });
65884 return true;
65885 };
65886 /**
65887 * check if current credentials exists
65888 * @private
65889 */
65890
65891
65892 AmazonPersonalizeProvider.prototype._getCredentials = function () {
65893 var that = this;
65894 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].get().then(function (credentials) {
65895 if (!credentials) return null;
65896 logger.debug('set credentials for analytics', that._config.credentials);
65897 return _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Credentials"].shear(credentials);
65898 })["catch"](function (err) {
65899 logger.debug('ensure credentials error', err);
65900 return null;
65901 });
65902 };
65903
65904 return AmazonPersonalizeProvider;
65905}();
65906
65907
65908/**
65909 * @deprecated use named import
65910 */
65911
65912/* harmony default export */ __webpack_exports__["default"] = (AmazonPersonalizeProvider);
65913
65914/***/ }),
65915
65916/***/ "./lib-esm/Providers/EventBuffer.js":
65917/*!******************************************!*\
65918 !*** ./lib-esm/Providers/EventBuffer.js ***!
65919 \******************************************/
65920/*! exports provided: default */
65921/***/ (function(module, __webpack_exports__, __webpack_require__) {
65922
65923"use strict";
65924__webpack_require__.r(__webpack_exports__);
65925/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
65926/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
65927/* harmony import */ var _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-sdk/client-pinpoint */ "../../node_modules/@aws-sdk/client-pinpoint/dist/es/index.js");
65928/* harmony import */ var _utils_AppUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/AppUtils */ "./lib-esm/utils/AppUtils.js");
65929var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
65930 function adopt(value) {
65931 return value instanceof P ? value : new P(function (resolve) {
65932 resolve(value);
65933 });
65934 }
65935
65936 return new (P || (P = Promise))(function (resolve, reject) {
65937 function fulfilled(value) {
65938 try {
65939 step(generator.next(value));
65940 } catch (e) {
65941 reject(e);
65942 }
65943 }
65944
65945 function rejected(value) {
65946 try {
65947 step(generator["throw"](value));
65948 } catch (e) {
65949 reject(e);
65950 }
65951 }
65952
65953 function step(result) {
65954 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
65955 }
65956
65957 step((generator = generator.apply(thisArg, _arguments || [])).next());
65958 });
65959};
65960
65961var __generator = undefined && undefined.__generator || function (thisArg, body) {
65962 var _ = {
65963 label: 0,
65964 sent: function sent() {
65965 if (t[0] & 1) throw t[1];
65966 return t[1];
65967 },
65968 trys: [],
65969 ops: []
65970 },
65971 f,
65972 y,
65973 t,
65974 g;
65975 return g = {
65976 next: verb(0),
65977 "throw": verb(1),
65978 "return": verb(2)
65979 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
65980 return this;
65981 }), g;
65982
65983 function verb(n) {
65984 return function (v) {
65985 return step([n, v]);
65986 };
65987 }
65988
65989 function step(op) {
65990 if (f) throw new TypeError("Generator is already executing.");
65991
65992 while (_) {
65993 try {
65994 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;
65995 if (y = 0, t) op = [op[0] & 2, t.value];
65996
65997 switch (op[0]) {
65998 case 0:
65999 case 1:
66000 t = op;
66001 break;
66002
66003 case 4:
66004 _.label++;
66005 return {
66006 value: op[1],
66007 done: false
66008 };
66009
66010 case 5:
66011 _.label++;
66012 y = op[1];
66013 op = [0];
66014 continue;
66015
66016 case 7:
66017 op = _.ops.pop();
66018
66019 _.trys.pop();
66020
66021 continue;
66022
66023 default:
66024 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
66025 _ = 0;
66026 continue;
66027 }
66028
66029 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
66030 _.label = op[1];
66031 break;
66032 }
66033
66034 if (op[0] === 6 && _.label < t[1]) {
66035 _.label = t[1];
66036 t = op;
66037 break;
66038 }
66039
66040 if (t && _.label < t[2]) {
66041 _.label = t[2];
66042
66043 _.ops.push(op);
66044
66045 break;
66046 }
66047
66048 if (t[2]) _.ops.pop();
66049
66050 _.trys.pop();
66051
66052 continue;
66053 }
66054
66055 op = body.call(thisArg, _);
66056 } catch (e) {
66057 op = [6, e];
66058 y = 0;
66059 } finally {
66060 f = t = 0;
66061 }
66062 }
66063
66064 if (op[0] & 5) throw op[1];
66065 return {
66066 value: op[0] ? op[1] : void 0,
66067 done: true
66068 };
66069 }
66070};
66071
66072var __read = undefined && undefined.__read || function (o, n) {
66073 var m = typeof Symbol === "function" && o[Symbol.iterator];
66074 if (!m) return o;
66075 var i = m.call(o),
66076 r,
66077 ar = [],
66078 e;
66079
66080 try {
66081 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
66082 ar.push(r.value);
66083 }
66084 } catch (error) {
66085 e = {
66086 error: error
66087 };
66088 } finally {
66089 try {
66090 if (r && !r.done && (m = i["return"])) m.call(i);
66091 } finally {
66092 if (e) throw e.error;
66093 }
66094 }
66095
66096 return ar;
66097};
66098
66099var __spread = undefined && undefined.__spread || function () {
66100 for (var ar = [], i = 0; i < arguments.length; i++) {
66101 ar = ar.concat(__read(arguments[i]));
66102 }
66103
66104 return ar;
66105};
66106
66107
66108
66109
66110var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('EventsBuffer');
66111var RETRYABLE_CODES = [429, 500];
66112var ACCEPTED_CODES = [202];
66113
66114var EventsBuffer =
66115/** @class */
66116function () {
66117 function EventsBuffer(client, config) {
66118 this._pause = false;
66119 this._flush = false;
66120 logger.debug('Instantiating buffer with config:', config);
66121 this._buffer = [];
66122 this._client = client;
66123 this._config = config;
66124 this._sendBatch = this._sendBatch.bind(this);
66125
66126 this._startLoop();
66127 }
66128
66129 EventsBuffer.prototype.push = function (event) {
66130 var _a;
66131
66132 if (this._buffer > this._config.bufferSize) {
66133 logger.debug('Exceeded analytics events buffer size');
66134 return event.handlers.reject(new Error('Exceeded the size of analytics events buffer'));
66135 }
66136
66137 var eventId = event.params.event.eventId;
66138 var bufferElement = (_a = {}, _a[eventId] = event, _a);
66139
66140 this._buffer.push(bufferElement);
66141 };
66142
66143 EventsBuffer.prototype.pause = function () {
66144 this._pause = true;
66145 };
66146
66147 EventsBuffer.prototype.resume = function () {
66148 this._pause = false;
66149 };
66150
66151 EventsBuffer.prototype.updateClient = function (client) {
66152 this._client = client;
66153 };
66154
66155 EventsBuffer.prototype.flush = function () {
66156 this._flush = true;
66157 };
66158
66159 EventsBuffer.prototype._startLoop = function () {
66160 if (this._interval) {
66161 clearInterval(this._interval);
66162 }
66163
66164 var flushInterval = this._config.flushInterval;
66165 this._interval = setInterval(this._sendBatch, flushInterval);
66166 };
66167
66168 EventsBuffer.prototype._sendBatch = function () {
66169 var bufferLength = this._buffer.length;
66170
66171 if (this._flush && !bufferLength) {
66172 clearInterval(this._interval);
66173 } // Do not send the batch of events if
66174 // the Buffer is paused or is empty or the App is not in the foreground
66175 // Apps should be in the foreground since
66176 // the OS may restrict access to the network in the background
66177
66178
66179 if (this._pause || !bufferLength || !Object(_utils_AppUtils__WEBPACK_IMPORTED_MODULE_2__["isAppInForeground"])()) {
66180 return;
66181 }
66182
66183 var flushSize = this._config.flushSize;
66184 var batchSize = Math.min(flushSize, bufferLength);
66185
66186 var bufferSubset = this._buffer.splice(0, batchSize);
66187
66188 this._putEvents(bufferSubset);
66189 };
66190
66191 EventsBuffer.prototype._putEvents = function (buffer) {
66192 return __awaiter(this, void 0, void 0, function () {
66193 var eventMap, batchEventParams, command, data, err_1;
66194 return __generator(this, function (_a) {
66195 switch (_a.label) {
66196 case 0:
66197 eventMap = this._bufferToMap(buffer);
66198 batchEventParams = this._generateBatchEventParams(eventMap);
66199 _a.label = 1;
66200
66201 case 1:
66202 _a.trys.push([1, 3,, 4]);
66203
66204 command = new _aws_sdk_client_pinpoint__WEBPACK_IMPORTED_MODULE_1__["PutEventsCommand"](batchEventParams);
66205 return [4
66206 /*yield*/
66207 , this._client.send(command)];
66208
66209 case 2:
66210 data = _a.sent();
66211
66212 this._processPutEventsSuccessResponse(data, eventMap);
66213
66214 return [3
66215 /*break*/
66216 , 4];
66217
66218 case 3:
66219 err_1 = _a.sent();
66220 return [2
66221 /*return*/
66222 , this._handlePutEventsFailure(err_1, eventMap)];
66223
66224 case 4:
66225 return [2
66226 /*return*/
66227 ];
66228 }
66229 });
66230 });
66231 };
66232
66233 EventsBuffer.prototype._generateBatchEventParams = function (eventMap) {
66234 var batchEventParams = {
66235 ApplicationId: '',
66236 EventsRequest: {
66237 BatchItem: {}
66238 }
66239 };
66240 Object.values(eventMap).forEach(function (item) {
66241 var params = item.params;
66242 var event = params.event,
66243 timestamp = params.timestamp,
66244 config = params.config;
66245 var name = event.name,
66246 attributes = event.attributes,
66247 metrics = event.metrics,
66248 eventId = event.eventId,
66249 session = event.session;
66250 var appId = config.appId,
66251 endpointId = config.endpointId;
66252 var batchItem = batchEventParams.EventsRequest.BatchItem;
66253 batchEventParams.ApplicationId = batchEventParams.ApplicationId || appId;
66254
66255 if (!batchItem[endpointId]) {
66256 batchItem[endpointId] = {
66257 Endpoint: {},
66258 Events: {}
66259 };
66260 }
66261
66262 batchItem[endpointId].Events[eventId] = {
66263 EventType: name,
66264 Timestamp: new Date(timestamp).toISOString(),
66265 Attributes: attributes,
66266 Metrics: metrics,
66267 Session: session
66268 };
66269 });
66270 return batchEventParams;
66271 };
66272
66273 EventsBuffer.prototype._handlePutEventsFailure = function (err, eventMap) {
66274 logger.debug('_putEvents Failed: ', err);
66275 var statusCode = err.$metadata && err.$metadata.httpStatusCode;
66276
66277 if (RETRYABLE_CODES.includes(statusCode)) {
66278 var retryableEvents = Object.values(eventMap);
66279
66280 this._retry(retryableEvents);
66281
66282 return;
66283 }
66284 };
66285
66286 EventsBuffer.prototype._processPutEventsSuccessResponse = function (data, eventMap) {
66287 var Results = data.EventsResponse.Results;
66288 var retryableEvents = [];
66289 Object.entries(Results).forEach(function (_a) {
66290 var _b = __read(_a, 2),
66291 endpointId = _b[0],
66292 endpointValues = _b[1];
66293
66294 var responses = endpointValues.EventsItemResponse;
66295 Object.entries(responses).forEach(function (_a) {
66296 var _b, _c;
66297
66298 var _d = __read(_a, 2),
66299 eventId = _d[0],
66300 _e = _d[1],
66301 StatusCode = _e.StatusCode,
66302 Message = _e.Message;
66303
66304 var eventObject = eventMap[eventId]; // manually crafting handlers response to keep API consistant
66305
66306 var response = {
66307 EventsResponse: {
66308 Results: (_b = {}, _b[endpointId] = {
66309 EventsItemResponse: (_c = {}, _c[eventId] = {
66310 StatusCode: StatusCode,
66311 Message: Message
66312 }, _c)
66313 }, _b)
66314 }
66315 };
66316
66317 if (ACCEPTED_CODES.includes(StatusCode)) {
66318 eventObject.handlers.resolve(response);
66319 return;
66320 }
66321
66322 if (RETRYABLE_CODES.includes(StatusCode)) {
66323 retryableEvents.push(eventObject);
66324 return;
66325 }
66326
66327 var name = eventObject.params.event.name;
66328 logger.error("event " + eventId + " : " + name + " failed with error: " + Message);
66329 return eventObject.handlers.reject(response);
66330 });
66331 });
66332
66333 if (retryableEvents.length) {
66334 this._retry(retryableEvents);
66335 }
66336 };
66337
66338 EventsBuffer.prototype._retry = function (retryableEvents) {
66339 var _a; // retryable events that haven't reached the resendLimit
66340
66341
66342 var eligibleEvents = [];
66343 retryableEvents.forEach(function (event) {
66344 var _a;
66345
66346 var params = event.params;
66347 var _b = params.event,
66348 eventId = _b.eventId,
66349 name = _b.name;
66350
66351 if (params.resendLimit-- > 0) {
66352 logger.debug("resending event " + eventId + " : " + name + " with " + params.resendLimit + " retry attempts remaining");
66353 eligibleEvents.push((_a = {}, _a[eventId] = event, _a));
66354 return;
66355 }
66356
66357 logger.debug("no retry attempts remaining for event " + eventId + " : " + name);
66358 }); // add the events to the front of the buffer
66359
66360 (_a = this._buffer).unshift.apply(_a, __spread(eligibleEvents));
66361 }; // convert buffer to map, i.e. { eventId1: { params, handler }, eventId2: { params, handlers } }
66362 // this allows us to easily access the handlers after receiving a batch response
66363
66364
66365 EventsBuffer.prototype._bufferToMap = function (buffer) {
66366 return buffer.reduce(function (acc, curVal) {
66367 var _a = __read(Object.entries(curVal), 1),
66368 _b = __read(_a[0], 2),
66369 key = _b[0],
66370 value = _b[1];
66371
66372 acc[key] = value;
66373 return acc;
66374 }, {});
66375 };
66376
66377 return EventsBuffer;
66378}();
66379
66380/* harmony default export */ __webpack_exports__["default"] = (EventsBuffer);
66381
66382/***/ }),
66383
66384/***/ "./lib-esm/Providers/index.js":
66385/*!************************************!*\
66386 !*** ./lib-esm/Providers/index.js ***!
66387 \************************************/
66388/*! exports provided: AWSPinpointProvider, AWSKinesisProvider, AWSKinesisFirehoseProvider, AmazonPersonalizeProvider */
66389/***/ (function(module, __webpack_exports__, __webpack_require__) {
66390
66391"use strict";
66392__webpack_require__.r(__webpack_exports__);
66393/* harmony import */ var _AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AWSPinpointProvider */ "./lib-esm/Providers/AWSPinpointProvider.js");
66394/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return _AWSPinpointProvider__WEBPACK_IMPORTED_MODULE_0__["AWSPinpointProvider"]; });
66395
66396/* harmony import */ var _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AWSKinesisProvider */ "./lib-esm/Providers/AWSKinesisProvider.js");
66397/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return _AWSKinesisProvider__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"]; });
66398
66399/* harmony import */ var _AWSKinesisFirehoseProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AWSKinesisFirehoseProvider */ "./lib-esm/Providers/AWSKinesisFirehoseProvider.js");
66400/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return _AWSKinesisFirehoseProvider__WEBPACK_IMPORTED_MODULE_2__["AWSKinesisFirehoseProvider"]; });
66401
66402/* harmony import */ var _AmazonPersonalizeProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AmazonPersonalizeProvider */ "./lib-esm/Providers/AmazonPersonalizeProvider.js");
66403/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return _AmazonPersonalizeProvider__WEBPACK_IMPORTED_MODULE_3__["AmazonPersonalizeProvider"]; });
66404
66405
66406
66407
66408
66409
66410/***/ }),
66411
66412/***/ "./lib-esm/index.js":
66413/*!**************************!*\
66414 !*** ./lib-esm/index.js ***!
66415 \**************************/
66416/*! exports provided: default, Analytics, AWSPinpointProvider, AWSKinesisProvider, AWSKinesisFirehoseProvider, AmazonPersonalizeProvider */
66417/***/ (function(module, __webpack_exports__, __webpack_require__) {
66418
66419"use strict";
66420__webpack_require__.r(__webpack_exports__);
66421/* harmony import */ var _Analytics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Analytics */ "./lib-esm/Analytics.js");
66422/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Analytics", function() { return _Analytics__WEBPACK_IMPORTED_MODULE_0__["Analytics"]; });
66423
66424/* harmony import */ var _Providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers */ "./lib-esm/Providers/index.js");
66425/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSPinpointProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSPinpointProvider"]; });
66426
66427/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisProvider"]; });
66428
66429/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSKinesisFirehoseProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AWSKinesisFirehoseProvider"]; });
66430
66431/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AmazonPersonalizeProvider"]; });
66432
66433/*
66434 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
66435 *
66436 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
66437 * the License. A copy of the License is located at
66438 *
66439 * http://aws.amazon.com/apache2.0/
66440 *
66441 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
66442 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
66443 * and limitations under the License.
66444 */
66445
66446/**
66447 * @deprecated use named import
66448 */
66449
66450/* harmony default export */ __webpack_exports__["default"] = (_Analytics__WEBPACK_IMPORTED_MODULE_0__["Analytics"]);
66451
66452
66453
66454/***/ }),
66455
66456/***/ "./lib-esm/trackers/EventTracker.js":
66457/*!******************************************!*\
66458 !*** ./lib-esm/trackers/EventTracker.js ***!
66459 \******************************************/
66460/*! exports provided: EventTracker, default */
66461/***/ (function(module, __webpack_exports__, __webpack_require__) {
66462
66463"use strict";
66464__webpack_require__.r(__webpack_exports__);
66465/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventTracker", function() { return EventTracker; });
66466/* harmony import */ var _vendor_dom_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vendor/dom-utils */ "./lib-esm/vendor/dom-utils/index.js");
66467/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
66468/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
66469/*
66470 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
66471 *
66472 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
66473 * the License. A copy of the License is located at
66474 *
66475 * http://aws.amazon.com/apache2.0/
66476 *
66477 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
66478 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
66479 * and limitations under the License.
66480 */
66481var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
66482 function adopt(value) {
66483 return value instanceof P ? value : new P(function (resolve) {
66484 resolve(value);
66485 });
66486 }
66487
66488 return new (P || (P = Promise))(function (resolve, reject) {
66489 function fulfilled(value) {
66490 try {
66491 step(generator.next(value));
66492 } catch (e) {
66493 reject(e);
66494 }
66495 }
66496
66497 function rejected(value) {
66498 try {
66499 step(generator["throw"](value));
66500 } catch (e) {
66501 reject(e);
66502 }
66503 }
66504
66505 function step(result) {
66506 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
66507 }
66508
66509 step((generator = generator.apply(thisArg, _arguments || [])).next());
66510 });
66511};
66512
66513var __generator = undefined && undefined.__generator || function (thisArg, body) {
66514 var _ = {
66515 label: 0,
66516 sent: function sent() {
66517 if (t[0] & 1) throw t[1];
66518 return t[1];
66519 },
66520 trys: [],
66521 ops: []
66522 },
66523 f,
66524 y,
66525 t,
66526 g;
66527 return g = {
66528 next: verb(0),
66529 "throw": verb(1),
66530 "return": verb(2)
66531 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
66532 return this;
66533 }), g;
66534
66535 function verb(n) {
66536 return function (v) {
66537 return step([n, v]);
66538 };
66539 }
66540
66541 function step(op) {
66542 if (f) throw new TypeError("Generator is already executing.");
66543
66544 while (_) {
66545 try {
66546 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;
66547 if (y = 0, t) op = [op[0] & 2, t.value];
66548
66549 switch (op[0]) {
66550 case 0:
66551 case 1:
66552 t = op;
66553 break;
66554
66555 case 4:
66556 _.label++;
66557 return {
66558 value: op[1],
66559 done: false
66560 };
66561
66562 case 5:
66563 _.label++;
66564 y = op[1];
66565 op = [0];
66566 continue;
66567
66568 case 7:
66569 op = _.ops.pop();
66570
66571 _.trys.pop();
66572
66573 continue;
66574
66575 default:
66576 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
66577 _ = 0;
66578 continue;
66579 }
66580
66581 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
66582 _.label = op[1];
66583 break;
66584 }
66585
66586 if (op[0] === 6 && _.label < t[1]) {
66587 _.label = t[1];
66588 t = op;
66589 break;
66590 }
66591
66592 if (t && _.label < t[2]) {
66593 _.label = t[2];
66594
66595 _.ops.push(op);
66596
66597 break;
66598 }
66599
66600 if (t[2]) _.ops.pop();
66601
66602 _.trys.pop();
66603
66604 continue;
66605 }
66606
66607 op = body.call(thisArg, _);
66608 } catch (e) {
66609 op = [6, e];
66610 y = 0;
66611 } finally {
66612 f = t = 0;
66613 }
66614 }
66615
66616 if (op[0] & 5) throw op[1];
66617 return {
66618 value: op[0] ? op[1] : void 0,
66619 done: true
66620 };
66621 }
66622};
66623
66624
66625
66626var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('EventTracker');
66627var defaultOpts = {
66628 enable: false,
66629 events: ['click'],
66630 selectorPrefix: 'data-amplify-analytics-',
66631 provider: 'AWSPinpoint'
66632};
66633
66634var EventTracker =
66635/** @class */
66636function () {
66637 function EventTracker(tracker, opts) {
66638 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener) {
66639 logger.debug('not in the supported web environment');
66640 return;
66641 }
66642
66643 this._config = Object.assign({}, defaultOpts, opts);
66644 this._tracker = tracker;
66645 this._delegates = {};
66646 this._trackFunc = this._trackFunc.bind(this);
66647 logger.debug('initialize pageview tracker with opts', this._config);
66648 this.configure(this._config);
66649 }
66650
66651 EventTracker.prototype.configure = function (opts) {
66652 var _this = this;
66653
66654 Object.assign(this._config, opts);
66655
66656 if (!this._config.enable) {
66657 Object.keys(this._delegates).forEach(function (key) {
66658 if (typeof _this._delegates[key].destroy === 'function') _this._delegates[key].destroy();
66659 });
66660 this._delegates = {};
66661 } else if (this._config.enable && Object.keys(this._delegates).length === 0) {
66662 var selector_1 = '[' + this._config.selectorPrefix + 'on]';
66663
66664 this._config.events.forEach(function (evt) {
66665 _this._delegates[evt] = Object(_vendor_dom_utils__WEBPACK_IMPORTED_MODULE_0__["delegate"])(document, evt, selector_1, _this._trackFunc, {
66666 composed: true,
66667 useCapture: true
66668 });
66669 });
66670 }
66671
66672 return this._config;
66673 };
66674
66675 EventTracker.prototype._trackFunc = function (event, element) {
66676 return __awaiter(this, void 0, void 0, function () {
66677 var customAttrs, events, eventName, attrs, defaultAttrs, _a, attributes;
66678
66679 return __generator(this, function (_b) {
66680 switch (_b.label) {
66681 case 0:
66682 customAttrs = {};
66683 events = element.getAttribute(this._config.selectorPrefix + 'on').split(/\s*,\s*/);
66684 eventName = element.getAttribute(this._config.selectorPrefix + 'name');
66685 attrs = element.getAttribute(this._config.selectorPrefix + 'attrs');
66686
66687 if (attrs) {
66688 attrs.split(/\s*,\s*/).forEach(function (attr) {
66689 var tmp = attr.trim().split(/\s*:\s*/);
66690 customAttrs[tmp[0]] = tmp[1];
66691 });
66692 }
66693
66694 if (!(typeof this._config.attributes === 'function')) return [3
66695 /*break*/
66696 , 2];
66697 return [4
66698 /*yield*/
66699 , this._config.attributes()];
66700
66701 case 1:
66702 _a = _b.sent();
66703 return [3
66704 /*break*/
66705 , 3];
66706
66707 case 2:
66708 _a = this._config.attributes;
66709 _b.label = 3;
66710
66711 case 3:
66712 defaultAttrs = _a;
66713 attributes = Object.assign({
66714 type: event.type,
66715 target: event.target.localName + " with id " + event.target.id
66716 }, defaultAttrs, customAttrs);
66717 logger.debug('events needed to be recorded', events);
66718 logger.debug('attributes needed to be attached', customAttrs);
66719
66720 if (events.indexOf(event.type) < 0) {
66721 logger.debug("event " + event.type + " is not selected to be recorded");
66722 return [2
66723 /*return*/
66724 ];
66725 }
66726
66727 this._tracker({
66728 name: eventName || 'event',
66729 attributes: attributes
66730 }, this._config.provider)["catch"](function (e) {
66731 logger.debug("Failed to record the " + event.type + " event', " + e);
66732 });
66733
66734 return [2
66735 /*return*/
66736 ];
66737 }
66738 });
66739 });
66740 };
66741
66742 return EventTracker;
66743}();
66744
66745
66746/**
66747 * @deprecated use named import
66748 */
66749
66750/* harmony default export */ __webpack_exports__["default"] = (EventTracker);
66751
66752/***/ }),
66753
66754/***/ "./lib-esm/trackers/PageViewTracker.js":
66755/*!*********************************************!*\
66756 !*** ./lib-esm/trackers/PageViewTracker.js ***!
66757 \*********************************************/
66758/*! exports provided: PageViewTracker, default */
66759/***/ (function(module, __webpack_exports__, __webpack_require__) {
66760
66761"use strict";
66762__webpack_require__.r(__webpack_exports__);
66763/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageViewTracker", function() { return PageViewTracker; });
66764/* harmony import */ var _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/MethodEmbed */ "./lib-esm/utils/MethodEmbed.js");
66765/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
66766/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
66767/*
66768 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
66769 *
66770 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
66771 * the License. A copy of the License is located at
66772 *
66773 * http://aws.amazon.com/apache2.0/
66774 *
66775 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
66776 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
66777 * and limitations under the License.
66778 */
66779var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
66780 function adopt(value) {
66781 return value instanceof P ? value : new P(function (resolve) {
66782 resolve(value);
66783 });
66784 }
66785
66786 return new (P || (P = Promise))(function (resolve, reject) {
66787 function fulfilled(value) {
66788 try {
66789 step(generator.next(value));
66790 } catch (e) {
66791 reject(e);
66792 }
66793 }
66794
66795 function rejected(value) {
66796 try {
66797 step(generator["throw"](value));
66798 } catch (e) {
66799 reject(e);
66800 }
66801 }
66802
66803 function step(result) {
66804 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
66805 }
66806
66807 step((generator = generator.apply(thisArg, _arguments || [])).next());
66808 });
66809};
66810
66811var __generator = undefined && undefined.__generator || function (thisArg, body) {
66812 var _ = {
66813 label: 0,
66814 sent: function sent() {
66815 if (t[0] & 1) throw t[1];
66816 return t[1];
66817 },
66818 trys: [],
66819 ops: []
66820 },
66821 f,
66822 y,
66823 t,
66824 g;
66825 return g = {
66826 next: verb(0),
66827 "throw": verb(1),
66828 "return": verb(2)
66829 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
66830 return this;
66831 }), g;
66832
66833 function verb(n) {
66834 return function (v) {
66835 return step([n, v]);
66836 };
66837 }
66838
66839 function step(op) {
66840 if (f) throw new TypeError("Generator is already executing.");
66841
66842 while (_) {
66843 try {
66844 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;
66845 if (y = 0, t) op = [op[0] & 2, t.value];
66846
66847 switch (op[0]) {
66848 case 0:
66849 case 1:
66850 t = op;
66851 break;
66852
66853 case 4:
66854 _.label++;
66855 return {
66856 value: op[1],
66857 done: false
66858 };
66859
66860 case 5:
66861 _.label++;
66862 y = op[1];
66863 op = [0];
66864 continue;
66865
66866 case 7:
66867 op = _.ops.pop();
66868
66869 _.trys.pop();
66870
66871 continue;
66872
66873 default:
66874 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
66875 _ = 0;
66876 continue;
66877 }
66878
66879 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
66880 _.label = op[1];
66881 break;
66882 }
66883
66884 if (op[0] === 6 && _.label < t[1]) {
66885 _.label = t[1];
66886 t = op;
66887 break;
66888 }
66889
66890 if (t && _.label < t[2]) {
66891 _.label = t[2];
66892
66893 _.ops.push(op);
66894
66895 break;
66896 }
66897
66898 if (t[2]) _.ops.pop();
66899
66900 _.trys.pop();
66901
66902 continue;
66903 }
66904
66905 op = body.call(thisArg, _);
66906 } catch (e) {
66907 op = [6, e];
66908 y = 0;
66909 } finally {
66910 f = t = 0;
66911 }
66912 }
66913
66914 if (op[0] & 5) throw op[1];
66915 return {
66916 value: op[0] ? op[1] : void 0,
66917 done: true
66918 };
66919 }
66920};
66921
66922
66923
66924var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('PageViewTracker');
66925var PREV_URL_KEY = 'aws-amplify-analytics-prevUrl';
66926
66927var getUrl = function getUrl() {
66928 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser) return '';else return window.location.origin + window.location.pathname;
66929};
66930
66931var defaultOpts = {
66932 enable: false,
66933 provider: 'AWSPinpoint',
66934 getUrl: getUrl
66935};
66936
66937var PageViewTracker =
66938/** @class */
66939function () {
66940 function PageViewTracker(tracker, opts) {
66941 logger.debug('initialize pageview tracker with opts', opts);
66942 this._config = Object.assign({}, defaultOpts, opts);
66943 this._tracker = tracker;
66944 this._hasEnabled = false;
66945 this._trackFunc = this._trackFunc.bind(this);
66946
66947 if (this._config.type === 'SPA') {
66948 this._pageViewTrackSPA();
66949 } else {
66950 this._pageViewTrackDefault();
66951 }
66952 }
66953
66954 PageViewTracker.prototype.configure = function (opts) {
66955 Object.assign(this._config, opts); // if spa, need to remove those listeners if disabled
66956
66957 if (this._config.type === 'SPA') {
66958 this._pageViewTrackSPA();
66959 }
66960
66961 return this._config;
66962 };
66963
66964 PageViewTracker.prototype._isSameUrl = function () {
66965 var prevUrl = sessionStorage.getItem(PREV_URL_KEY);
66966
66967 var curUrl = this._config.getUrl();
66968
66969 if (prevUrl === curUrl) {
66970 logger.debug('the url is same');
66971 return true;
66972 } else return false;
66973 };
66974
66975 PageViewTracker.prototype._pageViewTrackDefault = function () {
66976 return __awaiter(this, void 0, void 0, function () {
66977 var url, customAttrs, _a, attributes;
66978
66979 return __generator(this, function (_b) {
66980 switch (_b.label) {
66981 case 0:
66982 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !window.sessionStorage) {
66983 logger.debug('not in the supported web enviroment');
66984 return [2
66985 /*return*/
66986 ];
66987 }
66988
66989 url = this._config.getUrl();
66990 if (!(typeof this._config.attributes === 'function')) return [3
66991 /*break*/
66992 , 2];
66993 return [4
66994 /*yield*/
66995 , this._config.attributes()];
66996
66997 case 1:
66998 _a = _b.sent();
66999 return [3
67000 /*break*/
67001 , 3];
67002
67003 case 2:
67004 _a = this._config.attributes;
67005 _b.label = 3;
67006
67007 case 3:
67008 customAttrs = _a;
67009 attributes = Object.assign({
67010 url: url
67011 }, customAttrs);
67012
67013 if (this._config.enable && !this._isSameUrl()) {
67014 this._tracker({
67015 name: this._config.eventName || 'pageView',
67016 attributes: attributes
67017 }, this._config.provider)["catch"](function (e) {
67018 logger.debug('Failed to record the page view event', e);
67019 });
67020
67021 sessionStorage.setItem(PREV_URL_KEY, url);
67022 }
67023
67024 return [2
67025 /*return*/
67026 ];
67027 }
67028 });
67029 });
67030 };
67031
67032 PageViewTracker.prototype._trackFunc = function () {
67033 return __awaiter(this, void 0, void 0, function () {
67034 var url, customAttrs, _a, attributes;
67035
67036 return __generator(this, function (_b) {
67037 switch (_b.label) {
67038 case 0:
67039 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !history.pushState || !window.sessionStorage) {
67040 logger.debug('not in the supported web enviroment');
67041 return [2
67042 /*return*/
67043 ];
67044 }
67045
67046 url = this._config.getUrl();
67047 if (!(typeof this._config.attributes === 'function')) return [3
67048 /*break*/
67049 , 2];
67050 return [4
67051 /*yield*/
67052 , this._config.attributes()];
67053
67054 case 1:
67055 _a = _b.sent();
67056 return [3
67057 /*break*/
67058 , 3];
67059
67060 case 2:
67061 _a = this._config.attributes;
67062 _b.label = 3;
67063
67064 case 3:
67065 customAttrs = _a;
67066 attributes = Object.assign({
67067 url: url
67068 }, customAttrs);
67069
67070 if (!this._isSameUrl()) {
67071 this._tracker({
67072 name: this._config.eventName || 'pageView',
67073 attributes: attributes
67074 }, this._config.provider)["catch"](function (e) {
67075 logger.debug('Failed to record the page view event', e);
67076 });
67077
67078 sessionStorage.setItem(PREV_URL_KEY, url);
67079 }
67080
67081 return [2
67082 /*return*/
67083 ];
67084 }
67085 });
67086 });
67087 };
67088
67089 PageViewTracker.prototype._pageViewTrackSPA = function () {
67090 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["JS"].browserOrNode().isBrowser || !window.addEventListener || !history.pushState) {
67091 logger.debug('not in the supported web enviroment');
67092 return;
67093 }
67094
67095 if (this._config.enable && !this._hasEnabled) {
67096 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].add(history, 'pushState', this._trackFunc);
67097 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].add(history, 'replaceState', this._trackFunc);
67098 window.addEventListener('popstate', this._trackFunc);
67099
67100 this._trackFunc();
67101
67102 this._hasEnabled = true;
67103 } else {
67104 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].remove(history, 'pushState');
67105 _utils_MethodEmbed__WEBPACK_IMPORTED_MODULE_0__["MethodEmbed"].remove(history, 'replaceState');
67106 window.removeEventListener('popstate', this._trackFunc);
67107 this._hasEnabled = false;
67108 }
67109 };
67110
67111 return PageViewTracker;
67112}();
67113
67114
67115/**
67116 * @deprecated use named import
67117 */
67118
67119/* harmony default export */ __webpack_exports__["default"] = (PageViewTracker);
67120
67121/***/ }),
67122
67123/***/ "./lib-esm/trackers/SessionTracker.js":
67124/*!********************************************!*\
67125 !*** ./lib-esm/trackers/SessionTracker.js ***!
67126 \********************************************/
67127/*! exports provided: SessionTracker, default */
67128/***/ (function(module, __webpack_exports__, __webpack_require__) {
67129
67130"use strict";
67131__webpack_require__.r(__webpack_exports__);
67132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SessionTracker", function() { return SessionTracker; });
67133/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
67134/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
67135/*
67136 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
67137 *
67138 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
67139 * the License. A copy of the License is located at
67140 *
67141 * http://aws.amazon.com/apache2.0/
67142 *
67143 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
67144 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
67145 * and limitations under the License.
67146 */
67147var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
67148 function adopt(value) {
67149 return value instanceof P ? value : new P(function (resolve) {
67150 resolve(value);
67151 });
67152 }
67153
67154 return new (P || (P = Promise))(function (resolve, reject) {
67155 function fulfilled(value) {
67156 try {
67157 step(generator.next(value));
67158 } catch (e) {
67159 reject(e);
67160 }
67161 }
67162
67163 function rejected(value) {
67164 try {
67165 step(generator["throw"](value));
67166 } catch (e) {
67167 reject(e);
67168 }
67169 }
67170
67171 function step(result) {
67172 result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
67173 }
67174
67175 step((generator = generator.apply(thisArg, _arguments || [])).next());
67176 });
67177};
67178
67179var __generator = undefined && undefined.__generator || function (thisArg, body) {
67180 var _ = {
67181 label: 0,
67182 sent: function sent() {
67183 if (t[0] & 1) throw t[1];
67184 return t[1];
67185 },
67186 trys: [],
67187 ops: []
67188 },
67189 f,
67190 y,
67191 t,
67192 g;
67193 return g = {
67194 next: verb(0),
67195 "throw": verb(1),
67196 "return": verb(2)
67197 }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
67198 return this;
67199 }), g;
67200
67201 function verb(n) {
67202 return function (v) {
67203 return step([n, v]);
67204 };
67205 }
67206
67207 function step(op) {
67208 if (f) throw new TypeError("Generator is already executing.");
67209
67210 while (_) {
67211 try {
67212 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;
67213 if (y = 0, t) op = [op[0] & 2, t.value];
67214
67215 switch (op[0]) {
67216 case 0:
67217 case 1:
67218 t = op;
67219 break;
67220
67221 case 4:
67222 _.label++;
67223 return {
67224 value: op[1],
67225 done: false
67226 };
67227
67228 case 5:
67229 _.label++;
67230 y = op[1];
67231 op = [0];
67232 continue;
67233
67234 case 7:
67235 op = _.ops.pop();
67236
67237 _.trys.pop();
67238
67239 continue;
67240
67241 default:
67242 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
67243 _ = 0;
67244 continue;
67245 }
67246
67247 if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
67248 _.label = op[1];
67249 break;
67250 }
67251
67252 if (op[0] === 6 && _.label < t[1]) {
67253 _.label = t[1];
67254 t = op;
67255 break;
67256 }
67257
67258 if (t && _.label < t[2]) {
67259 _.label = t[2];
67260
67261 _.ops.push(op);
67262
67263 break;
67264 }
67265
67266 if (t[2]) _.ops.pop();
67267
67268 _.trys.pop();
67269
67270 continue;
67271 }
67272
67273 op = body.call(thisArg, _);
67274 } catch (e) {
67275 op = [6, e];
67276 y = 0;
67277 } finally {
67278 f = t = 0;
67279 }
67280 }
67281
67282 if (op[0] & 5) throw op[1];
67283 return {
67284 value: op[0] ? op[1] : void 0,
67285 done: true
67286 };
67287 }
67288}; // the session tracker for web
67289
67290
67291
67292var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('SessionTracker');
67293var defaultOpts = {
67294 enable: false,
67295 provider: 'AWSPinpoint'
67296};
67297var initialEventSent = false;
67298
67299var SessionTracker =
67300/** @class */
67301function () {
67302 function SessionTracker(tracker, opts) {
67303 this._config = Object.assign({}, defaultOpts, opts);
67304 this._tracker = tracker;
67305 this._hasEnabled = false;
67306 this._trackFunc = this._trackFunc.bind(this);
67307 this._trackBeforeUnload = this._trackBeforeUnload.bind(this);
67308 this.configure(this._config);
67309 }
67310
67311 SessionTracker.prototype._envCheck = function () {
67312 if (!_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser) {
67313 return false;
67314 }
67315
67316 if (!document || !document.addEventListener) {
67317 logger.debug('not in the supported web environment');
67318 return false;
67319 }
67320
67321 if (typeof document.hidden !== 'undefined') {
67322 this._hidden = 'hidden';
67323 this._visibilityChange = 'visibilitychange';
67324 } else if (typeof document['msHidden'] !== 'undefined') {
67325 this._hidden = 'msHidden';
67326 this._visibilityChange = 'msvisibilitychange';
67327 } else if (typeof document['webkitHidden'] !== 'undefined') {
67328 this._hidden = 'webkitHidden';
67329 this._visibilityChange = 'webkitvisibilitychange';
67330 } else {
67331 logger.debug('not in the supported web environment');
67332 return false;
67333 }
67334
67335 return true;
67336 };
67337
67338 SessionTracker.prototype._trackFunc = function () {
67339 return __awaiter(this, void 0, void 0, function () {
67340 var customAttrs, _a, attributes;
67341
67342 return __generator(this, function (_b) {
67343 switch (_b.label) {
67344 case 0:
67345 if (!(typeof this._config.attributes === 'function')) return [3
67346 /*break*/
67347 , 2];
67348 return [4
67349 /*yield*/
67350 , this._config.attributes()];
67351
67352 case 1:
67353 _a = _b.sent();
67354 return [3
67355 /*break*/
67356 , 3];
67357
67358 case 2:
67359 _a = this._config.attributes;
67360 _b.label = 3;
67361
67362 case 3:
67363 customAttrs = _a;
67364 attributes = Object.assign({}, customAttrs);
67365
67366 if (document.visibilityState === this._hidden) {
67367 this._tracker({
67368 name: '_session.stop',
67369 attributes: attributes
67370 }, this._config.provider)["catch"](function (e) {
67371 logger.debug('record session stop event failed.', e);
67372 });
67373 } else {
67374 this._tracker({
67375 name: '_session.start',
67376 attributes: attributes
67377 }, this._config.provider)["catch"](function (e) {
67378 logger.debug('record session start event failed.', e);
67379 });
67380 }
67381
67382 return [2
67383 /*return*/
67384 ];
67385 }
67386 });
67387 });
67388 };
67389
67390 SessionTracker.prototype._trackBeforeUnload = function (event) {
67391 // before unload callback cannot be async => https://github.com/aws-amplify/amplify-js/issues/2088
67392 var _this = this;
67393
67394 var customAttrs = typeof this._config.attributes === 'function' ? Promise.resolve(this._config.attributes()) : Promise.resolve(this._config.attributes);
67395 customAttrs.then(function (custom) {
67396 var attributes = Object.assign({}, custom);
67397
67398 _this._tracker({
67399 name: '_session.stop',
67400 attributes: attributes,
67401 immediate: true
67402 }, _this._config.provider)["catch"](function (e) {
67403 logger.debug('record session stop event failed.', e);
67404 });
67405 });
67406 }; // to keep configure a synchronized function
67407
67408
67409 SessionTracker.prototype._sendInitialEvent = function () {
67410 return __awaiter(this, void 0, void 0, function () {
67411 var customAttrs, _a, attributes;
67412
67413 return __generator(this, function (_b) {
67414 switch (_b.label) {
67415 case 0:
67416 if (initialEventSent) {
67417 logger.debug('the start session has been sent when the page is loaded');
67418 return [2
67419 /*return*/
67420 ];
67421 } else {
67422 initialEventSent = true;
67423 }
67424
67425 if (!(typeof this._config.attributes === 'function')) return [3
67426 /*break*/
67427 , 2];
67428 return [4
67429 /*yield*/
67430 , this._config.attributes()];
67431
67432 case 1:
67433 _a = _b.sent();
67434 return [3
67435 /*break*/
67436 , 3];
67437
67438 case 2:
67439 _a = this._config.attributes;
67440 _b.label = 3;
67441
67442 case 3:
67443 customAttrs = _a;
67444 attributes = Object.assign({}, customAttrs);
67445
67446 this._tracker({
67447 name: '_session.start',
67448 attributes: attributes
67449 }, this._config.provider)["catch"](function (e) {
67450 logger.debug('record session start event failed.', e);
67451 });
67452
67453 return [2
67454 /*return*/
67455 ];
67456 }
67457 });
67458 });
67459 };
67460
67461 SessionTracker.prototype.configure = function (opts) {
67462 if (!this._envCheck()) {
67463 return this._config;
67464 }
67465
67466 Object.assign(this._config, opts);
67467
67468 if (this._config.enable && !this._hasEnabled) {
67469 // send a start session as soon as it's enabled
67470 this._sendInitialEvent(); // listen on events
67471
67472
67473 document.addEventListener(this._visibilityChange, this._trackFunc, false);
67474 window.addEventListener('beforeunload', this._trackBeforeUnload, false);
67475 this._hasEnabled = true;
67476 } else if (!this._config.enable && this._hasEnabled) {
67477 document.removeEventListener(this._visibilityChange, this._trackFunc, false);
67478 window.removeEventListener('beforeunload', this._trackBeforeUnload, false);
67479 this._hasEnabled = false;
67480 }
67481
67482 return this._config;
67483 };
67484
67485 return SessionTracker;
67486}();
67487
67488
67489/**
67490 * @deprecated use named import
67491 */
67492
67493/* harmony default export */ __webpack_exports__["default"] = (SessionTracker);
67494
67495/***/ }),
67496
67497/***/ "./lib-esm/trackers/index.js":
67498/*!***********************************!*\
67499 !*** ./lib-esm/trackers/index.js ***!
67500 \***********************************/
67501/*! exports provided: PageViewTracker, EventTracker, SessionTracker */
67502/***/ (function(module, __webpack_exports__, __webpack_require__) {
67503
67504"use strict";
67505__webpack_require__.r(__webpack_exports__);
67506/* harmony import */ var _PageViewTracker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PageViewTracker */ "./lib-esm/trackers/PageViewTracker.js");
67507/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageViewTracker", function() { return _PageViewTracker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
67508
67509/* harmony import */ var _EventTracker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventTracker */ "./lib-esm/trackers/EventTracker.js");
67510/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EventTracker", function() { return _EventTracker__WEBPACK_IMPORTED_MODULE_1__["default"]; });
67511
67512/* harmony import */ var _SessionTracker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SessionTracker */ "./lib-esm/trackers/SessionTracker.js");
67513/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTracker", function() { return _SessionTracker__WEBPACK_IMPORTED_MODULE_2__["default"]; });
67514
67515
67516
67517
67518
67519/***/ }),
67520
67521/***/ "./lib-esm/utils/AppUtils.js":
67522/*!***********************************!*\
67523 !*** ./lib-esm/utils/AppUtils.js ***!
67524 \***********************************/
67525/*! exports provided: isAppInForeground */
67526/***/ (function(module, __webpack_exports__, __webpack_require__) {
67527
67528"use strict";
67529__webpack_require__.r(__webpack_exports__);
67530/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAppInForeground", function() { return isAppInForeground; });
67531var isAppInForeground = function isAppInForeground() {
67532 return true;
67533};
67534
67535
67536
67537/***/ }),
67538
67539/***/ "./lib-esm/utils/MethodEmbed.js":
67540/*!**************************************!*\
67541 !*** ./lib-esm/utils/MethodEmbed.js ***!
67542 \**************************************/
67543/*! exports provided: MethodEmbed, default */
67544/***/ (function(module, __webpack_exports__, __webpack_require__) {
67545
67546"use strict";
67547__webpack_require__.r(__webpack_exports__);
67548/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MethodEmbed", function() { return MethodEmbed; });
67549/*
67550 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
67551 *
67552 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
67553 * the License. A copy of the License is located at
67554 *
67555 * http://aws.amazon.com/apache2.0/
67556 *
67557 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
67558 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
67559 * and limitations under the License.
67560 */
67561var __read = undefined && undefined.__read || function (o, n) {
67562 var m = typeof Symbol === "function" && o[Symbol.iterator];
67563 if (!m) return o;
67564 var i = m.call(o),
67565 r,
67566 ar = [],
67567 e;
67568
67569 try {
67570 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
67571 ar.push(r.value);
67572 }
67573 } catch (error) {
67574 e = {
67575 error: error
67576 };
67577 } finally {
67578 try {
67579 if (r && !r.done && (m = i["return"])) m.call(i);
67580 } finally {
67581 if (e) throw e.error;
67582 }
67583 }
67584
67585 return ar;
67586};
67587
67588var __spread = undefined && undefined.__spread || function () {
67589 for (var ar = [], i = 0; i < arguments.length; i++) {
67590 ar = ar.concat(__read(arguments[i]));
67591 }
67592
67593 return ar;
67594};
67595
67596var lists = [];
67597
67598var MethodEmbed =
67599/** @class */
67600function () {
67601 function MethodEmbed(context, methodName) {
67602 this.context = context;
67603 this.methodName = methodName;
67604 this._originalMethod = context[methodName].bind(context);
67605 }
67606
67607 MethodEmbed.add = function (context, methodName, methodOverride) {
67608 getInstance(context, methodName).set(methodOverride);
67609 };
67610
67611 MethodEmbed.remove = function (context, methodName) {
67612 getInstance(context, methodName).remove();
67613 };
67614
67615 MethodEmbed.prototype.set = function (methodOverride) {
67616 var _this = this;
67617
67618 this.context[this.methodName] = function () {
67619 var args = [];
67620
67621 for (var _i = 0; _i < arguments.length; _i++) {
67622 args[_i] = arguments[_i];
67623 }
67624
67625 return methodOverride(_this._originalMethod.apply(_this, __spread(args)));
67626 };
67627 };
67628
67629 MethodEmbed.prototype.remove = function () {
67630 this.context[this.methodName] = this._originalMethod;
67631 };
67632
67633 return MethodEmbed;
67634}();
67635
67636
67637
67638function getInstance(context, methodName) {
67639 var instance = lists.filter(function (h) {
67640 return h.context === context && h.methodName === methodName;
67641 })[0];
67642
67643 if (!instance) {
67644 instance = new MethodEmbed(context, methodName);
67645 lists.push(instance);
67646 }
67647
67648 return instance;
67649}
67650/**
67651 * @deprecated use named import
67652 */
67653
67654
67655/* harmony default export */ __webpack_exports__["default"] = (MethodEmbed);
67656
67657/***/ }),
67658
67659/***/ "./lib-esm/vendor/dom-utils/closest.js":
67660/*!*********************************************!*\
67661 !*** ./lib-esm/vendor/dom-utils/closest.js ***!
67662 \*********************************************/
67663/*! exports provided: closest */
67664/***/ (function(module, __webpack_exports__, __webpack_require__) {
67665
67666"use strict";
67667__webpack_require__.r(__webpack_exports__);
67668/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return closest; });
67669/* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./matches */ "./lib-esm/vendor/dom-utils/matches.js");
67670/* harmony import */ var _parents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parents */ "./lib-esm/vendor/dom-utils/parents.js");
67671/**
67672 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
67673 */
67674
67675
67676/**
67677 * Gets the closest parent element that matches the passed selector.
67678 * @param {Element} element The element whose parents to check.
67679 * @param {string} selector The CSS selector to match against.
67680 * @param {boolean=} shouldCheckSelf True if the selector should test against
67681 * the passed element itself.
67682 * @return {Element|undefined} The matching element or undefined.
67683 */
67684
67685function closest(element, selector, shouldCheckSelf) {
67686 if (shouldCheckSelf === void 0) {
67687 shouldCheckSelf = false;
67688 }
67689
67690 if (!(element && element.nodeType === 1 && selector)) return;
67691 var parentElements = (shouldCheckSelf ? [element] : []).concat(Object(_parents__WEBPACK_IMPORTED_MODULE_1__["parents"])(element));
67692
67693 for (var i = 0, parent_1; parent_1 = parentElements[i]; i++) {
67694 if (Object(_matches__WEBPACK_IMPORTED_MODULE_0__["matches"])(parent_1, selector)) return parent_1;
67695 }
67696}
67697
67698/***/ }),
67699
67700/***/ "./lib-esm/vendor/dom-utils/delegate.js":
67701/*!**********************************************!*\
67702 !*** ./lib-esm/vendor/dom-utils/delegate.js ***!
67703 \**********************************************/
67704/*! exports provided: delegate */
67705/***/ (function(module, __webpack_exports__, __webpack_require__) {
67706
67707"use strict";
67708__webpack_require__.r(__webpack_exports__);
67709/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delegate", function() { return delegate; });
67710/* harmony import */ var _closest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./closest */ "./lib-esm/vendor/dom-utils/closest.js");
67711/* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./matches */ "./lib-esm/vendor/dom-utils/matches.js");
67712/**
67713 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
67714 */
67715
67716
67717/**
67718 * Delegates the handling of events for an element matching a selector to an
67719 * ancestor of the matching element.
67720 * @param {!Node} ancestor The ancestor element to add the listener to.
67721 * @param {string} eventType The event type to listen to.
67722 * @param {string} selector A CSS selector to match against child elements.
67723 * @param {!Function} callback A function to run any time the event happens.
67724 * @param {Object=} opts A configuration options object. The available options:
67725 * - useCapture<boolean>: If true, bind to the event capture phase.
67726 * - deep<boolean>: If true, delegate into shadow trees.
67727 * @return {Object} The delegate object. It contains a destroy method.
67728 */
67729
67730function delegate(ancestor, eventType, selector, callback, opts) {
67731 if (opts === void 0) {
67732 opts = {};
67733 } // Defines the event listener.
67734
67735
67736 var listener = function listener(event) {
67737 var delegateTarget; // If opts.composed is true and the event originated from inside a Shadow
67738 // tree, check the composed path nodes.
67739
67740 if (opts['composed'] && typeof event['composedPath'] === 'function') {
67741 var composedPath = event.composedPath();
67742
67743 for (var i = 0, node = void 0; node = composedPath[i]; i++) {
67744 if (node.nodeType === 1 && Object(_matches__WEBPACK_IMPORTED_MODULE_1__["matches"])(node, selector)) {
67745 delegateTarget = node;
67746 }
67747 }
67748 } else {
67749 // Otherwise check the parents.
67750 delegateTarget = Object(_closest__WEBPACK_IMPORTED_MODULE_0__["closest"])(event.target, selector, true);
67751 }
67752
67753 if (delegateTarget) {
67754 callback.call(delegateTarget, event, delegateTarget);
67755 }
67756 };
67757
67758 ancestor.addEventListener(eventType, listener, opts['useCapture']);
67759 return {
67760 destroy: function destroy() {
67761 ancestor.removeEventListener(eventType, listener, opts['useCapture']);
67762 }
67763 };
67764}
67765
67766/***/ }),
67767
67768/***/ "./lib-esm/vendor/dom-utils/dispatch.js":
67769/*!**********************************************!*\
67770 !*** ./lib-esm/vendor/dom-utils/dispatch.js ***!
67771 \**********************************************/
67772/*! exports provided: dispatch */
67773/***/ (function(module, __webpack_exports__, __webpack_require__) {
67774
67775"use strict";
67776__webpack_require__.r(__webpack_exports__);
67777/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; });
67778function _typeof(obj) {
67779 "@babel/helpers - typeof";
67780
67781 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
67782 return typeof obj;
67783 } : function (obj) {
67784 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
67785 }, _typeof(obj);
67786}
67787/**
67788 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
67789 */
67790
67791/**
67792 * Dispatches an event on the passed element.
67793 * @param {!Element} element The DOM element to dispatch the event on.
67794 * @param {string} eventType The type of event to dispatch.
67795 * @param {Object|string=} eventName A string name of the event constructor
67796 * to use. Defaults to 'Event' if nothing is passed or 'CustomEvent' if
67797 * a value is set on `initDict.detail`. If eventName is given an object
67798 * it is assumed to be initDict and thus reassigned.
67799 * @param {Object=} initDict The initialization attributes for the
67800 * event. A `detail` property can be used here to pass custom data.
67801 * @return {boolean} The return value of `element.dispatchEvent`, which will
67802 * be false if any of the event listeners called `preventDefault`.
67803 */
67804
67805
67806function dispatch(element, eventType, evtName, init_dict) {
67807 if (evtName === void 0) {
67808 evtName = 'Event';
67809 }
67810
67811 if (init_dict === void 0) {
67812 init_dict = {};
67813 }
67814
67815 var event;
67816 var isCustom;
67817 var initDict = init_dict;
67818 var eventName = evtName; // eventName is optional
67819
67820 if (_typeof(eventName) === 'object') {
67821 initDict = eventName;
67822 eventName = 'Event';
67823 }
67824
67825 initDict['bubbles'] = initDict['bubbles'] || false;
67826 initDict['cancelable'] = initDict['cancelable'] || false;
67827 initDict['composed'] = initDict['composed'] || false; // If a detail property is passed, this is a custom event.
67828
67829 if ('detail' in initDict) isCustom = true;
67830 eventName = isCustom ? 'CustomEvent' : eventName; // Tries to create the event using constructors, if that doesn't work,
67831 // fallback to `document.createEvent()`.
67832
67833 try {
67834 event = new window[eventName](eventType, initDict);
67835 } catch (err) {
67836 event = document.createEvent(eventName);
67837 var initMethod = 'init' + (isCustom ? 'Custom' : '') + 'Event';
67838 event[initMethod](eventType, initDict['bubbles'], initDict['cancelable'], initDict['detail']);
67839 }
67840
67841 return element.dispatchEvent(event);
67842}
67843
67844/***/ }),
67845
67846/***/ "./lib-esm/vendor/dom-utils/get-attributes.js":
67847/*!****************************************************!*\
67848 !*** ./lib-esm/vendor/dom-utils/get-attributes.js ***!
67849 \****************************************************/
67850/*! exports provided: getAttributes */
67851/***/ (function(module, __webpack_exports__, __webpack_require__) {
67852
67853"use strict";
67854__webpack_require__.r(__webpack_exports__);
67855/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAttributes", function() { return getAttributes; });
67856/**
67857 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
67858 */
67859
67860/**
67861 * Gets all attributes of an element as a plain JavaScriot object.
67862 * @param {Element} element The element whose attributes to get.
67863 * @return {!Object} An object whose keys are the attribute keys and whose
67864 * values are the attribute values. If no attributes exist, an empty
67865 * object is returned.
67866 */
67867function getAttributes(element) {
67868 var attrs = {}; // Validate input.
67869
67870 if (!(element && element.nodeType === 1)) return attrs; // Return an empty object if there are no attributes.
67871
67872 var map = element.attributes;
67873 if (map.length === 0) return {};
67874
67875 for (var i = 0, attr = void 0; attr = map[i]; i++) {
67876 attrs[attr.name] = attr.value;
67877 }
67878
67879 return attrs;
67880}
67881
67882/***/ }),
67883
67884/***/ "./lib-esm/vendor/dom-utils/index.js":
67885/*!*******************************************!*\
67886 !*** ./lib-esm/vendor/dom-utils/index.js ***!
67887 \*******************************************/
67888/*! exports provided: closest, delegate, dispatch, getAttributes, matches, parents, parseUrl */
67889/***/ (function(module, __webpack_exports__, __webpack_require__) {
67890
67891"use strict";
67892__webpack_require__.r(__webpack_exports__);
67893/* harmony import */ var _closest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./closest */ "./lib-esm/vendor/dom-utils/closest.js");
67894/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return _closest__WEBPACK_IMPORTED_MODULE_0__["closest"]; });
67895
67896/* harmony import */ var _delegate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./delegate */ "./lib-esm/vendor/dom-utils/delegate.js");
67897/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "delegate", function() { return _delegate__WEBPACK_IMPORTED_MODULE_1__["delegate"]; });
67898
67899/* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dispatch */ "./lib-esm/vendor/dom-utils/dispatch.js");
67900/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return _dispatch__WEBPACK_IMPORTED_MODULE_2__["dispatch"]; });
67901
67902/* harmony import */ var _get_attributes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get-attributes */ "./lib-esm/vendor/dom-utils/get-attributes.js");
67903/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAttributes", function() { return _get_attributes__WEBPACK_IMPORTED_MODULE_3__["getAttributes"]; });
67904
67905/* harmony import */ var _matches__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./matches */ "./lib-esm/vendor/dom-utils/matches.js");
67906/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return _matches__WEBPACK_IMPORTED_MODULE_4__["matches"]; });
67907
67908/* harmony import */ var _parents__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parents */ "./lib-esm/vendor/dom-utils/parents.js");
67909/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parents", function() { return _parents__WEBPACK_IMPORTED_MODULE_5__["parents"]; });
67910
67911/* harmony import */ var _parse_url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parse-url */ "./lib-esm/vendor/dom-utils/parse-url.js");
67912/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return _parse_url__WEBPACK_IMPORTED_MODULE_6__["parseUrl"]; });
67913
67914
67915
67916
67917
67918
67919
67920
67921
67922/***/ }),
67923
67924/***/ "./lib-esm/vendor/dom-utils/matches.js":
67925/*!*********************************************!*\
67926 !*** ./lib-esm/vendor/dom-utils/matches.js ***!
67927 \*********************************************/
67928/*! exports provided: matches */
67929/***/ (function(module, __webpack_exports__, __webpack_require__) {
67930
67931"use strict";
67932__webpack_require__.r(__webpack_exports__);
67933/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return matches; });
67934/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
67935/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
67936/**
67937 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
67938 */
67939
67940var proto = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser && window['Element'] ? window['Element'].prototype : null;
67941var nativeMatches = proto ? proto.matches || // @ts-ignore
67942proto.matchesSelector || // @ts-ignore
67943proto.webkitMatchesSelector || // @ts-ignore
67944proto.mozMatchesSelector || // @ts-ignore
67945proto.msMatchesSelector || // @ts-ignore
67946proto.oMatchesSelector : null;
67947/**
67948 * Tests if a DOM elements matches any of the test DOM elements or selectors.
67949 * @param {Element} element The DOM element to test.
67950 * @param {Element|string|Array<Element|string>} test A DOM element, a CSS
67951 * selector, or an array of DOM elements or CSS selectors to match against.
67952 * @return {boolean} True of any part of the test matches.
67953 */
67954
67955function matches(element, test) {
67956 // Validate input.
67957 if (element && element.nodeType === 1 && test) {
67958 // if test is a string or DOM element test it.
67959 if (typeof test === 'string' || test.nodeType === 1) {
67960 return element === test || matchesSelector(element,
67961 /** @type {string} */
67962 test);
67963 } else if ('length' in test) {
67964 // if it has a length property iterate over the items
67965 // and return true if any match.
67966 for (var i = 0, item = void 0; item = test[i]; i++) {
67967 if (element === item || matchesSelector(element, item)) return true;
67968 }
67969 }
67970 } // Still here? Return false
67971
67972
67973 return false;
67974}
67975/**
67976 * Tests whether a DOM element matches a selector. This polyfills the native
67977 * Element.prototype.matches method across browsers.
67978 * @param {!Element} element The DOM element to test.
67979 * @param {string} selector The CSS selector to test element against.
67980 * @return {boolean} True if the selector matches.
67981 */
67982
67983function matchesSelector(element, selector) {
67984 if (typeof selector !== 'string') return false;
67985 if (nativeMatches) return nativeMatches.call(element, selector);
67986 var nodes = element.parentNode.querySelectorAll(selector);
67987
67988 for (var i = 0, node = void 0; node = nodes[i]; i++) {
67989 if (node === element) return true;
67990 }
67991
67992 return false;
67993}
67994
67995/***/ }),
67996
67997/***/ "./lib-esm/vendor/dom-utils/parents.js":
67998/*!*********************************************!*\
67999 !*** ./lib-esm/vendor/dom-utils/parents.js ***!
68000 \*********************************************/
68001/*! exports provided: parents */
68002/***/ (function(module, __webpack_exports__, __webpack_require__) {
68003
68004"use strict";
68005__webpack_require__.r(__webpack_exports__);
68006/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parents", function() { return parents; });
68007/**
68008 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
68009 */
68010
68011/**
68012 * Returns an array of a DOM element's parent elements.
68013 * @param {!Element} element The DOM element whose parents to get.
68014 * @return {!Array} An array of all parent elemets, or an empty array if no
68015 * parent elements are found.
68016 */
68017function parents(ele) {
68018 var list = [];
68019 var element = ele;
68020
68021 while (element && element.parentNode && element.parentNode.nodeType === 1) {
68022 element =
68023 /** @type {!Element} */
68024 element.parentNode;
68025 list.push(element);
68026 }
68027
68028 return list;
68029}
68030
68031/***/ }),
68032
68033/***/ "./lib-esm/vendor/dom-utils/parse-url.js":
68034/*!***********************************************!*\
68035 !*** ./lib-esm/vendor/dom-utils/parse-url.js ***!
68036 \***********************************************/
68037/*! exports provided: parseUrl */
68038/***/ (function(module, __webpack_exports__, __webpack_require__) {
68039
68040"use strict";
68041__webpack_require__.r(__webpack_exports__);
68042/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseUrl", function() { return parseUrl; });
68043/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
68044/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
68045/**
68046 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
68047 */
68048
68049var HTTP_PORT = '80';
68050var HTTPS_PORT = '443';
68051var DEFAULT_PORT = RegExp(':(' + HTTP_PORT + '|' + HTTPS_PORT + ')$');
68052var a = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["JS"].browserOrNode().isBrowser ? document.createElement('a') : null;
68053var cache = {};
68054/**
68055 * Parses the given url and returns an object mimicing a `Location` object.
68056 * @param {string} url The url to parse.
68057 * @return {!Object} An object with the same properties as a `Location`.
68058 */
68059
68060function parseUrl(u) {
68061 var url = u; // All falsy values (as well as ".") should map to the current URL.
68062
68063 url = !url || url === '.' ? location.href : url;
68064 if (cache[url]) return cache[url];
68065 a.href = url; // When parsing file relative paths (e.g. `../index.html`), IE will correctly
68066 // resolve the `href` property but will keep the `..` in the `path` property.
68067 // It will also not include the `host` or `hostname` properties. Furthermore,
68068 // IE will sometimes return no protocol or just a colon, especially for things
68069 // like relative protocol URLs (e.g. "//google.com").
68070 // To workaround all of these issues, we reparse with the full URL from the
68071 // `href` property.
68072
68073 if (url.charAt(0) === '.' || url.charAt(0) === '/') return parseUrl(a.href); // Don't include default ports.
68074
68075 var port = a.port === HTTP_PORT || a.port === HTTPS_PORT ? '' : a.port; // PhantomJS sets the port to "0" when using the file: protocol.
68076
68077 port = port === '0' ? '' : port; // Sometimes IE incorrectly includes a port for default ports
68078 // (e.g. `:80` or `:443`) even when no port is specified in the URL.
68079 // http://bit.ly/1rQNoMg
68080
68081 var host = a.host.replace(DEFAULT_PORT, ''); // Not all browser support `origin` so we have to build it.
68082
68083 var origin = a['origin'] ? a['origin'] : a.protocol + '//' + host; // Sometimes IE doesn't include the leading slash for pathname.
68084 // http://bit.ly/1rQNoMg
68085
68086 var pathname = a.pathname.charAt(0) === '/' ? a.pathname : '/' + a.pathname;
68087 return cache[url] = {
68088 hash: a.hash,
68089 host: host,
68090 hostname: a.hostname,
68091 href: a.href,
68092 origin: origin,
68093 pathname: pathname,
68094 port: port,
68095 protocol: a.protocol,
68096 search: a.search
68097 };
68098}
68099
68100/***/ }),
68101
68102/***/ "@aws-amplify/cache":
68103/*!************************************!*\
68104 !*** external "aws_amplify_cache" ***!
68105 \************************************/
68106/*! no static exports found */
68107/***/ (function(module, exports) {
68108
68109module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_cache__;
68110
68111/***/ }),
68112
68113/***/ "@aws-amplify/core":
68114/*!***********************************!*\
68115 !*** external "aws_amplify_core" ***!
68116 \***********************************/
68117/*! no static exports found */
68118/***/ (function(module, exports) {
68119
68120module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__;
68121
68122/***/ })
68123
68124/******/ });
68125});
68126//# sourceMappingURL=aws-amplify-analytics.js.map
\No newline at end of file